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
SELECT + 38 AS col1, - 65 AS col0
----
38
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4854
SELECT - NULLIF ( - - 67, 83 DIV - - 47 ) DIV NULLIF ( + 41, - COUNT( * ) * + 96 * + 80 - NULLIF ( + - 99, - 96 ) DIV - 37 ) + + 71 * COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4854
SELECT - NULLIF ( - - 67, 83 / - - 47 ) / NULLIF ( + 41, - COUNT ( * ) * + 96 * + 80 - NULLIF ( + - 99, - 96 ) / - 37 ) + + 71 * COUNT ( * ) AS col0
----
70

query I rowsort
SELECT 4 * + 66 * - 76
----
-20064

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

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL + COUNT ( * ) + - 0 AS col1
----
1

query II rowsort
SELECT + 39 AS col2, 87 * + 62 * 74
----
39
399156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4858
SELECT ALL + COUNT( * ) * - - COUNT( * ) + + + ( + 32 ) + - 46 DIV - 96, 59 DIV COUNT( * ) + - 37 * - COUNT( * ) * + 91 col1
----
33
3426

skipif mysql # not compatible
query II rowsort label-4858
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) + + + ( + 32 ) + - 46 / - 96, 59 / COUNT ( * ) + - 37 * - COUNT ( * ) * + 91 col1
----
33
3426

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

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

query I rowsort
SELECT ALL - + 93 * - 12 * + 60 * - 96
----
-6428160

query I rowsort
SELECT ALL + ( 38 ) * 14 + + 62 AS col1
----
594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT DISTINCT CAST( + ( - ( - SUM( DISTINCT 78 ) ) ) AS SIGNED ) * - COUNT( * ) * + 0
----
0

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT CAST ( + ( - ( - SUM ( DISTINCT 78 ) ) ) AS INTEGER ) * - COUNT ( * ) * + 0
----
0

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

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL + + COUNT ( * ) * + 51 * + + 16 - - 49 - - - 61
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT + COUNT( + 10 ) * ( 94 ) + - COUNT( DISTINCT - 40 ) + - + ( + 24 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4864
SELECT + COUNT ( + 10 ) * ( 94 ) + - COUNT ( DISTINCT - 40 ) + - + ( + 24 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT 19 - 57 + COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-4865
SELECT 19 - 57 + COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT 2 + COALESCE ( 23, + 59, - 69 + + 40 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4867
SELECT ALL + 60 - - + CASE + AVG ( + - 26 ) WHEN - NULLIF ( - - 83, COUNT( * ) + - + 76 ) * 36 + + 72 THEN + - CAST( NULL AS SIGNED ) WHEN + - CAST( - + 65 AS DECIMAL ) * - + 67 THEN NULL ELSE - 58 DIV 72 END
----
60

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL + 60 - - + CASE + AVG ( + - 26 ) WHEN - NULLIF ( - - 83, COUNT ( * ) + - + 76 ) * 36 + + 72 THEN + - CAST ( NULL AS INTEGER ) WHEN + - CAST ( - + 65 AS REAL ) * - + 67 THEN NULL ELSE - 58 / 72 END
----
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4868
SELECT - 43 * COALESCE ( 85, - 23, + 26 DIV + 24 * + - 86 + + CAST( NULL AS SIGNED ) ) * + 32 + 11 AS col0
----
-116949

skipif mysql # not compatible
query I rowsort label-4868
SELECT - 43 * COALESCE ( 85, - 23, + 26 / + 24 * + - 86 + + CAST ( NULL AS INTEGER ) ) * + 32 + 11 AS col0
----
-116949

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4870
SELECT DISTINCT - ( + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL + COUNT ( ALL + - CAST ( NULL AS INTEGER ) )
----
0

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

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + COUNT ( * ) / - 59 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-4875
SELECT - 67 * - + ( + + 32 ) * + 67 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT + 8 + - + CAST( + + 17 AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4876
SELECT + 8 + - + CAST ( + + 17 AS INTEGER ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL - 25 * + COUNT( DISTINCT - + ( 15 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL - 25 * + COUNT ( DISTINCT - + ( 15 ) )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4878
SELECT DISTINCT - COUNT( * ) * - + SUM( DISTINCT 33 ) * + ( + MIN( ALL 31 ) ) * - COUNT( * ) + + - 8 - - + 96 + 29 DIV + 60 DIV + COUNT( * ) * - + 51 DIV 51 - - 17 AS col0
----
-918

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT - COUNT ( * ) * - + SUM ( DISTINCT 33 ) * + ( + MIN ( ALL 31 ) ) * - COUNT ( * ) + + - 8 - - + 96 + 29 / + 60 / + COUNT ( * ) * - + 51 / 51 - - 17 AS col0
----
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL + - 4 + + - MAX( - - 83 ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + - 4 + + - MAX ( - - 83 ) col1
----
-87

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

query I rowsort
SELECT ALL 0 + - - 45 + + 90 AS col0
----
135

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

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

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL COUNT ( * ) + - 11 AS col1
----
-10

query I rowsort
SELECT DISTINCT - 14 + + 99
----
85

query I rowsort
SELECT ALL + 56 + + + 77 AS col0
----
133

query I rowsort
SELECT ALL + 6 + - 47 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT ALL - 31 * - 28 AS col1, - NULLIF ( COUNT( * ), - COUNT( * ) * 70 )
----
868
-1

skipif mysql # not compatible
query II rowsort label-4887
SELECT ALL - 31 * - 28 AS col1, - NULLIF ( COUNT ( * ), - COUNT ( * ) * 70 )
----
868
-1

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

skipif mysql # not compatible
query I rowsort label-4888
SELECT + - CAST ( NULL AS INTEGER ) + 11 * - 68
----
NULL

query I rowsort
SELECT ALL - 20 + - ( - 5 )
----
-15

query I rowsort
SELECT ALL + 15 + - - 63
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4891
SELECT ALL + 67 * - COUNT( * ) - + CAST( NULL AS DECIMAL ) * + AVG ( + - 21 ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + 67 * - COUNT ( * ) - + CAST ( NULL AS REAL ) * + AVG ( + - 21 ) * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 99 + - 58 + - + 77
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4893
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - COUNT( 24 ) - - SUM( + + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - COUNT ( 24 ) - - SUM ( + + 56 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4894
SELECT DISTINCT + 61 AS col2, - 22 * - + 30 AS col2, + + COALESCE ( + CAST( NULL AS SIGNED ), - 75, - ( - 54 ) )
----
61
660
-75

skipif mysql # not compatible
query III rowsort label-4894
SELECT DISTINCT + 61 AS col2, - 22 * - + 30 AS col2, + + COALESCE ( + CAST ( NULL AS INTEGER ), - 75, - ( - 54 ) )
----
61
660
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT ALL 10 DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL 10 / 77 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4896
SELECT + 16 * 89 * - - COALESCE ( + 76, - - CAST( + 82 AS SIGNED ) ) AS col1
----
108224

skipif mysql # not compatible
query I rowsort label-4896
SELECT + 16 * 89 * - - COALESCE ( + 76, - - CAST ( + 82 AS INTEGER ) ) AS col1
----
108224

query I rowsort
SELECT - 22 + - + 89 AS col2
----
-111

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

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - COUNT ( * ) / + - 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4899
SELECT ALL - CAST( NULL AS SIGNED ) * - - ( CASE - 88 WHEN + + 59 * + MAX( - - 34 ) THEN - 42 * - CAST( NULL AS SIGNED ) + - - 66 + + + 28 * 63 * - SUM( ALL 16 ) + - - 98 / - ( + 89 + - COUNT( * ) ) END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL - CAST ( NULL AS INTEGER ) * - - ( CASE - 88 WHEN + + 59 * + MAX ( - - 34 ) THEN - 42 * - CAST ( NULL AS INTEGER ) + - - 66 + + + 28 * 63 * - SUM ( ALL 16 ) + - - 98 / - ( + 89 + - COUNT ( * ) ) END ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4900
SELECT ALL 92 DIV 25
----
3

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL 92 / 25
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT - 4 DIV - + 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4901
SELECT - 4 / - + 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT DISTINCT 9 * 69 * - - COUNT( * )
----
621

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT 9 * 69 * - - COUNT ( * )
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL + 29 * ( + + 27 ) * COUNT( * ) AS col0
----
783

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL + 29 * ( + + 27 ) * COUNT ( * ) AS col0
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT - COUNT( - - 11 ) * 46
----
-46

skipif mysql # not compatible
query I rowsort label-4904
SELECT - COUNT ( - - 11 ) * 46
----
-46

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4906
SELECT + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) + - + ( - - 79 ) - - + 19 * + NULLIF ( 38, 22 ) * + 19 + - - MIN( 51 ) col0
----
NULL
13691

skipif mysql # not compatible
query II rowsort label-4906
SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) + - + ( - - 79 ) - - + 19 * + NULLIF ( 38, 22 ) * + 19 + - - MIN ( 51 ) col0
----
NULL
13691

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4907
SELECT - COUNT( * ) * + + 88 DIV - 27, 92 col2
----
3
92

skipif mysql # not compatible
query II rowsort label-4907
SELECT - COUNT ( * ) * + + 88 / - 27, 92 col2
----
3
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - ( + - CASE + 92 WHEN 60 * - 94 + - + 74 THEN 6 WHEN + 59 THEN + 72 + 19 - + 77 * - 24 ELSE - + COUNT( * ) END ) * 8 * + - 71 AS col0
----
568

skipif mysql # not compatible
query I rowsort label-4908
SELECT - ( + - CASE + 92 WHEN 60 * - 94 + - + 74 THEN 6 WHEN + 59 THEN + 72 + 19 - + 77 * - 24 ELSE - + COUNT ( * ) END ) * 8 * + - 71 AS col0
----
568

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL 63 * + - MIN( ALL 44 ) + - + 33 AS col0
----
-2805

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL 63 * + - MIN ( ALL 44 ) + - + 33 AS col0
----
-2805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4911
SELECT ALL COALESCE ( - - 32, - 95 + CASE + 57 WHEN + + 32 THEN - COUNT( * ) * + 6 + 61 ELSE NULL END + + 21 * - - SUM( 84 ), COUNT( * ) * 90 DIV - 95 * + 51 ) col2
----
32

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL COALESCE ( - - 32, - 95 + CASE + 57 WHEN + + 32 THEN - COUNT ( * ) * + 6 + 61 ELSE NULL END + + 21 * - - SUM ( 84 ), COUNT ( * ) * 90 / - 95 * + 51 ) col2
----
32

query I rowsort
SELECT - 14 * - + NULLIF ( + 81, + 89 * + - 78 + - 43 + - + 77 ) AS col1
----
1134

query II rowsort
SELECT DISTINCT 37 * - 39 + 20 + NULLIF ( - + 31, 23 ) AS col2, + 13 - + + 0 AS col2
----
-1454
13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4915
SELECT ALL - COUNT( * ) * COALESCE ( + 76, - 77 DIV + SUM( DISTINCT 72 ), 71 ) * + COUNT( * ) + + MIN( ALL - + 47 ) AS col0, 80 + - 51
----
-123
29

skipif mysql # not compatible
query II rowsort label-4915
SELECT ALL - COUNT ( * ) * COALESCE ( + 76, - 77 / + SUM ( DISTINCT 72 ), 71 ) * + COUNT ( * ) + + MIN ( ALL - + 47 ) AS col0, 80 + - 51
----
-123
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT ALL - 76 DIV + 10
----
-7

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - 76 / + 10
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT - 97 DIV + 70
----
-1

skipif mysql # not compatible
query I rowsort label-4917
SELECT - 97 / + 70
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT + - COUNT( ALL - 92 ) + - + 39 + + + 59
----
19

skipif mysql # not compatible
query I rowsort label-4918
SELECT + - COUNT ( ALL - 92 ) + - + 39 + + + 59
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT + CASE 16 WHEN 16 / - 44 * 21 * - 25 THEN + - 49 * + - 9 END + NULLIF ( 43, + MIN( ALL - 75 ) * 30 ) - CASE - + 26 WHEN + MIN( DISTINCT + 87 ) THEN + 17 ELSE 94 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT + CASE 16 WHEN 16 / - 44 * 21 * - 25 THEN + - 49 * + - 9 END + NULLIF ( 43, + MIN ( ALL - 75 ) * 30 ) - CASE - + 26 WHEN + MIN ( DISTINCT + 87 ) THEN + 17 ELSE 94 END AS col2
----
NULL

query I rowsort
SELECT ALL - 26 * - 81 * - 9 + + - 71 AS col1
----
-19025

query I rowsort
SELECT DISTINCT + 68 * - 40 + + - 52 AS col0
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - CASE + COUNT( * ) WHEN - 16 THEN NULL ELSE - 53 END col1
----
53

skipif mysql # not compatible
query I rowsort label-4922
SELECT - CASE + COUNT ( * ) WHEN - 16 THEN NULL ELSE - 53 END col1
----
53

query I rowsort
SELECT ALL - + 22 * + 47
----
-1034

query I rowsort
SELECT DISTINCT + COALESCE ( 27, 12 + + 85 )
----
27

query I rowsort
SELECT DISTINCT - 83 - + + 21 + - + CASE 65 WHEN + 37 THEN - - 7 * 15 END + 67 + - 56 / - NULLIF ( + 93, + + 14 ) + - + 74 / + - 12 col2
----
NULL

query II rowsort
SELECT - 47 AS col0, 50 AS col2
----
-47
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT CASE - - 42 WHEN - 89 + - COUNT( * ) THEN 63 * + COUNT( * ) / - 69 WHEN - + 48 THEN 16 ELSE - + 63 * CAST( - COALESCE ( 31, - - 7 ) AS SIGNED ) END
----
1953

skipif mysql # not compatible
query I rowsort label-4927
SELECT CASE - - 42 WHEN - 89 + - COUNT ( * ) THEN 63 * + COUNT ( * ) / - 69 WHEN - + 48 THEN 16 ELSE - + 63 * CAST ( - COALESCE ( 31, - - 7 ) AS INTEGER ) END
----
1953

query I rowsort
SELECT ALL + ( - ( - + 88 ) ) - + 66
----
22

query I rowsort
SELECT DISTINCT 89 * + 31 AS col2
----
2759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4930
SELECT + 34 - - + CAST( - 11 AS SIGNED ) * - 28 + 29 AS col2
----
371

skipif mysql # not compatible
query I rowsort label-4930
SELECT + 34 - - + CAST ( - 11 AS INTEGER ) * - 28 + 29 AS col2
----
371

query I rowsort
SELECT + 93 * + 20 * + 73
----
135780

query I rowsort
SELECT ALL 4 * - NULLIF ( - - 88, 31 )
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT + 10 - - - COUNT( DISTINCT - - 67 ) + + - MIN( DISTINCT - + 12 )
----
21

skipif mysql # not compatible
query I rowsort label-4933
SELECT + 10 - - - COUNT ( DISTINCT - - 67 ) + + - MIN ( DISTINCT - + 12 )
----
21

query I rowsort
SELECT ALL 16 * - 74 AS col2
----
-1184

query II rowsort
SELECT ALL + 57 AS col0, - 54 * - 75
----
57
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL + COUNT( ALL - + 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL + COUNT ( ALL - + 82 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4937
SELECT DISTINCT + 70, + 14 + - 99 DIV 60 AS col2
----
70
13

skipif mysql # not compatible
query II rowsort label-4937
SELECT DISTINCT + 70, + 14 + - 99 / 60 AS col2
----
70
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4938
SELECT - 47 * - + CAST( NULL AS DECIMAL ) * - 0 + - + ( - 76 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT - 47 * - + CAST ( NULL AS REAL ) * - 0 + - + ( - 76 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT CAST( 56 AS SIGNED ) - - - 39
----
17

skipif mysql # not compatible
query I rowsort label-4939
SELECT CAST ( 56 AS INTEGER ) - - - 39
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT 65 AS col0, + ( - MIN( DISTINCT - 4 ) )
----
65
4

skipif mysql # not compatible
query II rowsort label-4940
SELECT 65 AS col0, + ( - MIN ( DISTINCT - 4 ) )
----
65
4

query I rowsort
SELECT 34 * - 86 - - - 18
----
-2942

query II rowsort
SELECT ALL - 98, 34 col1
----
-98
34

query II rowsort
SELECT + 34, - 34 AS col1
----
34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT 69 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-4944
SELECT 69 / - 96
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4946
SELECT CAST( NULL AS SIGNED ) + - - COALESCE ( + - COUNT( * ), + 20 - - 4 ) / - 85 * + - 45 * - COALESCE ( 19, + 46 + 69, - - 50 + + 17 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT CAST ( NULL AS INTEGER ) + - - COALESCE ( + - COUNT ( * ), + 20 - - 4 ) / - 85 * + - 45 * - COALESCE ( 19, + 46 + 69, - - 50 + + 17 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT ALL - 71 + - 27 + + SUM( 96 ) DIV + 21 col2
----
-94

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - 71 + - 27 + + SUM ( 96 ) / + 21 col2
----
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT + COALESCE ( 59, + + 12 * - ( + COUNT( * ) ) ) * 87 + COUNT( * ) AS col0
----
5134

skipif mysql # not compatible
query I rowsort label-4949
SELECT + COALESCE ( 59, + + 12 * - ( + COUNT ( * ) ) ) * 87 + COUNT ( * ) AS col0
----
5134

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT ALL - MAX( - + 15 ) * 10 AS col0
----
150

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL - MAX ( - + 15 ) * 10 AS col0
----
150

query I rowsort
SELECT ALL 96 + 22 AS col0
----
118

query I rowsort
SELECT ALL 55 + - 45
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT COUNT( * ) * - + 45 * - 14
----
630

skipif mysql # not compatible
query I rowsort label-4953
SELECT COUNT ( * ) * - + 45 * - 14
----
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4954
SELECT - 86 * 24 + + CAST( + 9 AS SIGNED ) + + 75 + + + 54 * - 29 + - CASE + 76 WHEN - COUNT( CAST( 37 AS SIGNED ) ) THEN NULL WHEN + + COUNT( + 76 ) THEN + 72 + + - 63 ELSE NULL END + 43 * + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT - 86 * 24 + + CAST ( + 9 AS INTEGER ) + + 75 + + + 54 * - 29 + - CASE + 76 WHEN - COUNT ( CAST ( 37 AS INTEGER ) ) THEN NULL WHEN + + COUNT ( + 76 ) THEN + 72 + + - 63 ELSE NULL END + 43 * + COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4955
SELECT DISTINCT MAX( 82 ) + - - AVG ( ALL ( - 44 ) ) * 37 + - 77 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT MAX ( 82 ) + - - AVG ( ALL ( - 44 ) ) * 37 + - 77 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 68, 30 AS col1
----
68
30

query I rowsort
SELECT + 53 * - 70 + 33
----
-3677

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT 51 DIV 27 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4959
SELECT 51 / 27 AS col2
----
1

query I rowsort
SELECT ALL - - 87 * 91 AS col2
----
7917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4961
SELECT - - MIN( CAST( 16 AS SIGNED ) ) col1
----
16

skipif mysql # not compatible
query I rowsort label-4961
SELECT - - MIN ( CAST ( 16 AS INTEGER ) ) col1
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT + - 57 - - 46 * 98 + + 16 + 93 * + - MIN( DISTINCT + 95 ) * + - COUNT( * ) * + MAX( + - NULLIF ( - 96, + - 33 * - 13 * - + 98 ) ) AS col0
----
852627

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT + - 57 - - 46 * 98 + + 16 + 93 * + - MIN ( DISTINCT + 95 ) * + - COUNT ( * ) * + MAX ( + - NULLIF ( - 96, + - 33 * - 13 * - + 98 ) ) AS col0
----
852627

query I rowsort
SELECT 61 * 70 * 79 + 6 * ( 45 ) AS col0
----
337600

query I rowsort
SELECT 38 + + 90 + - 29 AS col1
----
99

query II rowsort
SELECT ALL - CASE 3 WHEN ( - - ( - 3 ) ) THEN NULL WHEN - 11 THEN - 94 WHEN - 40 * 33 THEN NULL ELSE NULL END * 31 AS col1, 89
----
NULL
89

query I rowsort
SELECT DISTINCT + 19 * + 65
----
1235

onlyif mysql # DIV for integer division: 
query I rowsort label-4968
SELECT ALL 57 DIV - 25 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL 57 / - 25 AS col0
----
-2

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

skipif mysql # not compatible
query I rowsort label-4969
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) / 66
----
NULL

query I rowsort
SELECT 8 * + 61
----
488

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT - 81 * - 10 * 90 * - 29 + + MAX( ALL - 60 ) AS col1
----
-2114160

skipif mysql # not compatible
query I rowsort label-4971
SELECT - 81 * - 10 * 90 * - 29 + + MAX ( ALL - 60 ) AS col1
----
-2114160

query II rowsort
SELECT 47 * 36 AS col2, - 82
----
1692
-82

query II rowsort
SELECT 72 + - + 88 col2, - 95 * - - 15 col0
----
-16
-1425

query I rowsort
SELECT ALL 15 + - ( 16 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4975
SELECT ALL - MAX( + + 14 ) AS col2, 91
----
-14
91

skipif mysql # not compatible
query II rowsort label-4975
SELECT ALL - MAX ( + + 14 ) AS col2, 91
----
-14
91

query I rowsort
SELECT ALL 91 + - ( 93 )
----
-2

query I rowsort
SELECT DISTINCT - NULLIF ( 38, - + 99 ) * + 65 + 6
----
-2464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4978
SELECT DISTINCT + 57 + + 49 - - CAST( NULL AS DECIMAL ) - SUM( ALL 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT + 57 + + 49 - - CAST ( NULL AS REAL ) - SUM ( ALL 1 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 96 * + + 12 AS col0
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT - 67 * - COUNT( * ) - - - 33 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4980
SELECT - 67 * - COUNT ( * ) - - - 33 AS col1
----
34

query I rowsort
SELECT 52 - + - 1
----
53

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

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

query I rowsort
SELECT + 51 * + + 42 - 52 col2
----
2090

query I rowsort
SELECT ALL + 44 * + ( 99 ) + + 81 * - 34 * + 79
----
-213210

query I rowsort
SELECT + 43 * 13 AS col0
----
559

query I rowsort
SELECT ALL + COALESCE ( - 95, - 72 ) AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4987
SELECT ( - + 99 ) * + 98 + + + 25 + - 74 + + CAST( NULL AS SIGNED ) + + 69 * + + NULLIF ( + CASE + - CAST( - COUNT( * ) AS SIGNED ) WHEN CAST( NULL AS SIGNED ) THEN + - NULLIF ( - 6, + + 83 ) * + - 97 ELSE NULL END, + + 39 - - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT ( - + 99 ) * + 98 + + + 25 + - 74 + + CAST ( NULL AS INTEGER ) + + 69 * + + NULLIF ( + CASE + - CAST ( - COUNT ( * ) AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) THEN + - NULLIF ( - 6, + + 83 ) * + - 97 ELSE NULL END, + + 39 - - 39 )
----
NULL

query I rowsort
SELECT - 65 + 79
----
14

query I rowsort
SELECT DISTINCT 35 * ( - 42 ) AS col0
----
-1470

query I rowsort
SELECT DISTINCT - - 92 * 18 * - + 23 - 93 * 33 AS col2
----
-41157

query II rowsort
SELECT 76 * + 41 AS col1, - 73 + + ( - 53 ) - 6
----
3116
-132

query I rowsort
SELECT - 92 * + + 40 AS col2
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT MIN( + - 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4993
SELECT MIN ( + - 62 ) AS col0
----
-62

query I rowsort
SELECT - 50 + - + 31 + - - 16 * + 56 AS col0
----
815

query I rowsort
SELECT ALL NULLIF ( 65, + 51 ) AS col2
----
65

query I rowsort
SELECT DISTINCT + 88 + - ( + 62 ) AS col2
----
26

query I rowsort
SELECT + 75 + + 33
----
108

query I rowsort
SELECT + 51 + + - NULLIF ( + 43, 51 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - MAX( - 29 ) * + 23 * - 87 - - ( + - 72 )
----
-58101

skipif mysql # not compatible
query I rowsort label-4999
SELECT - MAX ( - 29 ) * + 23 * - 87 - - ( + - 72 )
----
-58101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT DISTINCT + CAST( - 24 AS SIGNED ) + - - 95
----
71

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT + CAST ( - 24 AS INTEGER ) + - - 95
----
71

query II rowsort
SELECT - 22, 80 * 41 * + 71 AS col2
----
-22
232880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT ALL 39 * + + CAST( - 57 AS SIGNED ) + + - 42
----
-2265

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL 39 * + + CAST ( - 57 AS INTEGER ) + + - 42
----
-2265

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

skipif mysql # not compatible
query I rowsort label-5003
SELECT - COUNT ( * ) - + 92 AS col0
----
-93

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

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

query II rowsort
SELECT DISTINCT - 95 * 47 + + - NULLIF ( + 93, + + 24 + 18 / - 15 * + 80 + + 20 / + 82 + - 87 ) + - 92 * - 92, 15 AS col2
----
3906
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5006
SELECT - ( - + CAST( NULL AS DECIMAL ) ) * MAX( 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT - ( - + CAST ( NULL AS REAL ) ) * MAX ( 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT NULLIF ( - SUM( DISTINCT + 61 ), - ( 87 ) / - 34 + - COUNT( * ) / + + 77 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5007
SELECT NULLIF ( - SUM ( DISTINCT + 61 ), - ( 87 ) / - 34 + - COUNT ( * ) / + + 77 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT + COUNT( * ) AS col0, - 67 - + 21
----
1
-88

skipif mysql # not compatible
query II rowsort label-5008
SELECT + COUNT ( * ) AS col0, - 67 - + 21
----
1
-88

query I rowsort
SELECT + 0 * 13 + + 35 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT COALESCE ( 5, NULLIF ( - 30, COALESCE ( - - CAST( - 22 AS SIGNED ), 36 ) ) * - 54 + + COUNT( * ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5010
SELECT COALESCE ( 5, NULLIF ( - 30, COALESCE ( - - CAST ( - 22 AS INTEGER ), 36 ) ) * - 54 + + COUNT ( * ) ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5011
SELECT + 6 DIV - CAST( - 66 AS SIGNED ) + - 64 + + 31
----
-33

skipif mysql # not compatible
query I rowsort label-5011
SELECT + 6 / - CAST ( - 66 AS INTEGER ) + - 64 + + 31
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5012
SELECT + 19 * + 57 - - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT + 19 * + 57 - - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5013
SELECT - COUNT( * ) * - ( - 70 ) * + NULLIF ( - 27, 17 ) AS col0, + COUNT( * ) - 61 AS col2
----
1890
-60

skipif mysql # not compatible
query II rowsort label-5013
SELECT - COUNT ( * ) * - ( - 70 ) * + NULLIF ( - 27, 17 ) AS col0, + COUNT ( * ) - 61 AS col2
----
1890
-60

query I rowsort
SELECT ALL - 9 * + 13 - + 75 + ( + + 76 ) + + ( + 58 ) AS col1
----
-58

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

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + COALESCE ( + 36, - COUNT ( * ), + 95 * + 35 )
----
36

query I rowsort
SELECT ALL - 48 * - 94
----
4512

onlyif mysql # aggregate syntax: 
query II rowsort label-5017
SELECT - 41 AS col2, CASE + + 98 WHEN - + 58 THEN 2 END + COUNT( * ) + + 36
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-5017
SELECT - 41 AS col2, CASE + + 98 WHEN - + 58 THEN 2 END + COUNT ( * ) + + 36
----
-41
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5018
SELECT ALL + COALESCE ( - 64, + 32 DIV - 57 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + COALESCE ( - 64, + 32 / - 57 ) AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5019
SELECT + 40 * - 88 + 24 + + - 14 + + 80 * 82 AS col0, - COALESCE ( + ( 16 ), - 76 - - COUNT( ALL - 86 ) ) * + - ( CAST( NULL AS SIGNED ) )
----
3050
NULL

skipif mysql # not compatible
query II rowsort label-5019
SELECT + 40 * - 88 + 24 + + - 14 + + 80 * 82 AS col0, - COALESCE ( + ( 16 ), - 76 - - COUNT ( ALL - 86 ) ) * + - ( CAST ( NULL AS INTEGER ) )
----
3050
NULL

query I rowsort
SELECT ALL 10 * - + 13 AS col0
----
-130

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5022
SELECT + + ( + 14 ) * - 25 * - 66 + + ( 84 ) DIV - ( 21 ) + + COUNT( * ) AS col1
----
23097

skipif mysql # not compatible
query I rowsort label-5022
SELECT + + ( + 14 ) * - 25 * - 66 + + ( 84 ) / - ( 21 ) + + COUNT ( * ) AS col1
----
23097

onlyif mysql # aggregate syntax: 
query II rowsort label-5023
SELECT ALL - 47 AS col2, + COUNT( * ) + 70
----
-47
71

skipif mysql # not compatible
query II rowsort label-5023
SELECT ALL - 47 AS col2, + COUNT ( * ) + 70
----
-47
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5024
SELECT DISTINCT 55 DIV - 48 + + COUNT( 51 ) * - SUM( DISTINCT + 73 ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT 55 / - 48 + + COUNT ( 51 ) * - SUM ( DISTINCT + 73 ) col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5025
SELECT 41 * 51 + + 18 + + 94 - - 85 + COUNT( - 12 ) * - + 68 * - - CAST( NULL AS DECIMAL ) + - ( 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT 41 * 51 + + 18 + + 94 - - 85 + COUNT ( - 12 ) * - + 68 * - - CAST ( NULL AS REAL ) + - ( 81 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL + 71 * - 14 * COUNT( * ) * + ( 63 ) AS col0
----
-62622

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + 71 * - 14 * COUNT ( * ) * + ( 63 ) AS col0
----
-62622

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5029
SELECT + - 91 * - 77 * - COUNT( * ) AS col1, - 56
----
-7007
-56

skipif mysql # not compatible
query II rowsort label-5029
SELECT + - 91 * - 77 * - COUNT ( * ) AS col1, - 56
----
-7007
-56

query I rowsort
SELECT + 96 + 89 AS col2
----
185

query I rowsort
SELECT + 34 - + 87 * + + 7 * + 96
----
-58430

query I rowsort
SELECT ALL 46 + - 88
----
-42

query II rowsort
SELECT + 51 + 41 col1, + 20 + + - 84 col0
----
92
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT - 57 + + MIN( DISTINCT - 77 ) - - 71
----
-63

skipif mysql # not compatible
query I rowsort label-5034
SELECT - 57 + + MIN ( DISTINCT - 77 ) - - 71
----
-63

query II rowsort
SELECT ALL ( - - 99 ) * - 30 + + - 61 AS col2, + 39 col0
----
-3031
39

query I rowsort
SELECT + 28 * - 92
----
-2576

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5038
SELECT ALL ( - - ( + CAST( - - CASE - 44 WHEN + 17 * 23 * + COALESCE ( - - 85, 42 ) + 65 - 67 THEN NULL WHEN 79 THEN 90 * + 23 - - 67 END AS SIGNED ) ) ) + - - 30 + + - 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL ( - - ( + CAST ( - - CASE - 44 WHEN + 17 * 23 * + COALESCE ( - - 85, 42 ) + 65 - 67 THEN NULL WHEN 79 THEN 90 * + 23 - - 67 END AS INTEGER ) ) ) + - - 30 + + - 78 col1
----
NULL

query I rowsort
SELECT ALL - 39 + + 37 + + 77 + + + 53 + + 94 * + 7
----
786

query I rowsort
SELECT + 21 + + + 18 AS col2
----
39

query I rowsort
SELECT DISTINCT 45 + - 98 AS col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5042
SELECT - 74 + + - COALESCE ( + 71, COUNT( * ) DIV - - 74 - + 58 ) DIV - COALESCE ( ( - 86 ), 68 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-5042
SELECT - 74 + + - COALESCE ( + 71, COUNT ( * ) / - - 74 - + 58 ) / - COALESCE ( ( - 86 ), 68 ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5043
SELECT ALL MAX( + - 51 ) + - CAST( + 94 AS SIGNED ) * 25 AS col2
----
-2401

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL MAX ( + - 51 ) + - CAST ( + 94 AS INTEGER ) * 25 AS col2
----
-2401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5044
SELECT ALL + COALESCE ( - + 76, 95 * - 38 + 11 + COUNT( ALL - 35 ) * + - 98 * + MIN( + + NULLIF ( + + 10, 58 ) ), CAST( NULL AS SIGNED ) * + COUNT( * ) DIV 14 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + COALESCE ( - + 76, 95 * - 38 + 11 + COUNT ( ALL - 35 ) * + - 98 * + MIN ( + + NULLIF ( + + 10, 58 ) ), CAST ( NULL AS INTEGER ) * + COUNT ( * ) / 14 ) AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5045
SELECT CAST( - - 38 AS SIGNED ) AS col2, COUNT( * ) + - + 49 * COUNT( * ) * 64 + - - 71 + + 61
----
38
-3003

skipif mysql # not compatible
query II rowsort label-5045
SELECT CAST ( - - 38 AS INTEGER ) AS col2, COUNT ( * ) + - + 49 * COUNT ( * ) * 64 + - - 71 + + 61
----
38
-3003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5046
SELECT COUNT( * ) DIV - 33 + - - 53
----
53

skipif mysql # not compatible
query I rowsort label-5046
SELECT COUNT ( * ) / - 33 + - - 53
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5047
SELECT CAST( 93 AS SIGNED ), 20 * 27 + 38 * - MIN( DISTINCT + 71 ) AS col2
----
93
-2158

skipif mysql # not compatible
query II rowsort label-5047
SELECT CAST ( 93 AS INTEGER ), 20 * 27 + 38 * - MIN ( DISTINCT + 71 ) AS col2
----
93
-2158

query II rowsort
SELECT - 37 * + 22, - 40 * 11 AS col2
----
-814
-440

query I rowsort
SELECT DISTINCT - 22 * 92
----
-2024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT ALL + NULLIF ( - CAST( - 51 AS SIGNED ), - - 13 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + NULLIF ( - CAST ( - 51 AS INTEGER ), - - 13 ) col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - SUM( + 91 ) * 98 + + + 38 + - 4 col0
----
-8884

skipif mysql # not compatible
query I rowsort label-5051
SELECT - SUM ( + 91 ) * 98 + + + 38 + - 4 col0
----
-8884

query I rowsort
SELECT ALL + 8 * - + 70 AS col2
----
-560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT - + 38 * + - CAST( - 7 AS SIGNED ) AS col1
----
-266

skipif mysql # not compatible
query I rowsort label-5053
SELECT - + 38 * + - CAST ( - 7 AS INTEGER ) AS col1
----
-266

query I rowsort
SELECT + 80 * - - 38 - 55
----
2985

query I rowsort
SELECT - - 11 * + - 69 * - 0
----
0

query I rowsort
SELECT - 68 - 44 * + CASE 63 WHEN + - 2 / + 50 THEN - - 99 + - - 48 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5057
SELECT DISTINCT + CAST( + 72 AS SIGNED ) AS col1, - COUNT( * )
----
72
-1

skipif mysql # not compatible
query II rowsort label-5057
SELECT DISTINCT + CAST ( + 72 AS INTEGER ) AS col1, - COUNT ( * )
----
72
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5058
SELECT - - CAST( 37 AS SIGNED ) * + 96 * 33 * 8 - - CAST( NULL AS SIGNED ) * - MIN( + 38 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT - - CAST ( 37 AS INTEGER ) * + 96 * 33 * 8 - - CAST ( NULL AS INTEGER ) * - MIN ( + 38 ) AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( 6, 74, - ( + 50 ) ) * + 74 AS col2
----
444

query II rowsort
SELECT DISTINCT + 42 + + - 95 AS col0, 20 + + 23
----
-53
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5061
SELECT DISTINCT 67 + + 58 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT 67 + + 58 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 80 * + ( - COALESCE ( + 28, + 99 + - 15 * + - 63 ) ) + 36 AS col0
----
-2204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5063
SELECT CAST( + - COUNT( * ) AS SIGNED ) * - COALESCE ( + 15, - - COUNT( * ) * CAST( NULL AS SIGNED ), - 31 ) + + 61 - + 96 + + + 5 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5063
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * - COALESCE ( + 15, - - COUNT ( * ) * CAST ( NULL AS INTEGER ), - 31 ) + + 61 - + 96 + + + 5 AS col0
----
-15

query I rowsort
SELECT - - COALESCE ( - 72, + - 98 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT 57 - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5065
SELECT 57 - COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL 40 + 85 + - - ( + 0 ) * - COUNT( * ) col0
----
125

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL 40 + 85 + - - ( + 0 ) * - COUNT ( * ) col0
----
125

query I rowsort
SELECT DISTINCT 75 + - 49
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT ALL 92 DIV - 13
----
-7

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL 92 / - 13
----
-7

query I rowsort
SELECT ALL 4 + - - 17 AS col0
----
21

query II rowsort
SELECT ALL 71, 70 - NULLIF ( - 80, + 85 ) AS col1
----
71
150

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

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

query I rowsort
SELECT ALL 86 - 23
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5073
SELECT 43 + - 27 + CAST( + 16 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-5073
SELECT 43 + - 27 + CAST ( + 16 AS INTEGER )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5074
SELECT CAST( + 24 AS SIGNED ) * 70, 75 AS col0
----
1680
75

skipif mysql # not compatible
query II rowsort label-5074
SELECT CAST ( + 24 AS INTEGER ) * 70, 75 AS col0
----
1680
75

query I rowsort
SELECT DISTINCT 67 * - - 44
----
2948

onlyif mysql # aggregate syntax: 
query II rowsort label-5076
SELECT DISTINCT MIN( ALL + - 60 ) * 18 AS col0, - 23 AS col1
----
-1080
-23

skipif mysql # not compatible
query II rowsort label-5076
SELECT DISTINCT MIN ( ALL + - 60 ) * 18 AS col0, - 23 AS col1
----
-1080
-23

query I rowsort
SELECT ALL 96 * + COALESCE ( - + 46, 77 ) AS col2
----
-4416

query I rowsort
SELECT DISTINCT 31 * + - 75
----
-2325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5079
SELECT - COUNT( * ) DIV - COUNT( * ) + - ( - COUNT( * ) ) * - CAST( - 91 AS SIGNED ) * - 88 + + + 22
----
-7985

skipif mysql # not compatible
query I rowsort label-5079
SELECT - COUNT ( * ) / - COUNT ( * ) + - ( - COUNT ( * ) ) * - CAST ( - 91 AS INTEGER ) * - 88 + + + 22
----
-7985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT DISTINCT - + CAST( + 24 AS SIGNED ) col1
----
-24

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT - + CAST ( + 24 AS INTEGER ) col1
----
-24

query I rowsort
SELECT 59 + + 37 col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT ALL - COUNT( DISTINCT + COALESCE ( - 0, + 89, + - 13 ) ), - 93 col1
----
-1
-93

skipif mysql # not compatible
query II rowsort label-5082
SELECT ALL - COUNT ( DISTINCT + COALESCE ( - 0, + 89, + - 13 ) ), - 93 col1
----
-1
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5083
SELECT - CASE + 68 WHEN - 42 THEN NULL ELSE - 69 DIV + - COUNT( * ) * - COUNT( * ) + - 45 * - - 86 END * 41 + MIN( ALL - - 97 )
----
161596

skipif mysql # not compatible
query I rowsort label-5083
SELECT - CASE + 68 WHEN - 42 THEN NULL ELSE - 69 / + - COUNT ( * ) * - COUNT ( * ) + - 45 * - - 86 END * 41 + MIN ( ALL - - 97 )
----
161596

query I rowsort
SELECT 49 - 57
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5085
SELECT + + 92 DIV - COUNT( * ) + + 39 + COUNT( 35 )
----
-52

skipif mysql # not compatible
query I rowsort label-5085
SELECT + + 92 / - COUNT ( * ) + + 39 + COUNT ( 35 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5086
SELECT ALL - NULLIF ( - ( - 86 ), + + 62 * - 70 DIV + 15 + + + 47 + - COALESCE ( - + MAX( + 78 ), + - CAST( NULL AS SIGNED ) ) ) col1, 93 DIV - - 80 AS col0
----
-86
1

skipif mysql # not compatible
query II rowsort label-5086
SELECT ALL - NULLIF ( - ( - 86 ), + + 62 * - 70 / + 15 + + + 47 + - COALESCE ( - + MAX ( + 78 ), + - CAST ( NULL AS INTEGER ) ) ) col1, 93 / - - 80 AS col0
----
-86
1

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

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT - + 86 * ( + COUNT ( * ) ) AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5088
SELECT ALL - 26 + 40 + + COALESCE ( + + CASE - CAST( + - COUNT( - - 11 ) AS SIGNED ) WHEN + ( 82 ) THEN COUNT( * ) ELSE NULL END, 50 * - 24 - + + NULLIF ( + 12, + + 46 ) + - CASE 12 WHEN + 84 * - - COALESCE ( + + 27, + COUNT( * ) ) + + 55 THEN NULL ELSE 33 * + 45 END ) col0
----
-2683

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - 26 + 40 + + COALESCE ( + + CASE - CAST ( + - COUNT ( - - 11 ) AS INTEGER ) WHEN + ( 82 ) THEN COUNT ( * ) ELSE NULL END, 50 * - 24 - + + NULLIF ( + 12, + + 46 ) + - CASE 12 WHEN + 84 * - - COALESCE ( + + 27, + COUNT ( * ) ) + + 55 THEN NULL ELSE 33 * + 45 END ) col0
----
-2683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5089
SELECT 28 + - + SUM( DISTINCT + - 81 ) AS col2, CASE WHEN NOT NULL > COUNT( * ) THEN NULL ELSE 37 / + + CASE + CAST( - - CAST( + 49 AS SIGNED ) AS DECIMAL ) WHEN + 21 THEN + COUNT( * ) WHEN 30 THEN - 25 + + 5 + + 6 + 54 + - + 87 / - COUNT( * ) + COUNT( * ) END END AS col1
----
109
NULL

skipif mysql # not compatible
query II rowsort label-5089
SELECT 28 + - + SUM ( DISTINCT + - 81 ) AS col2, CASE WHEN NOT NULL > COUNT ( * ) THEN NULL ELSE 37 / + + CASE + CAST ( - - CAST ( + 49 AS INTEGER ) AS REAL ) WHEN + 21 THEN + COUNT ( * ) WHEN 30 THEN - 25 + + 5 + + 6 + 54 + - + 87 / - COUNT ( * ) + COUNT ( * ) END END AS col1
----
109
NULL

query I rowsort
SELECT ALL + - 73 + - 77 + 68 AS col1
----
-82

query I rowsort
SELECT - ( 69 ) + - 26 + + 41 * + 10 + 73
----
388

onlyif mysql # DIV for integer division: 
query II rowsort label-5092
SELECT ALL - 18 AS col1, - 1 * 1 DIV + 73 * - 72
----
-18
0

skipif mysql # not compatible
query II rowsort label-5092
SELECT ALL - 18 AS col1, - 1 * 1 / + 73 * - 72
----
-18
0

query I rowsort
SELECT - 11 * + 96
----
-1056

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5094
SELECT 66 * + 75 * 57 / - - CAST( 74 AS DECIMAL ) + - CASE - + COUNT( * ) WHEN 96 THEN + COUNT( * ) * + 90 * 94 END + - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT 66 * + 75 * 57 / - - CAST ( 74 AS REAL ) + - CASE - + COUNT ( * ) WHEN 96 THEN + COUNT ( * ) * + 90 * 94 END + - 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT DISTINCT + + 6 * - SUM( + 28 ) AS col2
----
-168

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT + + 6 * - SUM ( + 28 ) AS col2
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT NULLIF ( + 0, + - 38 * 1 + + 61 ) * - MAX( - 60 ) * 61 - - MAX( ALL - 85 ) * 78 * - MAX( - 59 ) + + + 53 AS col2
----
-391117

skipif mysql # not compatible
query I rowsort label-5096
SELECT NULLIF ( + 0, + - 38 * 1 + + 61 ) * - MAX ( - 60 ) * 61 - - MAX ( ALL - 85 ) * 78 * - MAX ( - 59 ) + + + 53 AS col2
----
-391117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT DISTINCT + + 31 + + + CAST( NULL AS SIGNED ) + + + 84 * 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT + + 31 + + + CAST ( NULL AS INTEGER ) + + + 84 * 67 AS col0
----
NULL

query II rowsort
SELECT - 84, - 32 AS col0
----
-84
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL + 78 + - CASE + + 66 WHEN - COALESCE ( - COUNT( DISTINCT 55 ), + 76 + 11 - + - 16, 5, - - 93 + + 97 + - + 89 * + 9 + - COUNT( * ) ) * + 50 + - COUNT( * ) + + - COUNT( * ) THEN NULL WHEN - - 53 THEN - 41 END * ( 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL + 78 + - CASE + + 66 WHEN - COALESCE ( - COUNT ( DISTINCT 55 ), + 76 + 11 - + - 16, 5, - - 93 + + 97 + - + 89 * + 9 + - COUNT ( * ) ) * + 50 + - COUNT ( * ) + + - COUNT ( * ) THEN NULL WHEN - - 53 THEN - 41 END * ( 16 )
----
NULL

query I rowsort
SELECT DISTINCT - 66 * + 43
----
-2838

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT 53 + - + 29 DIV + + 75 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5101
SELECT 53 + - + 29 / + + 75 AS col1
----
53

query II rowsort
SELECT 63 + - 53, 5 AS col1
----
10
5

query I rowsort
SELECT ALL 86 - + 7
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-5104
SELECT ALL 69, - 24 DIV 49 AS col0
----
69
0

skipif mysql # not compatible
query II rowsort label-5104
SELECT ALL 69, - 24 / 49 AS col0
----
69
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT SUM( - - 72 ) + - 28 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5105
SELECT SUM ( - - 72 ) + - 28 AS col1
----
44

query I rowsort
SELECT 82 * + 24 * 66
----
129888

query I rowsort
SELECT ALL 50 - + 13 AS col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5108
SELECT ( + + 42 ) + NULLIF ( + COUNT( * ), - SUM( DISTINCT - 78 ) ) DIV 18 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5108
SELECT ( + + 42 ) + NULLIF ( + COUNT ( * ), - SUM ( DISTINCT - 78 ) ) / 18 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT MAX( + 48 ) + + COALESCE ( - 16, + COUNT( ALL - 64 ) ) + 28 * + - 77 AS col2
----
-2124

skipif mysql # not compatible
query I rowsort label-5109
SELECT MAX ( + 48 ) + + COALESCE ( - 16, + COUNT ( ALL - 64 ) ) + 28 * + - 77 AS col2
----
-2124

query I rowsort
SELECT 72 * + 7
----
504

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

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - 49 * - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT ALL MAX( DISTINCT - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL MAX ( DISTINCT - 38 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL SUM( ALL + 0 ) * 58 * + + 39 + + - 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL SUM ( ALL + 0 ) * 58 * + + 39 + + - 36 AS col1
----
-36

query II rowsort
SELECT 73 AS col1, 23 + - + 14 + + 55 AS col2
----
73
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5115
SELECT DISTINCT 84 DIV COUNT( * ) * - 80
----
-6720

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT 84 / COUNT ( * ) * - 80
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT + COUNT( * ) * 9 * - + 50
----
-450

skipif mysql # not compatible
query I rowsort label-5116
SELECT + COUNT ( * ) * 9 * - + 50
----
-450

query I rowsort
SELECT + 20 + - 59 AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5118
SELECT DISTINCT MAX( ALL + + 90 ) * + + 76 + - + COUNT( * ) + 6 - CAST( NULL AS SIGNED ), 23 col0
----
NULL
23

skipif mysql # not compatible
query II rowsort label-5118
SELECT DISTINCT MAX ( ALL + + 90 ) * + + 76 + - + COUNT ( * ) + 6 - CAST ( NULL AS INTEGER ), 23 col0
----
NULL
23

query II rowsort
SELECT ALL - 84, - 11 AS col2
----
-84
-11

query II rowsort
SELECT ALL - 30 * ( + 30 ) + + + 42 AS col1, + 96 col0
----
-858
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5121
SELECT ALL + 63 AS col0, COUNT( + 55 ) col0
----
63
1

skipif mysql # not compatible
query II rowsort label-5121
SELECT ALL + 63 AS col0, COUNT ( + 55 ) col0
----
63
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL - - COUNT( * ) * + SUM( - + 42 ) + + - 12 - + ( + 79 ) * - - 32 * - MAX( 25 )
----
63146

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - - COUNT ( * ) * + SUM ( - + 42 ) + + - 12 - + ( + 79 ) * - - 32 * - MAX ( 25 )
----
63146

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT - 33 * + COUNT( * ) - - 74 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5123
SELECT - 33 * + COUNT ( * ) - - 74 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL 41 * + + MIN( - NULLIF ( - 82, - - 39 ) ) + - 22 + - + 43 + 14
----
3311

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL 41 * + + MIN ( - NULLIF ( - 82, - - 39 ) ) + - 22 + - + 43 + 14
----
3311

query I rowsort
SELECT ALL + 32 * 30 AS col2
----
960

query I rowsort
SELECT DISTINCT - 21 - + 41 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL CASE + + 83 WHEN 27 THEN + + 25 ELSE NULL END * + + CASE - 50 WHEN + ( + 88 ) THEN 90 END + - ( + SUM( ALL + - COALESCE ( COALESCE ( 88, + 14 ), + 93 * - 52 + + 45 + + 8 + 78, + + 72 + 9, + 96 * 69 ) ) ) / + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL CASE + + 83 WHEN 27 THEN + + 25 ELSE NULL END * + + CASE - 50 WHEN + ( + 88 ) THEN 90 END + - ( + SUM ( ALL + - COALESCE ( COALESCE ( 88, + 14 ), + 93 * - 52 + + 45 + + 8 + 78, + + 72 + 9, + 96 * 69 ) ) ) / + 18
----
NULL

query I rowsort
SELECT - 72 * + ( + 51 ) + + 43 - 91
----
-3720

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

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

query I rowsort
SELECT ALL NULLIF ( 43, 99 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL CASE + 61 WHEN - ( - 79 ) THEN 60 + - + NULLIF ( ( + 71 ), - 2 + + - COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL CASE + 61 WHEN - ( - 79 ) THEN 60 + - + NULLIF ( ( + 71 ), - 2 + + - COUNT ( * ) ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 97, - 92 )
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL - COUNT( * ) * - ( - - 46 ) * + ( + + 25 ) * - 5
----
-5750

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL - COUNT ( * ) * - ( - - 46 ) * + ( + + 25 ) * - 5
----
-5750

query I rowsort
SELECT DISTINCT NULLIF ( - ( - 26 ), 80 ) col0
----
26

query II rowsort
SELECT - 37 * + - 91 col2, - 86 + - 58
----
3367
-144

query I rowsort
SELECT - 25 + + 33 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT - COALESCE ( + + 84, + 84 * + 4 ) + + CAST( 82 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-5138
SELECT - COALESCE ( + + 84, + 84 * + 4 ) + + CAST ( 82 AS INTEGER )
----
-2

query I rowsort
SELECT + 4 * + - 10 AS col2
----
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT DISTINCT - 37 + + COUNT( * ) + 48 * - 16 * MIN( ALL 86 ) AS col1
----
-66084

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT - 37 + + COUNT ( * ) + 48 * - 16 * MIN ( ALL 86 ) AS col1
----
-66084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5142
SELECT - - SUM( - 30 ) + + COUNT( * ) + COUNT( * ) * + SUM( - 46 ) + 17 * 66 * + + COALESCE ( - + 84, 54 DIV AVG ( ALL + 63 ) - - - ( 76 ) + - + COUNT( * ) * - - CAST( - 4 AS SIGNED ) DIV + 66 * 25 + 45 ) * - 1
----
94173

skipif mysql # not compatible
query I rowsort label-5142
SELECT - - SUM ( - 30 ) + + COUNT ( * ) + COUNT ( * ) * + SUM ( - 46 ) + 17 * 66 * + + COALESCE ( - + 84, 54 / AVG ( ALL + 63 ) - - - ( 76 ) + - + COUNT ( * ) * - - CAST ( - 4 AS INTEGER ) / + 66 * 25 + 45 ) * - 1
----
94173

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT DISTINCT + - SUM( DISTINCT 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT + - SUM ( DISTINCT 20 ) AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5144
SELECT ALL - - 42 DIV - 86 - ( - CAST( + 28 AS SIGNED ) ) + ( + COUNT( * ) ) * + 57 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL - - 42 / - 86 - ( - CAST ( + 28 AS INTEGER ) ) + ( + COUNT ( * ) ) * + 57 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5145
SELECT - COUNT( * ) * - + 70 + - - MAX( DISTINCT + - 81 ) - + NULLIF ( - - COUNT( ALL 23 ), + 52 - + - 17 ) * + CAST( NULL AS SIGNED ) * + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT - COUNT ( * ) * - + 70 + - - MAX ( DISTINCT + - 81 ) - + NULLIF ( - - COUNT ( ALL 23 ), + 52 - + - 17 ) * + CAST ( NULL AS INTEGER ) * + 68 AS col0
----
NULL

query I rowsort
SELECT + ( - - 60 ) - + + 95 * + 10
----
-890

query II rowsort
SELECT ALL 90 * + + 87, + 33 * 35 AS col1
----
7830
1155

query II rowsort
SELECT DISTINCT 95 * - 51 AS col1, + 18
----
-4845
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT + COUNT( * ) * - + 34 + 93
----
59

skipif mysql # not compatible
query I rowsort label-5149
SELECT + COUNT ( * ) * - + 34 + 93
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT ALL + NULLIF ( + 92, + 65 + MIN( - 52 ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL + NULLIF ( + 92, + 65 + MIN ( - 52 ) ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5151
SELECT ALL + 27 col2, - 75 + - - COUNT( * ) AS col0
----
27
-74

skipif mysql # not compatible
query II rowsort label-5151
SELECT ALL + 27 col2, - 75 + - - COUNT ( * ) AS col0
----
27
-74

query I rowsort
SELECT + 45 * 82 col1
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + COUNT( + - 38 ) * + 91 * 41 * - + 70 + + 22
----
-261148

skipif mysql # not compatible
query I rowsort label-5153
SELECT + COUNT ( + - 38 ) * + 91 * 41 * - + 70 + + 22
----
-261148

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT - 31 * + + 63 * + + 6 * - 41 + 9 + - 50 * COUNT( * ) + + 28
----
480425

skipif mysql # not compatible
query I rowsort label-5154
SELECT - 31 * + + 63 * + + 6 * - 41 + 9 + - 50 * COUNT ( * ) + + 28
----
480425

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT ALL 9 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL 9 / - 99
----
0

query I rowsort
SELECT - ( + + 46 ) * - + 96
----
4416

query I rowsort
SELECT - 80 + - - 20
----
-60

query I rowsort
SELECT DISTINCT + 3 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT 13 * - - 25 + - - ( CASE + 39 WHEN - + 22 THEN - + 87 * - - 56 + + COUNT( * ) - + 39 WHEN 20 + 35 THEN - 82 / - + 76 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5160
SELECT 13 * - - 25 + - - ( CASE + 39 WHEN - + 22 THEN - + 87 * - - 56 + + COUNT ( * ) - + 39 WHEN 20 + 35 THEN - 82 / - + 76 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT SUM( DISTINCT 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5161
SELECT SUM ( DISTINCT 53 ) AS col2
----
53

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

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

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

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

query I rowsort
SELECT ALL 67 + 26
----
93

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT - 38 DIV - ( + 63 ) * 10
----
0

skipif mysql # not compatible
query I rowsort label-5166
SELECT - 38 / - ( + 63 ) * 10
----
0

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

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

query I rowsort
SELECT - 31 + + - 49 + - 45 AS col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT + COUNT( * ) + COALESCE ( - + 24, - 11 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT + COUNT ( * ) + COALESCE ( - + 24, - 11 ) AS col2
----
-23

query I rowsort
SELECT ALL + + 41 + + 27 AS col1
----
68

query I rowsort
SELECT - + 3 + - + 90 + 78 AS col1
----
-15

query I rowsort
SELECT ALL - 97 + - + 43 AS col2
----
-140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5173
SELECT DISTINCT + + ( COUNT( * ) ) + - 64, CAST( NULL AS DECIMAL ) AS col0
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-5173
SELECT DISTINCT + + ( COUNT ( * ) ) + - 64, CAST ( NULL AS REAL ) AS col0
----
-63
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5174
SELECT ALL - 67 AS col0, 44 + - SUM( 17 ) + + 18
----
-67
45

skipif mysql # not compatible
query II rowsort label-5174
SELECT ALL - 67 AS col0, 44 + - SUM ( 17 ) + + 18
----
-67
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL + + ( - 90 ) * + 8 * 95 * + 61 - - - COUNT( * ) AS col2
----
-4172401

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL + + ( - 90 ) * + 8 * 95 * + 61 - - - COUNT ( * ) AS col2
----
-4172401

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

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

query II rowsort
SELECT 35, 71 AS col1
----
35
71

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

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT + - 99 - + + COUNT ( * ) * COUNT ( - + 91 ) AS col2
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5179
SELECT COUNT( * ) * + COALESCE ( - - COALESCE ( 78, + 65, + - 65 ), - CAST( NULL AS SIGNED ) )
----
78

skipif mysql # not compatible
query I rowsort label-5179
SELECT COUNT ( * ) * + COALESCE ( - - COALESCE ( 78, + 65, + - 65 ), - CAST ( NULL AS INTEGER ) )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5180
SELECT AVG ( + ( - 22 ) ) + CAST( NULL AS SIGNED ) AS col0, - 6 - 28 * 99 * + 35 * 61 AS col0
----
NULL
-5918226

skipif mysql # not compatible
query II rowsort label-5180
SELECT AVG ( + ( - 22 ) ) + CAST ( NULL AS INTEGER ) AS col0, - 6 - 28 * 99 * + 35 * 61 AS col0
----
NULL
-5918226

query I rowsort
SELECT DISTINCT + - 7 - + 57
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-5182
SELECT + 71 DIV 29
----
2

skipif mysql # not compatible
query I rowsort label-5182
SELECT + 71 / 29
----
2

query I rowsort
SELECT ALL - + NULLIF ( + 4, + 32 / 99 + - + 48 * + 40 + 1 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-5184
SELECT DISTINCT 20 DIV - - 13
----
1

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT 20 / - - 13
----
1

query II rowsort
SELECT ALL - - 24, - 1 AS col1
----
24
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5186
SELECT + - 5 AS col1, COUNT( * ) + - 39 AS col2
----
-5
-38

skipif mysql # not compatible
query II rowsort label-5186
SELECT + - 5 AS col1, COUNT ( * ) + - 39 AS col2
----
-5
-38

query II rowsort
SELECT DISTINCT - - 63, 39 * + ( - 89 ) AS col1
----
63
-3471

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - COALESCE ( + + 75, 10 ) / - CASE - + COUNT( * ) WHEN + - 64 + - MIN( DISTINCT 87 ) + 11 / - 89 THEN - 44 END - - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT - COALESCE ( + + 75, 10 ) / - CASE - + COUNT ( * ) WHEN + - 64 + - MIN ( DISTINCT 87 ) + 11 / - 89 THEN - 44 END - - 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT - 27 DIV 74 DIV - + ( + 21 ) + + ( + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5189
SELECT - 27 / 74 / - + ( + 21 ) + + ( + 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT 56 + 72 * COUNT( * )
----
128

skipif mysql # not compatible
query I rowsort label-5190
SELECT 56 + 72 * COUNT ( * )
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-5191
SELECT 62 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-5191
SELECT 62 / - 74
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5192
SELECT 17 * - CASE + AVG ( DISTINCT 82 ) WHEN 63 THEN COALESCE ( + + COUNT( * ), - 14 + 47 - 63, + 43 - - 62 + CASE + CASE + + 84 WHEN - ( 58 ) THEN - 70 END WHEN + ( - ( + ( 56 ) ) ) + + 77 THEN NULL WHEN + ( - 37 ) THEN NULL WHEN CAST( + 59 AS SIGNED ) * 81 THEN - 95 ELSE NULL END + 9, + 76 ) - - MAX( DISTINCT + 90 ) END * - 12 + 75 * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT 17 * - CASE + AVG ( DISTINCT 82 ) WHEN 63 THEN COALESCE ( + + COUNT ( * ), - 14 + 47 - 63, + 43 - - 62 + CASE + CASE + + 84 WHEN - ( 58 ) THEN - 70 END WHEN + ( - ( + ( 56 ) ) ) + + 77 THEN NULL WHEN + ( - 37 ) THEN NULL WHEN CAST ( + 59 AS INTEGER ) * 81 THEN - 95 ELSE NULL END + 9, + 76 ) - - MAX ( DISTINCT + 90 ) END * - 12 + 75 * 80
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 8 * 76 * + 28
----
-17024

query I rowsort
SELECT DISTINCT 32 * + 30 * 24 AS col2
----
23040

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT CASE COUNT( * ) WHEN - 95 THEN NULL ELSE CASE 45 WHEN + 99 THEN NULL WHEN + + 15 * - ( - 95 ) THEN + COUNT( * ) END - - 76 + - 75 END - + - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT CASE COUNT ( * ) WHEN - 95 THEN NULL ELSE CASE 45 WHEN + 99 THEN NULL WHEN + + 15 * - ( - 95 ) THEN + COUNT ( * ) END - - 76 + - 75 END - + - 58 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5197
SELECT ALL - MIN( ALL + 76 ), COUNT( * ) * - 32 AS col1
----
-76
-32

skipif mysql # not compatible
query II rowsort label-5197
SELECT ALL - MIN ( ALL + 76 ), COUNT ( * ) * - 32 AS col1
----
-76
-32

query I rowsort
SELECT ALL 26 + 90 + + 53 + 35
----
204

query I rowsort
SELECT + 26 * - + 25 + - 15 AS col2
----
-665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5200
SELECT CASE + 83 WHEN + ( - 19 ) / + + 52 THEN - 77 ELSE 15 END * + 21 * - CAST( + - 36 AS SIGNED ) - 92 AS col1
----
11248

skipif mysql # not compatible
query I rowsort label-5200
SELECT CASE + 83 WHEN + ( - 19 ) / + + 52 THEN - 77 ELSE 15 END * + 21 * - CAST ( + - 36 AS INTEGER ) - 92 AS col1
----
11248

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT 64 * CASE 59 WHEN 59 THEN + - COUNT( * ) WHEN - 79 * 89 + + - 47 THEN + 68 END - + 51 * + - 95 AS col1
----
4781

skipif mysql # not compatible
query I rowsort label-5201
SELECT 64 * CASE 59 WHEN 59 THEN + - COUNT ( * ) WHEN - 79 * 89 + + - 47 THEN + 68 END - + 51 * + - 95 AS col1
----
4781

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

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 95 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT 3 * 82 DIV + 39
----
6

skipif mysql # not compatible
query I rowsort label-5203
SELECT 3 * 82 / + 39
----
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT ALL - CAST( - - AVG ( + - 38 ) AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - CAST ( - - AVG ( + - 38 ) AS INTEGER )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5206
SELECT DISTINCT + 10 * + - 94 + COALESCE ( + 63, + 2 - - - 4 + - - COALESCE ( + 66, 57 ), - + 79 * 96 DIV + - COUNT( * ) + COUNT( * ) )
----
-877

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT + 10 * + - 94 + COALESCE ( + 63, + 2 - - - 4 + - - COALESCE ( + 66, 57 ), - + 79 * 96 / + - COUNT ( * ) + COUNT ( * ) )
----
-877

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5207
SELECT ALL + COUNT( * ) + MAX( ALL - - 34 ) + 61 + + 47 DIV + 19
----
98

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL + COUNT ( * ) + MAX ( ALL - - 34 ) + 61 + + 47 / + 19
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT DISTINCT ( CASE + 12 WHEN 71 + - + 53 + 75 * - - 64 * CAST( 95 AS SIGNED ) + + 68 * - 9 * 94 - 49 + + + CAST( 92 AS SIGNED ) THEN + 51 WHEN - CASE + NULLIF ( 91, + + ( - 58 ) ) WHEN + - COUNT( * ) * + COUNT( - + 56 ) THEN NULL ELSE - 96 END * - 75 THEN + 45 * 98 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT ( CASE + 12 WHEN 71 + - + 53 + 75 * - - 64 * CAST ( 95 AS INTEGER ) + + 68 * - 9 * 94 - 49 + + + CAST ( 92 AS INTEGER ) THEN + 51 WHEN - CASE + NULLIF ( 91, + + ( - 58 ) ) WHEN + - COUNT ( * ) * + COUNT ( - + 56 ) THEN NULL ELSE - 96 END * - 75 THEN + 45 * 98 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT COUNT( ALL 14 ) + + 71 + NULLIF ( - 83, 28 + 59 * + 49 ) + - 5 * - - ( + 21 )
----
-116

skipif mysql # not compatible
query I rowsort label-5209
SELECT COUNT ( ALL 14 ) + + 71 + NULLIF ( - 83, 28 + 59 * + 49 ) + - 5 * - - ( + 21 )
----
-116

query I rowsort
SELECT 20 + - 46 + - 43
----
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5211
SELECT ALL NULLIF ( + COUNT( * ), CAST( + - 99 AS DECIMAL ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL NULLIF ( + COUNT ( * ), CAST ( + - 99 AS REAL ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT + COALESCE ( - - 14, 0 + CAST( 53 AS SIGNED ) ) * + 69 + + + 18 AS col0
----
984

skipif mysql # not compatible
query I rowsort label-5212
SELECT + COALESCE ( - - 14, 0 + CAST ( 53 AS INTEGER ) ) * + 69 + + + 18 AS col0
----
984

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

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

query I rowsort
SELECT + ( - 36 ) * + ( + + 39 )
----
-1404

query I rowsort
SELECT - 46 * 59 + + 78 AS col2
----
-2636

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT + ( + - 10 ) + + + COUNT( 29 ) * + 85 + + 99 AS col0
----
174

skipif mysql # not compatible
query I rowsort label-5216
SELECT + ( + - 10 ) + + + COUNT ( 29 ) * + 85 + + 99 AS col0
----
174

query I rowsort
SELECT 53 * 59 AS col0
----
3127

query I rowsort
SELECT + 73 * - ( ( + - ( - 3 ) ) ) + + 12 * + 70 * 91 AS col1
----
76221

query I rowsort
SELECT DISTINCT + 49 + + + 97
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT 81 + + - MIN( - 89 ) + + COUNT( * ) + + 74 + NULLIF ( + + 67, - 61 ) * + + 11 * - 91 AS col0
----
-66822

skipif mysql # not compatible
query I rowsort label-5220
SELECT 81 + + - MIN ( - 89 ) + + COUNT ( * ) + + 74 + NULLIF ( + + 67, - 61 ) * + + 11 * - 91 AS col0
----
-66822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5221
SELECT DISTINCT - 4 + + 71 + - 47 DIV + COALESCE ( COALESCE ( + - 92, + + 75, + - 79 DIV - - COUNT( DISTINCT 55 ) * - 35 * + 11 + - 42 - - - 40 + + CASE 92 WHEN - + 53 * - 90 + + - 15 THEN NULL WHEN 29 THEN + AVG ( 81 ) * - + 39 WHEN + 54 + - 60 THEN NULL ELSE NULL END * 81 ), - 50 - AVG ( DISTINCT 99 ), - COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT - 4 + + 71 + - 47 / + COALESCE ( COALESCE ( + - 92, + + 75, + - 79 / - - COUNT ( DISTINCT 55 ) * - 35 * + 11 + - 42 - - - 40 + + CASE 92 WHEN - + 53 * - 90 + + - 15 THEN NULL WHEN 29 THEN + AVG ( 81 ) * - + 39 WHEN + 54 + - 60 THEN NULL ELSE NULL END * 81 ), - 50 - AVG ( DISTINCT 99 ), - COUNT ( * ) )
----
67

query I rowsort
SELECT DISTINCT + 49 + + 88 AS col2
----
137

query I rowsort
SELECT ALL + 31 + - 54
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT 78 + 89 * - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5224
SELECT 78 + 89 * - COUNT ( * ) AS col0
----
-11

query I rowsort
SELECT 81 * - 80 AS col2
----
-6480

query I rowsort
SELECT 16 * 43 AS col1
----
688

onlyif mysql # DIV for integer division: 
query I rowsort label-5227
SELECT ALL - 59 DIV + + 41
----
-1

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL - 59 / + + 41
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT 87 + + - COUNT( ALL 78 ) + + - 87
----
-1

skipif mysql # not compatible
query I rowsort label-5228
SELECT 87 + + - COUNT ( ALL 78 ) + + - 87
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT 23 DIV 47 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-5229
SELECT 23 / 47 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ( - COUNT( * ) ) + - + 26
----
-27

skipif mysql # not compatible
query I rowsort label-5230
SELECT ( - COUNT ( * ) ) + - + 26
----
-27

query I rowsort
SELECT 6 * + + 87 AS col2
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT COALESCE ( - + MAX( DISTINCT - + 85 ), + 61, - 96 * 68 )
----
85

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT COALESCE ( - + MAX ( DISTINCT - + 85 ), + 61, - 96 * 68 )
----
85

query I rowsort
SELECT DISTINCT 11 - 6
----
5

query I rowsort
SELECT + + 20 + - 24 AS col1
----
-4

query I rowsort
SELECT + + 76 * + - COALESCE ( + 29, - 20 )
----
-2204

query I rowsort
SELECT ALL 57 * + + 94 + + 66 AS col2
----
5424

onlyif mysql # DIV for integer division: 
query II rowsort label-5237
SELECT + 26 DIV + ( 38 ), + ( + 40 ) AS col2
----
0
40

skipif mysql # not compatible
query II rowsort label-5237
SELECT + 26 / + ( 38 ), + ( + 40 ) AS col2
----
0
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT ALL + CASE WHEN NULL >= 17 THEN + NULLIF ( 91, - NULLIF ( - 13, + - CASE + + ( - 59 ) WHEN 71 - + 0 THEN - 39 ELSE - 25 + - 30 END * ( + 50 ) * + - 46 ) ) ELSE - 54 * - + CAST( NULL AS SIGNED ) / - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL + CASE WHEN NULL >= 17 THEN + NULLIF ( 91, - NULLIF ( - 13, + - CASE + + ( - 59 ) WHEN 71 - + 0 THEN - 39 ELSE - 25 + - 30 END * ( + 50 ) * + - 46 ) ) ELSE - 54 * - + CAST ( NULL AS INTEGER ) / - 58 END
----
NULL

query I rowsort
SELECT ALL - ( - - 7 ) * + 17 * NULLIF ( 11, + + 99 ) AS col1
----
-1309

query I rowsort
SELECT ALL - 4 * - - 40
----
-160

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

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

query I rowsort
SELECT - CASE 25 WHEN 87 THEN - 21 + 98 WHEN 85 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 41 * - NULLIF ( + 70, + - 78 )
----
-2870

onlyif mysql # DIV for integer division: 
query I rowsort label-5244
SELECT + 29 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-5244
SELECT + 29 / 46
----
0

query I rowsort
SELECT - 22 * - - 51 AS col1
----
-1122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5246
SELECT ALL COALESCE ( ( + + 29 ), 23 + 90 + 2 / + - 16 + + - 34 ) * - - 47 + + + CASE + + 5 WHEN + 20 THEN - - COUNT( * ) WHEN - 99 * 16 / - 1 + 52 THEN NULL ELSE - 54 * - - CAST( 61 AS SIGNED ) - CAST( NULL AS SIGNED ) END * - 76 + + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL COALESCE ( ( + + 29 ), 23 + 90 + 2 / + - 16 + + - 34 ) * - - 47 + + + CASE + + 5 WHEN + 20 THEN - - COUNT ( * ) WHEN - 99 * 16 / - 1 + 52 THEN NULL ELSE - 54 * - - CAST ( 61 AS INTEGER ) - CAST ( NULL AS INTEGER ) END * - 76 + + - 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5247
SELECT - 21 * - 89 * - + CAST( + 23 AS SIGNED ) * 90 + + + 31 + - SUM( + CASE + 33 WHEN - 15 THEN NULL ELSE - + 95 END ) col0
----
-3868704

skipif mysql # not compatible
query I rowsort label-5247
SELECT - 21 * - 89 * - + CAST ( + 23 AS INTEGER ) * 90 + + + 31 + - SUM ( + CASE + 33 WHEN - 15 THEN NULL ELSE - + 95 END ) col0
----
-3868704

query I rowsort
SELECT ALL - 91 * + ( + 71 ) col0
----
-6461

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + ( - 54 ) + + - COUNT( * ) * + NULLIF ( + 20, + 48 + + COALESCE ( 23, - ( + 84 ) ) ) * - 38 AS col1
----
706

skipif mysql # not compatible
query I rowsort label-5250
SELECT + ( - 54 ) + + - COUNT ( * ) * + NULLIF ( + 20, + 48 + + COALESCE ( 23, - ( + 84 ) ) ) * - 38 AS col1
----
706

query II rowsort
SELECT - 85 + 93 AS col1, - 30
----
8
-30

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

skipif mysql # not compatible
query II rowsort label-5252
SELECT - 91 * - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5253
SELECT NULLIF ( + + 88, CAST( - AVG ( - 52 ) AS DECIMAL ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5253
SELECT NULLIF ( + + 88, CAST ( - AVG ( - 52 ) AS REAL ) ) AS col2
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-5254
SELECT ALL + 18 * - - 23 + - 47 + - + 93 DIV - NULLIF ( + + 20, 12 ) - + - 72 * 31, - 83 AS col2
----
2603
-83

skipif mysql # not compatible
query II rowsort label-5254
SELECT ALL + 18 * - - 23 + - 47 + - + 93 / - NULLIF ( + + 20, 12 ) - + - 72 * 31, - 83 AS col2
----
2603
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5255
SELECT + 85, + CASE - + 50 WHEN + 90 THEN NULL ELSE COUNT( 72 ) END AS col0
----
85
1

skipif mysql # not compatible
query II rowsort label-5255
SELECT + 85, + CASE - + 50 WHEN + 90 THEN NULL ELSE COUNT ( 72 ) END AS col0
----
85
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5256
SELECT ALL + COALESCE ( + COUNT( * ), + 76 - - CAST( - + 21 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL + COALESCE ( + COUNT ( * ), + 76 - - CAST ( - + 21 AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT 1 * + CASE + - 9 WHEN - 26 THEN + 45 * - 56 WHEN + 21 THEN NULL END - - - CASE + 32 WHEN - 71 THEN 70 ELSE + - 39 END - + - 41 + - 84 * - + 11
----
NULL

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

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

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

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

query I rowsort
SELECT - - 71 * - COALESCE ( + 3, - + 97 + + + 65, 59 * - - 9 )
----
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-5261
SELECT ALL + 60 DIV 9 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL + 60 / 9 AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5262
SELECT - 86, CAST( NULL AS SIGNED ) * - 31 * - 81 AS col2
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-5262
SELECT - 86, CAST ( NULL AS INTEGER ) * - 31 * - 81 AS col2
----
-86
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT - 1 * 69 col0, + COALESCE ( - ( COUNT( * ) ), + ( 10 ) ) col1
----
-69
-1

skipif mysql # not compatible
query II rowsort label-5263
SELECT - 1 * 69 col0, + COALESCE ( - ( COUNT ( * ) ), + ( 10 ) ) col1
----
-69
-1

query II rowsort
SELECT - + 89 - - 85 AS col2, + 45 AS col1
----
-4
45

query I rowsort
SELECT - 15 * 29 AS col0
----
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT - - CASE + NULLIF ( + MIN( + 66 ), + MAX( DISTINCT - 88 ) ) WHEN 39 * COUNT( * ) THEN - - 73 - - 41 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT - - CASE + NULLIF ( + MIN ( + 66 ), + MAX ( DISTINCT - 88 ) ) WHEN 39 * COUNT ( * ) THEN - - 73 - - 41 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT ALL + ( + SUM( ALL 39 ) ) col2
----
39

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL + ( + SUM ( ALL 39 ) ) col2
----
39

query I rowsort
SELECT DISTINCT - - 88 * - 35 * - COALESCE ( + - 85, - + 84 + - + 8, + 26 )
----
-261800

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT + - 64 * - - 51 + - COUNT( * )
----
-3265

skipif mysql # not compatible
query I rowsort label-5269
SELECT + - 64 * - - 51 + - COUNT ( * )
----
-3265

query I rowsort
SELECT - 90 + 18 + + + 88 + - 87
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + 74 - 82 * + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-5271
SELECT + 74 - 82 * + COUNT ( * )
----
-8

query I rowsort
SELECT - 18 + - 42 + 6
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5273
SELECT + 87 * + 94 + 18 - - ( - + COUNT( * ) ) * 19 DIV + - 12 - - COUNT( * ) + - 38 * - MAX( ALL - 84 ) col0
----
5006

skipif mysql # not compatible
query I rowsort label-5273
SELECT + 87 * + 94 + 18 - - ( - + COUNT ( * ) ) * 19 / + - 12 - - COUNT ( * ) + - 38 * - MAX ( ALL - 84 ) col0
----
5006

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

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL COUNT ( DISTINCT + 25 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT - MAX( 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-5275
SELECT - MAX ( 66 )
----
-66

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

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

query I rowsort
SELECT ALL 57 + - + 49
----
8

query I rowsort
SELECT DISTINCT 16 + + 37
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT ALL - 17 DIV - 85 + - ( 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL - 17 / - 85 + - ( 83 ) AS col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5280
SELECT DISTINCT 10 * + + CAST( - 22 AS SIGNED ) * - + 39 AS col0
----
8580

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT 10 * + + CAST ( - 22 AS INTEGER ) * - + 39 AS col0
----
8580

query II rowsort
SELECT + 21 + - + 81 - 19 AS col1, 11
----
-79
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5282
SELECT + NULLIF ( - 89, + 26 * - 73 + - + 0 ) * + 28 * - 99 DIV + COUNT( * )
----
246708

skipif mysql # not compatible
query I rowsort label-5282
SELECT + NULLIF ( - 89, + 26 * - 73 + - + 0 ) * + 28 * - 99 / + COUNT ( * )
----
246708

query I rowsort
SELECT - 15 + + 46 AS col2
----
31

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

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

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

skipif mysql # not compatible
query I rowsort label-5285
SELECT - ( + 79 ) * + 59 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5286
SELECT ALL + 23 DIV + - 21 + + 62
----
61

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL + 23 / + - 21 + + 62
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT + CAST( NULL AS SIGNED ) * AVG ( ALL - + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT + CAST ( NULL AS INTEGER ) * AVG ( ALL - + 5 )
----
NULL

query II rowsort
SELECT ALL 67 * 17, - 29 + + 56 AS col0
----
1139
27

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT DISTINCT + 14 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT + 14 / 78
----
0

query I rowsort
SELECT DISTINCT 2 - + 55 AS col1
----
-53

query II rowsort
SELECT 5 * + + 58 + + 6 AS col1, 41 + 67
----
296
108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT 24 * - SUM( - 42 ) + - + 34 + ( + + 50 ) + + 67 * 89 col0
----
6987

skipif mysql # not compatible
query I rowsort label-5293
SELECT 24 * - SUM ( - 42 ) + - + 34 + ( + + 50 ) + + 67 * 89 col0
----
6987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT CAST( NULL AS SIGNED ) + + 40 + - + MIN( + - 62 ) + - - COUNT( * ) * - 36 * - COUNT( * ) * + 78 * + 24 * - + COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT CAST ( NULL AS INTEGER ) + + 40 + - + MIN ( + - 62 ) + - - COUNT ( * ) * - 36 * - COUNT ( * ) * + 78 * + 24 * - + COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 33 * 27 * - 74 * - 71 AS col0
----
-4681314

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT - MAX( + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5296
SELECT - MAX ( + 41 ) AS col0
----
-41

query I rowsort
SELECT DISTINCT 60 * - - 92 * - 52 + + 70 col2
----
-286970

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT ALL + CASE - + 54 WHEN + - 33 + - + 69 THEN 87 WHEN + 99 * + + 45 + + 56 THEN - - 16 / 75 - MIN( DISTINCT + NULLIF ( + 91, - - 90 ) ) + + + 45 - + 60 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + CASE - + 54 WHEN + - 33 + - + 69 THEN 87 WHEN + 99 * + + 45 + + 56 THEN - - 16 / 75 - MIN ( DISTINCT + NULLIF ( + 91, - - 90 ) ) + + + 45 - + 60 END AS col1
----
NULL

query II rowsort
SELECT - 7 * + 43 + - 86 AS col0, ( - ( 47 ) )
----
-387
-47

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

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL + - MIN ( + 93 ) * + COUNT ( * ) AS col1
----
-93

query I rowsort
SELECT + 22 + - 26
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5302
SELECT 95 * ( - CAST( - + 48 AS SIGNED ) )
----
4560

skipif mysql # not compatible
query I rowsort label-5302
SELECT 95 * ( - CAST ( - + 48 AS INTEGER ) )
----
4560

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5303
SELECT - CAST( + CASE + + 8 WHEN + COUNT( * ) THEN + + 99 END AS DECIMAL ) * 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT - CAST ( + CASE + + 8 WHEN + COUNT ( * ) THEN + + 99 END AS REAL ) * 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL - 13 + 73 - - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL - 13 + 73 - - COUNT ( * ) AS col1
----
61

query I rowsort
SELECT DISTINCT + - 73 + + 35 * + - 36
----
-1333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5306
SELECT AVG ( - + CAST( NULL AS SIGNED ) ) / - 16 * 66 * - MIN( + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT AVG ( - + CAST ( NULL AS INTEGER ) ) / - 16 * 66 * - MIN ( + 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL + 22 + + ( COUNT( * ) ) + + - 66
----
-43

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + 22 + + ( COUNT ( * ) ) + + - 66
----
-43

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

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + COUNT ( * ) / - 29 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT ALL - + COALESCE ( - COUNT( * ), 56 - ( + 71 ) * - 89 * + 96 DIV + - ( - 18 ) ) + - + COUNT( ( - + 56 ) ) DIV 65 * 55 + 31 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - + COALESCE ( - COUNT ( * ), 56 - ( + 71 ) * - 89 * + 96 / + - ( - 18 ) ) + - + COUNT ( ( - + 56 ) ) / 65 * 55 + 31 AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5310
SELECT DISTINCT + + CAST( - 92 AS SIGNED ) + - 88 - 94
----
-274

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT + + CAST ( - 92 AS INTEGER ) + - 88 - 94
----
-274

query I rowsort
SELECT DISTINCT 64 * - 52 * + + ( - 10 )
----
33280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-5312
SELECT ALL + 61 + - + 75 AS col1, ( - - 27 ) + + - 60 * SUM( - + 95 ) + - - 70 DIV + - 72 * - - COUNT( * ) AS col1, COALESCE ( - NULLIF ( - + ( + + 93 ), + - CAST( + 53 AS DECIMAL ) + - 87 ), + + COUNT( * ) ) + - 43
----
-14
5727
50

skipif mysql # not compatible
query III rowsort label-5312
SELECT ALL + 61 + - + 75 AS col1, ( - - 27 ) + + - 60 * SUM ( - + 95 ) + - - 70 / + - 72 * - - COUNT ( * ) AS col1, COALESCE ( - NULLIF ( - + ( + + 93 ), + - CAST ( + 53 AS REAL ) + - 87 ), + + COUNT ( * ) ) + - 43
----
-14
5727
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL SUM( - + 69 ) + 15
----
-54

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL SUM ( - + 69 ) + 15
----
-54

query I rowsort
SELECT DISTINCT + 90 * 40 AS col2
----
3600

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT 71 - - 6 * - 24 + - COALESCE ( MAX( - 0 ), + 4, 13 * - + MIN( ALL 77 ), - 70 ), 21 col1
----
-73
21

skipif mysql # not compatible
query II rowsort label-5315
SELECT 71 - - 6 * - 24 + - COALESCE ( MAX ( - 0 ), + 4, 13 * - + MIN ( ALL 77 ), - 70 ), 21 col1
----
-73
21

query I rowsort
SELECT 81 * 38
----
3078

query I rowsort
SELECT ALL 97 - + 2 AS col0
----
95

query II rowsort
SELECT DISTINCT - 65 AS col2, + 3 * + 94 * 96 + 80 - + - 44
----
-65
27196

query I rowsort
SELECT DISTINCT - 18 - - + 1
----
-17

query I rowsort
SELECT ALL ( + 12 ) * + 4 + + + 78 AS col0
----
126

query II rowsort
SELECT ALL - 80 col2, 15 AS col0
----
-80
15

query II rowsort
SELECT 72 AS col2, 61 AS col2
----
72
61

query I rowsort
SELECT ( + 44 ) * + - 78 AS col2
----
-3432

query I rowsort
SELECT 37 * - 65 + - 26 col0
----
-2431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5325
SELECT DISTINCT CAST( - + 60 AS SIGNED ) * - ( 90 ) AS col2
----
5400

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT CAST ( - + 60 AS INTEGER ) * - ( 90 ) AS col2
----
5400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT + 46 * + + CAST( NULL AS SIGNED ) * - - 45 * - - 44 * 44 - - ( + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT + 46 * + + CAST ( NULL AS INTEGER ) * - - 45 * - - 44 * 44 - - ( + 20 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT + 83 * + SUM( + + CAST( + 99 AS SIGNED ) ) + - 59 AS col0
----
8158

skipif mysql # not compatible
query I rowsort label-5327
SELECT + 83 * + SUM ( + + CAST ( + 99 AS INTEGER ) ) + - 59 AS col0
----
8158

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT SUM( DISTINCT + 3 ) * - - 3 col2
----
9

skipif mysql # not compatible
query I rowsort label-5328
SELECT SUM ( DISTINCT + 3 ) * - - 3 col2
----
9

query I rowsort
SELECT ALL + 58 * + - ( + 17 ) AS col2
----
-986

query I rowsort
SELECT DISTINCT ( ( + - 8 ) ) * + 59
----
-472

query I rowsort
SELECT 72 * + 24 + 55 * - 2
----
1618

query I rowsort
SELECT DISTINCT - - 62 col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5333
SELECT - 6 * + + 67 DIV - ( COUNT( * ) ) AS col2
----
402

skipif mysql # not compatible
query I rowsort label-5333
SELECT - 6 * + + 67 / - ( COUNT ( * ) ) AS col2
----
402

query II rowsort
SELECT DISTINCT - 92 AS col0, - 8 + + 37
----
-92
29

query I rowsort
SELECT ALL 89 + - + 30
----
59

query II rowsort
SELECT - 71 AS col0, 83 col0
----
-71
83

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

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

query I rowsort
SELECT 41 * - 71 AS col1
----
-2911

query I rowsort
SELECT DISTINCT + 26 + + NULLIF ( - 7, + 11 ) AS col2
----
19

query I rowsort
SELECT ALL - 82 + + 63 AS col1
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT SUM( DISTINCT - + 15 ) * 45
----
-675

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT SUM ( DISTINCT - + 15 ) * 45
----
-675

onlyif mysql # aggregate syntax: 
query II rowsort label-5343
SELECT ALL - - 8 + - COUNT( * ) + - + ( - + 50 ) AS col0, + COUNT( - 76 )
----
57
1

skipif mysql # not compatible
query II rowsort label-5343
SELECT ALL - - 8 + - COUNT ( * ) + - + ( - + 50 ) AS col0, + COUNT ( - 76 )
----
57
1

query I rowsort
SELECT DISTINCT + - 45 + - 47
----
-92

query I rowsort
SELECT ALL 96 * - 23 AS col1
----
-2208

onlyif mysql # aggregate syntax: 
query II rowsort label-5346
SELECT + COUNT( * ) * - 37 + - - 46, SUM( DISTINCT - ( - 14 ) ) AS col2
----
9
14

skipif mysql # not compatible
query II rowsort label-5346
SELECT + COUNT ( * ) * - 37 + - - 46, SUM ( DISTINCT - ( - 14 ) ) AS col2
----
9
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5347
SELECT 7 - - - 92 + - 60 + CAST( NULL AS SIGNED ), - 73 * 22 * - CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5347
SELECT 7 - - - 92 + - 60 + CAST ( NULL AS INTEGER ), - 73 * 22 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT 81 + + + CAST( + 97 AS SIGNED ) AS col1
----
178

skipif mysql # not compatible
query I rowsort label-5348
SELECT 81 + + + CAST ( + 97 AS INTEGER ) AS col1
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT 16 - + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5349
SELECT 16 - + COUNT ( * ) AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5350
SELECT ALL - 32 DIV + + 53 col0
----
0

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL - 32 / + + 53 col0
----
0

query I rowsort
SELECT 90 + + 19 * - + 10
----
-100

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5353
SELECT ALL - 41 DIV + MIN( DISTINCT + CAST( + - 2 AS SIGNED ) ) col0
----
20

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL - 41 / + MIN ( DISTINCT + CAST ( + - 2 AS INTEGER ) ) col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5354
SELECT ALL - COUNT( * ) DIV 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL - COUNT ( * ) / 69 AS col1
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL + MAX( ALL + 64 ) - + - ( 54 )
----
118

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL + MAX ( ALL + 64 ) - + - ( 54 )
----
118

query I rowsort
SELECT DISTINCT - 14 * + + 92 * + 9
----
-11592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5359
SELECT 42 DIV COUNT( * ) + 80
----
122

skipif mysql # not compatible
query I rowsort label-5359
SELECT 42 / COUNT ( * ) + 80
----
122

query I rowsort
SELECT - 8 + 0 + 67 AS col1
----
59

query I rowsort
SELECT ALL + 42 * 80
----
3360

query I rowsort
SELECT COALESCE ( 17, + - 97 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT DISTINCT + CAST( - 71 AS SIGNED ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT + CAST ( - 71 AS INTEGER ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT CASE NULLIF ( MIN( ALL 47 ), + - 10 ) WHEN + + MIN( ALL - 58 ) THEN 47 + 83 + + 9 + - - COALESCE ( - 53, 19 + + COALESCE ( + 37, - - 37, + 96 + + 83 / + 90 ), - - 54 ) + - - ( 68 ) * ( AVG ( ALL - 21 ) ) / - + 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT CASE NULLIF ( MIN ( ALL 47 ), + - 10 ) WHEN + + MIN ( ALL - 58 ) THEN 47 + 83 + + 9 + - - COALESCE ( - 53, 19 + + COALESCE ( + 37, - - 37, + 96 + + 83 / + 90 ), - - 54 ) + - - ( 68 ) * ( AVG ( ALL - 21 ) ) / - + 90 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL 29 * + ( + 12 ) + + COUNT( 11 ) * + - 26
----
322

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL 29 * + ( + 12 ) + + COUNT ( 11 ) * + - 26
----
322

query I rowsort
SELECT NULLIF ( + 28, - 68 ) col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5367
SELECT + AVG ( + 20 ) + + - 73 - + CASE 32 WHEN - ( - 69 ) * COUNT( ALL + 44 ) THEN 99 WHEN + - 9 THEN NULL WHEN + + 16 * 12 + - 2 * + ( - - 16 ) * CAST( NULL AS DECIMAL ) THEN NULL END AS col2, 34
----
NULL
34

skipif mysql # not compatible
query II rowsort label-5367
SELECT + AVG ( + 20 ) + + - 73 - + CASE 32 WHEN - ( - 69 ) * COUNT ( ALL + 44 ) THEN 99 WHEN + - 9 THEN NULL WHEN + + 16 * 12 + - 2 * + ( - - 16 ) * CAST ( NULL AS REAL ) THEN NULL END AS col2, 34
----
NULL
34

query I rowsort
SELECT DISTINCT + + 55 col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + CASE + - 19 WHEN - + MIN( + - 26 ) * - 91 + + 22 THEN - - 10 ELSE + 67 END AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5369
SELECT + CASE + - 19 WHEN - + MIN ( + - 26 ) * - 91 + + 22 THEN - - 10 ELSE + 67 END AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5370
SELECT - - 82 - - - NULLIF ( - 9, - 38 ) AS col2, - CASE 23 WHEN + - 45 + 13 THEN + 99 WHEN - + COALESCE ( 41, - 99, - 86 ) + ( - 81 ) THEN + 23 * - + COUNT( * ) WHEN - 4 * - - COUNT( + 74 ) THEN NULL END AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-5370
SELECT - - 82 - - - NULLIF ( - 9, - 38 ) AS col2, - CASE 23 WHEN + - 45 + 13 THEN + 99 WHEN - + COALESCE ( 41, - 99, - 86 ) + ( - 81 ) THEN + 23 * - + COUNT ( * ) WHEN - 4 * - - COUNT ( + 74 ) THEN NULL END AS col2
----
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT - + MIN( ALL - 5 ) + + 34
----
39

skipif mysql # not compatible
query I rowsort label-5371
SELECT - + MIN ( ALL - 5 ) + + 34
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5372
SELECT - 39 * 44 - - CAST( - ( - MIN( 29 ) ) AS SIGNED )
----
-1687

skipif mysql # not compatible
query I rowsort label-5372
SELECT - 39 * 44 - - CAST ( - ( - MIN ( 29 ) ) AS INTEGER )
----
-1687

query I rowsort
SELECT ALL 56 * 35 + 73 * - 75 + - + 6
----
-3521

query I rowsort
SELECT DISTINCT - 94 + - 94 - - 57 AS col2
----
-131

query I rowsort
SELECT + 6 + - - 18
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT DISTINCT + NULLIF ( 36, - CASE - COUNT( 83 ) WHEN - 45 / + COUNT( - + 70 ) + + MIN( ALL - 35 ) THEN + 4 ELSE NULL END )
----
36

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT + NULLIF ( 36, - CASE - COUNT ( 83 ) WHEN - 45 / + COUNT ( - + 70 ) + + MIN ( ALL - 35 ) THEN + 4 ELSE NULL END )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5377
SELECT + + 50 + 6 * + 76 + CASE 37 WHEN + + 60 THEN NULL WHEN 1 - - 49 + ( + + 23 ) * + ( + + COUNT( * ) ) / + - 96 THEN + 57 END, - 89 AS col0
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-5377
SELECT + + 50 + 6 * + 76 + CASE 37 WHEN + + 60 THEN NULL WHEN 1 - - 49 + ( + + 23 ) * + ( + + COUNT ( * ) ) / + - 96 THEN + 57 END, - 89 AS col0
----
NULL
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5378
SELECT + - COUNT( * ) DIV - - 89 * + 32 * + 52 + + 86 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5378
SELECT + - COUNT ( * ) / - - 89 * + 32 * + 52 + + 86 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - + 59 + + 68 * + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-5379
SELECT - + 59 + + 68 * + COUNT ( * )
----
9

query I rowsort
SELECT ALL 22 - 29 AS col0
----
-7

query I rowsort
SELECT ALL 80 * 6
----
480

query II rowsort
SELECT 81, - ( + 22 ) AS col0
----
81
-22

query I rowsort
SELECT - 92 + + - 43 col0
----
-135

query I rowsort
SELECT DISTINCT 51 - + + 21 + + 93 - - 59 AS col0
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5385
SELECT DISTINCT - 27 * - 87 * + - 92 AS col0, - 98 + - COALESCE ( 75, + COALESCE ( + COALESCE ( - 55, - 13 ), + COUNT( * ), + - 37 DIV + 45 ) * COUNT( * ) - - ( COUNT( * ) ) ) * - + 69
----
-216108
5077

skipif mysql # not compatible
query II rowsort label-5385
SELECT DISTINCT - 27 * - 87 * + - 92 AS col0, - 98 + - COALESCE ( 75, + COALESCE ( + COALESCE ( - 55, - 13 ), + COUNT ( * ), + - 37 / + 45 ) * COUNT ( * ) - - ( COUNT ( * ) ) ) * - + 69
----
-216108
5077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT - CAST( - - 78 AS SIGNED ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-5386
SELECT - CAST ( - - 78 AS INTEGER ) AS col1
----
-78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT DISTINCT CASE - - 37 WHEN 15 THEN NULL WHEN + - 80 / COUNT( * ) THEN + 24 / - + 95 + - + COUNT( ALL - + ( - ( + - ( + 57 ) ) ) ) - 57 + - 40 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT CASE - - 37 WHEN 15 THEN NULL WHEN + - 80 / COUNT ( * ) THEN + 24 / - + 95 + - + COUNT ( ALL - + ( - ( + - ( + 57 ) ) ) ) - 57 + - 40 ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 79 * 21 AS col1
----
1659

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT + ( + + 14 ) - + - 51 + - 18 * + + MAX( DISTINCT + 24 )
----
-367

skipif mysql # not compatible
query I rowsort label-5391
SELECT + ( + + 14 ) - + - 51 + - 18 * + + MAX ( DISTINCT + 24 )
----
-367

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5392
SELECT 16 AS col0, - COUNT( * ) DIV - 28 + 94
----
16
94

skipif mysql # not compatible
query II rowsort label-5392
SELECT 16 AS col0, - COUNT ( * ) / - 28 + 94
----
16
94

query I rowsort
SELECT - 9 * - 91 AS col1
----
819

query I rowsort
SELECT ALL COALESCE ( - 83, + 47 )
----
-83

query II rowsort
SELECT 97 AS col0, 60 col2
----
97
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL CASE + 15 WHEN + 26 * + 28 + 58 + + - MIN( - 39 ) THEN + 18 * - COALESCE ( + + 18, + 99 ) + - NULLIF ( - 49, - + 53 ) * + 22 WHEN COUNT( * ) THEN + + 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL CASE + 15 WHEN + 26 * + 28 + 58 + + - MIN ( - 39 ) THEN + 18 * - COALESCE ( + + 18, + 99 ) + - NULLIF ( - 49, - + 53 ) * + 22 WHEN COUNT ( * ) THEN + + 27 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5397
SELECT DISTINCT - ( - 43 ) DIV 24 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT - ( - 43 ) / 24 AS col0
----
1

query I rowsort
SELECT - 73 * 47
----
-3431

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

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

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

query I rowsort
SELECT - 33 * + + 91 + 31
----
-2972

query I rowsort
SELECT + 11 + + 52
----
63

query I rowsort
SELECT 31 * + ( 64 ) - + 83 AS col1
----
1901

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL + 6 * + - COUNT( * ) + + 38 * + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + 6 * + - COUNT ( * ) + + 38 * + COUNT ( * ) AS col2
----
32

query I rowsort
SELECT DISTINCT - 98 * + 3 col2
----
-294

query II rowsort
SELECT ALL + - 51 AS col1, 68
----
-51
68

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

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

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

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

query I rowsort
SELECT - + 10 * + 67 AS col1
----
-670

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT - 57 + - - COUNT( * ) + - + 80 - - + 80
----
-56

skipif mysql # not compatible
query I rowsort label-5410
SELECT - 57 + - - COUNT ( * ) + - + 80 - - + 80
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5411
SELECT + 27 DIV - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5411
SELECT + 27 / - 59 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5412
SELECT + - SUM( ALL + COALESCE ( 55, - 62 + + 60 * + - 85 ) ) DIV - COALESCE ( + COUNT( 83 ), - ( + 30 ) - - + CAST( NULL AS SIGNED ), - + 82 )
----
55

skipif mysql # not compatible
query I rowsort label-5412
SELECT + - SUM ( ALL + COALESCE ( 55, - 62 + + 60 * + - 85 ) ) / - COALESCE ( + COUNT ( 83 ), - ( + 30 ) - - + CAST ( NULL AS INTEGER ), - + 82 )
----
55

query I rowsort
SELECT ALL 14 * 79 col1
----
1106

query I rowsort
SELECT DISTINCT + 32 * + 65
----
2080

query I rowsort
SELECT 6 - - + 64
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL - SUM( - - 30 ) * + 52
----
-1560

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL - SUM ( - - 30 ) * + 52
----
-1560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5417
SELECT COUNT( * ) - + + 17 AS col1, - CASE + + 57 WHEN + 93 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN - 94 WHEN 15 * - 93 THEN - - COALESCE ( - 55, - + 98 * - 5, MAX( DISTINCT - 84 ) ) * ( - 38 ) * + 55 END * + 7 - 72 + + MIN( - 71 ), + 84 AS col1
----
-16
NULL
84

skipif mysql # not compatible
query III rowsort label-5417
SELECT COUNT ( * ) - + + 17 AS col1, - CASE + + 57 WHEN + 93 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN - 94 WHEN 15 * - 93 THEN - - COALESCE ( - 55, - + 98 * - 5, MAX ( DISTINCT - 84 ) ) * ( - 38 ) * + 55 END * + 7 - 72 + + MIN ( - 71 ), + 84 AS col1
----
-16
NULL
84

query II rowsort
SELECT - 13, + ( + - 70 ) AS col1
----
-13
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5419
SELECT DISTINCT COUNT( ALL + ( + 90 ) ) DIV - 99 * - 4
----
0

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT COUNT ( ALL + ( + 90 ) ) / - 99 * - 4
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5420
SELECT ( - + 16 ) DIV - + MAX( ALL - ( - + 80 ) ) + + + COUNT( * ) - + ( + 14 ) * - ( 81 ) AS col1
----
1135

skipif mysql # not compatible
query I rowsort label-5420
SELECT ( - + 16 ) / - + MAX ( ALL - ( - + 80 ) ) + + + COUNT ( * ) - + ( + 14 ) * - ( 81 ) AS col1
----
1135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ( + 10 ) - - 12 * + CASE 41 WHEN + - 82 THEN + 97 - - - 81 WHEN - COALESCE ( COUNT( * ), + 18 ) THEN NULL END * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT ( + 10 ) - - 12 * + CASE 41 WHEN + - 82 THEN + 97 - - - 81 WHEN - COALESCE ( COUNT ( * ), + 18 ) THEN NULL END * - 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5423
SELECT 45 * + + CASE + 40 WHEN - + 5 + + + CAST( COUNT( * ) AS SIGNED ) THEN + 12 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT 45 * + + CASE + 40 WHEN - + 5 + + + CAST ( COUNT ( * ) AS INTEGER ) THEN + 12 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT COUNT( * ) + + - 82 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-5424
SELECT COUNT ( * ) + + - 82 AS col0
----
-81

query I rowsort
SELECT ALL 72 * + 86
----
6192

query I rowsort
SELECT DISTINCT ( - 29 ) + 53 + + - ( + 6 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT COUNT( - 69 ) + + 78
----
79

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT COUNT ( - 69 ) + + 78
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT DISTINCT - COUNT( 40 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT - COUNT ( 40 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 88 + + - 40 + - + 31 * + 64
----
-2112

onlyif mysql # aggregate syntax: 
query II rowsort label-5431
SELECT ALL - 59 AS col0, + 99 * + MIN( ALL - - 26 ) AS col0
----
-59
2574

skipif mysql # not compatible
query II rowsort label-5431
SELECT ALL - 59 AS col0, + 99 * + MIN ( ALL - - 26 ) AS col0
----
-59
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT 18 * + ( MIN( + 29 ) ) AS col2
----
522

skipif mysql # not compatible
query I rowsort label-5432
SELECT 18 * + ( MIN ( + 29 ) ) AS col2
----
522

query II rowsort
SELECT - 99 + 89 * + 88 * - NULLIF ( + + 86, + - 12 ), 79 AS col2
----
-673651
79

query I rowsort
SELECT DISTINCT - - 74 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT DISTINCT + COUNT( * ) + - - 90
----
91

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT + COUNT ( * ) + - - 90
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT + - CASE - ( 25 ) WHEN - - 81 * + 9 * - COALESCE ( - 85, + + ( + ( - 2 ) ) ) * 84 THEN NULL WHEN 51 THEN - - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT + - CASE - ( 25 ) WHEN - - 81 * + 9 * - COALESCE ( - 85, + + ( + ( - 2 ) ) ) * 84 THEN NULL WHEN 51 THEN - - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5437
SELECT ALL - ( - + COUNT( ALL + - ( 29 ) ) ) col0, 96 AS col0
----
1
96

skipif mysql # not compatible
query II rowsort label-5437
SELECT ALL - ( - + COUNT ( ALL + - ( 29 ) ) ) col0, 96 AS col0
----
1
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5438
SELECT + 66 * 40 DIV - NULLIF ( - 22, - - CASE 96 WHEN + 4 THEN 7 WHEN 47 * - 49 * + - ( + + CASE - 19 WHEN - COUNT( * ) THEN + 80 END ) THEN + 15 * - 23 WHEN 97 THEN 97 END + 8 )
----
120

skipif mysql # not compatible
query I rowsort label-5438
SELECT + 66 * 40 / - NULLIF ( - 22, - - CASE 96 WHEN + 4 THEN 7 WHEN 47 * - 49 * + - ( + + CASE - 19 WHEN - COUNT ( * ) THEN + 80 END ) THEN + 15 * - 23 WHEN 97 THEN 97 END + 8 )
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5439
SELECT ALL - COUNT( DISTINCT + 18 ) DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - COUNT ( DISTINCT + 18 ) / - 83 AS col1
----
0

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

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

query I rowsort
SELECT ALL - + 1 * 36 * - 51
----
1836

onlyif mysql # aggregate syntax: 
query II rowsort label-5442
SELECT + - 29 * COUNT( * ) + NULLIF ( 12, MAX( 76 ) ) AS col0, + 83 AS col1
----
-17
83

skipif mysql # not compatible
query II rowsort label-5442
SELECT + - 29 * COUNT ( * ) + NULLIF ( 12, MAX ( 76 ) ) AS col0, + 83 AS col1
----
-17
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5443
SELECT 67 - MIN( CAST( NULL AS DECIMAL ) ) - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT 67 - MIN ( CAST ( NULL AS REAL ) ) - + 26
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT 42 * + + 58 * - COUNT( * ) + 66
----
-2370

skipif mysql # not compatible
query I rowsort label-5445
SELECT 42 * + + 58 * - COUNT ( * ) + 66
----
-2370

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ( + MIN( ALL + 1 ) ) + - 82 + - 88 * + 14 + 79 * - 3
----
-1550

skipif mysql # not compatible
query I rowsort label-5446
SELECT ( + MIN ( ALL + 1 ) ) + - 82 + - 88 * + 14 + 79 * - 3
----
-1550

query II rowsort
SELECT DISTINCT - 18, - 54 AS col2
----
-18
-54

query I rowsort
SELECT 73 * + 11 + - + 63 * + 32 AS col1
----
-1213

query I rowsort
SELECT 26 + 44 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT DISTINCT + COUNT( * ) * - + 74 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT + COUNT ( * ) * - + 74 AS col1
----
-74

query I rowsort
SELECT 41 + + 74 + - - 28 * 41 AS col0
----
1263

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5452
SELECT 15 * - + 78 DIV + COUNT( * )
----
-1170

skipif mysql # not compatible
query I rowsort label-5452
SELECT 15 * - + 78 / + COUNT ( * )
----
-1170

query I rowsort
SELECT ALL 85 + - - 84 col2
----
169

query I rowsort
SELECT COALESCE ( + 60, - - 69 ) * + 67 + 83
----
4103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5455
SELECT DISTINCT + CAST( + 19 AS SIGNED ) + + - 10 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT + CAST ( + 19 AS INTEGER ) + + - 10 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT ALL COUNT( * ) + - + SUM( ALL - 37 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL COUNT ( * ) + - + SUM ( ALL - 37 ) AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT ALL 13 DIV 13 * - + 11 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL 13 / 13 * - + 11 AS col2
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT COUNT( * ) - 91 + + - 1 * MIN( DISTINCT + - 36 ) * - 44 + 31
----
-1643

skipif mysql # not compatible
query I rowsort label-5459
SELECT COUNT ( * ) - 91 + + - 1 * MIN ( DISTINCT + - 36 ) * - 44 + 31
----
-1643

onlyif mysql # DIV for integer division: 
query II rowsort label-5460
SELECT ALL 43 DIV 20 col0, 39 * + 87
----
2
3393

skipif mysql # not compatible
query II rowsort label-5460
SELECT ALL 43 / 20 col0, 39 * + 87
----
2
3393

onlyif mysql # aggregate syntax: 
query II rowsort label-5461
SELECT 40 - COUNT( * ) + 84 col2, 32 AS col1
----
123
32

skipif mysql # not compatible
query II rowsort label-5461
SELECT 40 - COUNT ( * ) + 84 col2, 32 AS col1
----
123
32

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5463
SELECT + ( + - 47 ) DIV 68 + + 78 * ( + 30 )
----
2340

skipif mysql # not compatible
query I rowsort label-5463
SELECT + ( + - 47 ) / 68 + + 78 * ( + 30 )
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ALL 62 * COUNT( * ) - - 19
----
81

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL 62 * COUNT ( * ) - - 19
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5465
SELECT - 66 DIV - - 50 - 11 DIV - 82
----
-1

skipif mysql # not compatible
query I rowsort label-5465
SELECT - 66 / - - 50 - 11 / - 82
----
-1

query I rowsort
SELECT DISTINCT - 65 * + ( - 94 ) AS col0
----
6110

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT + 64 - - SUM( DISTINCT + - 72 ) * + MIN( + + ( - 45 ) ) + + 57 - MIN( ALL + 2 ) AS col0
----
3359

skipif mysql # not compatible
query I rowsort label-5467
SELECT + 64 - - SUM ( DISTINCT + - 72 ) * + MIN ( + + ( - 45 ) ) + + 57 - MIN ( ALL + 2 ) AS col0
----
3359

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL 70 * 40 - + 2 - - MAX( DISTINCT - - 27 ) AS col2
----
2825

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL 70 * 40 - + 2 - - MAX ( DISTINCT - - 27 ) AS col2
----
2825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5469
SELECT + MAX( ALL 23 ) / + 78 - 32 + + + 28 + + 50 * - CAST( NULL AS SIGNED ) / - 52 + - + 0 + - 92 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT + MAX ( ALL 23 ) / + 78 - 32 + + + 28 + + 50 * - CAST ( NULL AS INTEGER ) / - 52 + - + 0 + - 92 * - 48
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + ( 15 ), + 94 )
----
-15

query I rowsort
SELECT - + 71 + + 40 + - 10 AS col1
----
-41

query II rowsort
SELECT DISTINCT + 0 * + 24, 5 col0
----
0
5

query I rowsort
SELECT ALL - + 82 * ( + 33 )
----
-2706

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5475
SELECT ALL COALESCE ( + 69, - 20 - - 32 - 59 + COUNT( * ) * - CASE + - 98 WHEN - 37 + - AVG ( DISTINCT - 42 ) * + 8 THEN 40 + - CAST( + COALESCE ( 71, CASE + 35 WHEN + COUNT( * ) THEN - 83 * + + 90 WHEN - 47 THEN NULL ELSE NULL END / 21 - - 11, + 62 ) AS SIGNED ) ELSE + - 63 * + + CAST( - - 36 AS SIGNED ) END ) * + + 12 * - + 38 + + CAST( - 5 AS SIGNED ) AS col2
----
-31469

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL COALESCE ( + 69, - 20 - - 32 - 59 + COUNT ( * ) * - CASE + - 98 WHEN - 37 + - AVG ( DISTINCT - 42 ) * + 8 THEN 40 + - CAST ( + COALESCE ( 71, CASE + 35 WHEN + COUNT ( * ) THEN - 83 * + + 90 WHEN - 47 THEN NULL ELSE NULL END / 21 - - 11, + 62 ) AS INTEGER ) ELSE + - 63 * + + CAST ( - - 36 AS INTEGER ) END ) * + + 12 * - + 38 + + CAST ( - 5 AS INTEGER ) AS col2
----
-31469

onlyif mysql # DIV for integer division: 
query I rowsort label-5476
SELECT - 33 DIV + 23 col2
----
-1

skipif mysql # not compatible
query I rowsort label-5476
SELECT - 33 / + 23 col2
----
-1

query I rowsort
SELECT + 45 - - 76
----
121

query I rowsort
SELECT - 9 * - + 57
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT + 21 + + + ( - COUNT( * ) ) + + 67 * ( - 91 ) AS col0
----
-6077

skipif mysql # not compatible
query I rowsort label-5479
SELECT + 21 + + + ( - COUNT ( * ) ) + + 67 * ( - 91 ) AS col0
----
-6077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT ALL - CAST( + 17 AS SIGNED ) + - ( + 27 )
----
-44

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL - CAST ( + 17 AS INTEGER ) + - ( + 27 )
----
-44

query I rowsort
SELECT - 73 * + 69 AS col0
----
-5037

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT - COUNT( * ) * + NULLIF ( - ( + 10 ), 18 ) - - ( + + 84 )
----
94

skipif mysql # not compatible
query I rowsort label-5482
SELECT - COUNT ( * ) * + NULLIF ( - ( + 10 ), 18 ) - - ( + + 84 )
----
94

query I rowsort
SELECT DISTINCT + ( 98 ) * 94
----
9212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5484
SELECT DISTINCT COALESCE ( + + 19, + 98 DIV - 84 * + - 16 * COUNT( * ) + - 68, ( 32 ) )
----
19

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT COALESCE ( + + 19, + 98 / - 84 * + - 16 * COUNT ( * ) + - 68, ( 32 ) )
----
19

query I rowsort
SELECT ALL + 52 * - + 46 AS col1
----
-2392

query I rowsort
SELECT - 84 + - + 57 * - 86
----
4818

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5487
SELECT - + 49 + - COALESCE ( + + COUNT( * ), 99 DIV + 40 + - 17 )
----
-50

skipif mysql # not compatible
query I rowsort label-5487
SELECT - + 49 + - COALESCE ( + + COUNT ( * ), 99 / + 40 + - 17 )
----
-50

query I rowsort
SELECT DISTINCT - 11 * - + 46 * + 92 * + + 74
----
3444848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5489
SELECT ALL ( + - 6 ) DIV + + COALESCE ( 57, + MAX( ALL + 45 ) ) * COUNT( * ) + 76 + 56 col0
----
132

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL ( + - 6 ) / + + COALESCE ( 57, + MAX ( ALL + 45 ) ) * COUNT ( * ) + 76 + 56 col0
----
132

query I rowsort
SELECT + 48 + NULLIF ( + 56, - + 90 * + 98 )
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5491
SELECT ALL - + 30 - - COUNT( DISTINCT 70 ) AS col1, - NULLIF ( + 18, CAST( NULL AS SIGNED ) / + - 95 - 96 )
----
-29
-18

skipif mysql # not compatible
query II rowsort label-5491
SELECT ALL - + 30 - - COUNT ( DISTINCT 70 ) AS col1, - NULLIF ( + 18, CAST ( NULL AS INTEGER ) / + - 95 - 96 )
----
-29
-18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5492
SELECT + + 7 DIV + CAST( + 38 AS SIGNED ) + - - 86 + + + 53
----
139

skipif mysql # not compatible
query I rowsort label-5492
SELECT + + 7 / + CAST ( + 38 AS INTEGER ) + - - 86 + + + 53
----
139

query I rowsort
SELECT - + 81 + + 82
----
1

query I rowsort
SELECT + - 6 + + 88
----
82

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

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

query I rowsort
SELECT - + 21 * 6 + + 76 * + - 80 + + 3 * + 54 AS col1
----
-6044

query II rowsort
SELECT + - 27 AS col2, - 55 * + + 69 AS col2
----
-27
-3795

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5498
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) * - 7 + - - 88 + + 79 * - - 61 * + CAST( - - 31 AS DECIMAL ) * + - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) * - 7 + - - 88 + + 79 * - - 61 * + CAST ( - - 31 AS REAL ) * + - 31 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5499
SELECT 17 AS col2, 75 DIV + 45 AS col2
----
17
1

skipif mysql # not compatible
query II rowsort label-5499
SELECT 17 AS col2, 75 / + 45 AS col2
----
17
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5500
SELECT + - 65 + + COUNT( DISTINCT 81 ) AS col1, - 94 AS col1
----
-64
-94

skipif mysql # not compatible
query II rowsort label-5500
SELECT + - 65 + + COUNT ( DISTINCT 81 ) AS col1, - 94 AS col1
----
-64
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT ALL + 63 * - COALESCE ( - COALESCE ( COUNT( * ), 25 ), 31 ) + 87 AS col2
----
150

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL + 63 * - COALESCE ( - COALESCE ( COUNT ( * ), 25 ), 31 ) + 87 AS col2
----
150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5502
SELECT ALL - ( - 46 ) * + 12 + - - MIN( 52 ) + + 34 - + 43 + + CAST( + - 4 AS DECIMAL ) * - COUNT( * ) * + - COUNT( * ) + + + COALESCE ( + 74, + 57 * - 20 * - + 71 * 97 ) - + 26 - + ( CASE + 37 WHEN - AVG ( + 58 ) + - COUNT( * ) THEN NULL WHEN - NULLIF ( ( + 48 ), 15 * 53 ) * - 62 + + - 25 * + 30 THEN + + 32 + 61 + 50 WHEN 28 THEN NULL END ) / 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL - ( - 46 ) * + 12 + - - MIN ( 52 ) + + 34 - + 43 + + CAST ( + - 4 AS REAL ) * - COUNT ( * ) * + - COUNT ( * ) + + + COALESCE ( + 74, + 57 * - 20 * - + 71 * 97 ) - + 26 - + ( CASE + 37 WHEN - AVG ( + 58 ) + - COUNT ( * ) THEN NULL WHEN - NULLIF ( ( + 48 ), 15 * 53 ) * - 62 + + - 25 * + 30 THEN + + 32 + 61 + 50 WHEN 28 THEN NULL END ) / 34
----
NULL

query I rowsort
SELECT 10 * 7 + + 30
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-5504
SELECT COALESCE ( - 93, 68 + MIN( ALL - - 73 ) * + - 54 * - + 19 * + 9 + 58 ) AS col1, - 0 + - 65 col2
----
-93
-65

skipif mysql # not compatible
query II rowsort label-5504
SELECT COALESCE ( - 93, 68 + MIN ( ALL - - 73 ) * + - 54 * - + 19 * + 9 + 58 ) AS col1, - 0 + - 65 col2
----
-93
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT ALL - 22 * MAX( + 75 ) + 5
----
-1645

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL - 22 * MAX ( + 75 ) + 5
----
-1645

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5507
SELECT DISTINCT - ( + 92 ) * COUNT( * ) DIV - 32 + - 6 AS col2, CASE - 94 WHEN NULLIF ( - + NULLIF ( + + 50, + 46 ), + 44 * - 80 ) THEN - + 51 + 27 ELSE NULL END AS col0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-5507
SELECT DISTINCT - ( + 92 ) * COUNT ( * ) / - 32 + - 6 AS col2, CASE - 94 WHEN NULLIF ( - + NULLIF ( + + 50, + 46 ), + 44 * - 80 ) THEN - + 51 + 27 ELSE NULL END AS col0
----
-4
NULL

query I rowsort
SELECT ALL - 20 * - 9
----
180

query I rowsort
SELECT - 44 + 4 + + 43 + 31 * - 9 * - - ( 71 ) + - + 5 + 12 + 41 * 18 * - 3 * - + 51
----
93115

query I rowsort
SELECT DISTINCT 67 * + 45 * - + 71 col0
----
-214065

query I rowsort
SELECT + 90 * + - 79
----
-7110

onlyif mysql # DIV for integer division: 
query I rowsort label-5512
SELECT + 8 DIV + + 69
----
0

skipif mysql # not compatible
query I rowsort label-5512
SELECT + 8 / + + 69
----
0

query I rowsort
SELECT - 14 + CASE 81 WHEN + - 23 THEN NULL ELSE + - 62 END
----
-76

query I rowsort
SELECT ALL + 48 - - 89
----
137

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

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT CAST ( NULL AS INTEGER ) * AVG ( - + 85 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT DISTINCT CAST( - 54 AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT CAST ( - 54 AS INTEGER ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-5517
SELECT - MAX( - 97 ), + 39 AS col0
----
97
39

skipif mysql # not compatible
query II rowsort label-5517
SELECT - MAX ( - 97 ), + 39 AS col0
----
97
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5518
SELECT - - 26 - COUNT( * ) * - 87 / + 52 / 5 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT - - 26 - COUNT ( * ) * - 87 / + 52 / 5 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5519
SELECT - - COUNT( * ) * + 62 AS col2, ( - + 12 ) + + 55
----
62
43

skipif mysql # not compatible
query II rowsort label-5519
SELECT - - COUNT ( * ) * + 62 AS col2, ( - + 12 ) + + 55
----
62
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT + 12 + CASE - 80 WHEN + - AVG ( DISTINCT 28 ) THEN NULL ELSE - + NULLIF ( + - 34, + 40 * 66 ) + COUNT( * ) END
----
47

skipif mysql # not compatible
query I rowsort label-5520
SELECT + 12 + CASE - 80 WHEN + - AVG ( DISTINCT 28 ) THEN NULL ELSE - + NULLIF ( + - 34, + 40 * 66 ) + COUNT ( * ) END
----
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5521
SELECT ALL - 66 * 26 DIV - - CAST( + 43 AS SIGNED ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL - 66 * 26 / - - CAST ( + 43 AS INTEGER ) AS col0
----
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-5522
SELECT - 21 DIV + 29 AS col0, 2
----
0
2

skipif mysql # not compatible
query II rowsort label-5522
SELECT - 21 / + 29 AS col0, 2
----
0
2

query I rowsort
SELECT DISTINCT + 63 + - + 35
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT ( + 13 ) DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5524
SELECT ( + 13 ) / 37 AS col0
----
0

query II rowsort
SELECT - ( 80 ), - 31 AS col0
----
-80
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-5526
SELECT + 71 * 9 * - 96 * 79 AS col1, COUNT( * )
----
-4846176
1

skipif mysql # not compatible
query II rowsort label-5526
SELECT + 71 * 9 * - 96 * 79 AS col1, COUNT ( * )
----
-4846176
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5527
SELECT 52 DIV COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-5527
SELECT 52 / COUNT ( * ) AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5528
SELECT COUNT( * ) + - CAST( + 4 AS SIGNED ) * 78 * COUNT( * ) AS col0, 3
----
-311
3

skipif mysql # not compatible
query II rowsort label-5528
SELECT COUNT ( * ) + - CAST ( + 4 AS INTEGER ) * 78 * COUNT ( * ) AS col0, 3
----
-311
3

query I rowsort
SELECT DISTINCT 27 * + - 33 col0
----
-891

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

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

query I rowsort
SELECT ALL 62 * + 65
----
4030

query I rowsort
SELECT 41 * - - 32
----
1312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5533
SELECT DISTINCT 74 + ( + - NULLIF ( - 22, + NULLIF ( 50, CASE - - COUNT( * ) WHEN ( - 40 ) + + - ( 37 ) + 39 THEN NULL WHEN - SUM( ALL + 82 ) THEN NULL WHEN - 38 THEN - 70 + + + 8 + + 67 + 56 - - CASE + 8 WHEN + 64 * 71 THEN - - COUNT( * ) + - 84 WHEN - 67 THEN 20 + + 2 ELSE NULL END * + 83 DIV - 73 * + - 18 * + + 10 * 71 + 87 * 8 ELSE NULL END DIV 12 ) ) ) DIV - 90
----
74

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT 74 + ( + - NULLIF ( - 22, + NULLIF ( 50, CASE - - COUNT ( * ) WHEN ( - 40 ) + + - ( 37 ) + 39 THEN NULL WHEN - SUM ( ALL + 82 ) THEN NULL WHEN - 38 THEN - 70 + + + 8 + + 67 + 56 - - CASE + 8 WHEN + 64 * 71 THEN - - COUNT ( * ) + - 84 WHEN - 67 THEN 20 + + 2 ELSE NULL END * + 83 / - 73 * + - 18 * + + 10 * 71 + 87 * 8 ELSE NULL END / 12 ) ) ) / - 90
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5534
SELECT DISTINCT 97 + + ( - 86 ) AS col0, 71 + + 19 * - + COUNT( * ), + NULLIF ( - CAST( NULL AS SIGNED ), - ( COALESCE ( + 98, - - ( + 54 ) * SUM( - 87 ), - 13 ) ) * + COUNT( * ) ) AS col2
----
11
52
NULL

skipif mysql # not compatible
query III rowsort label-5534
SELECT DISTINCT 97 + + ( - 86 ) AS col0, 71 + + 19 * - + COUNT ( * ), + NULLIF ( - CAST ( NULL AS INTEGER ), - ( COALESCE ( + 98, - - ( + 54 ) * SUM ( - 87 ), - 13 ) ) * + COUNT ( * ) ) AS col2
----
11
52
NULL

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

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

query I rowsort
SELECT 31 + 75 AS col0
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-5537
SELECT + 72, + COUNT( * ) * + 15 col2
----
72
15

skipif mysql # not compatible
query II rowsort label-5537
SELECT + 72, + COUNT ( * ) * + 15 col2
----
72
15

query I rowsort
SELECT 79 * + + 47 AS col2
----
3713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5539
SELECT MAX( 70 ) * + 35 + - 48 + - - 6 * 56 * - - 58 + 24 + ( + - 58 ) + - 67 + - NULLIF ( 69, COUNT( * ) + + COUNT( * ) + 87 - 50 ) + - 27 AS col0, - 54 * - + CAST( 81 AS SIGNED )
----
21693
4374

skipif mysql # not compatible
query II rowsort label-5539
SELECT MAX ( 70 ) * + 35 + - 48 + - - 6 * 56 * - - 58 + 24 + ( + - 58 ) + - 67 + - NULLIF ( 69, COUNT ( * ) + + COUNT ( * ) + 87 - 50 ) + - 27 AS col0, - 54 * - + CAST ( 81 AS INTEGER )
----
21693
4374

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

query I rowsort
SELECT ALL 96 - + 6 AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5542
SELECT DISTINCT 13 DIV - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT 13 / - 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT MAX( ALL - + 82 ) * NULLIF ( 94, + 90 ) AS col0
----
-7708

skipif mysql # not compatible
query I rowsort label-5543
SELECT MAX ( ALL - + 82 ) * NULLIF ( 94, + 90 ) AS col0
----
-7708

query I rowsort
SELECT ALL - 89 * - + 11
----
979

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT MIN( DISTINCT - 90 ) + + ( - 44 ) - + 95 AS col0, 9 AS col1
----
-229
9

skipif mysql # not compatible
query II rowsort label-5545
SELECT MIN ( DISTINCT - 90 ) + + ( - 44 ) - + 95 AS col0, 9 AS col1
----
-229
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT + ( + + 70 ) + - + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-5547
SELECT + ( + + 70 ) + - + COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT COUNT( * ) + + MAX( 57 ) - + 58 col0
----
0

skipif mysql # not compatible
query I rowsort label-5548
SELECT COUNT ( * ) + + MAX ( 57 ) - + 58 col0
----
0

query I rowsort
SELECT - ( 79 ) + 40
----
-39

query I rowsort
SELECT ALL 13 * + 23 * + 42 * - 80
----
-1004640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5551
SELECT ALL - 70 * + + 47 * - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * + - NULLIF ( - - 56, - COUNT( * ) ) + 61 * + + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL - 70 * + + 47 * - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - NULLIF ( - - 56, - COUNT ( * ) ) + 61 * + + 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT + SUM( - + 86 ) * 65 - 38
----
-5628

skipif mysql # not compatible
query I rowsort label-5552
SELECT + SUM ( - + 86 ) * 65 - 38
----
-5628

query I rowsort
SELECT 87 + + - 91 AS col1
----
-4

query I rowsort
SELECT - 66 - 14 AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5555
SELECT ALL + CASE - 60 WHEN + - ( - - 18 ) * CAST( NULL AS SIGNED ) + + 81 THEN 5 WHEN - + 45 THEN NULL END AS col0, - 56 + - 34 + COALESCE ( ( 46 ), - - 77 )
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-5555
SELECT ALL + CASE - 60 WHEN + - ( - - 18 ) * CAST ( NULL AS INTEGER ) + + 81 THEN 5 WHEN - + 45 THEN NULL END AS col0, - 56 + - 34 + COALESCE ( ( 46 ), - - 77 )
----
NULL
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5556
SELECT - 10 * + CAST( NULL AS SIGNED ) / COUNT( * ) + + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT - 10 * + CAST ( NULL AS INTEGER ) / COUNT ( * ) + + 25 AS col0
----
NULL

query I rowsort
SELECT ALL 80 + 95 AS col0
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5558
SELECT DISTINCT 49 col0, + ( + COALESCE ( NULLIF ( 72, + 32 DIV + - 15 + + 5 ), - CASE COUNT( * ) WHEN + 92 THEN + 75 + ( - - 94 ) DIV - 44 + - COUNT( * ) END, 14 * 42 + - 61 * - COUNT( * ) + SUM( DISTINCT - 0 ) ) ) AS col0
----
49
72

skipif mysql # not compatible
query II rowsort label-5558
SELECT DISTINCT 49 col0, + ( + COALESCE ( NULLIF ( 72, + 32 / + - 15 + + 5 ), - CASE COUNT ( * ) WHEN + 92 THEN + 75 + ( - - 94 ) / - 44 + - COUNT ( * ) END, 14 * 42 + - 61 * - COUNT ( * ) + SUM ( DISTINCT - 0 ) ) ) AS col0
----
49
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL - + 50 + - - COUNT( + 82 ) + + 56
----
7

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - + 50 + - - COUNT ( + 82 ) + + 56
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL + + MIN( + 97 ) + + 66 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + + MIN ( + 97 ) + + 66 AS col1
----
163

query I rowsort
SELECT + 33 + - 16 + - 23 + 99 * 84 - + 73
----
8237

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT ALL COALESCE ( ( - + ( - 89 ) ), + COUNT( * ) * - 88 - 71 + 17, 27 * - 68 * + 81 * + SUM( 76 ) * 87 + + + 97 )
----
89

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL COALESCE ( ( - + ( - 89 ) ), + COUNT ( * ) * - 88 - 71 + 17, 27 * - 68 * + 81 * + SUM ( 76 ) * 87 + + + 97 )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT DISTINCT - 76 + - ( - + 97 ) - - 56 + - 90 DIV - 6
----
92

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT - 76 + - ( - + 97 ) - - 56 + - 90 / - 6
----
92

query I rowsort
SELECT ALL - 43 + - 79 + + 96 * + + 22
----
1990

query I rowsort
SELECT ALL + 85 + - 46 AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5566
SELECT - 8 + + 31 * 69 AS col1, COUNT( * ) AS col1
----
2131
1

skipif mysql # not compatible
query II rowsort label-5566
SELECT - 8 + + 31 * 69 AS col1, COUNT ( * ) AS col1
----
2131
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT 36 * + NULLIF ( + + 29, - SUM( - - 66 ) + 34 ) AS col2
----
1044

skipif mysql # not compatible
query I rowsort label-5567
SELECT 36 * + NULLIF ( + + 29, - SUM ( - - 66 ) + 34 ) AS col2
----
1044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5568
SELECT + 91 DIV + - COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5568
SELECT + 91 / + - COUNT ( * ) AS col2
----
-91

query I rowsort
SELECT + 4 * - ( - 69 ) - + 74 + - 20
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT ALL + CAST( + 58 AS SIGNED ) + - 51 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL + CAST ( + 58 AS INTEGER ) + - 51 AS col2
----
7

query I rowsort
SELECT 35 * + ( - 32 ) AS col2
----
-1120

query I rowsort
SELECT ALL - COALESCE ( 82, 13 )
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT - ( + - ( 16 ) ) DIV + + 68 + - 27
----
-27

skipif mysql # not compatible
query I rowsort label-5573
SELECT - ( + - ( 16 ) ) / + + 68 + - 27
----
-27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT DISTINCT 56 - - SUM( 16 )
----
72

skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT 56 - - SUM ( 16 )
----
72

query I rowsort
SELECT 25 * 32 AS col0
----
800

onlyif mysql # aggregate syntax: 
query II rowsort label-5577
SELECT 23, + COUNT( * ) - + + 28 AS col0
----
23
-27

skipif mysql # not compatible
query II rowsort label-5577
SELECT 23, + COUNT ( * ) - + + 28 AS col0
----
23
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5578
SELECT + 17 col0, + CAST( NULL AS SIGNED ) col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-5578
SELECT + 17 col0, + CAST ( NULL AS INTEGER ) col1
----
17
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT DISTINCT + 2 DIV ( - - 71 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT + 2 / ( - - 71 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5580
SELECT ALL 79 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL 79 / - 93
----
0

query I rowsort
SELECT 50 * + 35 AS col2
----
1750

query I rowsort
SELECT ALL 72 * 14 col2
----
1008

query II rowsort
SELECT DISTINCT - 1 AS col1, - 45
----
-1
-45

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

query I rowsort
SELECT ALL - 30 * - - 66 AS col0
----
-1980

query I rowsort
SELECT DISTINCT CASE 86 WHEN 18 THEN NULL ELSE + + 14 END
----
14

query II rowsort
SELECT - 93 AS col0, 83
----
-93
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5588
SELECT - 26 AS col0, COUNT( * ) * - 94 * + - 21
----
-26
1974

skipif mysql # not compatible
query II rowsort label-5588
SELECT - 26 AS col0, COUNT ( * ) * - 94 * + - 21
----
-26
1974

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT + 67 * COALESCE ( + 1, - 40 * - NULLIF ( 70, ( + - 96 ) ) - + 29 + + ( 5 ) * + COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-5590
SELECT + 67 * COALESCE ( + 1, - 40 * - NULLIF ( 70, ( + - 96 ) ) - + 29 + + ( 5 ) * + COUNT ( * ) )
----
67

query I rowsort
SELECT + + 4 + + - 65
----
-61

query I rowsort
SELECT + COALESCE ( 27, - - NULLIF ( - ( + 32 ), 77 ) + 37 - + 36 - - + 52 )
----
27

query I rowsort
SELECT + - 30 + + - 52 AS col2
----
-82

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5595
SELECT ALL + 77 AS col2, - 6 DIV - COUNT( * ) col0
----
77
6

skipif mysql # not compatible
query II rowsort label-5595
SELECT ALL + 77 AS col2, - 6 / - COUNT ( * ) col0
----
77
6

query I rowsort
SELECT ALL + 74 + + 92 * + 94
----
8722

query I rowsort
SELECT DISTINCT 95 + 40 AS col1
----
135

query I rowsort
SELECT DISTINCT + 72 * + 21 AS col0
----
1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5599
SELECT + CASE COUNT( * ) WHEN 13 + - - COUNT( * ) THEN NULLIF ( - - 60, + 55 ) WHEN CAST( 99 AS SIGNED ) * - 13 THEN 3 * - + COUNT( 79 ) + - 38 + 34 DIV - - 33 ELSE 27 END - + 59 + - 19 * - COUNT( * ) + 53 + + COALESCE ( + 73, + + 92 * + 58 * 3 * 66 - 61 DIV + 54, + COUNT( * ) ) * 13 * - - 73
----
69317

skipif mysql # not compatible
query I rowsort label-5599
SELECT + CASE COUNT ( * ) WHEN 13 + - - COUNT ( * ) THEN NULLIF ( - - 60, + 55 ) WHEN CAST ( 99 AS INTEGER ) * - 13 THEN 3 * - + COUNT ( 79 ) + - 38 + 34 / - - 33 ELSE 27 END - + 59 + - 19 * - COUNT ( * ) + 53 + + COALESCE ( + 73, + + 92 * + 58 * 3 * 66 - 61 / + 54, + COUNT ( * ) ) * 13 * - - 73
----
69317

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5601
SELECT - + NULLIF ( + 34, - + CAST( NULL AS DECIMAL ) )
----
-34

skipif mysql # not compatible
query I rowsort label-5601
SELECT - + NULLIF ( + 34, - + CAST ( NULL AS REAL ) )
----
-34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT ALL - + 29 * + 2 - + + 66 + - 62 + + 50 DIV - 44
----
-187

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL - + 29 * + 2 - + + 66 + - 62 + + 50 / - 44
----
-187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5604
SELECT ALL - + NULLIF ( COUNT( * ), + 77 + + - COUNT( * ) ) * + 98 * + CAST( NULL AS SIGNED ) + - 75 - - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL - + NULLIF ( COUNT ( * ), + 77 + + - COUNT ( * ) ) * + 98 * + CAST ( NULL AS INTEGER ) + - 75 - - 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT ALL + MIN( + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL + MIN ( + 1 ) AS col1
----
1

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

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

query I rowsort
SELECT - 3 - - 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT CASE - - 61 WHEN - 47 * - 7 THEN + 46 - + MAX( - 0 ) ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5608
SELECT CASE - - 61 WHEN - 47 * - 7 THEN + 46 - + MAX ( - 0 ) ELSE + COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5609
SELECT NULLIF ( + + 84, + 67 ) AS col0, - 0 + MAX( - + 59 ) AS col2
----
84
-59

skipif mysql # not compatible
query II rowsort label-5609
SELECT NULLIF ( + + 84, + 67 ) AS col0, - 0 + MAX ( - + 59 ) AS col2
----
84
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT + 91 * - + MIN( - ( + + 62 ) ) AS col1
----
5642

skipif mysql # not compatible
query I rowsort label-5610
SELECT + 91 * - + MIN ( - ( + + 62 ) ) AS col1
----
5642

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT - SUM( - 88 ) * 98 AS col0
----
8624

skipif mysql # not compatible
query I rowsort label-5611
SELECT - SUM ( - 88 ) * 98 AS col0
----
8624

query I rowsort
SELECT + ( + - 83 ) col1
----
-83

query I rowsort
SELECT DISTINCT 97 * + 59 - + 3 AS col0
----
5720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5614
SELECT DISTINCT + 7 * ( - NULLIF ( + - 92, COALESCE ( + CAST( NULL AS SIGNED ), + CAST( 28 AS DECIMAL ) * - - CAST( NULL AS SIGNED ) ) ) ) * + + COUNT( * ) AS col1, - 43 AS col2
----
644
-43

skipif mysql # not compatible
query II rowsort label-5614
SELECT DISTINCT + 7 * ( - NULLIF ( + - 92, COALESCE ( + CAST ( NULL AS INTEGER ), + CAST ( 28 AS REAL ) * - - CAST ( NULL AS INTEGER ) ) ) ) * + + COUNT ( * ) AS col1, - 43 AS col2
----
644
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL + 89 * CASE 15 WHEN 34 + COUNT( * ) THEN NULL WHEN 52 * + MAX( ALL + ( - + 14 ) ) * + 4 THEN + - 12 END * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL + 89 * CASE 15 WHEN 34 + COUNT ( * ) THEN NULL WHEN 52 * + MAX ( ALL + ( - + 14 ) ) * + 4 THEN + - 12 END * 42
----
NULL

query I rowsort
SELECT NULLIF ( + 90, 38 )
----
90

query I rowsort
SELECT ALL + 99 * - 11 AS col1
----
-1089

query I rowsort
SELECT - 1 * - 89
----
89

query I rowsort
SELECT ALL 52 * + 23 + + - 61
----
1135

query I rowsort
SELECT - 19 + - 14 * + 46 * 96 AS col1
----
-61843

query I rowsort
SELECT 54 * + ( ( + 73 ) ) - 45 AS col2
----
3897

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5623
SELECT - - CASE - + 52 WHEN + COUNT( * ) * 69 THEN NULL ELSE - + COUNT( * ) END + - CAST( NULL AS SIGNED ) - + 69 * + + 90 * + CAST( 4 AS SIGNED ) + + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT - - CASE - + 52 WHEN + COUNT ( * ) * 69 THEN NULL ELSE - + COUNT ( * ) END + - CAST ( NULL AS INTEGER ) - + 69 * + + 90 * + CAST ( 4 AS INTEGER ) + + 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5624
SELECT ALL COUNT( * ) + - 74 DIV + COUNT( * ) - 9 - + MIN( ALL - 8 ) + - + 94 * + + COUNT( * )
----
-168

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL COUNT ( * ) + - 74 / + COUNT ( * ) - 9 - + MIN ( ALL - 8 ) + - + 94 * + + COUNT ( * )
----
-168

query I rowsort
SELECT - 87 - - COALESCE ( 73, + 72 ) + - + 22 * - 7
----
140

query I rowsort
SELECT + 1 + + 82
----
83

query I rowsort
SELECT ALL - 87 * + + 52 AS col2
----
-4524

query I rowsort
SELECT DISTINCT + - ( 88 ) + + - 73
----
-161

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5629
SELECT ALL - - 4 + + NULLIF ( - ( - - 68 ), 90 * + 71 + + 48 + - 65 * - + COALESCE ( - MIN( DISTINCT 86 ), - - 27 ) * + ( + 63 ) + 71 ) - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - - 4 + + NULLIF ( - ( - - 68 ), 90 * + 71 + + 48 + - 65 * - + COALESCE ( - MIN ( DISTINCT 86 ), - - 27 ) * + ( + 63 ) + 71 ) - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5630
SELECT + 28 + + COUNT( * ) AS col2, NULLIF ( + CAST( 47 AS SIGNED ), + 49 ) col1
----
29
47

skipif mysql # not compatible
query II rowsort label-5630
SELECT + 28 + + COUNT ( * ) AS col2, NULLIF ( + CAST ( 47 AS INTEGER ), + 49 ) col1
----
29
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT ALL + 26 * - CAST( + + 52 AS SIGNED ) + - 7
----
-1359

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL + 26 * - CAST ( + + 52 AS INTEGER ) + - 7
----
-1359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5632
SELECT + - 57 - - - CASE - - SUM( - 49 ) WHEN + COALESCE ( + 33, + 26 ) / - 12 + COALESCE ( 7, + 84 ) + - ( + 96 ) * + 98 - - ( - - MIN( ALL + 30 ) ) THEN 36 END - 87 * CASE 82 WHEN + + 54 THEN - 44 * CAST( NULL AS SIGNED ) * - 47 * - MIN( - 9 ) * + COUNT( * ) END * ( MAX( ALL - + 63 ) ) * - COUNT( * ) - + MIN( ALL + - 25 ) + + + 86 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT + - 57 - - - CASE - - SUM ( - 49 ) WHEN + COALESCE ( + 33, + 26 ) / - 12 + COALESCE ( 7, + 84 ) + - ( + 96 ) * + 98 - - ( - - MIN ( ALL + 30 ) ) THEN 36 END - 87 * CASE 82 WHEN + + 54 THEN - 44 * CAST ( NULL AS INTEGER ) * - 47 * - MIN ( - 9 ) * + COUNT ( * ) END * ( MAX ( ALL - + 63 ) ) * - COUNT ( * ) - + MIN ( ALL + - 25 ) + + + 86 + + - COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT ALL 47 - - 36 + + - 57
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5635
SELECT DISTINCT - COUNT( * ) DIV + 40 - - COUNT( * ) DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT - COUNT ( * ) / + 40 - - COUNT ( * ) / 64
----
0

query I rowsort
SELECT ALL 39 * + 4 AS col1
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5637
SELECT + COALESCE ( + 31, + 70 DIV - 40 + - 4 ) * ( - COUNT( * ) )
----
-31

skipif mysql # not compatible
query I rowsort label-5637
SELECT + COALESCE ( + 31, + 70 / - 40 + - 4 ) * ( - COUNT ( * ) )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5638
SELECT DISTINCT CAST( 6 AS SIGNED ) DIV 25 + + 88 * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT CAST ( 6 AS INTEGER ) / 25 + + 88 * - COUNT ( * )
----
-88

query I rowsort
SELECT - NULLIF ( - - 92, - 43 + 3 )
----
-92

query I rowsort
SELECT ALL 86 * - 44
----
-3784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5641
SELECT + 97 / - CASE - + 39 WHEN - COUNT( * ) * - 4 THEN - 59 * COUNT( * ) * - 88 * - + 79 + - 92 + COUNT( * ) + + + 71 + 99 * - AVG ( CAST( NULL AS SIGNED ) ) / 81 END * + 12 * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT + 97 / - CASE - + 39 WHEN - COUNT ( * ) * - 4 THEN - 59 * COUNT ( * ) * - 88 * - + 79 + - 92 + COUNT ( * ) + + + 71 + 99 * - AVG ( CAST ( NULL AS INTEGER ) ) / 81 END * + 12 * 84
----
NULL

query I rowsort
SELECT + 9 + 31 AS col0
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5643
SELECT + CAST( NULL AS DECIMAL ) * 22 + - AVG ( ( + 66 ) ) + - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT + CAST ( NULL AS REAL ) * 22 + - AVG ( ( + 66 ) ) + - 40 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5644
SELECT CAST( NULL AS DECIMAL ) AS col2, 61 + - 17
----
NULL
44

skipif mysql # not compatible
query II rowsort label-5644
SELECT CAST ( NULL AS REAL ) AS col2, 61 + - 17
----
NULL
44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5646
SELECT DISTINCT + COUNT( * ) AS col1, 36 DIV + 2
----
1
18

skipif mysql # not compatible
query II rowsort label-5646
SELECT DISTINCT + COUNT ( * ) AS col1, 36 / + 2
----
1
18

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

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

query I rowsort
SELECT ( 26 ) * - 80 AS col0
----
-2080

query II rowsort
SELECT 86, + COALESCE ( ( - 99 ), + - 56 ) AS col1
----
86
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5650
SELECT ALL - COUNT( * ) + + - 49 DIV + 75
----
-1

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL - COUNT ( * ) + + - 49 / + 75
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5651
SELECT 58 * 41 + + COUNT( * ) AS col2, COUNT( * ) AS col1
----
2379
1

skipif mysql # not compatible
query II rowsort label-5651
SELECT 58 * 41 + + COUNT ( * ) AS col2, COUNT ( * ) AS col1
----
2379
1

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5654
SELECT DISTINCT + 71 DIV + 23 - 78 + + 51 - - - COUNT( * ) DIV + 74 col1
----
-24

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT + 71 / + 23 - 78 + + 51 - - - COUNT ( * ) / + 74 col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5655
SELECT ALL - 7 + 74 + + - COUNT( * ) * + 63 + - - 24 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL - 7 + 74 + + - COUNT ( * ) * + 63 + - - 24 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 16, 62 * 73 AS col0
----
16
4526

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL - - 77 * - COUNT( * ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - - 77 * - COUNT ( * ) col0
----
-77

query I rowsort
SELECT DISTINCT - ( - - 93 ) * + ( + - 93 ) + + 59 * 80 * + 48 AS col2
----
235209

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT - + NULLIF ( + ( + 19 ), - 14 * + - NULLIF ( + 20, - 63 * + 91 ) / - COALESCE ( + 84, - + COUNT( * ) + + ( + - AVG ( DISTINCT - 22 ) ) * 1 ) * 9 * + 49 )
----
-19

skipif mysql # not compatible
query I rowsort label-5660
SELECT - + NULLIF ( + ( + 19 ), - 14 * + - NULLIF ( + 20, - 63 * + 91 ) / - COALESCE ( + 84, - + COUNT ( * ) + + ( + - AVG ( DISTINCT - 22 ) ) * 1 ) * 9 * + 49 )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5661
SELECT ALL 18 col1, 6 + - + MIN( DISTINCT 40 ) AS col2
----
18
-34

skipif mysql # not compatible
query II rowsort label-5661
SELECT ALL 18 col1, 6 + - + MIN ( DISTINCT 40 ) AS col2
----
18
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL + COUNT( DISTINCT + - 92 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL + COUNT ( DISTINCT + - 92 ) col0
----
1

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

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

query I rowsort
SELECT - 88 * 46
----
-4048

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL - SUM( + - 94 ) / + CASE + 32 WHEN COUNT( * ) THEN + MAX( + 48 ) END + + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL - SUM ( + - 94 ) / + CASE + 32 WHEN COUNT ( * ) THEN + MAX ( + 48 ) END + + 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT - NULLIF ( + 88, - 58 + - COUNT( - + 81 ) ) * 56
----
-4928

skipif mysql # not compatible
query I rowsort label-5666
SELECT - NULLIF ( + 88, - 58 + - COUNT ( - + 81 ) ) * 56
----
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL + COALESCE ( - COUNT( * ), - 18 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL + COALESCE ( - COUNT ( * ), - 18 ) AS col2
----
-1

query II rowsort
SELECT ALL 8, 77 AS col0
----
8
77

query I rowsort
SELECT 34 - + - 35 - - - 45
----
24

query I rowsort
SELECT ALL 62 * 46
----
2852

query I rowsort
SELECT 44 + 15 * - 89 - + 0 AS col2
----
-1291

query I rowsort
SELECT 50 * + + 96
----
4800

onlyif mysql # DIV for integer division: 
query II rowsort label-5673
SELECT 53 + 67 + - 57 * 42 + 7 + + NULLIF ( + COALESCE ( - 85, 14 ), 83 ) DIV COALESCE ( 92, 20 + - 61 ) col0, + 93 - + 53 AS col1
----
-2267
40

skipif mysql # not compatible
query II rowsort label-5673
SELECT 53 + 67 + - 57 * 42 + 7 + + NULLIF ( + COALESCE ( - 85, 14 ), 83 ) / COALESCE ( 92, 20 + - 61 ) col0, + 93 - + 53 AS col1
----
-2267
40

query I rowsort
SELECT DISTINCT - 16 * + - 66 * 9 AS col1
----
9504

query I rowsort
SELECT 76 * - + 23 * + 52
----
-90896

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT DISTINCT 61 + + 85 DIV + 71 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT 61 + + 85 / + 71 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL 37 + CASE - 9 WHEN - COUNT( * ) THEN + 52 + + - COUNT( * ) WHEN + AVG ( DISTINCT 97 ) + 86 THEN 16 WHEN - + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL 37 + CASE - 9 WHEN - COUNT ( * ) THEN + 52 + + - COUNT ( * ) WHEN + AVG ( DISTINCT 97 ) + 86 THEN 16 WHEN - + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 96 + + 32 * + 1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT 66 * + 98 * MIN( - 35 ) * + 31 AS col1
----
-7017780

skipif mysql # not compatible
query I rowsort label-5679
SELECT 66 * + 98 * MIN ( - 35 ) * + 31 AS col1
----
-7017780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5680
SELECT DISTINCT COALESCE ( + - 74, + 18 + + - 53 + ( - - MIN( 14 ) ) * - 32 DIV + 3 DIV 9 * 25, - 1 ) + 94
----
20

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT COALESCE ( + - 74, + 18 + + - 53 + ( - - MIN ( 14 ) ) * - 32 / + 3 / 9 * 25, - 1 ) + 94
----
20

query I rowsort
SELECT ALL 83 + - 98 + - 16
----
-31

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

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

query I rowsort
SELECT ( + 7 ) * 34 AS col0
----
238

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

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

query I rowsort
SELECT + COALESCE ( - + 92, - - 41 - + - 12 )
----
-92

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5687
SELECT MAX( DISTINCT - 19 ), COALESCE ( 46, 83 + - 17 ) * + 86 - + 42 AS col1
----
-19
3914

skipif mysql # not compatible
query II rowsort label-5687
SELECT MAX ( DISTINCT - 19 ), COALESCE ( 46, 83 + - 17 ) * + 86 - + 42 AS col1
----
-19
3914

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5689
SELECT DISTINCT - - COUNT( + CAST( NULL AS DECIMAL ) ), - 65 DIV + 84 + 17 * - + 99 AS col2
----
0
-1683

skipif mysql # not compatible
query II rowsort label-5689
SELECT DISTINCT - - COUNT ( + CAST ( NULL AS REAL ) ), - 65 / + 84 + 17 * - + 99 AS col2
----
0
-1683

query II rowsort
SELECT 57 + - - 53 AS col2, ( - 8 ) col1
----
110
-8

query I rowsort
SELECT ALL + - 37 - + 2
----
-39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT - 77 + + 73 * - + MIN( ( - 62 ) )
----
4449

skipif mysql # not compatible
query I rowsort label-5693
SELECT - 77 + + 73 * - + MIN ( ( - 62 ) )
----
4449

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5694
SELECT ALL 46 DIV + 20 + - - SUM( + ( + COALESCE ( + 15, + 47 ) ) ) AS col2, COUNT( * ) AS col1
----
17
1

skipif mysql # not compatible
query II rowsort label-5694
SELECT ALL 46 / + 20 + - - SUM ( + ( + COALESCE ( + 15, + 47 ) ) ) AS col2, COUNT ( * ) AS col1
----
17
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT + 86 + COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5695
SELECT + 86 + COUNT ( * ) AS col2
----
87

query I rowsort
SELECT DISTINCT - - 24 * - 60
----
-1440

query I rowsort
SELECT DISTINCT 64 * 62
----
3968

onlyif mysql # DIV for integer division: 
query I rowsort label-5698
SELECT + 43 * ( + - 46 ) + 58 DIV + 96 + - 22 * 33
----
-2704

skipif mysql # not compatible
query I rowsort label-5698
SELECT + 43 * ( + - 46 ) + 58 / + 96 + - 22 * 33
----
-2704

query I rowsort
SELECT ALL - ( 80 ) * + - 92 + + 46 + 5
----
7411

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT 59 + - 63 + + 21 + + - COUNT( * ) * + - ( + + 68 )
----
85

skipif mysql # not compatible
query I rowsort label-5700
SELECT 59 + - 63 + + 21 + + - COUNT ( * ) * + - ( + + 68 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5701
SELECT 50 DIV - 26 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5701
SELECT 50 / - 26 AS col1
----
-1

query I rowsort
SELECT DISTINCT + 57 + 20 AS col2
----
77

query I rowsort
SELECT 69 + + 67
----
136

query I rowsort
SELECT ALL 50 + 27
----
77

query I rowsort
SELECT ALL 9 + - 26 + + 8 * - - 35 * + ( - 19 ) AS col0
----
-5337

query I rowsort
SELECT 79 + - 53 AS col0
----
26

query I rowsort
SELECT 85 * COALESCE ( - - 54, - - 54 )
----
4590

query I rowsort
SELECT ALL + 40 + - + 90
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT ALL + 31 + - + SUM( ALL + - 66 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL + 31 + - + SUM ( ALL + - 66 ) AS col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5710
SELECT + 47 DIV - - COUNT( DISTINCT + 25 ) + + 61 + + + 85 * - MAX( + + 8 ) col1
----
-572

skipif mysql # not compatible
query I rowsort label-5710
SELECT + 47 / - - COUNT ( DISTINCT + 25 ) + + 61 + + + 85 * - MAX ( + + 8 ) col1
----
-572

query I rowsort
SELECT NULLIF ( + ( - 39 ), + - 37 + - 70 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL - MIN( ALL - 54 ) * + + ( + 70 ) + - 72 + + + 82 * - 85
----
-3262

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL - MIN ( ALL - 54 ) * + + ( + 70 ) + - 72 + + + 82 * - 85
----
-3262

query I rowsort
SELECT - 96 + 73 AS col2
----
-23

query I rowsort
SELECT + 2 * + - ( + 93 )
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5715
SELECT ALL + CAST( + + AVG ( DISTINCT - 42 ) AS SIGNED ) * + + 30 + + 24 + + 19
----
-1217

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL + CAST ( + + AVG ( DISTINCT - 42 ) AS INTEGER ) * + + 30 + + 24 + + 19
----
-1217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5716
SELECT ALL - 68 * - ( - 85 ) * - COALESCE ( 66, 12 + 87 + + - 60 DIV 21, + ( - ( 88 ) ) - + - MIN( ALL + 1 ) - + 27 DIV + + CASE 40 WHEN + - 18 THEN + 34 END DIV 21, 82 DIV + AVG ( - - 27 ) ) + - 75
----
381405

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL - 68 * - ( - 85 ) * - COALESCE ( 66, 12 + 87 + + - 60 / 21, + ( - ( 88 ) ) - + - MIN ( ALL + 1 ) - + 27 / + + CASE 40 WHEN + - 18 THEN + 34 END / 21, 82 / + AVG ( - - 27 ) ) + - 75
----
381405

query I rowsort
SELECT DISTINCT 46 * - 41 + - 99 + 64
----
-1921

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT ALL + 75, + COUNT( * ) * - 89 - + + 32 AS col0
----
75
-121

skipif mysql # not compatible
query II rowsort label-5718
SELECT ALL + 75, + COUNT ( * ) * - 89 - + + 32 AS col0
----
75
-121

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5719
SELECT + 42 + + 0 + - 1 DIV CAST( - + 95 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-5719
SELECT + 42 + + 0 + - 1 / CAST ( - + 95 AS INTEGER )
----
42

query I rowsort
SELECT ALL - ( - - 96 ) * 8 - - 16 * + ( + + 11 )
----
-592

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT + 67 + SUM( ALL + - 90 )
----
-23

skipif mysql # not compatible
query I rowsort label-5721
SELECT + 67 + SUM ( ALL + - 90 )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5722
SELECT DISTINCT + SUM( ALL - 54 ) DIV + - 27 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT + SUM ( ALL - 54 ) / + - 27 AS col1
----
2

query I rowsort
SELECT ( + 31 ) * - 1 + + 29
----
-2

query I rowsort
SELECT ALL 64 * - 45 AS col0
----
-2880

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

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

query I rowsort
SELECT ALL - 64 * + - 29 * + - 30 AS col1
----
-55680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5727
SELECT + + NULLIF ( + 61, - 17 * 39 ) * + CAST( - 28 AS SIGNED )
----
-1708

skipif mysql # not compatible
query I rowsort label-5727
SELECT + + NULLIF ( + 61, - 17 * 39 ) * + CAST ( - 28 AS INTEGER )
----
-1708

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

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

query I rowsort
SELECT + - 26 * - 31 AS col2
----
806

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT - NULLIF ( COUNT( * ), - 26 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5731
SELECT - NULLIF ( COUNT ( * ), - 26 ) AS col0
----
-1

query I rowsort
SELECT + 10 * - - 79 col2
----
790

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

skipif mysql # not compatible
query II rowsort label-5733
SELECT ALL - 84 AS col0, - CAST ( NULL AS INTEGER ) AS col0
----
-84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL 94 + + - COUNT( DISTINCT ( - 67 ) ) * 23 + - COUNT( + 9 ) col2
----
70

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL 94 + + - COUNT ( DISTINCT ( - 67 ) ) * 23 + - COUNT ( + 9 ) col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5735
SELECT DISTINCT 98 + - + COUNT( * ) + 59 AS col1, COUNT( * ) - - COUNT( * ) + - 61 + - 38 + - - 64 + + ( - + MAX( ALL + 49 ) ) * + COUNT( * ) + - 64 DIV - 69 - - 40 DIV + 86 + - 27 + + 22 * + - SUM( ALL - 39 ) * + 33
----
156
28205

skipif mysql # not compatible
query II rowsort label-5735
SELECT DISTINCT 98 + - + COUNT ( * ) + 59 AS col1, COUNT ( * ) - - COUNT ( * ) + - 61 + - 38 + - - 64 + + ( - + MAX ( ALL + 49 ) ) * + COUNT ( * ) + - 64 / - 69 - - 40 / + 86 + - 27 + + 22 * + - SUM ( ALL - 39 ) * + 33
----
156
28205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT DISTINCT CAST( - 23 AS SIGNED ) + - 24 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT CAST ( - 23 AS INTEGER ) + - 24 AS col1
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-5737
SELECT DISTINCT 86 + + 1 + 24 * + 26 AS col1, - 24 + - 34 - + 9 DIV - 43
----
711
-58

skipif mysql # not compatible
query II rowsort label-5737
SELECT DISTINCT 86 + + 1 + 24 * + 26 AS col1, - 24 + - 34 - + 9 / - 43
----
711
-58

query I rowsort
SELECT ALL NULLIF ( 55, - 9 )
----
55

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5740
SELECT - CAST( NULL AS DECIMAL ) * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT - CAST ( NULL AS REAL ) * - 92
----
NULL

query I rowsort
SELECT ALL - 36 * 55 AS col1
----
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5742
SELECT DISTINCT + CAST( + + 20 AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + CAST ( + + 20 AS INTEGER ) AS col0
----
20

query I rowsort
SELECT - 1 + - 97 AS col2
----
-98

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

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

query I rowsort
SELECT ALL - + 57 * + ( - 69 )
----
3933

query I rowsort
SELECT DISTINCT + - NULLIF ( 71, - 90 )
----
-71

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

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

query I rowsort
SELECT + - 15 * - + 53
----
795

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL + - 65 * - - SUM( DISTINCT - 6 ) * + 50
----
19500

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL + - 65 * - - SUM ( DISTINCT - 6 ) * + 50
----
19500

query II rowsort
SELECT ALL + - 24, 56 AS col2
----
-24
56

query II rowsort
SELECT + 98, - 37 * + 50 col0
----
98
-1850

query I rowsort
SELECT ALL - 27 * - + 13
----
351

query I rowsort
SELECT - + 52 + 96
----
44

query I rowsort
SELECT + 95 * + + 18 * - 95 AS col2
----
-162450

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT - - COUNT( 97 ) + 93 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5756
SELECT - - COUNT ( 97 ) + 93 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT + - 72 - + MAX( + 45 ) AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-5757
SELECT + - 72 - + MAX ( + 45 ) AS col2
----
-117

query I rowsort
SELECT - 94 * - + 38 + + + 40 AS col0
----
3612

query II rowsort
SELECT ALL + 30 col2, 64
----
30
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL - COUNT( * ) * - 60 col1
----
60

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL - COUNT ( * ) * - 60 col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT + - NULLIF ( - 49, 49 + - ( - COUNT( * ) ) ) + - - ( + - 54 )
----
-5

skipif mysql # not compatible
query I rowsort label-5761
SELECT + - NULLIF ( - 49, 49 + - ( - COUNT ( * ) ) ) + - - ( + - 54 )
----
-5

query I rowsort
SELECT ALL + 28 * - - 10 + - 38 AS col0
----
242

query II rowsort
SELECT - - 19 AS col0, - 90 AS col1
----
19
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT CASE + - COUNT( * ) WHEN - + 96 THEN NULL ELSE - - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-5764
SELECT CASE + - COUNT ( * ) WHEN - + 96 THEN NULL ELSE - - COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT + COUNT( * ) + 26 + + + 32
----
59

skipif mysql # not compatible
query I rowsort label-5765
SELECT + COUNT ( * ) + 26 + + + 32
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT ALL 21 * + 82 + + CAST( - 6 AS SIGNED ) + 91 * + 89
----
9815

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL 21 * + 82 + + CAST ( - 6 AS INTEGER ) + 91 * + 89
----
9815

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT - COALESCE ( + 70, ( + SUM( + 86 ) ) ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-5768
SELECT - COALESCE ( + 70, ( + SUM ( + 86 ) ) ) col1
----
-70

query I rowsort
SELECT 98 + + 49 * - 77 * + 25 + + 29
----
-94198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5770
SELECT ALL 73 + - - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) - - + CAST( 0 AS DECIMAL )
----
74
NULL

skipif mysql # not compatible
query II rowsort label-5770
SELECT ALL 73 + - - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) - - + CAST ( 0 AS REAL )
----
74
NULL

query I rowsort
SELECT DISTINCT 32 + + 52 + 54 AS col1
----
138

query I rowsort
SELECT 14 + - + 74 * + 27
----
-1984

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL 37 - - COUNT( + - 26 )
----
38

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL 37 - - COUNT ( + - 26 )
----
38

query I rowsort
SELECT ALL + 13 - 47
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ( 54 ) * + SUM( ( + - 27 ) )
----
-1458

skipif mysql # not compatible
query I rowsort label-5776
SELECT ( 54 ) * + SUM ( ( + - 27 ) )
----
-1458

query I rowsort
SELECT 29 * - + 55 * 98
----
-156310

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5778
SELECT CAST( NULL AS SIGNED ) + + 31 AS col2, + 34 col2
----
NULL
34

skipif mysql # not compatible
query II rowsort label-5778
SELECT CAST ( NULL AS INTEGER ) + + 31 AS col2, + 34 col2
----
NULL
34

query I rowsort
SELECT DISTINCT - - 28 col1
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-5780
SELECT + 13 DIV + 60 - + + 99 AS col0, - COALESCE ( + 29, + 67 DIV - - 41, + 34 )
----
-99
-29

skipif mysql # not compatible
query II rowsort label-5780
SELECT + 13 / + 60 - + + 99 AS col0, - COALESCE ( + 29, + 67 / - - 41, + 34 )
----
-99
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT - + 75 * - + COUNT( * ) + 87 + + 45 AS col1
----
207

skipif mysql # not compatible
query I rowsort label-5781
SELECT - + 75 * - + COUNT ( * ) + 87 + + 45 AS col1
----
207

query I rowsort
SELECT 62 * + 52 * + 16 AS col1
----
51584

query I rowsort
SELECT - 29 * - + 62 + - 22
----
1776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5784
SELECT - 21 DIV - SUM( 75 ) + - - 6 + + - ( - + 33 ) + - + 66 + + + 53 + 73 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5784
SELECT - 21 / - SUM ( 75 ) + - - 6 + + - ( - + 33 ) + - + 66 + + + 53 + 73 AS col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5785
SELECT ALL - 78 DIV + - COUNT( * ), + 77 + + + 17 * + 17 + - 38 AS col1
----
78
328

skipif mysql # not compatible
query II rowsort label-5785
SELECT ALL - 78 / + - COUNT ( * ), + 77 + + + 17 * + 17 + - 38 AS col1
----
78
328

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT MIN( ALL 87 ) + + - COUNT( * ) + + - 53
----
33

skipif mysql # not compatible
query I rowsort label-5786
SELECT MIN ( ALL 87 ) + + - COUNT ( * ) + + - 53
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5787
SELECT + CAST( + COUNT( * ) AS SIGNED ) * - ( - COALESCE ( + 33, - MIN( + COALESCE ( - 61, - 29 ) ) * ( + 51 ) ) ) + + - ( + COUNT( * ) ) + 14 * 54 * + - 31 * + 97
----
-2273260

skipif mysql # not compatible
query I rowsort label-5787
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * - ( - COALESCE ( + 33, - MIN ( + COALESCE ( - 61, - 29 ) ) * ( + 51 ) ) ) + + - ( + COUNT ( * ) ) + 14 * 54 * + - 31 * + 97
----
-2273260

query II rowsort
SELECT ALL + 87 + - 3 col0, - 69
----
84
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5789
SELECT + + SUM( + - 21 ) AS col2, COUNT( * ) * - NULLIF ( + 80, + + 82 + - 53 )
----
-21
-80

skipif mysql # not compatible
query II rowsort label-5789
SELECT + + SUM ( + - 21 ) AS col2, COUNT ( * ) * - NULLIF ( + 80, + + 82 + - 53 )
----
-21
-80

query I rowsort
SELECT ALL - - 50 + 61 + + 59 AS col2
----
170

query I rowsort
SELECT 11 * 57
----
627

query I rowsort
SELECT + - 81 * - 30 + - 90
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ALL + ( + NULLIF ( - ( + - COUNT( * ) ), - + 27 - + - CASE - 88 WHEN - NULLIF ( + + 37, 51 * 16 ) + 94 / 1 THEN - 31 WHEN + + ( 88 ) THEN NULL WHEN - + 7 THEN NULL END ) ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL + ( + NULLIF ( - ( + - COUNT ( * ) ), - + 27 - + - CASE - 88 WHEN - NULLIF ( + + 37, 51 * 16 ) + 94 / 1 THEN - 31 WHEN + + ( 88 ) THEN NULL WHEN - + 7 THEN NULL END ) ) + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT ALL - ( + NULLIF ( ( - 13 ), - 66 + + MAX( + + 71 ) - - 64 ) )
----
13

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL - ( + NULLIF ( ( - 13 ), - 66 + + MAX ( + + 71 ) - - 64 ) )
----
13

query I rowsort
SELECT DISTINCT 3 + - - 35 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5796
SELECT ALL - MIN( - 63 ) AS col1, 19 * + 31 / + CAST( NULL AS SIGNED ) * 15 - - COUNT( * ) AS col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-5796
SELECT ALL - MIN ( - 63 ) AS col1, 19 * + 31 / + CAST ( NULL AS INTEGER ) * 15 - - COUNT ( * ) AS col0
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT DISTINCT CASE - 42 WHEN 22 - + 23 THEN + - 74 WHEN + - ( + 46 ) THEN + 46 ELSE NULL END + 43 - - 89 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT CASE - 42 WHEN 22 - + 23 THEN + - 74 WHEN + - ( + 46 ) THEN + 46 ELSE NULL END + 43 - - 89 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5798
SELECT - 95 AS col1, - ( + 87 ) - + ( - - COALESCE ( + 62, + SUM( DISTINCT ( + - 64 ) ) + - 15 + 88 DIV - 99 + - 61 * 45 ) ), 70 AS col1
----
-95
-149
70

skipif mysql # not compatible
query III rowsort label-5798
SELECT - 95 AS col1, - ( + 87 ) - + ( - - COALESCE ( + 62, + SUM ( DISTINCT ( + - 64 ) ) + - 15 + 88 / - 99 + - 61 * 45 ) ), 70 AS col1
----
-95
-149
70

query II rowsort
SELECT 54 col2, 96 * 73
----
54
7008

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT ALL + 44 + + 67 + COUNT( * ) * 46
----
157

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL + 44 + + 67 + COUNT ( * ) * 46
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5801
SELECT 59 - + CASE - 15 WHEN - 33 * + SUM( DISTINCT - - ( + 69 ) ) - CAST( NULL AS SIGNED ) + + 98 * - 82 + 23 * - - 84 * ( + 18 ) - ( - 86 ) THEN NULL ELSE 8 END AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5801
SELECT 59 - + CASE - 15 WHEN - 33 * + SUM ( DISTINCT - - ( + 69 ) ) - CAST ( NULL AS INTEGER ) + + 98 * - 82 + 23 * - - 84 * ( + 18 ) - ( - 86 ) THEN NULL ELSE 8 END AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5802
SELECT ( - COUNT( * ) ) * + 96 + + CAST( 87 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-5802
SELECT ( - COUNT ( * ) ) * + 96 + + CAST ( 87 AS INTEGER )
----
-9

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

query I rowsort
SELECT DISTINCT 32 - 19
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5805
SELECT 40, + 9 * COALESCE ( + + CAST( NULL AS SIGNED ), + 38 * + 22 ) AS col2
----
40
7524

skipif mysql # not compatible
query II rowsort label-5805
SELECT 40, + 9 * COALESCE ( + + CAST ( NULL AS INTEGER ), + 38 * + 22 ) AS col2
----
40
7524

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

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

query I rowsort
SELECT ALL 67 * ( - 28 ) AS col0
----
-1876

query I rowsort
SELECT 85 * + 46 AS col2
----
3910

query I rowsort
SELECT DISTINCT 85 * + 5 AS col0
----
425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5810
SELECT DISTINCT 67 AS col2, + CAST( 75 AS SIGNED )
----
67
75

skipif mysql # not compatible
query II rowsort label-5810
SELECT DISTINCT 67 AS col2, + CAST ( 75 AS INTEGER )
----
67
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5811
SELECT ALL - 9 * - 2 * 22, + 11 - + 79 + - COUNT( * ) col2
----
396
-69

skipif mysql # not compatible
query II rowsort label-5811
SELECT ALL - 9 * - 2 * 22, + 11 - + 79 + - COUNT ( * ) col2
----
396
-69

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5813
SELECT CAST( NULL AS SIGNED ) * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5813
SELECT CAST ( NULL AS INTEGER ) * - 46
----
NULL

query I rowsort
SELECT DISTINCT + 10 * 36 * - 59 AS col1
----
-21240

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

query I rowsort
SELECT 77 * 18
----
1386

onlyif mysql # aggregate syntax: 
query II rowsort label-5817
SELECT ALL - COUNT( DISTINCT + 65 ) + + - 53 AS col0, + CASE + + 78 WHEN - + 48 - - + 76 / + ( + 48 ) THEN NULL ELSE + 19 END - - 12 - + 75 AS col0
----
-54
-44

skipif mysql # not compatible
query II rowsort label-5817
SELECT ALL - COUNT ( DISTINCT + 65 ) + + - 53 AS col0, + CASE + + 78 WHEN - + 48 - - + 76 / + ( + 48 ) THEN NULL ELSE + 19 END - - 12 - + 75 AS col0
----
-54
-44

query I rowsort
SELECT + CASE + - 35 WHEN + 54 THEN - 31 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5819
SELECT DISTINCT + 99 * - 95 + - - 33 AS col1, - 50 col0, + COALESCE ( - 59, + 70 ) + + SUM( - 27 )
----
-9372
-50
-86

skipif mysql # not compatible
query III rowsort label-5819
SELECT DISTINCT + 99 * - 95 + - - 33 AS col1, - 50 col0, + COALESCE ( - 59, + 70 ) + + SUM ( - 27 )
----
-9372
-50
-86

query I rowsort
SELECT 69 + 86 AS col1
----
155

query I rowsort
SELECT ( - ( 23 ) ) * - 98 * - 86
----
-193844

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL - 56 * - - MAX( + 32 ) + + 77
----
-1715

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL - 56 * - - MAX ( + 32 ) + + 77
----
-1715

onlyif mysql # DIV for integer division: 
query I rowsort label-5823
SELECT - 40 DIV + 43 + 96 + - 92 - - - 40 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5823
SELECT - 40 / + 43 + 96 + - 92 - - - 40 AS col0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT 80 DIV 42 * - 70 * 24 AS col2
----
-1680

skipif mysql # not compatible
query I rowsort label-5824
SELECT 80 / 42 * - 70 * 24 AS col2
----
-1680

query I rowsort
SELECT - 86 * - 17 * + - 23 AS col1
----
-33626

query I rowsort
SELECT DISTINCT + 98 * - 92 + 9 + 3 col0
----
-9004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5827
SELECT ALL COALESCE ( + COALESCE ( - + 32, + 89 ), - COUNT( * ) DIV + - 95 ) * - 78 - 85 + 71
----
2482

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL COALESCE ( + COALESCE ( - + 32, + 89 ), - COUNT ( * ) / + - 95 ) * - 78 - 85 + 71
----
2482

query I rowsort
SELECT ALL + 55 * - 34 + - 6 * - + 82
----
-1378

query I rowsort
SELECT + 52 - - + 91 AS col1
----
143

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

query I rowsort
SELECT ALL - 12 - 41 AS col0
----
-53

query I rowsort
SELECT DISTINCT + 58 - + 30 + + - 21 * + 93 * 11 col2
----
-21455

query II rowsort
SELECT - 85 - 75 AS col1, + 12
----
-160
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT + 31 * 73 * - + 85 + + + COUNT( * ) + + 17 col2
----
-192337

skipif mysql # not compatible
query I rowsort label-5835
SELECT + 31 * 73 * - + 85 + + + COUNT ( * ) + + 17 col2
----
-192337

onlyif mysql # aggregate syntax: 
query II rowsort label-5836
SELECT ALL 62 - - - COUNT( * ) AS col1, CASE - - 27 WHEN 55 * 34 + COALESCE ( - ( COUNT( * ) ), + - 3 + + 46 ) THEN NULL WHEN + + 8 THEN - + 43 * - + ( + 83 ) + - 31 + 21 / - 69 ELSE - 63 END
----
61
-63

skipif mysql # not compatible
query II rowsort label-5836
SELECT ALL 62 - - - COUNT ( * ) AS col1, CASE - - 27 WHEN 55 * 34 + COALESCE ( - ( COUNT ( * ) ), + - 3 + + 46 ) THEN NULL WHEN + + 8 THEN - + 43 * - + ( + 83 ) + - 31 + 21 / - 69 ELSE - 63 END
----
61
-63

query I rowsort
SELECT - 32 + - 99
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT - 49 * + + 30 * + COUNT( * ) AS col0
----
-1470

skipif mysql # not compatible
query I rowsort label-5838
SELECT - 49 * + + 30 * + COUNT ( * ) AS col0
----
-1470

query I rowsort
SELECT ALL - 40 * - 36
----
1440

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

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT MIN ( - - 84 )
----
84

query I rowsort
SELECT - 14 * - 95
----
1330

onlyif mysql # aggregate syntax: 
query II rowsort label-5842
SELECT - 19 * COUNT( * ) AS col1, + 59 + + 64
----
-19
123

skipif mysql # not compatible
query II rowsort label-5842
SELECT - 19 * COUNT ( * ) AS col1, + 59 + + 64
----
-19
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5843
SELECT - 78 + + 29 + 73 DIV + + COUNT( ALL - - ( - 61 ) ) + + - ( + + ( ( COUNT( ALL - ( + 12 ) ) ) ) ) DIV 84 + - - 26 * - + 5 + - 14
----
-120

skipif mysql # not compatible
query I rowsort label-5843
SELECT - 78 + + 29 + 73 / + + COUNT ( ALL - - ( - 61 ) ) + + - ( + + ( ( COUNT ( ALL - ( + 12 ) ) ) ) ) / 84 + - - 26 * - + 5 + - 14
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-5844
SELECT ALL CASE + - 58 WHEN + + 51 THEN NULL WHEN 80 * - 33 + - NULLIF ( - ( + ( + ( - 50 ) ) ), 94 * 25 * + COUNT( * ) ) + - - 44 THEN NULL ELSE + 12 END, 8 col1
----
12
8

skipif mysql # not compatible
query II rowsort label-5844
SELECT ALL CASE + - 58 WHEN + + 51 THEN NULL WHEN 80 * - 33 + - NULLIF ( - ( + ( + ( - 50 ) ) ), 94 * 25 * + COUNT ( * ) ) + - - 44 THEN NULL ELSE + 12 END, 8 col1
----
12
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT DISTINCT ( + - CASE 72 WHEN - + CASE + 87 WHEN - 34 THEN NULL WHEN - 9 * + 44 - + + 68 / 57 / + - 6 + - - COUNT( * ) / + - 95 THEN NULL ELSE - + 40 * 45 END + 78 THEN 6 WHEN MIN( + 93 ) THEN - - NULLIF ( + - ( + 81 ), + + 45 ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT ( + - CASE 72 WHEN - + CASE + 87 WHEN - 34 THEN NULL WHEN - 9 * + 44 - + + 68 / 57 / + - 6 + - - COUNT ( * ) / + - 95 THEN NULL ELSE - + 40 * 45 END + 78 THEN 6 WHEN MIN ( + 93 ) THEN - - NULLIF ( + - ( + 81 ), + + 45 ) ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT - 83 * - 14 * 51 AS col0
----
59262

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT DISTINCT COUNT( * ) * - NULLIF ( - COUNT( * ), + ( - - 71 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT COUNT ( * ) * - NULLIF ( - COUNT ( * ), + ( - - 71 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5848
SELECT DISTINCT CAST( - - 93 AS SIGNED ) + + 0 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT CAST ( - - 93 AS INTEGER ) + + 0 AS col0
----
93

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5850
SELECT ALL - + 59 * - CAST( NULL AS DECIMAL ) - 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL - + 59 * - CAST ( NULL AS REAL ) - 22 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + ( 18 ) + 23 AS col2
----
5

query I rowsort
SELECT DISTINCT + + 46 + + 25
----
71

query I rowsort
SELECT - + 65 + + - 96 + + - 11
----
-172

query I rowsort
SELECT - 0 * 96 - - + 95
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT - 75 * - CAST( - 9 AS SIGNED ) * + 49 + + + 16 + + ( + 63 ) * - + 12 * + ( - 50 ) + 0 AS col1
----
4741

skipif mysql # not compatible
query I rowsort label-5855
SELECT - 75 * - CAST ( - 9 AS INTEGER ) * + 49 + + + 16 + + ( + 63 ) * - + 12 * + ( - 50 ) + 0 AS col1
----
4741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5856
SELECT + + ( - + 65 ) + + COUNT( * ) - + - COUNT( * ) * - + 82 DIV COUNT( * ) + 90 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5856
SELECT + + ( - + 65 ) + + COUNT ( * ) - + - COUNT ( * ) * - + 82 / COUNT ( * ) + 90 AS col1
----
-56

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

query I rowsort
SELECT ALL + 73 * - ( 44 ) + 88 + - 72 + ( + 31 ) col0
----
-3165

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL + CASE 8 WHEN + 66 THEN NULL ELSE + NULLIF ( - 57, + MIN( + - 36 ) ) * 4 END
----
-228

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL + CASE 8 WHEN + 66 THEN NULL ELSE + NULLIF ( - 57, + MIN ( + - 36 ) ) * 4 END
----
-228

query I rowsort
SELECT ALL 80 * + + ( + 66 ) + + - 66 + + 74 * + 18
----
6546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5861
SELECT + 50 + - CASE 75 WHEN 63 THEN - 25 ELSE NULL END - + + CASE AVG ( DISTINCT + 23 ) WHEN - NULLIF ( 88, - + NULLIF ( NULLIF ( + + 53, + - 32 ), - 90 + 76 + - 68 * + ( CASE - - 5 WHEN - 2 * + SUM( DISTINCT - 10 ) * + 85 THEN NULL WHEN + CAST( CASE + 83 WHEN - 28 THEN - 93 WHEN - NULLIF ( 39, - + COUNT( - 71 ) ) - - + 48 THEN - + 72 END AS SIGNED ) * + 79 THEN 57 ELSE + 30 END ) + - 5 + + 93 * - 60 ) ) THEN NULL WHEN 99 THEN NULL ELSE + - 42 + - COUNT( * ) + 89 END * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT + 50 + - CASE 75 WHEN 63 THEN - 25 ELSE NULL END - + + CASE AVG ( DISTINCT + 23 ) WHEN - NULLIF ( 88, - + NULLIF ( NULLIF ( + + 53, + - 32 ), - 90 + 76 + - 68 * + ( CASE - - 5 WHEN - 2 * + SUM ( DISTINCT - 10 ) * + 85 THEN NULL WHEN + CAST ( CASE + 83 WHEN - 28 THEN - 93 WHEN - NULLIF ( 39, - + COUNT ( - 71 ) ) - - + 48 THEN - + 72 END AS INTEGER ) * + 79 THEN 57 ELSE + 30 END ) + - 5 + + 93 * - 60 ) ) THEN NULL WHEN 99 THEN NULL ELSE + - 42 + - COUNT ( * ) + 89 END * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 89 * + 12 AS col2, 40
----
1068
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5863
SELECT + + CAST( NULL AS SIGNED ) * - - 47 + AVG ( 94 ) + + NULLIF ( - 85, - + CAST( NULL AS SIGNED ) ) / 56 * COUNT( * ) + + MIN( DISTINCT + 52 ) * - COUNT( * ) * - + 15 + + MIN( DISTINCT 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5863
SELECT + + CAST ( NULL AS INTEGER ) * - - 47 + AVG ( 94 ) + + NULLIF ( - 85, - + CAST ( NULL AS INTEGER ) ) / 56 * COUNT ( * ) + + MIN ( DISTINCT + 52 ) * - COUNT ( * ) * - + 15 + + MIN ( DISTINCT 8 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5864
SELECT + 7 * CAST( + 58 AS SIGNED ) AS col0
----
406

skipif mysql # not compatible
query I rowsort label-5864
SELECT + 7 * CAST ( + 58 AS INTEGER ) AS col0
----
406

query II rowsort
SELECT COALESCE ( + + 74, + 45 ) AS col1, ( - + 52 )
----
74
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT ALL + COUNT( * ) AS col2, - 8 * 44 AS col1
----
1
-352

skipif mysql # not compatible
query II rowsort label-5866
SELECT ALL + COUNT ( * ) AS col2, - 8 * 44 AS col1
----
1
-352

query I rowsort
SELECT DISTINCT 21 * - 93
----
-1953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5868
SELECT + COALESCE ( 42, + + 24 + CAST( NULL AS SIGNED ) + COUNT( * ) + - + 56 + - NULLIF ( - MAX( 55 ), 56 ) ) * - 80 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5868
SELECT + COALESCE ( 42, + + 24 + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - + 56 + - NULLIF ( - MAX ( 55 ), 56 ) ) * - 80 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT - 20 DIV 57 * 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT - 20 / 57 * 72 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5872
SELECT CAST( - ( + 78 ) AS SIGNED ) * - + ( + 42 ) * - + NULLIF ( - 2, - COUNT( ALL CAST( 42 AS SIGNED ) ) * + 5 * - - COUNT( * ) * + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) ) - + 57 + + 78 AS col1
----
6573

skipif mysql # not compatible
query I rowsort label-5872
SELECT CAST ( - ( + 78 ) AS INTEGER ) * - + ( + 42 ) * - + NULLIF ( - 2, - COUNT ( ALL CAST ( 42 AS INTEGER ) ) * + 5 * - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) ) - + 57 + + 78 AS col1
----
6573

query I rowsort
SELECT - 96 * - 44
----
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL - MIN( - 31 ) * 86 + + CASE + 23 WHEN + + 15 - 54 + + 12 / + - ( COUNT( * ) ) THEN + 99 + + SUM( DISTINCT 38 ) ELSE + 62 * COUNT( * ) + + 42 END
----
2770

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL - MIN ( - 31 ) * 86 + + CASE + 23 WHEN + + 15 - 54 + + 12 / + - ( COUNT ( * ) ) THEN + 99 + + SUM ( DISTINCT 38 ) ELSE + 62 * COUNT ( * ) + + 42 END
----
2770

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

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

query I rowsort
SELECT DISTINCT - ( ( - 68 ) ) + - 91 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL + COUNT( * ) + - 85
----
-84

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL + COUNT ( * ) + - 85
----
-84

query I rowsort
SELECT ALL - 92 + + 59 - + 52 * 27
----
-1437

query I rowsort
SELECT - 5 * - - 74 AS col1
----
-370

query I rowsort
SELECT DISTINCT - 49 + ( 54 ) + + 64
----
69

query II rowsort
SELECT - 62 * + ( - - 68 ) AS col0, 42 * 60 AS col0
----
-4216
2520

query I rowsort
SELECT + COALESCE ( - 17, 56, + + 50 * 68 * + 77 * + 55 )
----
-17

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

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL + 0 / - 64
----
0

query I rowsort
SELECT - + ( - 49 ) + 80 - - ( 88 ) AS col0
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT - - NULLIF ( - 41, - - COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-5885
SELECT - - NULLIF ( - 41, - - COUNT ( * ) )
----
-41

query I rowsort
SELECT DISTINCT - 8 + + 90
----
82

query I rowsort
SELECT DISTINCT + ( + COALESCE ( + 70, + 28 ) ) * + 9 * - + 49
----
-30870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5888
SELECT + - ( + - 79 ) DIV - 62 + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT + - ( + - 79 ) / - 62 + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL - - COUNT( ALL + 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - - COUNT ( ALL + 35 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5890
SELECT + 79 AS col1, - COUNT( * ) + + 17 + + 50
----
79
66

skipif mysql # not compatible
query II rowsort label-5890
SELECT + 79 AS col1, - COUNT ( * ) + + 17 + + 50
----
79
66

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

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

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

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

query II rowsort
SELECT ALL - 49 AS col2, - 60 AS col1
----
-49
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5894
SELECT AVG ( DISTINCT 63 ) * - 56 * + CAST( NULL AS SIGNED ) * - 9 + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT AVG ( DISTINCT 63 ) * - 56 * + CAST ( NULL AS INTEGER ) * - 9 + - 14
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5895
SELECT COUNT ( * ) - + 72 AS col0
----
-71

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

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT COUNT ( * ) * + - 54 * + 87 AS col0
----
-4698

query II rowsort
SELECT ALL - 78 AS col0, 74
----
-78
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5898
SELECT ALL - 49, - COUNT( * ) DIV - + 73 AS col0
----
-49
0

skipif mysql # not compatible
query II rowsort label-5898
SELECT ALL - 49, - COUNT ( * ) / - + 73 AS col0
----
-49
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5899
SELECT + 7 AS col1, 89 * - 42 * CASE - 86 WHEN 31 THEN NULL WHEN + + 93 + - 30 + - ( 14 ) * + - 47 THEN + + COALESCE ( + COUNT( * ), 52 * + + 37 + NULLIF ( - + 53, - - 47 * 24 * + 81 ) + NULLIF ( + + 3, + - 95 ) * 11 ) END AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-5899
SELECT + 7 AS col1, 89 * - 42 * CASE - 86 WHEN 31 THEN NULL WHEN + + 93 + - 30 + - ( 14 ) * + - 47 THEN + + COALESCE ( + COUNT ( * ), 52 * + + 37 + NULLIF ( - + 53, - - 47 * 24 * + 81 ) + NULLIF ( + + 3, + - 95 ) * 11 ) END AS col1
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT COUNT( DISTINCT 69 ) + + MAX( DISTINCT 81 )
----
82

skipif mysql # not compatible
query I rowsort label-5900
SELECT COUNT ( DISTINCT 69 ) + + MAX ( DISTINCT 81 )
----
82

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

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

query I rowsort
SELECT ALL 61 + - NULLIF ( + - 38, + 28 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT 87 * + + 2 * + - 81 + - MAX( ALL 69 )
----
-14163

skipif mysql # not compatible
query I rowsort label-5903
SELECT 87 * + + 2 * + - 81 + - MAX ( ALL 69 )
----
-14163

onlyif mysql # aggregate syntax: 
query II rowsort label-5904
SELECT 39 - - 39 * + ( + 51 ) * + MIN( + 41 ) AS col2, 62 AS col0
----
81588
62

skipif mysql # not compatible
query II rowsort label-5904
SELECT 39 - - 39 * + ( + 51 ) * + MIN ( + 41 ) AS col2, 62 AS col0
----
81588
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT - 84 * ( CAST( - 58 AS SIGNED ) ) + 58
----
4930

skipif mysql # not compatible
query I rowsort label-5905
SELECT - 84 * ( CAST ( - 58 AS INTEGER ) ) + 58
----
4930

query I rowsort
SELECT DISTINCT - 78 + - 50 + + 36 col0
----
-92

query II rowsort
SELECT DISTINCT 60 + 68, - 0 AS col2
----
128
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT ALL + 15 * + CAST( NULL AS SIGNED ) / - 22 * + 87 * + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + 15 * + CAST ( NULL AS INTEGER ) / - 22 * + 87 * + + 64 AS col0
----
NULL

query I rowsort
SELECT 12 * + 81
----
972

onlyif mysql # DIV for integer division: 
query II rowsort label-5910
SELECT DISTINCT 68 DIV - - 82 AS col1, + 32 AS col0
----
0
32

skipif mysql # not compatible
query II rowsort label-5910
SELECT DISTINCT 68 / - - 82 AS col1, + 32 AS col0
----
0
32

query I rowsort
SELECT - 7 + - 19 + + ( + 87 ) AS col2
----
61

query I rowsort
SELECT + 46 * + 98 AS col1
----
4508

query I rowsort
SELECT 55 * + 83 col1
----
4565

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

skipif mysql # not compatible
query II rowsort label-5914
SELECT + CAST ( NULL AS INTEGER ) AS col1, - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5915
SELECT DISTINCT + COUNT( * ) * + ( + COUNT( * ) ) - 6, 9 * - 79 AS col2
----
-5
-711

skipif mysql # not compatible
query II rowsort label-5915
SELECT DISTINCT + COUNT ( * ) * + ( + COUNT ( * ) ) - 6, 9 * - 79 AS col2
----
-5
-711

query I rowsort
SELECT ALL + 4 - - 96 + + + 93 col0
----
193

query II rowsort
SELECT ALL 74 AS col0, + 48 * + 82 + 61
----
74
3997

query I rowsort
SELECT DISTINCT + + ( 56 ) - + 30
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT ALL + - COUNT( * ) - - NULLIF ( + + ( - ( NULLIF ( + 15, - - 56 ) ) ), - - NULLIF ( - 47, + 50 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL + - COUNT ( * ) - - NULLIF ( + + ( - ( NULLIF ( + 15, - - 56 ) ) ), - - NULLIF ( - 47, + 50 ) )
----
-16

query I rowsort
SELECT - 71 + - 36 + - 0
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5921
SELECT + 7 DIV - 60 - + COUNT( ALL + - 31 )
----
-1

skipif mysql # not compatible
query I rowsort label-5921
SELECT + 7 / - 60 - + COUNT ( ALL + - 31 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5922
SELECT CAST( - 93 AS SIGNED ) / 2 - + 38 + NULLIF ( ( - + 69 ), - 15 ) + + 54 / - 84 + + 41 - - 4 + - 43 + + ( - 71 ) * - ( 45 ) * CAST( NULL AS SIGNED ) * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT CAST ( - 93 AS INTEGER ) / 2 - + 38 + NULLIF ( ( - + 69 ), - 15 ) + + 54 / - 84 + + 41 - - 4 + - 43 + + ( - 71 ) * - ( 45 ) * CAST ( NULL AS INTEGER ) * + 50
----
NULL

query I rowsort
SELECT - 99 * - + 2 * 59 + 14
----
11696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5924
SELECT DISTINCT + + SUM( - - 22 ) DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT + + SUM ( - - 22 ) / 26
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5925
SELECT ALL - - CASE - CASE 46 WHEN 29 THEN NULL ELSE - CASE - MAX( ALL + + 84 ) WHEN 39 THEN - COUNT( * ) ELSE - NULLIF ( ( + COUNT( * ) ), + - 11 * + 24 / + 44 ) + - 12 END * + ( - 2 ) * - COUNT( * ) + + 99 END WHEN - 45 THEN + + 42 ELSE NULL END, 96 AS col0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-5925
SELECT ALL - - CASE - CASE 46 WHEN 29 THEN NULL ELSE - CASE - MAX ( ALL + + 84 ) WHEN 39 THEN - COUNT ( * ) ELSE - NULLIF ( ( + COUNT ( * ) ), + - 11 * + 24 / + 44 ) + - 12 END * + ( - 2 ) * - COUNT ( * ) + + 99 END WHEN - 45 THEN + + 42 ELSE NULL END, 96 AS col0
----
NULL
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5926
SELECT - 63 DIV SUM( ALL + 39 ) + - 58 * 45 + COUNT( * ) * + 95 + - + COUNT( * ) DIV + - 17
----
-2516

skipif mysql # not compatible
query I rowsort label-5926
SELECT - 63 / SUM ( ALL + 39 ) + - 58 * 45 + COUNT ( * ) * + 95 + - + COUNT ( * ) / + - 17
----
-2516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5927
SELECT 14 + + - COALESCE ( + - MIN( DISTINCT + 81 ), - 10 DIV - ( 70 ) )
----
95

skipif mysql # not compatible
query I rowsort label-5927
SELECT 14 + + - COALESCE ( + - MIN ( DISTINCT + 81 ), - 10 / - ( 70 ) )
----
95

query II rowsort
SELECT 94 * - 20, - 80 AS col2
----
-1880
-80

query I rowsort
SELECT ALL + 92 + - 51
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5930
SELECT DISTINCT 48 * + CAST( NULL AS SIGNED ) * - ( - CAST( - + CASE WHEN NOT + 61 IS NOT NULL THEN + + 80 * ( 11 ) END AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT 48 * + CAST ( NULL AS INTEGER ) * - ( - CAST ( - + CASE WHEN NOT + 61 IS NOT NULL THEN + + 80 * ( 11 ) END AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT ALL 7 + - + CAST( NULL AS SIGNED ) * + + 70 + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL 7 + - + CAST ( NULL AS INTEGER ) * + + 70 + + 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5932
SELECT ( + 22 ) * - + CAST( NULL AS SIGNED ) + - COUNT( * ) + + + 43 * + - 47 - - 18 + - - 26 / - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT ( + 22 ) * - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + + 43 * + - 47 - - 18 + - - 26 / - 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT COUNT( * ) * 54 col1
----
54

skipif mysql # not compatible
query I rowsort label-5933
SELECT COUNT ( * ) * 54 col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT 56 * - + 81 * + 16 * + + 59 - COUNT( ALL + - 36 ) AS col1
----
-4281985

skipif mysql # not compatible
query I rowsort label-5934
SELECT 56 * - + 81 * + 16 * + + 59 - COUNT ( ALL + - 36 ) AS col1
----
-4281985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5935
SELECT ALL + ( 40 ) * + 3 * 54 / CAST( NULL AS SIGNED ) + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL + ( 40 ) * + 3 * 54 / CAST ( NULL AS INTEGER ) + - 98
----
NULL

query I rowsort
SELECT - ( + - 13 ) * + - 42 AS col0
----
-546

query I rowsort
SELECT ALL 97 - + 70 AS col1
----
27

query I rowsort
SELECT + 80 * 18 + 92
----
1532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5939
SELECT - CAST( + ( MAX( DISTINCT + 69 ) ) AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-5939
SELECT - CAST ( + ( MAX ( DISTINCT + 69 ) ) AS INTEGER )
----
-69

query I rowsort
SELECT + - 78 - + 70
----
-148

onlyif mysql # DIV for integer division: 
query II rowsort label-5941
SELECT + - 67 DIV - - 73 AS col1, 24 * 47 col0
----
0
1128

skipif mysql # not compatible
query II rowsort label-5941
SELECT + - 67 / - - 73 AS col1, 24 * 47 col0
----
0
1128

query I rowsort
SELECT + 74 + 98
----
172

query I rowsort
SELECT + 96 * 65 * + 36 * 33
----
7413120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5944
SELECT - 59 DIV ( - COUNT( ALL - 22 ) ) + - - 85
----
144

skipif mysql # not compatible
query I rowsort label-5944
SELECT - 59 / ( - COUNT ( ALL - 22 ) ) + - - 85
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5945
SELECT + CAST( - 36 AS SIGNED ) * NULLIF ( 95, - + 50 )
----
-3420

skipif mysql # not compatible
query I rowsort label-5945
SELECT + CAST ( - 36 AS INTEGER ) * NULLIF ( 95, - + 50 )
----
-3420

query I rowsort
SELECT - 3 * - 74
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT NULLIF ( + 83, 61 * - 75 + MAX( 72 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5947
SELECT NULLIF ( + 83, 61 * - 75 + MAX ( 72 ) ) AS col2
----
83

query I rowsort
SELECT 23 * 16 + - 88
----
280

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

skipif mysql # not compatible
query I rowsort label-5949
SELECT - 73 * - CAST ( NULL AS INTEGER ) * + + ( + 32 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5950
SELECT ALL - ( + 92 ) DIV - - 47 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL - ( + 92 ) / - - 47 AS col2
----
-1

query I rowsort
SELECT DISTINCT ( + 49 ) * - 87 + + 45 + - ( 25 )
----
-4243

query I rowsort
SELECT ALL 76 * - CASE + 74 WHEN 81 THEN + 39 ELSE NULL END + + - 62
----
NULL

query I rowsort
SELECT - 89 * + 83 - + + 41
----
-7428

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT ALL - ( + COALESCE ( + SUM( + - ( + - 59 ) ), + ( 19 ) * 35 + - 45 ) ) * 31 * - ( 73 )
----
133517

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL - ( + COALESCE ( + SUM ( + - ( + - 59 ) ), + ( 19 ) * 35 + - 45 ) ) * 31 * - ( 73 )
----
133517

query I rowsort
SELECT NULLIF ( + + 6, - 91 ) AS col1
----
6

query I rowsort
SELECT - 1 * - 69 AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5957
SELECT COALESCE ( + CAST( - + 24 AS SIGNED ), - + 37 )
----
-24

skipif mysql # not compatible
query I rowsort label-5957
SELECT COALESCE ( + CAST ( - + 24 AS INTEGER ), - + 37 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5958
SELECT ALL + 68 * 89 + CAST( CASE - ( - 19 ) WHEN 3 + + 90 - - 28 / COALESCE ( + 57, 28 ) THEN + ( - - 97 ) + + - 67 + 91 * MAX( ALL + 49 ) WHEN + - 85 * 32 + - 20 + + - CASE - 50 WHEN + COUNT( * ) / ( 17 ) / + + 95 + 80 - - 7 + + 4 * + 41 * - + 44 THEN - MAX( - 26 ) * 44 WHEN 3 * - 88 + ( - 92 ) + + + 47 THEN + 0 ELSE NULL END THEN NULL WHEN - COUNT( * ) THEN 0 END AS SIGNED ) + COUNT( * ) + - 58 + 84 * - + 28 * + 47 + 63 * ( - COUNT( * ) ) * - 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL + 68 * 89 + CAST ( CASE - ( - 19 ) WHEN 3 + + 90 - - 28 / COALESCE ( + 57, 28 ) THEN + ( - - 97 ) + + - 67 + 91 * MAX ( ALL + 49 ) WHEN + - 85 * 32 + - 20 + + - CASE - 50 WHEN + COUNT ( * ) / ( 17 ) / + + 95 + 80 - - 7 + + 4 * + 41 * - + 44 THEN - MAX ( - 26 ) * 44 WHEN 3 * - 88 + ( - 92 ) + + + 47 THEN + 0 ELSE NULL END THEN NULL WHEN - COUNT ( * ) THEN 0 END AS INTEGER ) + COUNT ( * ) + - 58 + 84 * - + 28 * + 47 + 63 * ( - COUNT ( * ) ) * - 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT - 77 + - + MAX( DISTINCT - + 64 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5959
SELECT - 77 + - + MAX ( DISTINCT - + 64 ) AS col0
----
-13

query I rowsort
SELECT + 42 * 17
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT + 59 - 18 + - COUNT( DISTINCT - + 77 ) + - - NULLIF ( 35, + COUNT( 66 ) ) + + NULLIF ( - ( - + 67 ), + 9 ) * COUNT( * ) * - 39 * + - COUNT( * )
----
2688

skipif mysql # not compatible
query I rowsort label-5961
SELECT + 59 - 18 + - COUNT ( DISTINCT - + 77 ) + - - NULLIF ( 35, + COUNT ( 66 ) ) + + NULLIF ( - ( - + 67 ), + 9 ) * COUNT ( * ) * - 39 * + - COUNT ( * )
----
2688

onlyif mysql # aggregate syntax: 
query II rowsort label-5962
SELECT ALL + COUNT( * ) col1, 91 * + ( + + 53 ) + 96 AS col1
----
1
4919

skipif mysql # not compatible
query II rowsort label-5962
SELECT ALL + COUNT ( * ) col1, 91 * + ( + + 53 ) + 96 AS col1
----
1
4919

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT + + NULLIF ( 99, + COUNT( * ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5963
SELECT + + NULLIF ( 99, + COUNT ( * ) ) AS col1
----
99

query II rowsort
SELECT - 53 * + - 14 + 89, + 89 AS col2
----
831
89

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

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

query II rowsort
SELECT - 30 AS col1, 49 AS col2
----
-30
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT DISTINCT + 78 * 19 * - ( - COUNT( - 75 ) ) - + 3 AS col1
----
1479

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT + 78 * 19 * - ( - COUNT ( - 75 ) ) - + 3 AS col1
----
1479

query I rowsort
SELECT ALL - 88 * - 60 AS col0
----
5280

query II rowsort
SELECT ALL 25, NULLIF ( ( + + 59 ), + 83 ) col1
----
25
59

query I rowsort
SELECT + + 7 + + 88 * 87
----
7663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5971
SELECT - + COUNT( * ) + - CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col2, - 44 + COUNT( * )
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-5971
SELECT - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col2, - 44 + COUNT ( * )
----
NULL
-43

query I rowsort
SELECT DISTINCT - 83 * + 23 + - 32
----
-1941

query I rowsort
SELECT ALL + 44 + + 22 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT ALL COUNT( * ) + - NULLIF ( - ( + + ( 60 ) ), + + 28 * + + 26 + COUNT( * ) ) + 51 * 75 AS col1
----
3886

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL COUNT ( * ) + - NULLIF ( - ( + + ( 60 ) ), + + 28 * + + 26 + COUNT ( * ) ) + 51 * 75 AS col1
----
3886

query I rowsort
SELECT + 3 + + 49 AS col1
----
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT + COUNT( * ) / + + COUNT( * ) + + + 27 + CASE 34 WHEN - COUNT( * ) THEN + ( + - COUNT( * ) ) WHEN + + 33 / - 37 * + CASE - + 51 WHEN - ( + 71 ) THEN - 91 END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT + COUNT ( * ) / + + COUNT ( * ) + + + 27 + CASE 34 WHEN - COUNT ( * ) THEN + ( + - COUNT ( * ) ) WHEN + + 33 / - 37 * + CASE - + 51 WHEN - ( + 71 ) THEN - 91 END THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 80 * ( + 6 ) AS col0
----
480

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT DISTINCT + 50 DIV - 91 + - 36
----
-36

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT + 50 / - 91 + - 36
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5980
SELECT CAST( - - 92 AS SIGNED ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5980
SELECT CAST ( - - 92 AS INTEGER ) AS col2
----
92

query I rowsort
SELECT - 14 + - 86 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-5982
SELECT + ( - 38 ) AS col0, + MIN( DISTINCT + 68 ) * 45 * 52 + 72 * 9 AS col0
----
-38
159768

skipif mysql # not compatible
query II rowsort label-5982
SELECT + ( - 38 ) AS col0, + MIN ( DISTINCT + 68 ) * 45 * 52 + 72 * 9 AS col0
----
-38
159768

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

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

query I rowsort
SELECT + 78 * + - 35 AS col2
----
-2730

query I rowsort
SELECT - 83 * + + 65 AS col0
----
-5395

query I rowsort
SELECT ALL + COALESCE ( - 9, 40 ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5987
SELECT DISTINCT - - MAX( DISTINCT + 36 ) * - 15 * - CAST( - 34 AS SIGNED )
----
-18360

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT - - MAX ( DISTINCT + 36 ) * - 15 * - CAST ( - 34 AS INTEGER )
----
-18360

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

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT - 39 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 18 col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5990
SELECT DISTINCT - COALESCE ( 41, + MIN( DISTINCT - + 86 ) DIV COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT - COALESCE ( 41, + MIN ( DISTINCT - + 86 ) / COUNT ( * ) )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5991
SELECT - 2 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-5991
SELECT - 2 / 58
----
0

query I rowsort
SELECT DISTINCT - 89 * - - COALESCE ( - ( - 79 ), ( 15 ) )
----
-7031

query I rowsort
SELECT - 15 * 18 AS col1
----
-270

query I rowsort
SELECT + 85 * - 28 * - ( - 19 )
----
-45220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5995
SELECT 40 * COUNT( * ) + 11 DIV 27 col2
----
40

skipif mysql # not compatible
query I rowsort label-5995
SELECT 40 * COUNT ( * ) + 11 / 27 col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT + 42 - - COALESCE ( - + 15, - COUNT( * ) * - - 50 )
----
27

skipif mysql # not compatible
query I rowsort label-5996
SELECT + 42 - - COALESCE ( - + 15, - COUNT ( * ) * - - 50 )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5997
SELECT + ( COALESCE ( 95, - - 80 ) ) * COUNT( * ), - 93 AS col1
----
95
-93

skipif mysql # not compatible
query II rowsort label-5997
SELECT + ( COALESCE ( 95, - - 80 ) ) * COUNT ( * ), - 93 AS col1
----
95
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL NULLIF ( + + 90, ( SUM( + + 28 ) ) * + - 69 * + 32 / + 42 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL NULLIF ( + + 90, ( SUM ( + + 28 ) ) * + - 69 * + 32 / + 42 ) AS col2
----
90

query I rowsort
SELECT ALL 4 + - 16 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL + 15 + + - MIN( ALL + 82 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL + 15 + + - MIN ( ALL + 82 ) AS col0
----
-67

query I rowsort
SELECT 9 * + ( - 64 )
----
-576

query I rowsort
SELECT - 92 - + 11 AS col1
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT DISTINCT - + CASE + 7 WHEN + 25 THEN + - 90 + + + ( + NULLIF ( + 56, COUNT( * ) ) ) * 66 ELSE NULL END + + ( + 38 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT - + CASE + 7 WHEN + 25 THEN + - 90 + + + ( + NULLIF ( + 56, COUNT ( * ) ) ) * 66 ELSE NULL END + + ( + 38 ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6005
SELECT CAST( 77 AS SIGNED ) AS col0, 64 * CASE - 91 WHEN - 47 * + 58 THEN NULL ELSE - 27 * - 33 END AS col0
----
77
57024

skipif mysql # not compatible
query II rowsort label-6005
SELECT CAST ( 77 AS INTEGER ) AS col0, 64 * CASE - 91 WHEN - 47 * + 58 THEN NULL ELSE - 27 * - 33 END AS col0
----
77
57024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6006
SELECT MIN( DISTINCT - + 82 ) + - - 87 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT MIN ( DISTINCT - + 82 ) + - - 87 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ( - 94 ) + SUM( ALL + 51 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6007
SELECT ( - 94 ) + SUM ( ALL + 51 ) AS col1
----
-43

query I rowsort
SELECT ALL - 59 + + 18 + - 27 col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6009
SELECT ALL + 5 + - 46 * 96 + + 45 + - CAST( + + 35 AS SIGNED ) + + 72 * - COUNT( * )
----
-4473

skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL + 5 + - 46 * 96 + + 45 + - CAST ( + + 35 AS INTEGER ) + + 72 * - COUNT ( * )
----
-4473

query I rowsort
SELECT ALL 32 + + 36
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6011
SELECT COUNT( * ) DIV 13 col2
----
0

skipif mysql # not compatible
query I rowsort label-6011
SELECT COUNT ( * ) / 13 col2
----
0

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

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

query I rowsort
SELECT 19 - - - 42
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT COUNT( * ) * + + 93 * - 90 * ( 47 ) AS col0
----
-393390

skipif mysql # not compatible
query I rowsort label-6014
SELECT COUNT ( * ) * + + 93 * - 90 * ( 47 ) AS col0
----
-393390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6015
SELECT ( - + CAST( NULL AS SIGNED ) ) * + 79 * + 39 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6016
SELECT DISTINCT ( + COUNT( * ) ) * - - COUNT( * ), - 23 + - 28 DIV 56 AS col2
----
1
-23

skipif mysql # not compatible
query II rowsort label-6016
SELECT DISTINCT ( + COUNT ( * ) ) * - - COUNT ( * ), - 23 + - 28 / 56 AS col2
----
1
-23

query I rowsort
SELECT 97 * - 85 * 42 + 3
----
-346287

query I rowsort
SELECT DISTINCT 95 - + 51
----
44

query I rowsort
SELECT ALL - 98 * - 41 AS col0
----
4018

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT MAX( ALL - 43 ) - + NULLIF ( 26, - - MIN( DISTINCT + + 44 ) + 9 - - COUNT( * ) ) + - + 43
----
-112

skipif mysql # not compatible
query I rowsort label-6020
SELECT MAX ( ALL - 43 ) - + NULLIF ( 26, - - MIN ( DISTINCT + + 44 ) + 9 - - COUNT ( * ) ) + - + 43
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT + 42 * COALESCE ( + 26, COUNT( * ) ) + COUNT( * ) * + 2 AS col1
----
1094

skipif mysql # not compatible
query I rowsort label-6021
SELECT + 42 * COALESCE ( + 26, COUNT ( * ) ) + COUNT ( * ) * + 2 AS col1
----
1094

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6023
SELECT COUNT( DISTINCT + 60 ) + + 18 DIV + ( 4 * - 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6023
SELECT COUNT ( DISTINCT + 60 ) + + 18 / + ( 4 * - 62 ) AS col0
----
1

query I rowsort
SELECT 89 * - 75 AS col0
----
-6675

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6026
SELECT CASE + ( + 47 ) WHEN 20 DIV COUNT( * ) THEN NULL ELSE + COUNT( * ) END DIV - COUNT( ALL + 39 * 64 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6026
SELECT CASE + ( + 47 ) WHEN 20 / COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END / - COUNT ( ALL + 39 * 64 ) AS col0
----
-1

query I rowsort
SELECT 82 + - 30
----
52

query I rowsort
SELECT ALL 23 + - 98 col2
----
-75

query I rowsort
SELECT 98 + 63
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6030
SELECT ALL 16 DIV - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL 16 / - COUNT ( * )
----
-16

query I rowsort
SELECT DISTINCT 75 + - 23 col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT 7 + CAST( 49 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-6032
SELECT 7 + CAST ( 49 AS INTEGER )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT DISTINCT - 90 + + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT - 90 + + COUNT ( * )
----
-89

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT CAST( 32 AS SIGNED ) * + 11
----
352

skipif mysql # not compatible
query I rowsort label-6035
SELECT CAST ( 32 AS INTEGER ) * + 11
----
352

onlyif mysql # DIV for integer division: 
query I rowsort label-6036
SELECT 7 DIV ( 34 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6036
SELECT 7 / ( 34 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT ALL COUNT( * ) + 60 * 84
----
5041

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL COUNT ( * ) + 60 * 84
----
5041

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6038
SELECT DISTINCT + CASE + CAST( + 52 AS SIGNED ) WHEN 10 THEN + COUNT( * ) ELSE + 16 + SUM( ALL - 47 ) * 88 END + + 38 * ( COUNT( ALL 88 ) * 23 ) AS col1
----
-3246

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT + CASE + CAST ( + 52 AS INTEGER ) WHEN 10 THEN + COUNT ( * ) ELSE + 16 + SUM ( ALL - 47 ) * 88 END + + 38 * ( COUNT ( ALL 88 ) * 23 ) AS col1
----
-3246

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

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL SUM ( - 30 )
----
-30

query I rowsort
SELECT 39 + - 46
----
-7

query I rowsort
SELECT 42 * + 88
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT 48 + 14 * + COALESCE ( + 57, - 46, + 56 + ( - COUNT( * ) - 57 ) ) AS col0
----
846

skipif mysql # not compatible
query I rowsort label-6042
SELECT 48 + 14 * + COALESCE ( + 57, - 46, + 56 + ( - COUNT ( * ) - 57 ) ) AS col0
----
846

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

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

query I rowsort
SELECT 32 * ( + 49 ) col1
----
1568

query I rowsort
SELECT ALL 49 * 54
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL + NULLIF ( + 51, ( 54 ) * + 24 + - SUM( ALL 20 ) ) * CASE + 30 WHEN 47 THEN 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + NULLIF ( + 51, ( 54 ) * + 24 + - SUM ( ALL 20 ) ) * CASE + 30 WHEN 47 THEN 12 END
----
NULL

query I rowsort
SELECT + NULLIF ( 19, 28 + ( NULLIF ( + 26, + 68 ) ) ) * - 59
----
-1121

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT + 63 DIV 44 + 57 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6048
SELECT + 63 / 44 + 57 AS col2
----
58

query I rowsort
SELECT + 1 + 29 * 10 AS col1
----
291

query I rowsort
SELECT NULLIF ( + 15, + 15 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT - MAX( ALL 62 ) * + 58 AS col2
----
-3596

skipif mysql # not compatible
query I rowsort label-6051
SELECT - MAX ( ALL 62 ) * + 58 AS col2
----
-3596

query I rowsort
SELECT + - 95 * 29
----
-2755

onlyif mysql # DIV for integer division: 
query I rowsort label-6053
SELECT + - 45 DIV - 3 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6053
SELECT + - 45 / - 3 AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT ALL 46 * 93 + + 99 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL 46 * 93 + + 99 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT DISTINCT + CAST( 53 AS SIGNED ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT + CAST ( 53 AS INTEGER ) AS col2
----
53

query I rowsort
SELECT DISTINCT + - 62 * 5 + 58 AS col2
----
-252

query I rowsort
SELECT ALL 21 * 8 AS col2
----
168

query I rowsort
SELECT DISTINCT - 78 * 77 + 78 * 55 AS col2
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT + MIN( - 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6059
SELECT + MIN ( - 59 ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6060
SELECT + + CASE - COUNT( * ) WHEN + 2 THEN 17 WHEN 41 THEN NULL ELSE CAST( + ( 42 ) AS SIGNED ) END
----
42

skipif mysql # not compatible
query I rowsort label-6060
SELECT + + CASE - COUNT ( * ) WHEN + 2 THEN 17 WHEN 41 THEN NULL ELSE CAST ( + ( 42 ) AS INTEGER ) END
----
42

query I rowsort
SELECT ALL - 13 + + 42 AS col1
----
29

query I rowsort
SELECT - ( + 0 ) * 8
----
0

query I rowsort
SELECT DISTINCT - 11 + ( + 12 )
----
1

query I rowsort
SELECT ALL 10 - + 59 * 14 AS col1
----
-816

query I rowsort
SELECT + 54 + + 39
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT ALL + 5 - + 26 * COUNT( - CAST( NULL AS SIGNED ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL + 5 - + 26 * COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT + 21 * + 40 * MAX( 69 ) AS col1
----
57960

skipif mysql # not compatible
query I rowsort label-6067
SELECT + 21 * + 40 * MAX ( 69 ) AS col1
----
57960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6068
SELECT DISTINCT + 87 * CAST( 32 AS SIGNED )
----
2784

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT + 87 * CAST ( 32 AS INTEGER )
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT - MIN( DISTINCT - 47 ) - 45
----
2

skipif mysql # not compatible
query I rowsort label-6069
SELECT - MIN ( DISTINCT - 47 ) - 45
----
2

query I rowsort
SELECT + 85 * + + 31
----
2635

query I rowsort
SELECT DISTINCT - 87 * + + 49 AS col0
----
-4263

query I rowsort
SELECT + 37 + 1 AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT - 43 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-6073
SELECT - 43 / + 55
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT - 55 * + CAST( 1 AS SIGNED ) * 4
----
-220

skipif mysql # not compatible
query I rowsort label-6074
SELECT - 55 * + CAST ( 1 AS INTEGER ) * 4
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6075
SELECT ALL 61 * + - COALESCE ( CAST( NULL AS SIGNED ), + 27 * 87 )
----
-143289

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL 61 * + - COALESCE ( CAST ( NULL AS INTEGER ), + 27 * 87 )
----
-143289

query I rowsort
SELECT ALL NULLIF ( 11, + 52 * 18 ) * + 94
----
1034

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT DISTINCT - 52 + + + COALESCE ( SUM( ALL + 93 ), 21 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT - 52 + + + COALESCE ( SUM ( ALL + 93 ), 21 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT ALL CASE + 86 WHEN COUNT( - 70 ) / 47 + COUNT( * ) THEN ( + 83 ) ELSE 61 END AS col1
----
61

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL CASE + 86 WHEN COUNT ( - 70 ) / 47 + COUNT ( * ) THEN ( + 83 ) ELSE 61 END AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT - 89 + COALESCE ( COUNT( * ), + 99, - 8 ) + - 82 AS col2
----
-170

skipif mysql # not compatible
query I rowsort label-6080
SELECT - 89 + COALESCE ( COUNT ( * ), + 99, - 8 ) + - 82 AS col2
----
-170

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

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

query I rowsort
SELECT + CASE - 71 WHEN - ( 54 ) THEN ( - NULLIF ( + 67, - 63 ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT ALL 23 DIV + - 11 + - 92
----
-94

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL 23 / + - 11 + - 92
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6084
SELECT ( + COUNT( * ) ) DIV 80 + 45
----
45

skipif mysql # not compatible
query I rowsort label-6084
SELECT ( + COUNT ( * ) ) / 80 + 45
----
45

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

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

query I rowsort
SELECT DISTINCT + 0 * 97 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6087
SELECT ALL - 17 / + COUNT( + 36 ) - - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL - 17 / + COUNT ( + 36 ) - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT DISTINCT + CAST( 74 AS SIGNED ) * 99 AS col0
----
7326

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT + CAST ( 74 AS INTEGER ) * 99 AS col0
----
7326

query I rowsort
SELECT ALL + 67 * 25 * - 31 + - ( - 53 ) AS col2
----
-51872

query I rowsort
SELECT - - 97 + 34 AS col1
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-6091
SELECT - + ( - 18 ) DIV + 9
----
2

skipif mysql # not compatible
query I rowsort label-6091
SELECT - + ( - 18 ) / + 9
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT - + 38 * + 73 + + 44 * 41 + 43 * COUNT( * )
----
-927

skipif mysql # not compatible
query I rowsort label-6092
SELECT - + 38 * + 73 + + 44 * 41 + 43 * COUNT ( * )
----
-927

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - CASE + NULLIF ( - CASE + 98 WHEN AVG ( DISTINCT + 78 ) * 74 THEN MAX( 92 ) * COUNT( * ) ELSE NULL END, COALESCE ( + SUM( 91 ), 19 + 29 ) + 75 / 34 ) WHEN - 8 THEN - 92 + - 82 END + ( + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT - CASE + NULLIF ( - CASE + 98 WHEN AVG ( DISTINCT + 78 ) * 74 THEN MAX ( 92 ) * COUNT ( * ) ELSE NULL END, COALESCE ( + SUM ( 91 ), 19 + 29 ) + 75 / 34 ) WHEN - 8 THEN - 92 + - 82 END + ( + 24 )
----
NULL

query I rowsort
SELECT - 11 + 2 AS col0
----
-9

query I rowsort
SELECT + 81 * - + 42 + + COALESCE ( + 71, 11 - 60 )
----
-3331

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6096
SELECT - - COUNT( * ) * - AVG ( ALL 35 ) + ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT - - COUNT ( * ) * - AVG ( ALL 35 ) + ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL + COUNT( ALL - 31 ) * 38 - - 89
----
127

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL + COUNT ( ALL - 31 ) * 38 - - 89
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-6098
SELECT DISTINCT - - 77 DIV - 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT - - 77 / - 47 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT + + 96 DIV 75 col0
----
1

skipif mysql # not compatible
query I rowsort label-6099
SELECT + + 96 / 75 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6100
SELECT ALL - CASE - + 4 WHEN + ( CAST( + SUM( + 31 ) AS DECIMAL ) ) THEN + 33 WHEN 19 THEN + CAST( 50 AS SIGNED ) WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL - CASE - + 4 WHEN + ( CAST ( + SUM ( + 31 ) AS REAL ) ) THEN + 33 WHEN 19 THEN + CAST ( 50 AS INTEGER ) WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT + - NULLIF ( - CASE - COUNT( * ) WHEN - 83 THEN 91 * + MIN( 70 * 60 ) WHEN + 69 * - 34 - + 89 / COUNT( * ) THEN NULL END, 68 ) + 17 * + AVG ( 70 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT + - NULLIF ( - CASE - COUNT ( * ) WHEN - 83 THEN 91 * + MIN ( 70 * 60 ) WHEN + 69 * - 34 - + 89 / COUNT ( * ) THEN NULL END, 68 ) + 17 * + AVG ( 70 ) col2
----
NULL

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

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

query II rowsort
SELECT ALL 40 col0, + 23 * - 46
----
40
-1058

query I rowsort
SELECT - NULLIF ( - 95, 99 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT MIN( - + 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-6105
SELECT MIN ( - + 95 ) AS col0
----
-95

query I rowsort
SELECT + 0 * 96 * - 81 + - 95 col2
----
-95

query I rowsort
SELECT + 61 * - + 7
----
-427

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT + SUM( DISTINCT 46 ) + - 0
----
46

skipif mysql # not compatible
query I rowsort label-6109
SELECT + SUM ( DISTINCT 46 ) + - 0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6110
SELECT COUNT( * ) AS col2, + 59 + - + ( 14 ) * COUNT( DISTINCT - 75 )
----
1
45

skipif mysql # not compatible
query II rowsort label-6110
SELECT COUNT ( * ) AS col2, + 59 + - + ( 14 ) * COUNT ( DISTINCT - 75 )
----
1
45

query I rowsort
SELECT + 55 + 82 col2
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6112
SELECT DISTINCT CASE - + 75 WHEN CAST( - COALESCE ( 88, CASE ( - MIN( DISTINCT COALESCE ( + 90, + 50, + ( 44 ) + - 76 ) ) ) WHEN - 60 - + 67 * ( SUM( 84 ) / - ( 82 ) ) THEN NULL WHEN 26 THEN 43 ELSE NULL END ) AS SIGNED ) THEN - 70 * 3 + + ( 47 + + 80 ) ELSE ( - 57 ) - + 61 END AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT CASE - + 75 WHEN CAST ( - COALESCE ( 88, CASE ( - MIN ( DISTINCT COALESCE ( + 90, + 50, + ( 44 ) + - 76 ) ) ) WHEN - 60 - + 67 * ( SUM ( 84 ) / - ( 82 ) ) THEN NULL WHEN 26 THEN 43 ELSE NULL END ) AS INTEGER ) THEN - 70 * 3 + + ( 47 + + 80 ) ELSE ( - 57 ) - + 61 END AS col2
----
-118

query I rowsort
SELECT DISTINCT - 56 * 10
----
-560

onlyif mysql # DIV for integer division: 
query II rowsort label-6114
SELECT 97, 67 DIV 2 DIV - 60 + - ( - 15 ) AS col1
----
97
15

skipif mysql # not compatible
query II rowsort label-6114
SELECT 97, 67 / 2 / - 60 + - ( - 15 ) AS col1
----
97
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6115
SELECT 38 * - CASE ( - 14 ) WHEN 92 * 9 THEN NULL WHEN + 54 THEN NULL WHEN ( - 17 ) * CAST( COALESCE ( 37, - MIN( ALL + 65 ), COALESCE ( - 27, 91 ) - 52, - COALESCE ( CASE 32 WHEN - 32 THEN NULL ELSE 52 END, CAST( COUNT( * ) AS SIGNED ) ) ) AS DECIMAL ) - + 22 THEN 32 * 63 WHEN 1 * + COUNT( * ) + 0 * + 2 THEN NULL ELSE 19 END
----
-722

skipif mysql # not compatible
query I rowsort label-6115
SELECT 38 * - CASE ( - 14 ) WHEN 92 * 9 THEN NULL WHEN + 54 THEN NULL WHEN ( - 17 ) * CAST ( COALESCE ( 37, - MIN ( ALL + 65 ), COALESCE ( - 27, 91 ) - 52, - COALESCE ( CASE 32 WHEN - 32 THEN NULL ELSE 52 END, CAST ( COUNT ( * ) AS INTEGER ) ) ) AS REAL ) - + 22 THEN 32 * 63 WHEN 1 * + COUNT ( * ) + 0 * + 2 THEN NULL ELSE 19 END
----
-722

query I rowsort
SELECT 73 + - ( + 87 ) AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6117
SELECT ALL 7 + + 65 + - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL 7 + + 65 + - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 83 + - ( + 65 ) AS col0
----
18

query I rowsort
SELECT DISTINCT + 94 * + - 70
----
-6580

query I rowsort
SELECT ALL - 39 + 85 - - + 94
----
140

query I rowsort
SELECT 63 * - + 21 * - 38 * 0 col0
----
0

query I rowsort
SELECT COALESCE ( 70, - 77 * ( 25 ) + COALESCE ( 3, + 95 ) ) * 49
----
3430

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL + - 58 + - COALESCE ( - - COUNT( * ), 44, 86, + 64 ) + + ( 33 + + 47 )
----
21

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL + - 58 + - COALESCE ( - - COUNT ( * ), 44, 86, + 64 ) + + ( 33 + + 47 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6124
SELECT DISTINCT 58 * - + NULLIF ( - 38, 2 ) * CAST( - COUNT( * ) + COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT 58 * - + NULLIF ( - 38, 2 ) * CAST ( - COUNT ( * ) + COUNT ( * ) AS INTEGER )
----
0

query I rowsort
SELECT ALL - 12 + - + 65
----
-77

query I rowsort
SELECT - 2 * 2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT + - NULLIF ( 44, - - 60 / COUNT( * ) )
----
-44

skipif mysql # not compatible
query I rowsort label-6127
SELECT + - NULLIF ( 44, - - 60 / COUNT ( * ) )
----
-44

query I rowsort
SELECT DISTINCT - + ( 86 ) + - 72 + - 72 AS col1
----
-230

onlyif mysql # aggregate syntax: 
query II rowsort label-6129
SELECT COUNT( * ) AS col1, + CASE ( + 94 ) WHEN + COUNT( * ) + - 30 THEN + MIN( 5 ) WHEN COUNT( * ) THEN NULL END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6129
SELECT COUNT ( * ) AS col1, + CASE ( + 94 ) WHEN + COUNT ( * ) + - 30 THEN + MIN ( 5 ) WHEN COUNT ( * ) THEN NULL END AS col1
----
1
NULL

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

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

query II rowsort
SELECT + - 1 AS col1, - 39 AS col0
----
-1
-39

query I rowsort
SELECT NULLIF ( + 99, 69 ) AS col1
----
99

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

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

query I rowsort
SELECT + 52 * + + 42 AS col2
----
2184

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

query I rowsort
SELECT ALL - 5 * - 40 * - 24
----
-4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6137
SELECT DISTINCT - + CAST( + MIN( ALL - 43 ) AS SIGNED ) * ( + 31 + - ( 90 ) ) AS col0
----
-2537

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT - + CAST ( + MIN ( ALL - 43 ) AS INTEGER ) * ( + 31 + - ( 90 ) ) AS col0
----
-2537

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

skipif mysql # not compatible
query I rowsort label-6138
SELECT 47 / - COUNT ( * ) * - - COUNT ( * ) col0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6139
SELECT 50 + - + COALESCE ( + - 51, + 35 ) DIV 48
----
51

skipif mysql # not compatible
query I rowsort label-6139
SELECT 50 + - + COALESCE ( + - 51, + 35 ) / 48
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT ALL - ( + 26 ) DIV + 20 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL - ( + 26 ) / + 20 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT COUNT( * ) + - MIN( DISTINCT - 41 ) col0
----
42

skipif mysql # not compatible
query I rowsort label-6141
SELECT COUNT ( * ) + - MIN ( DISTINCT - 41 ) col0
----
42

query II rowsort
SELECT ALL 26 * 44 AS col1, + 8
----
1144
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6143
SELECT 48 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-6143
SELECT 48 / 53
----
0

query I rowsort
SELECT ALL 19 + + 65
----
84

query I rowsort
SELECT 83 * - - 65
----
5395

query I rowsort
SELECT ALL 60 + - - 56
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT DISTINCT 18 + - COUNT( * ) + CASE 34 WHEN 77 THEN ( - ( - 81 ) ) WHEN 31 * COUNT( * ) + 84 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT 18 + - COUNT ( * ) + CASE 34 WHEN 77 THEN ( - ( - 81 ) ) WHEN 31 * COUNT ( * ) + 84 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT 66 + + COUNT( * ) + - 29 + + - 53
----
-15

skipif mysql # not compatible
query I rowsort label-6148
SELECT 66 + + COUNT ( * ) + - 29 + + - 53
----
-15

query II rowsort
SELECT DISTINCT 53 + 94 AS col1, - ( - 67 ) - 95 col0
----
147
-28

query I rowsort
SELECT ALL 24 + + + 27
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6151
SELECT ALL - 61 * + 56, 28 DIV 52 * 96 - COUNT( DISTINCT 17 ) * + 0 col0
----
-3416
0

skipif mysql # not compatible
query II rowsort label-6151
SELECT ALL - 61 * + 56, 28 / 52 * 96 - COUNT ( DISTINCT 17 ) * + 0 col0
----
-3416
0

query I rowsort
SELECT - 0 * - - 85
----
0

query I rowsort
SELECT ALL + CASE 64 WHEN - 57 THEN - 96 ELSE + 41 + + 98 END + + 36 AS col2
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT COUNT( * ) + + - 73 * + + CASE 8 WHEN 52 * ( + 5 ) - + 32 / COUNT( * ) THEN 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT COUNT ( * ) + + - 73 * + + CASE 8 WHEN 52 * ( + 5 ) - + 32 / COUNT ( * ) THEN 65 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ALL 87 * + NULLIF ( - COUNT( * ), - 33 ) + - 85
----
-172

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL 87 * + NULLIF ( - COUNT ( * ), - 33 ) + - 85
----
-172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6156
SELECT + 66 + - 63 - - COUNT( * ) * + ( + COUNT( * ) ) DIV 63
----
3

skipif mysql # not compatible
query I rowsort label-6156
SELECT + 66 + - 63 - - COUNT ( * ) * + ( + COUNT ( * ) ) / 63
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT COUNT( * ) * - - 22 + + 16 * 78
----
1270

skipif mysql # not compatible
query I rowsort label-6158
SELECT COUNT ( * ) * - - 22 + + 16 * 78
----
1270

onlyif mysql # aggregate syntax: 
query II rowsort label-6159
SELECT + COUNT( * ) - - - 11 AS col1, 31 AS col0
----
-10
31

skipif mysql # not compatible
query II rowsort label-6159
SELECT + COUNT ( * ) - - - 11 AS col1, 31 AS col0
----
-10
31

query I rowsort
SELECT ALL + 56 * - - 42 * + 61 * - 85
----
-12195120

onlyif mysql # DIV for integer division: 
query I rowsort label-6161
SELECT 24 DIV + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6161
SELECT 24 / + 82 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT - COALESCE ( 96, COUNT( * ) ) * + 62 + 35
----
-5917

skipif mysql # not compatible
query I rowsort label-6162
SELECT - COALESCE ( 96, COUNT ( * ) ) * + 62 + 35
----
-5917

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT COALESCE ( COALESCE ( CASE 61 WHEN + ( - 5 ) THEN 97 WHEN - 73 * + 18 THEN CASE 30 WHEN COUNT( * ) THEN 2 WHEN 58 THEN NULL WHEN 75 THEN NULL END * 58 END, + 77 * 76 + + 36, 21 + + 32 * + ( 31 * + 10 ) ), + 27 + - 10, ( + 87 ) )
----
5888

skipif mysql # not compatible
query I rowsort label-6163
SELECT COALESCE ( COALESCE ( CASE 61 WHEN + ( - 5 ) THEN 97 WHEN - 73 * + 18 THEN CASE 30 WHEN COUNT ( * ) THEN 2 WHEN 58 THEN NULL WHEN 75 THEN NULL END * 58 END, + 77 * 76 + + 36, 21 + + 32 * + ( 31 * + 10 ) ), + 27 + - 10, ( + 87 ) )
----
5888

query I rowsort
SELECT + 80 * + 8 + + 45 AS col1
----
685

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT CAST( - + 99 AS SIGNED ) * - 0 * + 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-6165
SELECT CAST ( - + 99 AS INTEGER ) * - 0 * + 82 col2
----
0

query I rowsort
SELECT + 56 + 74 AS col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL - SUM( DISTINCT - + 42 ) * + ( - + 71 ) AS col1
----
-2982

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL - SUM ( DISTINCT - + 42 ) * + ( - + 71 ) AS col1
----
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT 47 * + NULLIF ( 41, ( + 41 ) - COUNT( * ) ) * 66 + + 34 AS col0
----
127216

skipif mysql # not compatible
query I rowsort label-6168
SELECT 47 * + NULLIF ( 41, ( + 41 ) - COUNT ( * ) ) * 66 + + 34 AS col0
----
127216

query I rowsort
SELECT DISTINCT - 56 * + 13 AS col1
----
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6170
SELECT ALL - CAST( - ( 60 ) AS SIGNED ) + + - 51
----
9

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL - CAST ( - ( 60 ) AS INTEGER ) + + - 51
----
9

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

query I rowsort
SELECT ALL 78 + + + 66 AS col1
----
144

query I rowsort
SELECT - 84 + - - 27 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6174
SELECT - 5, + 32 - + COUNT( * ) AS col0
----
-5
31

skipif mysql # not compatible
query II rowsort label-6174
SELECT - 5, + 32 - + COUNT ( * ) AS col0
----
-5
31

query I rowsort
SELECT - 55 * 70 col1
----
-3850

query I rowsort
SELECT DISTINCT NULLIF ( 54, - 26 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6177
SELECT ALL + 39 + 38 + 84 * - 58 + - MIN( 5 ) DIV + 87
----
-4795

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL + 39 + 38 + 84 * - 58 + - MIN ( 5 ) / + 87
----
-4795

query I rowsort
SELECT DISTINCT + 21 + + 11 AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT - COALESCE ( + 41, + 86 ) * + + ( + COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-6179
SELECT - COALESCE ( + 41, + 86 ) * + + ( + COUNT ( * ) )
----
-41

query I rowsort
SELECT + 30 * - 51 AS col1
----
-1530

query I rowsort
SELECT ALL + 39 + + NULLIF ( 76, + - 17 ) AS col2
----
115

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

query I rowsort
SELECT DISTINCT NULLIF ( - 42, + - 71 ) AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT + - CAST( + - 72 AS SIGNED ) + - 93 * + 28 AS col0
----
-2532

skipif mysql # not compatible
query I rowsort label-6184
SELECT + - CAST ( + - 72 AS INTEGER ) + - 93 * + 28 AS col0
----
-2532

query I rowsort
SELECT DISTINCT + 79 - + - 29
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT ALL - COUNT( * ) * - COALESCE ( - - 74, + + 21 ) - 86
----
-12

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL - COUNT ( * ) * - COALESCE ( - - 74, + + 21 ) - 86
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT - - MAX( 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6187
SELECT - - MAX ( 26 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT + + COUNT( * ) + + 61
----
62

skipif mysql # not compatible
query I rowsort label-6188
SELECT + + COUNT ( * ) + + 61
----
62

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT ALL + - NULLIF ( - COUNT( * ), MIN( + 53 ) * AVG ( ( - 29 ) ) * - 74 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL + - NULLIF ( - COUNT ( * ), MIN ( + 53 ) * AVG ( ( - 29 ) ) * - 74 ) AS col1
----
1

query I rowsort
SELECT + 91 * + 13
----
1183

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6194
SELECT + + CASE + CAST( NULL AS SIGNED ) WHEN - 98 THEN 6 * 91 WHEN - 71 * - 26 THEN + COUNT( * ) ELSE - 4 * 44 + 29 * - ( - 20 + COALESCE ( + COUNT( * ), 19 + + 35 ) ) END
----
375

skipif mysql # not compatible
query I rowsort label-6194
SELECT + + CASE + CAST ( NULL AS INTEGER ) WHEN - 98 THEN 6 * 91 WHEN - 71 * - 26 THEN + COUNT ( * ) ELSE - 4 * 44 + 29 * - ( - 20 + COALESCE ( + COUNT ( * ), 19 + + 35 ) ) END
----
375

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT + - NULLIF ( + + 50, + - COUNT( * ) ) * + 88 * 39
----
-171600

skipif mysql # not compatible
query I rowsort label-6195
SELECT + - NULLIF ( + + 50, + - COUNT ( * ) ) * + 88 * 39
----
-171600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT + COUNT( * ) * 24 - - - 62 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6198
SELECT + COUNT ( * ) * 24 - - - 62 AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6199
SELECT - - 84 DIV - - COALESCE ( + 20, - + COUNT( * ) * - COUNT( * ), MIN( ALL 53 ) DIV COUNT( * ) + 16 )
----
4

skipif mysql # not compatible
query I rowsort label-6199
SELECT - - 84 / - - COALESCE ( + 20, - + COUNT ( * ) * - COUNT ( * ), MIN ( ALL 53 ) / COUNT ( * ) + 16 )
----
4

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

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

query II rowsort
SELECT + 54 AS col1, CASE ( 47 ) WHEN - NULLIF ( + 96, + 64 * - ( + 66 ) + - 56 ) THEN - 80 * + 94 WHEN 44 / 29 THEN NULL ELSE NULL END
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT ALL - 5 * ( - 37 ) + 66 + + + COUNT( * )
----
252

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL - 5 * ( - 37 ) + 66 + + + COUNT ( * )
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6203
SELECT + CASE 65 WHEN + - CASE 99 WHEN + 58 THEN + - COALESCE ( COUNT( * ), 15 + 89, 64 * 58 + + COUNT( ALL 73 ) ) * - 96 WHEN + 91 THEN NULL ELSE - 71 END * 72 THEN COUNT( * ) + + CAST( NULL AS SIGNED ) END / - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT + CASE 65 WHEN + - CASE 99 WHEN + 58 THEN + - COALESCE ( COUNT ( * ), 15 + 89, 64 * 58 + + COUNT ( ALL 73 ) ) * - 96 WHEN + 91 THEN NULL ELSE - 71 END * 72 THEN COUNT ( * ) + + CAST ( NULL AS INTEGER ) END / - 60
----
NULL

query I rowsort
SELECT DISTINCT + 72 * + + 18 + - 98 + 4 * + 94
----
1574

query I rowsort
SELECT ALL AVG ( 44 ) * CASE WHEN NOT + 68 < + 53 THEN 7 + + CASE 27 WHEN 5 THEN + 4 WHEN 17 * 5 THEN NULL END END + 49
----
NULL

query I rowsort
SELECT + 6 * - 24 + - + 52 AS col0
----
-196

query I rowsort
SELECT ALL 24 * - 77 + - 55
----
-1903

query I rowsort
SELECT ALL 93 * - 85 * - 38 + - ( + + 93 ) col1
----
300297

query I rowsort
SELECT + 6 * + + 61 + - NULLIF ( - 52, + 15 )
----
418

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6210
SELECT + CAST( - - 82 AS SIGNED ) col0, + 21
----
82
21

skipif mysql # not compatible
query II rowsort label-6210
SELECT + CAST ( - - 82 AS INTEGER ) col0, + 21
----
82
21

query I rowsort
SELECT - 25 + + 81
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6212
SELECT ALL ( - CAST( MIN( 1 ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL ( - CAST ( MIN ( 1 ) AS INTEGER ) )
----
-1

query I rowsort
SELECT ALL 30 * + - 71 - 44 + + + 16 AS col2
----
-2158

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

query I rowsort
SELECT ALL + 8 * - 15 * + 46 AS col2
----
-5520

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

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

query I rowsort
SELECT ALL NULLIF ( 29, - 38 ) AS col1
----
29

query I rowsort
SELECT - 71 - + - 22 * - - 81
----
1711

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6219
SELECT - AVG ( ALL - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6219
SELECT - AVG ( ALL - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6220
SELECT ALL - 48 AS col2, COUNT( * ) DIV + 78 AS col0
----
-48
0

skipif mysql # not compatible
query II rowsort label-6220
SELECT ALL - 48 AS col2, COUNT ( * ) / + 78 AS col0
----
-48
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6221
SELECT COALESCE ( + 2, - 23 * - - 95, - 70 * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ), 6 * 24 + + ( + MIN( ALL 54 ) + 46 DIV - NULLIF ( CASE CAST( NULL AS SIGNED ) WHEN - 93 THEN COUNT( * ) WHEN 69 * COUNT( * ) THEN NULL END * 74, COALESCE ( + 27, - 59 ) * + COUNT( * ) ) ), - 53 )
----
2

skipif mysql # not compatible
query I rowsort label-6221
SELECT COALESCE ( + 2, - 23 * - - 95, - 70 * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ), 6 * 24 + + ( + MIN ( ALL 54 ) + 46 / - NULLIF ( CASE CAST ( NULL AS INTEGER ) WHEN - 93 THEN COUNT ( * ) WHEN 69 * COUNT ( * ) THEN NULL END * 74, COALESCE ( + 27, - 59 ) * + COUNT ( * ) ) ), - 53 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6222
SELECT ALL - 94 AS col1, 98 + + + 48 + + - 3 + - ( + 38 ) - + 99 * ( - ( - ( + 20 ) ) ) DIV + COUNT( * ) AS col0
----
-94
-1875

skipif mysql # not compatible
query II rowsort label-6222
SELECT ALL - 94 AS col1, 98 + + + 48 + + - 3 + - ( + 38 ) - + 99 * ( - ( - ( + 20 ) ) ) / + COUNT ( * ) AS col0
----
-94
-1875

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT - COUNT( * ) - + 38 * + 50 AS col2
----
-1901

skipif mysql # not compatible
query I rowsort label-6223
SELECT - COUNT ( * ) - + 38 * + 50 AS col2
----
-1901

onlyif mysql # DIV for integer division: 
query I rowsort label-6224
SELECT - 39 DIV - 24 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6224
SELECT - 39 / - 24 AS col0
----
1

query I rowsort
SELECT + 9 * + 42
----
378

onlyif mysql # aggregate syntax: 
query II rowsort label-6226
SELECT 54 AS col2, + 3 * COUNT( * )
----
54
3

skipif mysql # not compatible
query II rowsort label-6226
SELECT 54 AS col2, + 3 * COUNT ( * )
----
54
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT DISTINCT + + ( - 16 ) DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT + + ( - 16 ) / 48
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6228
SELECT ALL 81 AS col2, - 49 * COUNT( * ) * - 56 AS col0
----
81
2744

skipif mysql # not compatible
query II rowsort label-6228
SELECT ALL 81 AS col2, - 49 * COUNT ( * ) * - 56 AS col0
----
81
2744

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

skipif mysql # not compatible
query I rowsort label-6229
SELECT - MAX ( ALL - 47 )
----
47

query I rowsort
SELECT ALL + 18 * + + 15 + - 92 AS col1
----
178

query II rowsort
SELECT - + 12 - - - 23 AS col2, - 28 + + ( + + 60 ) AS col1
----
-35
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6232
SELECT ALL - 66 AS col0, - NULLIF ( 22, - CASE + 94 WHEN 36 * - 63 THEN ( - 62 ) WHEN + MAX( DISTINCT + NULLIF ( 54, - 33 / - 92 + 22 ) ) + - 42 / 35 THEN NULL ELSE NULL END + COUNT( * ) ) + 54 * + 64 AS col1
----
-66
3434

skipif mysql # not compatible
query II rowsort label-6232
SELECT ALL - 66 AS col0, - NULLIF ( 22, - CASE + 94 WHEN 36 * - 63 THEN ( - 62 ) WHEN + MAX ( DISTINCT + NULLIF ( 54, - 33 / - 92 + 22 ) ) + - 42 / 35 THEN NULL ELSE NULL END + COUNT ( * ) ) + 54 * + 64 AS col1
----
-66
3434

query I rowsort
SELECT ALL - - NULLIF ( - 64, - 45 * 58 + - 60 ) * + + 53 AS col1
----
-3392

query II rowsort
SELECT 28 AS col1, 79 + 62 * - - 28 * + + 64 - 50
----
28
111133

query I rowsort
SELECT - - 93 * 76 * + - 29 AS col1
----
-204972

query I rowsort
SELECT + 25 * - 61 + - 52 + + 39 col2
----
-1538

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6237
SELECT ALL + + 43 DIV + MIN( + 36 ) + + COALESCE ( + - 79, + ( 90 ) * 16, - 20 ) - 51
----
-129

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL + + 43 / + MIN ( + 36 ) + + COALESCE ( + - 79, + ( 90 ) * 16, - 20 ) - 51
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT - 64 + + 1 DIV + 31 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6238
SELECT - 64 + + 1 / + 31 AS col0
----
-64

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6241
SELECT - 21 DIV - MIN( DISTINCT 58 ) + - 89 + - 43 * - 99
----
4168

skipif mysql # not compatible
query I rowsort label-6241
SELECT - 21 / - MIN ( DISTINCT 58 ) + - 89 + - 43 * - 99
----
4168

query I rowsort
SELECT ALL + + 13 + + 83 col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6243
SELECT DISTINCT - 84 AS col2, COUNT( * ) DIV COUNT( ALL - 66 ) AS col1
----
-84
1

skipif mysql # not compatible
query II rowsort label-6243
SELECT DISTINCT - 84 AS col2, COUNT ( * ) / COUNT ( ALL - 66 ) AS col1
----
-84
1

query I rowsort
SELECT 57 + - - 73 AS col1
----
130

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6245
SELECT + CAST( - + 36 AS DECIMAL ) * - - 35 * 92 - 27 + 13 - 23 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT + CAST ( - + 36 AS REAL ) * - - 35 * 92 - 27 + 13 - 23 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6246
SELECT DISTINCT 8 + COUNT( * ), 54 + + 69 + + 71 * 91 * CAST( NULL AS SIGNED ) AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-6246
SELECT DISTINCT 8 + COUNT ( * ), 54 + + 69 + + 71 * 91 * CAST ( NULL AS INTEGER ) AS col0
----
9
NULL

query I rowsort
SELECT ALL 43 + + + 64
----
107

query I rowsort
SELECT 57 * - 84
----
-4788

query I rowsort
SELECT 92 * - + 32 * + + 23 AS col0
----
-67712

query I rowsort
SELECT ALL 61 * - 71 AS col0
----
-4331

query II rowsort
SELECT 82 * 61 AS col1, NULLIF ( + - 14, 32 ) + 14 AS col2
----
5002
0

query I rowsort
SELECT ALL + COALESCE ( + 70, + 61 ) - - 63 AS col1
----
133

onlyif mysql # DIV for integer division: 
query II rowsort label-6253
SELECT 1 DIV - + 54 AS col2, + 5 AS col1
----
0
5

skipif mysql # not compatible
query II rowsort label-6253
SELECT 1 / - + 54 AS col2, + 5 AS col1
----
0
5

query I rowsort
SELECT 72 * - - 89
----
6408

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT 8 * - - COUNT( * ) * + + 66
----
528

skipif mysql # not compatible
query I rowsort label-6255
SELECT 8 * - - COUNT ( * ) * + + 66
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT ALL MAX( - + 22 ) - - 86
----
64

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL MAX ( - + 22 ) - - 86
----
64

query I rowsort
SELECT ( - - 88 ) * + - 28 - - 67 * 79 + - 30 - + 52 AS col0
----
2747

query I rowsort
SELECT DISTINCT - ( - - 81 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT ( 28 ) + - 85 + 2 * + - ( + CAST( - - 25 AS SIGNED ) ) + - 0 AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-6259
SELECT ( 28 ) + - 85 + 2 * + - ( + CAST ( - - 25 AS INTEGER ) ) + - 0 AS col2
----
-107

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT + NULLIF ( 65, + MIN( - 94 ) ) + ( + 28 )
----
93

skipif mysql # not compatible
query I rowsort label-6261
SELECT + NULLIF ( 65, + MIN ( - 94 ) ) + ( + 28 )
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL - - SUM( DISTINCT + 83 ) * - - 50 AS col2
----
4150

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL - - SUM ( DISTINCT + 83 ) * - - 50 AS col2
----
4150

query I rowsort
SELECT DISTINCT + + 3 + + ( - COALESCE ( + 43, 37, + - 82 + 78 + 35 ) )
----
-40

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6266
SELECT ALL + 37 + 65 + 18 - 92 * + 26 * COALESCE ( - NULLIF ( 56, ( + CAST( + COUNT( DISTINCT + 62 ) AS SIGNED ) ) ), CAST( 55 AS SIGNED ), + 7 ) * ( + 3 ) AS col2
----
401976

skipif mysql # not compatible
query I rowsort label-6266
SELECT ALL + 37 + 65 + 18 - 92 * + 26 * COALESCE ( - NULLIF ( 56, ( + CAST ( + COUNT ( DISTINCT + 62 ) AS INTEGER ) ) ), CAST ( 55 AS INTEGER ), + 7 ) * ( + 3 ) AS col2
----
401976

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT ALL - + 90 DIV + 93 - 83 + 11 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL - + 90 / + 93 - 83 + 11 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT ALL - 51 + - CASE - 47 WHEN + 11 THEN - COUNT( * ) WHEN - - COUNT( * ) THEN 87 ELSE MIN( ALL - 30 ) + COUNT( * ) END + + COALESCE ( - NULLIF ( - 69, 56 ), - COUNT( * ), + COALESCE ( + 36, ( 34 ) + 18 ) ) * + 61 AS col0
----
4187

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL - 51 + - CASE - 47 WHEN + 11 THEN - COUNT ( * ) WHEN - - COUNT ( * ) THEN 87 ELSE MIN ( ALL - 30 ) + COUNT ( * ) END + + COALESCE ( - NULLIF ( - 69, 56 ), - COUNT ( * ), + COALESCE ( + 36, ( 34 ) + 18 ) ) * + 61 AS col0
----
4187

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT DISTINCT + 92 + - CASE 87 WHEN ( + COUNT( * ) ) THEN - COUNT( * ) WHEN - 29 * - 18 THEN - 18 + COALESCE ( + 35, + ( + COUNT( * ) ) * 38 ) ELSE NULL END + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT + 92 + - CASE 87 WHEN ( + COUNT ( * ) ) THEN - COUNT ( * ) WHEN - 29 * - 18 THEN - 18 + COALESCE ( + 35, + ( + COUNT ( * ) ) * 38 ) ELSE NULL END + 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT DISTINCT - + 48 DIV - + ( 10 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT - + 48 / - + ( 10 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT ALL 28 + - 16 + - + 71 * - - SUM( - ( + 12 ) ) AS col1
----
864

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL 28 + - 16 + - + 71 * - - SUM ( - ( + 12 ) ) AS col1
----
864

query I rowsort
SELECT DISTINCT + 12 * - 42 + - 36 col2
----
-540

onlyif mysql # aggregate syntax: 
query II rowsort label-6273
SELECT DISTINCT + SUM( - + 45 ) + - + MIN( ALL 70 ) AS col2, + 38 AS col0
----
-115
38

skipif mysql # not compatible
query II rowsort label-6273
SELECT DISTINCT + SUM ( - + 45 ) + - + MIN ( ALL 70 ) AS col2, + 38 AS col0
----
-115
38

query I rowsort
SELECT 38 * + + 7 AS col0
----
266

query I rowsort
SELECT DISTINCT - 7 * + + 30 AS col0
----
-210

query I rowsort
SELECT ALL + 52 + 81 AS col0
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT 52 DIV + - 34 - - 44 - 93 + - 23 + + 23 * 24
----
479

skipif mysql # not compatible
query I rowsort label-6277
SELECT 52 / + - 34 - - 44 - 93 + - 23 + + 23 * 24
----
479

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6278
SELECT 66, - CAST( + + 14 AS SIGNED ) AS col0
----
66
-14

skipif mysql # not compatible
query II rowsort label-6278
SELECT 66, - CAST ( + + 14 AS INTEGER ) AS col0
----
66
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT MAX( DISTINCT - + 3 ) * + - COUNT( * ) - + 94 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6280
SELECT MAX ( DISTINCT - + 3 ) * + - COUNT ( * ) - + 94 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL - 53 - + - 44 + + 44 * - COUNT( * ) + + 64 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL - 53 - + - 44 + + 44 * - COUNT ( * ) + + 64 AS col2
----
11

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

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

query I rowsort
SELECT DISTINCT - 35 * + - 91 AS col0
----
3185

onlyif mysql # aggregate syntax: 
query II rowsort label-6284
SELECT ALL - NULLIF ( + COUNT( * ), + 99 + - 22 ), + COALESCE ( + 81, - 43 ) col0
----
-1
81

skipif mysql # not compatible
query II rowsort label-6284
SELECT ALL - NULLIF ( + COUNT ( * ), + 99 + - 22 ), + COALESCE ( + 81, - 43 ) col0
----
-1
81

query I rowsort
SELECT 92 * + - 29 col2
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT - ( 84 ) * 63 * - - 5 - - MAX( DISTINCT 72 ) - + COUNT( * ) + - 97 * + 13
----
-27650

skipif mysql # not compatible
query I rowsort label-6286
SELECT - ( 84 ) * 63 * - - 5 - - MAX ( DISTINCT 72 ) - + COUNT ( * ) + - 97 * + 13
----
-27650

onlyif mysql # DIV for integer division: 
query I rowsort label-6287
SELECT ALL 54 DIV - 4 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL 54 / - 4 AS col0
----
-13

query I rowsort
SELECT 82 * + + ( 16 ) * - 80 AS col0
----
-104960

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

skipif mysql # not compatible
query I rowsort label-6289
SELECT + MAX ( - - 5 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6290
SELECT + MAX( ALL + 62 ) * + 85 * - CASE 60 WHEN - 98 + - + 0 THEN - 30 WHEN 57 THEN NULL WHEN + 75 + - ( + 32 + 37 ) THEN 58 ELSE CAST( 75 AS SIGNED ) END + 29 * - COALESCE ( + 16, + 8 * 41 ) AS col0
----
-395714

skipif mysql # not compatible
query I rowsort label-6290
SELECT + MAX ( ALL + 62 ) * + 85 * - CASE 60 WHEN - 98 + - + 0 THEN - 30 WHEN 57 THEN NULL WHEN + 75 + - ( + 32 + 37 ) THEN 58 ELSE CAST ( 75 AS INTEGER ) END + 29 * - COALESCE ( + 16, + 8 * 41 ) AS col0
----
-395714

query I rowsort
SELECT 67 * + 39
----
2613

query I rowsort
SELECT DISTINCT - 40 * + - 97 + + 81 * 40 AS col0
----
7120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6293
SELECT ALL COUNT( * ) * - 13 * + - COALESCE ( - 6, + 92 * + + ( COUNT( 16 ) ) + 73 * - 74 + + 63 ) DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL COUNT ( * ) * - 13 * + - COALESCE ( - 6, + 92 * + + ( COUNT ( 16 ) ) + 73 * - 74 + + 63 ) / - 80 AS col2
----
0

query I rowsort
SELECT DISTINCT - 48 + + 8 * + - 61 AS col1
----
-536

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT - CAST( NULL AS SIGNED ) * 31 * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT - CAST ( NULL AS INTEGER ) * 31 * 36
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6298
SELECT - NULLIF ( - 29, 94 * 87 * + + NULLIF ( - 64, 80 ) * CAST( - 57 AS SIGNED ) + 15 + COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-6298
SELECT - NULLIF ( - 29, 94 * 87 * + + NULLIF ( - 64, 80 ) * CAST ( - 57 AS INTEGER ) + 15 + COUNT ( * ) )
----
29

query I rowsort
SELECT + NULLIF ( 15, - COALESCE ( - 19, + 72, 77, + 97 ) ) - 57 + + 0
----
-42

query I rowsort
SELECT + - 60 * + 79 * - + ( 29 ) + 82 AS col2
----
137542

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6302
SELECT DISTINCT - - SUM( 49 ) + CASE + 89 WHEN - 62 THEN NULL ELSE + 14 END + + CAST( 62 AS SIGNED ) DIV SUM( - 65 )
----
63

skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT - - SUM ( 49 ) + CASE + 89 WHEN - 62 THEN NULL ELSE + 14 END + + CAST ( 62 AS INTEGER ) / SUM ( - 65 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL 43 * - 34 + + COUNT( * ) + + + COUNT( * )
----
-1460

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL 43 * - 34 + + COUNT ( * ) + + + COUNT ( * )
----
-1460

query I rowsort
SELECT - 82 - - 39 + + 62 AS col0
----
19

query II rowsort
SELECT - - 54 AS col1, 39 + + 2 * 96
----
54
231

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT DISTINCT + 72 + MIN( DISTINCT + 58 ) + + - 63 * + 47 - 2
----
-2833

skipif mysql # not compatible
query I rowsort label-6306
SELECT DISTINCT + 72 + MIN ( DISTINCT + 58 ) + + - 63 * + 47 - 2
----
-2833

query I rowsort
SELECT ALL - 14 + 72 AS col2
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6308
SELECT + 56 + - CAST( NULL AS DECIMAL ) * + - 41 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6309
SELECT ALL - 20 - + 30 * 42 + 64 col1, - SUM( DISTINCT + 25 ) col0
----
-1216
-25

skipif mysql # not compatible
query II rowsort label-6309
SELECT ALL - 20 - + 30 * 42 + 64 col1, - SUM ( DISTINCT + 25 ) col0
----
-1216
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6310
SELECT + 73 + - ( - NULLIF ( - COUNT( * ), - COALESCE ( + - COUNT( * ), - + COUNT( * ) ) + - - CAST( NULL AS SIGNED ) * + - 58 - + 34 ) ) DIV 66 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-6310
SELECT + 73 + - ( - NULLIF ( - COUNT ( * ), - COALESCE ( + - COUNT ( * ), - + COUNT ( * ) ) + - - CAST ( NULL AS INTEGER ) * + - 58 - + 34 ) ) / 66 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT + CASE + 75 WHEN - SUM( ALL 66 ) * + ( 9 ) + - 64 - - COALESCE ( - - MIN( ALL 41 ), + 59 * - MIN( ALL 88 ) - + 74 * 54 ) * 7 THEN NULL ELSE COUNT( DISTINCT 89 ) END
----
1

skipif mysql # not compatible
query I rowsort label-6311
SELECT + CASE + 75 WHEN - SUM ( ALL 66 ) * + ( 9 ) + - 64 - - COALESCE ( - - MIN ( ALL 41 ), + 59 * - MIN ( ALL 88 ) - + 74 * 54 ) * 7 THEN NULL ELSE COUNT ( DISTINCT 89 ) END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT COALESCE ( - + 34, 44 * + - 79 + - 92 DIV - - 92, - 37 * + + ( + 12 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-6312
SELECT COALESCE ( - + 34, 44 * + - 79 + - 92 / - - 92, - 37 * + + ( + 12 ) )
----
-34

query I rowsort
SELECT + 88 * 11 + - - 13 AS col1
----
981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6314
SELECT COALESCE ( 38, - 65, - - CAST( NULL AS SIGNED ) ), - 72 * - - 16 * + COUNT( DISTINCT + 50 ) AS col0
----
38
-1152

skipif mysql # not compatible
query II rowsort label-6314
SELECT COALESCE ( 38, - 65, - - CAST ( NULL AS INTEGER ) ), - 72 * - - 16 * + COUNT ( DISTINCT + 50 ) AS col0
----
38
-1152

onlyif mysql # aggregate syntax: 
query II rowsort label-6315
SELECT DISTINCT + SUM( ALL + 62 ) AS col1, 21
----
62
21

skipif mysql # not compatible
query II rowsort label-6315
SELECT DISTINCT + SUM ( ALL + 62 ) AS col1, 21
----
62
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6316
SELECT DISTINCT SUM( ALL - 16 ) * - - 28 - + 60 - + + SUM( DISTINCT - 97 ) + - 19 + - COUNT( * ) * + - CAST( NULL AS SIGNED ) + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT SUM ( ALL - 16 ) * - - 28 - + 60 - + + SUM ( DISTINCT - 97 ) + - 19 + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT DISTINCT + COALESCE ( MIN( + + 59 ), + - 50 )
----
59

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT + COALESCE ( MIN ( + + 59 ), + - 50 )
----
59

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

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

query I rowsort
SELECT ALL 25 * 24 * - - 19 - + 33
----
11367

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6320
SELECT - CASE + CASE + 22 WHEN - 71 THEN COUNT( * ) END WHEN + 33 THEN NULL ELSE - 24 * - 72 DIV - 9 + 95 * - 72 END + 14
----
7046

skipif mysql # not compatible
query I rowsort label-6320
SELECT - CASE + CASE + 22 WHEN - 71 THEN COUNT ( * ) END WHEN + 33 THEN NULL ELSE - 24 * - 72 / - 9 + 95 * - 72 END + 14
----
7046

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6321
SELECT ALL + 94 DIV + 97 AS col2, 17 + + + CAST( - - 93 AS SIGNED ) + + - 43 DIV + 51 * + - ( + + 80 )
----
0
110

skipif mysql # not compatible
query II rowsort label-6321
SELECT ALL + 94 / + 97 AS col2, 17 + + + CAST ( - - 93 AS INTEGER ) + + - 43 / + 51 * + - ( + + 80 )
----
0
110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT DISTINCT + 76 / - CASE 71 WHEN - + 33 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT + 76 / - CASE 71 WHEN - + 33 THEN - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6324
SELECT - 83 * + - COUNT( * ) AS col1, + AVG ( - + 70 ) * + CASE + - MAX( - 56 ) WHEN + 95 THEN NULL WHEN - + COUNT( * ) THEN NULL WHEN 88 THEN 86 / 78 ELSE NULL END - CASE + 34 + + 60 * 28 WHEN 52 * - 42 THEN NULL WHEN + 5 THEN 35 WHEN 55 THEN NULL WHEN 38 THEN CAST( - 11 AS SIGNED ) * + AVG ( - 46 - + ( 89 ) * - 9 ) ELSE COUNT( * ) END
----
83
NULL

skipif mysql # not compatible
query II rowsort label-6324
SELECT - 83 * + - COUNT ( * ) AS col1, + AVG ( - + 70 ) * + CASE + - MAX ( - 56 ) WHEN + 95 THEN NULL WHEN - + COUNT ( * ) THEN NULL WHEN 88 THEN 86 / 78 ELSE NULL END - CASE + 34 + + 60 * 28 WHEN 52 * - 42 THEN NULL WHEN + 5 THEN 35 WHEN 55 THEN NULL WHEN 38 THEN CAST ( - 11 AS INTEGER ) * + AVG ( - 46 - + ( 89 ) * - 9 ) ELSE COUNT ( * ) END
----
83
NULL

query I rowsort
SELECT NULLIF ( - 17, - 64 * - 87 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT - CASE 74 WHEN 31 THEN - CASE - 56 WHEN - 46 + - ( + 40 ) THEN + ( + 33 ) WHEN 63 THEN NULL ELSE 40 * NULLIF ( 1, + COUNT( 3 ) ) END * CASE + 37 + 62 * NULLIF ( 22, - 11 ) WHEN + ( 59 ) * - 24 THEN 67 WHEN 47 THEN 14 ELSE NULL END ELSE NULL END / 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT - CASE 74 WHEN 31 THEN - CASE - 56 WHEN - 46 + - ( + 40 ) THEN + ( + 33 ) WHEN 63 THEN NULL ELSE 40 * NULLIF ( 1, + COUNT ( 3 ) ) END * CASE + 37 + 62 * NULLIF ( 22, - 11 ) WHEN + ( 59 ) * - 24 THEN 67 WHEN 47 THEN 14 ELSE NULL END ELSE NULL END / 6
----
NULL

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

query I rowsort
SELECT NULLIF ( + + 64, + - 88 * + 40 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6329
SELECT - 53 + 63 AS col2, 75 + - - 77 * + COUNT( * ) * - 89
----
10
-6778

skipif mysql # not compatible
query II rowsort label-6329
SELECT - 53 + 63 AS col2, 75 + - - 77 * + COUNT ( * ) * - 89
----
10
-6778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6330
SELECT ALL + NULLIF ( - 17, + 3 * CASE + + 88 WHEN - 23 THEN + + ( - + 84 ) * - COUNT( * ) * - CASE CAST( NULL AS SIGNED ) WHEN + 59 + 5 THEN NULL ELSE - 27 END END )
----
-17

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL + NULLIF ( - 17, + 3 * CASE + + 88 WHEN - 23 THEN + + ( - + 84 ) * - COUNT ( * ) * - CASE CAST ( NULL AS INTEGER ) WHEN + 59 + 5 THEN NULL ELSE - 27 END END )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT DISTINCT - COUNT( * ) * + 83 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT - COUNT ( * ) * + 83 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL - - NULLIF ( + COUNT( * ), - 42 ) * ( - + 67 ) * - - 81 + 58 + - - 29 * + 79 + 32
----
-3046

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL - - NULLIF ( + COUNT ( * ), - 42 ) * ( - + 67 ) * - - 81 + 58 + - - 29 * + 79 + 32
----
-3046

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

skipif mysql # not compatible
query I rowsort label-6333
SELECT COALESCE ( + COUNT ( * ), 43 ) AS col2
----
1

query I rowsort
SELECT ALL + - 30 * - 81 + + 89 - 28
----
2491

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT + + COUNT( * ) + + 15 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6335
SELECT + + COUNT ( * ) + + 15 AS col0
----
16

query I rowsort
SELECT + - 50 * - + 76 * 55 * - ( 87 ) col2
----
-18183000

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

query I rowsort
SELECT ALL 47 + + CASE + 91 WHEN 18 / 1 * 42 + - 76 THEN - 74 END * 72 AS col2
----
NULL

query I rowsort
SELECT 64 * - + ( + 57 ) + - - 74
----
-3574

query I rowsort
SELECT - - 6 * + 82 AS col1
----
492

query I rowsort
SELECT ALL 61 * + - 92 * - 60
----
336720

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT + ( + 67 ) + - COALESCE ( + + 49, - 13 * - 36 DIV + - 14 )
----
18

skipif mysql # not compatible
query I rowsort label-6342
SELECT + ( + 67 ) + - COALESCE ( + + 49, - 13 * - 36 / + - 14 )
----
18

query II rowsort
SELECT ALL + - 81 + - 62 * + ( 54 ) AS col1, - 74
----
-3429
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6344
SELECT ALL - 3 + - + NULLIF ( + MIN( + + 11 ), - - 19 + - 2 + - 9 * 21 * - + 24 - COUNT( * ) * + 9 ) DIV 27
----
-3

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL - 3 + - + NULLIF ( + MIN ( + + 11 ), - - 19 + - 2 + - 9 * 21 * - + 24 - COUNT ( * ) * + 9 ) / 27
----
-3

query II rowsort
SELECT DISTINCT ( + - 83 ) AS col0, + 65
----
-83
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL 27 * 59 / - CASE - - COUNT( * ) WHEN ( - COUNT( * ) ) THEN - 50 WHEN + + 98 + 76 THEN 51 * 88 WHEN COUNT( * ) / + 92 + ( 36 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL 27 * 59 / - CASE - - COUNT ( * ) WHEN ( - COUNT ( * ) ) THEN - 50 WHEN + + 98 + 76 THEN 51 * 88 WHEN COUNT ( * ) / + 92 + ( 36 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT DISTINCT COUNT( * ) + - + 22 * + - NULLIF ( COALESCE ( + + COUNT( * ), + 25 + - + COUNT( * ) * + + 86 * - + 52 + 59 ), SUM( ALL + 96 ) * + 10 - + 72 / 99 )
----
23

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT COUNT ( * ) + - + 22 * + - NULLIF ( COALESCE ( + + COUNT ( * ), + 25 + - + COUNT ( * ) * + + 86 * - + 52 + 59 ), SUM ( ALL + 96 ) * + 10 - + 72 / 99 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT + + NULLIF ( CASE + 29 WHEN - 51 + - - 13 * + 93 * 95 THEN - - 80 + + COUNT( * ) + - COALESCE ( COUNT( * ), 61 ) / - ( + 43 ) ELSE NULL END, - 33 ) + - NULLIF ( + 80 + 42, - 35 + + 46 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT + + NULLIF ( CASE + 29 WHEN - 51 + - - 13 * + 93 * 95 THEN - - 80 + + COUNT ( * ) + - COALESCE ( COUNT ( * ), 61 ) / - ( + 43 ) ELSE NULL END, - 33 ) + - NULLIF ( + 80 + 42, - 35 + + 46 ) col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 61, - 47 )
----
61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6350
SELECT + + 79 * - 53 * 56 + NULLIF ( - ( - 52 ), - - 13 ) * + + CAST( NULL AS DECIMAL ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT + + 79 * - 53 * 56 + NULLIF ( - ( - 52 ), - - 13 ) * + + CAST ( NULL AS REAL ) + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT + - 74 + - 45 + COUNT( * ) AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-6351
SELECT + - 74 + - 45 + COUNT ( * ) AS col0
----
-118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6352
SELECT DISTINCT MIN( DISTINCT - ( 63 ) ) / - - CASE + 84 WHEN - CAST( NULL AS DECIMAL ) * - 67 THEN - 99 + - 79 END / COUNT( DISTINCT 40 + 50 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT MIN ( DISTINCT - ( 63 ) ) / - - CASE + 84 WHEN - CAST ( NULL AS REAL ) * - 67 THEN - 99 + - 79 END / COUNT ( DISTINCT 40 + 50 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL MAX( + 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL MAX ( + 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT ALL MAX( 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL MAX ( 49 ) AS col2
----
49

query I rowsort
SELECT ALL - 89 * + - 46 AS col1
----
4094

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6357
SELECT CAST( NULL AS SIGNED ), 13 * - 25 AS col1
----
NULL
-325

skipif mysql # not compatible
query II rowsort label-6357
SELECT CAST ( NULL AS INTEGER ), 13 * - 25 AS col1
----
NULL
-325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6358
SELECT + CAST( NULL AS SIGNED ) AS col2, + COUNT( - 69 ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6358
SELECT + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( - 69 ) AS col1
----
NULL
1

query I rowsort
SELECT - 25 * + + 3 AS col0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6360
SELECT ALL - 71 DIV 10 + - 46 * - 93 * + COUNT( * ) AS col0
----
4271

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL - 71 / 10 + - 46 * - 93 * + COUNT ( * ) AS col0
----
4271

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6361
SELECT DISTINCT 70 DIV 68 + - - COUNT( ALL + - 98 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT 70 / 68 + - - COUNT ( ALL + - 98 ) AS col0
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6362
SELECT ALL + 27 / + ( - - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL + 27 / + ( - - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6363
SELECT DISTINCT - 88 DIV + COALESCE ( - 9, MAX( DISTINCT + + 36 ), + NULLIF ( + ( - + 19 ), + CAST( + 54 AS DECIMAL ) ) ) + + 74 * 58 AS col1
----
4301

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT - 88 / + COALESCE ( - 9, MAX ( DISTINCT + + 36 ), + NULLIF ( + ( - + 19 ), + CAST ( + 54 AS REAL ) ) ) + + 74 * 58 AS col1
----
4301

query I rowsort
SELECT DISTINCT - 10 * 67 + 60 AS col2
----
-610

query I rowsort
SELECT + + ( + - NULLIF ( - 74, - 13 * - - 45 * CASE - 6 WHEN NULLIF ( - 63, 81 * - 1 ) THEN ( CASE - 61 WHEN - 40 THEN NULL WHEN 50 + - 6 THEN 28 ELSE - 60 END ) + + COALESCE ( - 29, 37 + - 70 / ( 3 ) ) END + 50 ) ) + + 46 * 73 AS col1
----
3432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6366
SELECT - + 96 - + + CASE - ( 60 ) WHEN CAST( NULL AS SIGNED ) THEN + ( - 93 ) + 12 - 53 END * + + 75 * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT - + 96 - + + CASE - ( 60 ) WHEN CAST ( NULL AS INTEGER ) THEN + ( - 93 ) + 12 - 53 END * + + 75 * + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL + + 59 * + + COUNT( * ) AS col0
----
59

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

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

query I rowsort
SELECT DISTINCT + 57 * + 58 AS col0
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ALL - + COUNT( * ) * + CASE - 52 WHEN ( 41 ) * + 76 * - + COUNT( * ) * - + COUNT( * ) THEN 26 * 86 WHEN MIN( DISTINCT 88 ) * + 84 + + 0 * - ( + 97 ) THEN NULL ELSE 90 + + 76 END AS col2
----
-166

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL - + COUNT ( * ) * + CASE - 52 WHEN ( 41 ) * + 76 * - + COUNT ( * ) * - + COUNT ( * ) THEN 26 * 86 WHEN MIN ( DISTINCT 88 ) * + 84 + + 0 * - ( + 97 ) THEN NULL ELSE 90 + + 76 END AS col2
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT ALL + + 83 + + + ( - + 43 ) * ( + - MAX( DISTINCT - - 23 ) ) + - 91 AS col1
----
981

skipif mysql # not compatible
query I rowsort label-6371
SELECT ALL + + 83 + + + ( - + 43 ) * ( + - MAX ( DISTINCT - - 23 ) ) + - 91 AS col1
----
981

query I rowsort
SELECT 68 + - COALESCE ( + + 34, + 18 ) + - + 10 + + + 56 col1
----
80

query II rowsort
SELECT DISTINCT - 27 AS col0, 27 + 0 AS col1
----
-27
27

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

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL + - COUNT ( + 14 ) * - 68 AS col1
----
68

query II rowsort
SELECT ALL NULLIF ( + 84, 84 ), 72 * + CASE - 70 WHEN + + 44 THEN ( - - 78 ) ELSE NULL END * - 90 - - 45 + ( 91 + - ( + 82 ) )
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 72 - + 9 + + 93
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6377
SELECT ALL + MAX( + - CAST( - 4 AS SIGNED ) )
----
4

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + MAX ( + - CAST ( - 4 AS INTEGER ) )
----
4

query I rowsort
SELECT - ( 29 ) * - 77
----
2233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6379
SELECT 14 * - - 23 + COUNT( * ) * + CAST( - 58 AS SIGNED ) AS col2
----
264

skipif mysql # not compatible
query I rowsort label-6379
SELECT 14 * - - 23 + COUNT ( * ) * + CAST ( - 58 AS INTEGER ) AS col2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT ALL 61 * CASE - 40 WHEN - 32 * + 33 * - COUNT( * ) * 53 / - 91 + + + 18 THEN + - ( ( ( 88 ) ) ) + - 9 WHEN + COUNT( * ) / + COUNT( ( 60 ) ) + + 56 THEN 6 + + 54 END - + 39 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL 61 * CASE - 40 WHEN - 32 * + 33 * - COUNT ( * ) * 53 / - 91 + + + 18 THEN + - ( ( ( 88 ) ) ) + - 9 WHEN + COUNT ( * ) / + COUNT ( ( 60 ) ) + + 56 THEN 6 + + 54 END - + 39 col2
----
NULL

query I rowsort
SELECT - 31 - - 69 + + 18 col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT 45 / 10 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6382
SELECT 45 / 10 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6383
SELECT 63, + 4 DIV - 37 AS col0
----
63
0

skipif mysql # not compatible
query II rowsort label-6383
SELECT 63, + 4 / - 37 AS col0
----
63
0

query II rowsort
SELECT DISTINCT 43 * - 30 AS col2, 97 AS col2
----
-1290
97

query I rowsort
SELECT ALL 2 * + 32 AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6386
SELECT - 47 DIV - 13 + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6386
SELECT - 47 / - 13 + - COUNT ( * )
----
2

query I rowsort
SELECT ALL 95 + - + 61 + - 54 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6388
SELECT DISTINCT + NULLIF ( - 76, - 28 + + CAST( NULL AS SIGNED ) ) * 88 DIV COALESCE ( - 91, - COUNT( * ) * - COUNT( * ) * 3 - + COUNT( * ) + 89 * 73, + 37 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT + NULLIF ( - 76, - 28 + + CAST ( NULL AS INTEGER ) ) * 88 / COALESCE ( - 91, - COUNT ( * ) * - COUNT ( * ) * 3 - + COUNT ( * ) + 89 * 73, + 37 ) AS col0
----
73

query I rowsort
SELECT ( 18 ) * + + NULLIF ( - 26, - CASE + + 42 WHEN 35 THEN 67 END )
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL SUM( DISTINCT - 99 ) + + 24 + - + ( 20 ) + + 86 + 64 * - 26
----
-1673

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL SUM ( DISTINCT - 99 ) + + 24 + - + ( 20 ) + + 86 + 64 * - 26
----
-1673

query I rowsort
SELECT ALL + ( - 62 ) + - + 16 + - 41 * + 44 AS col1
----
-1882

query I rowsort
SELECT ( - 38 ) + - 75 col1
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6393
SELECT ALL CASE + + 70 WHEN + CAST( NULL AS SIGNED ) * + - 15 THEN - + 52 END * - 0 AS col0, 65 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-6393
SELECT ALL CASE + + 70 WHEN + CAST ( NULL AS INTEGER ) * + - 15 THEN - + 52 END * - 0 AS col0, 65 AS col0
----
NULL
65

query II rowsort
SELECT + 76 AS col0, + 87 - + 96
----
76
-9

query II rowsort
SELECT + + 99 AS col2, - 70 col1
----
99
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT - CASE 26 WHEN + COALESCE ( - 89, + 69 * - - COUNT( * ) ) THEN + - COUNT( * ) ELSE NULL END * - 38 + + COUNT( - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6396
SELECT - CASE 26 WHEN + COALESCE ( - 89, + 69 * - - COUNT ( * ) ) THEN + - COUNT ( * ) ELSE NULL END * - 38 + + COUNT ( - 63 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6398
SELECT 40, - COALESCE ( + 34, 30 + + + AVG ( - 30 ) * - 74 * 97 DIV + SUM( DISTINCT - 72 ) ) DIV - 10 + + 97 col1
----
40
100

skipif mysql # not compatible
query II rowsort label-6398
SELECT 40, - COALESCE ( + 34, 30 + + + AVG ( - 30 ) * - 74 * 97 / + SUM ( DISTINCT - 72 ) ) / - 10 + + 97 col1
----
40
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT - CASE - 3 WHEN - COUNT( * ) * - - 13 * - NULLIF ( + - 0, + 43 + - 31 + + + 46 ) THEN - - 69 + CASE ( COUNT( ALL + 36 ) ) WHEN 23 THEN NULL WHEN - 77 * + 46 + + MIN( ALL + 45 ) / + ( - COUNT( * ) + + 59 ) THEN NULL WHEN 24 / 94 + NULLIF ( + COALESCE ( + ( SUM( ALL 42 ) ), 32 ), 52 ) THEN - COUNT( * ) * - 55 + 12 END WHEN MAX( DISTINCT 10 ) + - 39 THEN NULL ELSE - 26 + 74 END AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-6399
SELECT - CASE - 3 WHEN - COUNT ( * ) * - - 13 * - NULLIF ( + - 0, + 43 + - 31 + + + 46 ) THEN - - 69 + CASE ( COUNT ( ALL + 36 ) ) WHEN 23 THEN NULL WHEN - 77 * + 46 + + MIN ( ALL + 45 ) / + ( - COUNT ( * ) + + 59 ) THEN NULL WHEN 24 / 94 + NULLIF ( + COALESCE ( + ( SUM ( ALL 42 ) ), 32 ), 52 ) THEN - COUNT ( * ) * - 55 + 12 END WHEN MAX ( DISTINCT 10 ) + - 39 THEN NULL ELSE - 26 + 74 END AS col2
----
-48

query II rowsort
SELECT DISTINCT - - 78, + 52 AS col1
----
78
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6401
SELECT ALL + 9 - 8 - 92 + - 34 + + 21 * - CASE + CAST( - 41 AS SIGNED ) WHEN + 38 THEN + 2 - 52 ELSE NULL END * 77 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL + 9 - 8 - 92 + - 34 + + 21 * - CASE + CAST ( - 41 AS INTEGER ) WHEN + 38 THEN + 2 - 52 ELSE NULL END * 77 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6402
SELECT ALL - 18 DIV 23 * + - ( - + 81 ) * - 42 * - - 17 AS col0, 46 - - 8 * COUNT( + - 53 ) + + + 80 * COUNT( DISTINCT 43 )
----
0
134

skipif mysql # not compatible
query II rowsort label-6402
SELECT ALL - 18 / 23 * + - ( - + 81 ) * - 42 * - - 17 AS col0, 46 - - 8 * COUNT ( + - 53 ) + + + 80 * COUNT ( DISTINCT 43 )
----
0
134

query I rowsort
SELECT - 79 * 63
----
-4977

onlyif mysql # aggregate syntax: 
query II rowsort label-6404
SELECT - 53 * 43 * - - SUM( 72 ) + - - CASE COUNT( * ) WHEN - + 71 THEN ( - 81 ) END, - 10 * + 9 AS col2
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-6404
SELECT - 53 * 43 * - - SUM ( 72 ) + - - CASE COUNT ( * ) WHEN - + 71 THEN ( - 81 ) END, - 10 * + 9 AS col2
----
NULL
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6405
SELECT - CASE ( + 94 ) WHEN 96 - + 71 * - + CASE + - COUNT( * ) WHEN + 38 THEN - 84 * - 27 + + 74 + CAST( NULL AS SIGNED ) WHEN - 73 THEN + 13 + - 30 * - AVG ( DISTINCT - 50 ) WHEN - ( + COUNT( * ) ) THEN NULL WHEN + 35 THEN 31 * - 15 END * COUNT( * ) THEN NULL ELSE 50 END * 4 AS col0
----
-200

skipif mysql # not compatible
query I rowsort label-6405
SELECT - CASE ( + 94 ) WHEN 96 - + 71 * - + CASE + - COUNT ( * ) WHEN + 38 THEN - 84 * - 27 + + 74 + CAST ( NULL AS INTEGER ) WHEN - 73 THEN + 13 + - 30 * - AVG ( DISTINCT - 50 ) WHEN - ( + COUNT ( * ) ) THEN NULL WHEN + 35 THEN 31 * - 15 END * COUNT ( * ) THEN NULL ELSE 50 END * 4 AS col0
----
-200

query II rowsort
SELECT ALL - - 39 * - 43 col1, 64 AS col2
----
-1677
64

query I rowsort
SELECT ( - 34 ) + + 68 * - 78
----
-5338

onlyif mysql # aggregate syntax: 
query II rowsort label-6408
SELECT DISTINCT 59, COUNT( + 23 ) + + 48 AS col1
----
59
49

skipif mysql # not compatible
query II rowsort label-6408
SELECT DISTINCT 59, COUNT ( + 23 ) + + 48 AS col1
----
59
49

query I rowsort
SELECT ALL - COALESCE ( 61, + 20 )
----
-61

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

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

query II rowsort
SELECT DISTINCT + 7 * - - 2, 84 AS col2
----
14
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT COUNT( 25 ) + - 59
----
-58

skipif mysql # not compatible
query I rowsort label-6412
SELECT COUNT ( 25 ) + - 59
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT 2 + + 25 * - - MAX( ALL + 7 ) AS col0
----
177

skipif mysql # not compatible
query I rowsort label-6413
SELECT 2 + + 25 * - - MAX ( ALL + 7 ) AS col0
----
177

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6415
SELECT 76 * - ( - CAST( NULL AS SIGNED ) ) * - ( - - 53 ) / + CASE - SUM( DISTINCT - NULLIF ( + 30, + + 45 ) ) WHEN 30 THEN + 86 * + 46 ELSE - 38 END + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT 76 * - ( - CAST ( NULL AS INTEGER ) ) * - ( - - 53 ) / + CASE - SUM ( DISTINCT - NULLIF ( + 30, + + 45 ) ) WHEN 30 THEN + 86 * + 46 ELSE - 38 END + - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT NULLIF ( + COUNT( ALL + 8 ), + 41 ) + + - COALESCE ( - + 30, - + 44 )
----
31

skipif mysql # not compatible
query I rowsort label-6416
SELECT NULLIF ( + COUNT ( ALL + 8 ), + 41 ) + + - COALESCE ( - + 30, - + 44 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT DISTINCT + 18 + MIN( - 97 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT + 18 + MIN ( - 97 ) AS col1
----
-79

query I rowsort
SELECT DISTINCT - 54 * 63
----
-3402

query I rowsort
SELECT DISTINCT - 45 + - ( 89 ) * - 25 + 1 col1
----
2181

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

query II rowsort
SELECT COALESCE ( - 99, + + 92 ) AS col1, - 59 + 36 AS col1
----
-99
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT 46 DIV 39
----
1

skipif mysql # not compatible
query I rowsort label-6422
SELECT 46 / 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT ALL - 40 * + + 34 + - COUNT( * ) * + - 88 * - 43 * + COUNT( * ) AS col0
----
-5144

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL - 40 * + + 34 + - COUNT ( * ) * + - 88 * - 43 * + COUNT ( * ) AS col0
----
-5144

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT - 47 * + 29 * + COUNT( * ) * + ( 16 ) AS col0
----
-21808

skipif mysql # not compatible
query I rowsort label-6424
SELECT - 47 * + 29 * + COUNT ( * ) * + ( 16 ) AS col0
----
-21808

query I rowsort
SELECT + + 62 * + 5 AS col2
----
310

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

skipif mysql # not compatible
query I rowsort label-6426
SELECT + SUM ( - 64 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6427
SELECT ALL - 74 * 56 DIV 27 + SUM( - - 71 ) + COUNT( + - 52 ), - 65 AS col2
----
-81
-65

skipif mysql # not compatible
query II rowsort label-6427
SELECT ALL - 74 * 56 / 27 + SUM ( - - 71 ) + COUNT ( + - 52 ), - 65 AS col2
----
-81
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-6428
SELECT + + 18 - NULLIF ( - - 71, + 67 ) + + 67 AS col1, + 8 + - COUNT( * ) AS col2
----
14
7

skipif mysql # not compatible
query II rowsort label-6428
SELECT + + 18 - NULLIF ( - - 71, + 67 ) + + 67 AS col1, + 8 + - COUNT ( * ) AS col2
----
14
7

query II rowsort
SELECT ALL + + ( + - 95 ) AS col0, COALESCE ( + + 64, 93 - - 18 * - 21 ) + + - 53 + - 75 * + ( - 31 )
----
-95
2336

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

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

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

query I rowsort
SELECT + + 61 * - 52
----
-3172

query I rowsort
SELECT ALL + 55 * + + 27 * - 93
----
-138105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6434
SELECT ALL + CASE COUNT( * ) WHEN - COALESCE ( 62, + + 85 ) * - 73 THEN + - CAST( + 2 AS DECIMAL ) + - COALESCE ( - CASE - COUNT( * ) WHEN 83 + 35 THEN 92 + 93 WHEN CAST( NULL AS SIGNED ) THEN AVG ( 29 ) ELSE NULL END, NULLIF ( ( + COUNT( DISTINCT - 59 ) ), 55 * + 60 ) * 6 + 33, + 20 / SUM( - 32 ) + - 46 ) WHEN 42 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL + CASE COUNT ( * ) WHEN - COALESCE ( 62, + + 85 ) * - 73 THEN + - CAST ( + 2 AS REAL ) + - COALESCE ( - CASE - COUNT ( * ) WHEN 83 + 35 THEN 92 + 93 WHEN CAST ( NULL AS INTEGER ) THEN AVG ( 29 ) ELSE NULL END, NULLIF ( ( + COUNT ( DISTINCT - 59 ) ), 55 * + 60 ) * 6 + 33, + 20 / SUM ( - 32 ) + - 46 ) WHEN 42 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6435
SELECT - COALESCE ( - NULLIF ( + + 13, 30 - - 1 + + 28 ), CAST( 76 AS SIGNED ) + - + 30, + 79 ), 13 * CAST( - 35 AS SIGNED ) AS col2
----
13
-455

skipif mysql # not compatible
query II rowsort label-6435
SELECT - COALESCE ( - NULLIF ( + + 13, 30 - - 1 + + 28 ), CAST ( 76 AS INTEGER ) + - + 30, + 79 ), 13 * CAST ( - 35 AS INTEGER ) AS col2
----
13
-455

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6436
SELECT + CAST( NULL AS SIGNED ) * + 46 AS col0, 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-6436
SELECT + CAST ( NULL AS INTEGER ) * + 46 AS col0, 83 AS col1
----
NULL
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT DISTINCT - 73 DIV - + 71 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT - 73 / - + 71 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6438
SELECT - CAST( NULL AS SIGNED ) DIV 33, + 44 DIV 98 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6438
SELECT - CAST ( NULL AS INTEGER ) / 33, + 44 / 98 AS col1
----
NULL
0

query I rowsort
SELECT - 97 * + 21
----
-2037

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

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

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

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

query I rowsort
SELECT - 32 + + 11 AS col2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6443
SELECT + COUNT( * ) DIV - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6443
SELECT + COUNT ( * ) / - 61 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6444
SELECT - 49 DIV + - 63 * - 34 * 17 * + 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6444
SELECT - 49 / + - 63 * - 34 * 17 * + 12 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6445
SELECT + COUNT( ALL + - 98 ) - - + COUNT( * ) / + 77 / - + CASE + COUNT( * ) WHEN - - 3 THEN COUNT( * ) + + MAX( + 93 ) WHEN - + CAST( NULL AS DECIMAL ) * + - 46 / + 40 - - 57 THEN NULL END + 5 * 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT + COUNT ( ALL + - 98 ) - - + COUNT ( * ) / + 77 / - + CASE + COUNT ( * ) WHEN - - 3 THEN COUNT ( * ) + + MAX ( + 93 ) WHEN - + CAST ( NULL AS REAL ) * + - 46 / + 40 - - 57 THEN NULL END + 5 * 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT - 25 * SUM( + 42 ) * + 58
----
-60900

skipif mysql # not compatible
query I rowsort label-6446
SELECT - 25 * SUM ( + 42 ) * + 58
----
-60900

query I rowsort
SELECT ALL COALESCE ( - - 4, - 25 * - 70 ) AS col2
----
4

query I rowsort
SELECT - 13 + + + 34 AS col2
----
21

query I rowsort
SELECT ALL 19 + - - 95 AS col1
----
114

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

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL ( + - COALESCE ( + 27, - COUNT ( * ) ) )
----
-27

query I rowsort
SELECT ALL - 31 + + 41 + 30 + + 31 * - + 32 AS col1
----
-952

query I rowsort
SELECT DISTINCT - 59 * - 25 AS col2
----
1475

query I rowsort
SELECT ALL + ( - 24 ) + + 34 AS col1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6454
SELECT - 83 - - - COUNT( * ) + NULLIF ( + 3, - 20 ) * COUNT( * ) + + ( + 8 ) AS col0, + 24 AS col2
----
-73
24

skipif mysql # not compatible
query II rowsort label-6454
SELECT - 83 - - - COUNT ( * ) + NULLIF ( + 3, - 20 ) * COUNT ( * ) + + ( + 8 ) AS col0, + 24 AS col2
----
-73
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6455
SELECT ALL COALESCE ( + 59, - 51 DIV - + 21 )
----
59

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL COALESCE ( + 59, - 51 / - + 21 )
----
59

query I rowsort
SELECT - 54 + 35 col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6457
SELECT - 59 + + 28 + - 17 * COUNT( * ) * - - 80 DIV - - 8
----
-201

skipif mysql # not compatible
query I rowsort label-6457
SELECT - 59 + + 28 + - 17 * COUNT ( * ) * - - 80 / - - 8
----
-201

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

query II rowsort
SELECT 12 AS col1, 54
----
12
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT ALL + SUM( ALL + 53 ) - + - 93 + - + COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-6461
SELECT ALL + SUM ( ALL + 53 ) - + - 93 + - + COUNT ( * )
----
145

query II rowsort
SELECT - 47 + 37 + - 62, - 86 + + + 38 AS col0
----
-72
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6463
SELECT CAST( - COUNT( + 57 ) AS SIGNED ), COUNT( * ) * 71 AS col2
----
-1
71

skipif mysql # not compatible
query II rowsort label-6463
SELECT CAST ( - COUNT ( + 57 ) AS INTEGER ), COUNT ( * ) * 71 AS col2
----
-1
71

query II rowsort
SELECT ALL - - 39 * - 64 * + + 53 AS col0, ( + + 52 ) + + 22
----
-132288
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6465
SELECT - + MAX( NULLIF ( + CAST( NULL AS SIGNED ), - 81 ) ) / - - 45 + + - 8 * + 29 + NULLIF ( 7, + + 14 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT - + MAX ( NULLIF ( + CAST ( NULL AS INTEGER ), - 81 ) ) / - - 45 + + - 8 * + 29 + NULLIF ( 7, + + 14 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6466
SELECT ALL - 98 DIV - MIN( + 48 ) - + SUM( DISTINCT - 1 )
----
3

skipif mysql # not compatible
query I rowsort label-6466
SELECT ALL - 98 / - MIN ( + 48 ) - + SUM ( DISTINCT - 1 )
----
3

query I rowsort
SELECT DISTINCT - 78 * - + ( + 85 ) AS col0
----
6630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT - 86 + - 67 + 90 * 97 * 63 - - - 58 * + 88 * - - CAST( + NULLIF ( - AVG ( ALL - 53 ), 39 / - 54 ) AS SIGNED )
----
279325

skipif mysql # not compatible
query I rowsort label-6468
SELECT - 86 + - 67 + 90 * 97 * 63 - - - 58 * + 88 * - - CAST ( + NULLIF ( - AVG ( ALL - 53 ), 39 / - 54 ) AS INTEGER )
----
279325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6469
SELECT ALL 64 DIV - 40 - + SUM( 66 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL 64 / - 40 - + SUM ( 66 ) AS col2
----
-67

query I rowsort
SELECT - CASE - 18 WHEN + - ( - 25 ) THEN NULL WHEN + AVG ( - 17 ) * + 88 * - 50 + - 30 THEN NULL WHEN - AVG ( + + 27 ) + + 73 / + 3 THEN 49 END * + 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6471
SELECT + - 81 + - 50 * + COALESCE ( + 55, + 58 * + ( + 98 ) + - CAST( NULL AS SIGNED ) + 97 * - - 12 ) * + COALESCE ( + 17, MIN( 61 ) ) - 17
----
-46848

skipif mysql # not compatible
query I rowsort label-6471
SELECT + - 81 + - 50 * + COALESCE ( + 55, + 58 * + ( + 98 ) + - CAST ( NULL AS INTEGER ) + 97 * - - 12 ) * + COALESCE ( + 17, MIN ( 61 ) ) - 17
----
-46848

query I rowsort
SELECT + + CASE - 86 WHEN + 27 THEN NULL ELSE 39 END
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6473
SELECT - 80 * + + 14 DIV - 7 + 25 AS col2
----
185

skipif mysql # not compatible
query I rowsort label-6473
SELECT - 80 * + + 14 / - 7 + 25 AS col2
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT - - 96 DIV - 25 + - 46 * - - COUNT( * ) + 47 * + 3
----
92

skipif mysql # not compatible
query I rowsort label-6474
SELECT - - 96 / - 25 + - 46 * - - COUNT ( * ) + 47 * + 3
----
92

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6476
SELECT + + 15 * + 89 + CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
1334

skipif mysql # not compatible
query I rowsort label-6476
SELECT + + 15 * + 89 + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
1334

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT ALL 27 DIV 7
----
3

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL 27 / 7
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6478
SELECT ALL + 13 col2, 48 + + 1 + CASE - + 78 WHEN + 29 * + 4 - + 11 THEN NULL ELSE + 48 DIV - COUNT( * ) END AS col0
----
13
1

skipif mysql # not compatible
query II rowsort label-6478
SELECT ALL + 13 col2, 48 + + 1 + CASE - + 78 WHEN + 29 * + 4 - + 11 THEN NULL ELSE + 48 / - COUNT ( * ) END AS col0
----
13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT + 11 * + - COALESCE ( 48, + - SUM( DISTINCT 80 ) * - + 77 * - + 8 + - 75 * + COUNT( DISTINCT - 12 ) + - COUNT( * ) * + 13 + + - NULLIF ( + 76, + NULLIF ( 22, 86 ) ) + - COUNT( * ) ) AS col1
----
-528

skipif mysql # not compatible
query I rowsort label-6479
SELECT + 11 * + - COALESCE ( 48, + - SUM ( DISTINCT 80 ) * - + 77 * - + 8 + - 75 * + COUNT ( DISTINCT - 12 ) + - COUNT ( * ) * + 13 + + - NULLIF ( + 76, + NULLIF ( 22, 86 ) ) + - COUNT ( * ) ) AS col1
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT DISTINCT + 39 * 34 + COALESCE ( ( + - 24 ), + + COUNT( * ) + - 18 ) + + - CASE - + 1 WHEN + - 27 * + 5 * 36 * + + 10 + 97 THEN 89 * + 35 - 52 WHEN - 14 THEN - 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT + 39 * 34 + COALESCE ( ( + - 24 ), + + COUNT ( * ) + - 18 ) + + - CASE - + 1 WHEN + - 27 * + 5 * 36 * + + 10 + 97 THEN 89 * + 35 - 52 WHEN - 14 THEN - 85 END
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6483
SELECT - 9 * + + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) - + COALESCE ( - - 62, + COUNT( * ) + - 10 - + NULLIF ( + ( + - 94 ), + ( + - 24 ) ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-6483
SELECT - 9 * + + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) - + COALESCE ( - - 62, + COUNT ( * ) + - 10 - + NULLIF ( + ( + - 94 ), + ( + - 24 ) ) ) AS col2
----
-62

query I rowsort
SELECT ALL - 99 * + 33
----
-3267

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT - - ( + - 88 ) * ( + + COALESCE ( + + MAX( ALL + 46 ), - 23 + + - NULLIF ( - + 90, 57 ) ) )
----
-4048

skipif mysql # not compatible
query I rowsort label-6485
SELECT - - ( + - 88 ) * ( + + COALESCE ( + + MAX ( ALL + 46 ), - 23 + + - NULLIF ( - + 90, 57 ) ) )
----
-4048

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT + - 88 + + 17 + - + MIN( + CASE - - NULLIF ( 61, + 35 + 48 ) WHEN - 85 * 26 + + COALESCE ( + + 80, - 54 ) * - 54 THEN NULL WHEN - 73 THEN + 76 + 54 * 15 END ) * SUM( ALL + 20 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT + - 88 + + 17 + - + MIN ( + CASE - - NULLIF ( 61, + 35 + 48 ) WHEN - 85 * 26 + + COALESCE ( + + 80, - 54 ) * - 54 THEN NULL WHEN - 73 THEN + 76 + 54 * 15 END ) * SUM ( ALL + 20 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6487
SELECT - CASE 19 WHEN - 26 THEN - 62 WHEN - CAST( - COUNT( * ) AS SIGNED ) * - ( + ( + 31 ) ) + + 95 THEN + 99 * + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT - CASE 19 WHEN - 26 THEN - 62 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) * - ( + ( + 31 ) ) + + 95 THEN + 99 * + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 50 + + 16
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT ALL COALESCE ( + 63, - + 92 ) * 81 * - CASE + 37 WHEN COUNT( * ) THEN + ( 55 ) * + - COUNT( ALL + 90 ) + + ( - ( 16 ) ) WHEN 92 THEN NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL COALESCE ( + 63, - + 92 ) * 81 * - CASE + 37 WHEN COUNT ( * ) THEN + ( 55 ) * + - COUNT ( ALL + 90 ) + + ( - ( 16 ) ) WHEN 92 THEN NULL END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6490
SELECT ALL - COUNT( * ) * 67 + + + 53 * - - 6 + 2 AS col0, + ( 69 ) AS col1
----
253
69

skipif mysql # not compatible
query II rowsort label-6490
SELECT ALL - COUNT ( * ) * 67 + + + 53 * - - 6 + 2 AS col0, + ( 69 ) AS col1
----
253
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6491
SELECT DISTINCT MIN( DISTINCT - - 7 ), + 15 AS col0
----
7
15

skipif mysql # not compatible
query II rowsort label-6491
SELECT DISTINCT MIN ( DISTINCT - - 7 ), + 15 AS col0
----
7
15

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6493
SELECT COUNT( - 12 ) AS col0, 37
----
1
37

skipif mysql # not compatible
query II rowsort label-6493
SELECT COUNT ( - 12 ) AS col0, 37
----
1
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6494
SELECT ALL 42 * 59 * COUNT( * ) DIV - - 83 + + + 77 DIV 46 + 88 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL 42 * 59 * COUNT ( * ) / - - 83 + + + 77 / 46 + 88 AS col2
----
118

query II rowsort
SELECT ALL 78 * - 18, 73 col1
----
-1404
73

query II rowsort
SELECT DISTINCT CASE - 45 WHEN + 48 THEN 71 END, - 78 - + - 45 + - 92 * 94 AS col1
----
NULL
-8681

query I rowsort
SELECT ALL - 0 + + + 30 * + + 41 * + 70 * 6
----
516600

query I rowsort
SELECT - 83 + + 6 + 40 AS col2
----
-37

query I rowsort
SELECT - 42 * ( - 32 ) * - 50
----
-67200

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6500
SELECT ALL COUNT( * ) DIV 89, - 9 AS col2
----
0
-9

skipif mysql # not compatible
query II rowsort label-6500
SELECT ALL COUNT ( * ) / 89, - 9 AS col2
----
0
-9

query I rowsort
SELECT + 71 * - - COALESCE ( 27, 99 )
----
1917

query I rowsort
SELECT 16 * 16
----
256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6503
SELECT ( - CAST( SUM( - + 52 ) AS SIGNED ) ) * + + 76 AS col2
----
3952

skipif mysql # not compatible
query I rowsort label-6503
SELECT ( - CAST ( SUM ( - + 52 ) AS INTEGER ) ) * + + 76 AS col2
----
3952

query II rowsort
SELECT 55 * 23 AS col2, 62 AS col1
----
1265
62

query I rowsort
SELECT ALL - + 45 * 25 + - 56 AS col1
----
-1181

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

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

query I rowsort
SELECT - 32 * - 13 * + + 68 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6508
SELECT - - 65 * COUNT( * ) + + ( 45 ) * + 76 + 81 + + ( + 92 ) * - 54 AS col1, 28 * - 25 AS col2
----
-1402
-700

skipif mysql # not compatible
query II rowsort label-6508
SELECT - - 65 * COUNT ( * ) + + ( 45 ) * + 76 + 81 + + ( + 92 ) * - 54 AS col1, 28 * - 25 AS col2
----
-1402
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT ( - 95 ) * SUM( DISTINCT - 7 )
----
665

skipif mysql # not compatible
query I rowsort label-6509
SELECT ( - 95 ) * SUM ( DISTINCT - 7 )
----
665

query I rowsort
SELECT + - NULLIF ( - + 17, - 66 )
----
17

query I rowsort
SELECT ALL + 6 + - 22
----
-16

query I rowsort
SELECT 38 + + 48
----
86

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

skipif mysql # not compatible
query I rowsort label-6513
SELECT COUNT ( ALL - 6 ) / - - COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + 73 + - ( - 7 ) AS col1
----
80

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

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

query I rowsort
SELECT 17 + - - 79
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT + - 85 * + 57 * + 50 * + 20 + CASE + 58 WHEN 70 THEN NULL WHEN 99 * 2 / - 41 + - + COUNT( * ) THEN - + 46 + 98 * + SUM( + 85 ) ELSE + ( 30 ) * COUNT( * ) END + COUNT( * ) - 63
----
-4845032

skipif mysql # not compatible
query I rowsort label-6517
SELECT + - 85 * + 57 * + 50 * + 20 + CASE + 58 WHEN 70 THEN NULL WHEN 99 * 2 / - 41 + - + COUNT ( * ) THEN - + 46 + 98 * + SUM ( + 85 ) ELSE + ( 30 ) * COUNT ( * ) END + COUNT ( * ) - 63
----
-4845032

onlyif mysql # aggregate syntax: 
query II rowsort label-6518
SELECT DISTINCT - - ( + 80 ) + + 39 - COUNT( * ) + 31 - 4 + - - 58 + + 57 * 40 AS col1, 19 + - 13 AS col0
----
2483
6

skipif mysql # not compatible
query II rowsort label-6518
SELECT DISTINCT - - ( + 80 ) + + 39 - COUNT ( * ) + 31 - 4 + - - 58 + + 57 * 40 AS col1, 19 + - 13 AS col0
----
2483
6

query I rowsort
SELECT DISTINCT + 12 + - 91 col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6520
SELECT MAX( DISTINCT - 54 ) DIV - 16 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6520
SELECT MAX ( DISTINCT - 54 ) / - 16 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT DISTINCT + 31 + COUNT( * ) + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT + 31 + COUNT ( * ) + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT DISTINCT 26 + - - 21 + - - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT 26 + - - 21 + - - COUNT ( * ) AS col2
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6523
SELECT ALL CAST( NULL AS DECIMAL ) + + CASE 23 WHEN - 7 * NULLIF ( + 96, - 33 * 58 * 16 ) THEN 18 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL CAST ( NULL AS REAL ) + + CASE 23 WHEN - 7 * NULLIF ( + 96, - 33 * 58 * 16 ) THEN 18 END AS col0
----
NULL

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

query I rowsort
SELECT 1 + - 16 AS col2
----
-15

query I rowsort
SELECT ALL 66 - - - ( 90 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT COUNT( * ) + + MAX( - 20 ) * 27 + 88 * - - COUNT( * ) AS col2
----
-451

skipif mysql # not compatible
query I rowsort label-6527
SELECT COUNT ( * ) + + MAX ( - 20 ) * 27 + 88 * - - COUNT ( * ) AS col2
----
-451

query I rowsort
SELECT 26 + + ( - + 83 ) + + ( 49 )
----
-8

query I rowsort
SELECT ALL - 69 - + 60 + - 40 * - - 16 * - 17 + + 84 + 29 AS col0
----
10864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6530
SELECT NULLIF ( - 70, + 7 * + 92 / - 67 / + 8 + + - COALESCE ( - + CASE + 24 WHEN + 21 THEN + 18 + - CAST( + 2 AS SIGNED ) + + - COUNT( * ) * - + 14 * 41 / + COUNT( * ) WHEN - 8 THEN NULL ELSE NULL END, - 6, 92 ) ) + 59 * - 29 col1
----
-1781

skipif mysql # not compatible
query I rowsort label-6530
SELECT NULLIF ( - 70, + 7 * + 92 / - 67 / + 8 + + - COALESCE ( - + CASE + 24 WHEN + 21 THEN + 18 + - CAST ( + 2 AS INTEGER ) + + - COUNT ( * ) * - + 14 * 41 / + COUNT ( * ) WHEN - 8 THEN NULL ELSE NULL END, - 6, 92 ) ) + 59 * - 29 col1
----
-1781

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

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

query I rowsort
SELECT 35 - + + ( + - 60 ) + - 79
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT COUNT( - 65 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6533
SELECT COUNT ( - 65 ) col2
----
1

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

skipif mysql # not compatible
query I rowsort label-6534
SELECT 81 + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * COUNT ( ALL ( + + 4 ) )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6535
SELECT DISTINCT - 1 DIV + MAX( DISTINCT 74 ) * + 7 + 10 AS col1, - 62 - + 25 AS col2
----
10
-87

skipif mysql # not compatible
query II rowsort label-6535
SELECT DISTINCT - 1 / + MAX ( DISTINCT 74 ) * + 7 + 10 AS col1, - 62 - + 25 AS col2
----
10
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6536
SELECT 83 DIV COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-6536
SELECT 83 / COUNT ( * )
----
83

query I rowsort
SELECT - 4 + + 43 AS col1
----
39

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

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

query I rowsort
SELECT ALL 17 * - 11 + 38 col0
----
-149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6540
SELECT COUNT( * ) * ( - 6 ) + - 2 DIV - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-6540
SELECT COUNT ( * ) * ( - 6 ) + - 2 / - COUNT ( * )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT - 21 DIV - 79 + + - 36 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6541
SELECT - 21 / - 79 + + - 36 AS col0
----
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT ALL - 88 * - 41 + + 53 + - ( + COUNT( * ) ) * CASE - + CASE - - 23 WHEN + - 74 THEN 60 END WHEN 93 THEN + 38 END * - - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL - 88 * - 41 + + 53 + - ( + COUNT ( * ) ) * CASE - + CASE - - 23 WHEN + - 74 THEN 60 END WHEN 93 THEN + 38 END * - - 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL + 95 * - 8 + + + 19 * + COUNT( * ) * + - 23 + + 7 + + - COUNT( - ( + - 91 ) ) + 31 + - - 19 * - + 71 AS col2
----
-2509

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL + 95 * - 8 + + + 19 * + COUNT ( * ) * + - 23 + + 7 + + - COUNT ( - ( + - 91 ) ) + 31 + - - 19 * - + 71 AS col2
----
-2509

onlyif mysql # aggregate syntax: 
query II rowsort label-6545
SELECT DISTINCT - + COUNT( * ) AS col1, + 31 * - COALESCE ( - ( - 32 ), + 18, - COUNT( ALL + 3 ) ) AS col0
----
-1
-992

skipif mysql # not compatible
query II rowsort label-6545
SELECT DISTINCT - + COUNT ( * ) AS col1, + 31 * - COALESCE ( - ( - 32 ), + 18, - COUNT ( ALL + 3 ) ) AS col0
----
-1
-992

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL + 24 * + COALESCE ( + COUNT( * ), + 86 + NULLIF ( COUNT( * ), 75 ) ) + ( COALESCE ( 95, 88 ) ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL + 24 * + COALESCE ( + COUNT ( * ), + 86 + NULLIF ( COUNT ( * ), 75 ) ) + ( COALESCE ( 95, 88 ) ) AS col2
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6547
SELECT COALESCE ( NULLIF ( - 3, - - CAST( + COUNT( * ) AS SIGNED ) ), 72, 84 ) * 35 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-6547
SELECT COALESCE ( NULLIF ( - 3, - - CAST ( + COUNT ( * ) AS INTEGER ) ), 72, 84 ) * 35 AS col2
----
-105

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6549
SELECT + + NULLIF ( - NULLIF ( - 72, - 20 / + 22 + - MIN( + 32 ) + + + 65 * - + COUNT( * ) + - 15 ), - 88 ), 63 + + COUNT( * ) AS col0
----
72
64

skipif mysql # not compatible
query II rowsort label-6549
SELECT + + NULLIF ( - NULLIF ( - 72, - 20 / + 22 + - MIN ( + 32 ) + + + 65 * - + COUNT ( * ) + - 15 ), - 88 ), 63 + + COUNT ( * ) AS col0
----
72
64

query I rowsort
SELECT 21 + - 48 AS col2
----
-27

query I rowsort
SELECT COALESCE ( + ( + 96 ), + - ( - 55 ) ) + - - 60 * + 30 + 4 + - + 39
----
1861

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6552
SELECT DISTINCT + CASE WHEN 57 IS NOT NULL THEN + CAST( NULL AS DECIMAL ) END + - + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT + CASE WHEN 57 IS NOT NULL THEN + CAST ( NULL AS REAL ) END + - + 30 AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 99 - - 47 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT ALL - COUNT( - COALESCE ( + 69, + 76 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL - COUNT ( - COALESCE ( + 69, + 76 ) ) AS col2
----
-1

query II rowsort
SELECT ALL - 46 AS col2, + 83
----
-46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL + CASE - - COUNT( * ) WHEN 19 THEN - COUNT( * ) ELSE NULL END - + COALESCE ( + 6, - 70, + COUNT( * ) / 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL + CASE - - COUNT ( * ) WHEN 19 THEN - COUNT ( * ) ELSE NULL END - + COALESCE ( + 6, - 70, + COUNT ( * ) / 41 )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6561
SELECT COUNT( * ) * + - CAST( - 69 AS SIGNED ) * + CASE - COUNT( * ) WHEN - 84 THEN 70 END - - 22 * - 69 + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6561
SELECT COUNT ( * ) * + - CAST ( - 69 AS INTEGER ) * + CASE - COUNT ( * ) WHEN - 84 THEN 70 END - - 22 * - 69 + + 57
----
NULL

query I rowsort
SELECT - 60 + 36 AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6563
SELECT - COUNT( * ) DIV - 38 * ( ( 29 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6563
SELECT - COUNT ( * ) / - 38 * ( ( 29 ) ) col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6564
SELECT - 31 * - NULLIF ( - 93, - 61 ) * - 21 * + + ( - - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6564
SELECT - 31 * - NULLIF ( - 93, - 61 ) * - 21 * + + ( - - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT + 36 + - 41 + + - 87 AS col2
----
-92

query II rowsort
SELECT 28 AS col2, + 76 AS col1
----
28
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6567
SELECT - MIN( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6567
SELECT - MIN ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6568
SELECT DISTINCT 77 DIV - - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT 77 / - - COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT - 83 - - COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-6569
SELECT - 83 - - COUNT ( * ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT - 1 * CASE - - CASE COUNT( * ) WHEN + - COUNT( * ) THEN + + 84 WHEN + + 10 THEN NULL ELSE - + 15 - - + 30 + + 30 END WHEN + - COUNT( * ) THEN + 95 WHEN + 38 + + + 94 * + 86 THEN + 67 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6570
SELECT - 1 * CASE - - CASE COUNT ( * ) WHEN + - COUNT ( * ) THEN + + 84 WHEN + + 10 THEN NULL ELSE - + 15 - - + 30 + + 30 END WHEN + - COUNT ( * ) THEN + 95 WHEN + 38 + + + 94 * + 86 THEN + 67 ELSE NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL 12 / + 47 * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6572
SELECT + MAX( 70 ) + 74 + + CAST( - 57 AS SIGNED ) + - 51
----
36

skipif mysql # not compatible
query I rowsort label-6572
SELECT + MAX ( 70 ) + 74 + + CAST ( - 57 AS INTEGER ) + - 51
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6573
SELECT 57, 29 * + 85 / + + 87 + + + CAST( NULL AS SIGNED ) AS col0
----
57
NULL

skipif mysql # not compatible
query II rowsort label-6573
SELECT 57, 29 * + 85 / + + 87 + + + CAST ( NULL AS INTEGER ) AS col0
----
57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT CASE 40 WHEN 46 THEN - + 91 WHEN - 29 * 4 THEN + + COUNT( * ) + - 84 + 26 ELSE + 14 END AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT CASE 40 WHEN 46 THEN - + 91 WHEN - 29 * 4 THEN + + COUNT ( * ) + - 84 + 26 ELSE + 14 END AS col1
----
14

query I rowsort
SELECT ALL COALESCE ( 70, - 41 + + + 22 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT - 5 * + 11 + - + COUNT( ALL 39 ) * - + NULLIF ( 42, + + 79 ) - - + 15 * 66 AS col2
----
977

skipif mysql # not compatible
query I rowsort label-6576
SELECT - 5 * + 11 + - + COUNT ( ALL 39 ) * - + NULLIF ( 42, + + 79 ) - - + 15 * 66 AS col2
----
977

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

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL + MIN ( - 69 ) * + - COUNT ( * ) AS col1
----
69

query I rowsort
SELECT - - NULLIF ( - - 0, + 68 + 48 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6579
SELECT - 99 AS col2, - 35 DIV - 80 + - - 46
----
-99
46

skipif mysql # not compatible
query II rowsort label-6579
SELECT - 99 AS col2, - 35 / - 80 + - - 46
----
-99
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6580
SELECT - 10 AS col2, CAST( NULL AS SIGNED ) + - SUM( 58 ) / - + 71 AS col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-6580
SELECT - 10 AS col2, CAST ( NULL AS INTEGER ) + - SUM ( 58 ) / - + 71 AS col0
----
-10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT - COALESCE ( COUNT( * ), 93, - - 48 + - 94 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6581
SELECT - COALESCE ( COUNT ( * ), 93, - - 48 + - 94 ) AS col0
----
-1

query I rowsort
SELECT + + 33 * + - 31
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL MIN( ALL + 30 ) + - 62
----
-32

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL MIN ( ALL + 30 ) + - 62
----
-32

query II rowsort
SELECT - 66, 17 AS col2
----
-66
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6585
SELECT + + 84 DIV + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6585
SELECT + + 84 / + COUNT ( * ) AS col1
----
84

query I rowsort
SELECT ALL ( - 72 ) + - - 42 AS col0
----
-30

query I rowsort
SELECT DISTINCT NULLIF ( + + 32, + + 81 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6588
SELECT DISTINCT 16 DIV + + 39 + - + 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT 16 / + + 39 + - + 34 AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6589
SELECT + 89 AS col1, CAST( NULL AS SIGNED ) + - + 99 * + COUNT( * ) / + 67
----
89
NULL

skipif mysql # not compatible
query II rowsort label-6589
SELECT + 89 AS col1, CAST ( NULL AS INTEGER ) + - + 99 * + COUNT ( * ) / + 67
----
89
NULL

query II rowsort
SELECT 23 * 71 + + + 48 + - 14, 38 * + 58 + + 65 AS col1
----
1667
2269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6591
SELECT ALL + 12 * - 95 + + COUNT( * ) * - COUNT( * ) * + 34 + + - CASE 11 WHEN - + ( + 17 ) THEN NULL WHEN + - AVG ( DISTINCT 39 ) * - 77 - 30 + + 89 * - 83 + - 66 + - 26 THEN NULLIF ( 21, 39 / 75 ) + - CAST( 73 + - 55 * + 31 AS SIGNED ) * 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL + 12 * - 95 + + COUNT ( * ) * - COUNT ( * ) * + 34 + + - CASE 11 WHEN - + ( + 17 ) THEN NULL WHEN + - AVG ( DISTINCT 39 ) * - 77 - 30 + + 89 * - 83 + - 66 + - 26 THEN NULLIF ( 21, 39 / 75 ) + - CAST ( 73 + - 55 * + 31 AS INTEGER ) * 77 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6592
SELECT + + COUNT( * ) DIV + ( - 43 ) - - 53
----
53

skipif mysql # not compatible
query I rowsort label-6592
SELECT + + COUNT ( * ) / + ( - 43 ) - - 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT ALL - 62 * MIN( ALL + - 83 )
----
5146

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL - 62 * MIN ( ALL + - 83 )
----
5146

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT + - 57 - + + SUM( 51 ) col2
----
-108

skipif mysql # not compatible
query I rowsort label-6594
SELECT + - 57 - + + SUM ( 51 ) col2
----
-108

query I rowsort
SELECT DISTINCT + + COALESCE ( + - 42, + 85 + + 78 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT - + 33 * + 9 * + - 9 + COUNT( * ) + 51 * + COUNT( * ) AS col2
----
2725

skipif mysql # not compatible
query I rowsort label-6596
SELECT - + 33 * + 9 * + - 9 + COUNT ( * ) + 51 * + COUNT ( * ) AS col2
----
2725

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT ALL + ( + - 17 ) * - COUNT( * ) + + - 97
----
-80

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL + ( + - 17 ) * - COUNT ( * ) + + - 97
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6598
SELECT CASE + + COUNT( * ) WHEN - COALESCE ( + - COUNT( * ), 61 - - COUNT( * ) ) THEN 32 WHEN - + COALESCE ( - + CAST( NULL AS DECIMAL ), + CASE 96 WHEN - 45 + 88 + + 63 + - 22 * 59 THEN NULL WHEN + 13 THEN - 88 WHEN COUNT( ALL 8 ) * 46 THEN NULL ELSE 61 * - 68 END / - 81 ) - 37 THEN NULL WHEN 38 * + 32 THEN - 58 ELSE NULL END AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6598
SELECT CASE + + COUNT ( * ) WHEN - COALESCE ( + - COUNT ( * ), 61 - - COUNT ( * ) ) THEN 32 WHEN - + COALESCE ( - + CAST ( NULL AS REAL ), + CASE 96 WHEN - 45 + 88 + + 63 + - 22 * 59 THEN NULL WHEN + 13 THEN - 88 WHEN COUNT ( ALL 8 ) * 46 THEN NULL ELSE 61 * - 68 END / - 81 ) - 37 THEN NULL WHEN 38 * + 32 THEN - 58 ELSE NULL END AS col1
----
32

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6600
SELECT + COALESCE ( 60, + 1 * 10 + CAST( ( 44 ) AS SIGNED ) - + - 12, 75 * ( CASE + - NULLIF ( + COALESCE ( + ( + CAST( + SUM( + 14 ) AS SIGNED ) ), CASE 80 WHEN - CAST( NULL AS SIGNED ) THEN - 77 + - 63 * 79 WHEN ( + 99 ) * 23 + + 34 THEN NULL END + ( + COUNT( * ) ) ), 59 * + 98 ) WHEN 24 THEN - 17 WHEN 38 THEN CAST( NULL AS SIGNED ) END ) + + 85 * - 9 )
----
60

skipif mysql # not compatible
query I rowsort label-6600
SELECT + COALESCE ( 60, + 1 * 10 + CAST ( ( 44 ) AS INTEGER ) - + - 12, 75 * ( CASE + - NULLIF ( + COALESCE ( + ( + CAST ( + SUM ( + 14 ) AS INTEGER ) ), CASE 80 WHEN - CAST ( NULL AS INTEGER ) THEN - 77 + - 63 * 79 WHEN ( + 99 ) * 23 + + 34 THEN NULL END + ( + COUNT ( * ) ) ), 59 * + 98 ) WHEN 24 THEN - 17 WHEN 38 THEN CAST ( NULL AS INTEGER ) END ) + + 85 * - 9 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6601
SELECT + CAST( NULL AS SIGNED ) + - COALESCE ( 38, + 81 + + + 86 * + 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT + CAST ( NULL AS INTEGER ) + - COALESCE ( 38, + 81 + + + 86 * + 18 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6602
SELECT - 29 * ( 21 ) - + 24 + + + CAST( NULL AS DECIMAL ) - + COUNT( * ) + 1 * + + 64 * + 91 + + - CASE + ( - 89 ) WHEN COALESCE ( - 20, - CAST( NULL AS SIGNED ), + 60, + 8 * 35 ) THEN 33 ELSE + 25 END * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT - 29 * ( 21 ) - + 24 + + + CAST ( NULL AS REAL ) - + COUNT ( * ) + 1 * + + 64 * + 91 + + - CASE + ( - 89 ) WHEN COALESCE ( - 20, - CAST ( NULL AS INTEGER ), + 60, + 8 * 35 ) THEN 33 ELSE + 25 END * 88
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6604
SELECT - 19 - - - 87, + 71 DIV MAX( DISTINCT - 38 ) AS col1
----
-106
-1

skipif mysql # not compatible
query II rowsort label-6604
SELECT - 19 - - - 87, + 71 / MAX ( DISTINCT - 38 ) AS col1
----
-106
-1

query I rowsort
SELECT - NULLIF ( - 55, + 65 ) * 48 * ( + 85 ) AS col1
----
224400

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

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

query I rowsort
SELECT - 83 + 58 * + 37 AS col0
----
2063

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT ALL + NULLIF ( + + 51, + - 18 + - 78 / - - COALESCE ( + 97, + - MIN( DISTINCT 55 ) - + + 84 ) * + 4 * + + 35 )
----
51

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL + NULLIF ( + + 51, + - 18 + - 78 / - - COALESCE ( + 97, + - MIN ( DISTINCT 55 ) - + + 84 ) * + 4 * + + 35 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6609
SELECT ALL - 51 * CAST( NULL AS SIGNED ) * - - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL - 51 * CAST ( NULL AS INTEGER ) * - - 86 AS col2
----
NULL

query I rowsort
SELECT - 77 * - 49
----
3773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6611
SELECT ALL - ( - COUNT( * ) ) DIV 43 col0
----
0

skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL - ( - COUNT ( * ) ) / 43 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT DISTINCT - 33 * - + 49 * + COUNT( * ) * - + 6
----
-9702

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT - 33 * - + 49 * + COUNT ( * ) * - + 6
----
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT - COALESCE ( + 85, + 81, - 79 + + 74 * - 23 ) * - 18 + + MAX( ALL + - 80 ) + - 60
----
1390

skipif mysql # not compatible
query I rowsort label-6613
SELECT - COALESCE ( + 85, + 81, - 79 + + 74 * - 23 ) * - 18 + + MAX ( ALL + - 80 ) + - 60
----
1390

query I rowsort
SELECT ALL - 51 * 24
----
-1224

query II rowsort
SELECT - 41 + + 96 - + 23 AS col2, 93
----
32
93

query I rowsort
SELECT - 59 + ( - 10 )
----
-69

query I rowsort
SELECT DISTINCT - 34 + - 91
----
-125

query II rowsort
SELECT - + 37 + + + ( COALESCE ( 26, - - 18 ) ), 64 AS col2
----
-11
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6619
SELECT - COUNT( * ) + COUNT( * ) AS col2, + 86 + + 96 AS col2
----
0
182

skipif mysql # not compatible
query II rowsort label-6619
SELECT - COUNT ( * ) + COUNT ( * ) AS col2, + 86 + + 96 AS col2
----
0
182

query I rowsort
SELECT DISTINCT - + 96 + - - 37
----
-59

query I rowsort
SELECT ALL 78 + - + 96
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT ALL 83 DIV ( - + 16 ) + NULLIF ( + 0, - + 68 )
----
-5

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL 83 / ( - + 16 ) + NULLIF ( + 0, - + 68 )
----
-5

query I rowsort
SELECT ALL - - 46 + - 98 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT DISTINCT + - 83 + - SUM( 44 ) col0
----
-127

skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT + - 83 + - SUM ( 44 ) col0
----
-127

query I rowsort
SELECT + + 47 + 52 col1
----
99

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

query I rowsort
SELECT + - 72 + - 78 AS col2
----
-150

query I rowsort
SELECT COALESCE ( + 12, 79, 9 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6629
SELECT DISTINCT - 24 DIV SUM( 77 ) - 8 * + + 58
----
-464

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT - 24 / SUM ( 77 ) - 8 * + + 58
----
-464

query II rowsort
SELECT ALL - 65, - NULLIF ( - - 99, - + 69 ) AS col1
----
-65
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6631
SELECT 1 * - CASE - 83 WHEN - + 95 THEN - - 21 * - 9 END AS col0, 25 - + 8 * + 30 * - 92 - + + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6631
SELECT 1 * - CASE - 83 WHEN - + 95 THEN - - 21 * - 9 END AS col0, 25 - + 8 * + 30 * - 92 - + + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT - 63 * - 83 * + CAST( NULL AS SIGNED ) * 39 + + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT - 63 * - 83 * + CAST ( NULL AS INTEGER ) * 39 + + 41 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6633
SELECT 58 AS col2, 43 + CAST( NULL AS SIGNED ) AS col0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-6633
SELECT 58 AS col2, 43 + CAST ( NULL AS INTEGER ) AS col0
----
58
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT COUNT( * ) + + 48 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6635
SELECT COUNT ( * ) + + 48 AS col2
----
49

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6637
SELECT - 37 * - 25 * + COUNT( * ) + + ( - 45 ) + + 90 DIV + 53 AS col2
----
881

skipif mysql # not compatible
query I rowsort label-6637
SELECT - 37 * - 25 * + COUNT ( * ) + + ( - 45 ) + + 90 / + 53 AS col2
----
881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6638
SELECT COALESCE ( 85, - + AVG ( 49 ) + 85, + + MAX( - 30 ) + + 21 ) DIV COALESCE ( + SUM( - - 99 ), - - 2 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6638
SELECT COALESCE ( 85, - + AVG ( 49 ) + 85, + + MAX ( - 30 ) + + 21 ) / COALESCE ( + SUM ( - - 99 ), - - 2 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6639
SELECT 61 + - - MAX( - CAST( NULL AS SIGNED ) ) AS col0, + 50 AS col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-6639
SELECT 61 + - - MAX ( - CAST ( NULL AS INTEGER ) ) AS col0, + 50 AS col1
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT 71 + + 11 + + + 95 + - 88 * COUNT( * ) * - + 92
----
8273

skipif mysql # not compatible
query I rowsort label-6640
SELECT 71 + + 11 + + + 95 + - 88 * COUNT ( * ) * - + 92
----
8273

query I rowsort
SELECT 80 + - - 63 AS col2
----
143

query II rowsort
SELECT 90 col1, - 73
----
90
-73

query II rowsort
SELECT ALL 74 AS col0, - ( - 83 )
----
74
83

query II rowsort
SELECT - 94 AS col2, 43
----
-94
43

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - - MAX( - 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6647
SELECT - - MAX ( - 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT ALL + COUNT( * ) + - + 33
----
-32

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL + COUNT ( * ) + - + 33
----
-32

query I rowsort
SELECT ( + + 28 ) * + 11
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT DISTINCT - 29 * - COUNT( * ) * - - 71
----
2059

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT - 29 * - COUNT ( * ) * - - 71
----
2059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6651
SELECT + ( CAST( 78 AS SIGNED ) ) * - COUNT( DISTINCT ( + ( + - 53 ) ) )
----
-78

skipif mysql # not compatible
query I rowsort label-6651
SELECT + ( CAST ( 78 AS INTEGER ) ) * - COUNT ( DISTINCT ( + ( + - 53 ) ) )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-6652
SELECT ALL 90 col0, - 57 - + + 99 + - 88 + + + ( + 68 ) + + COUNT( * )
----
90
-175

skipif mysql # not compatible
query II rowsort label-6652
SELECT ALL 90 col0, - 57 - + + 99 + - 88 + + + ( + 68 ) + + COUNT ( * )
----
90
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6653
SELECT 14 DIV CAST( - 41 AS SIGNED ) AS col1, COUNT( * ) DIV MIN( ALL + - 10 ) * - 64 + COUNT( * ) + - 96 DIV CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6653
SELECT 14 / CAST ( - 41 AS INTEGER ) AS col1, COUNT ( * ) / MIN ( ALL + - 10 ) * - 64 + COUNT ( * ) + - 96 / CAST ( - CAST ( NULL AS REAL ) AS REAL )
----
0
NULL

query I rowsort
SELECT 58 * + 92 AS col2
----
5336

query I rowsort
SELECT DISTINCT + - CASE - + 21 WHEN - + 7 + + 5 THEN + 2 ELSE NULL END - + 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6656
SELECT ALL + + COUNT( * ) DIV + 84 * ( NULLIF ( - - 72, + 35 * - 21 + - + 8 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL + + COUNT ( * ) / + 84 * ( NULLIF ( - - 72, + 35 * - 21 + - + 8 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ALL + NULLIF ( + ( + 72 ), 91 * 23 * - ( - COUNT( * ) ) * - 82 + + 58 )
----
72

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL + NULLIF ( + ( + 72 ), 91 * 23 * - ( - COUNT ( * ) ) * - 82 + + 58 )
----
72

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

skipif mysql # not compatible
query I rowsort label-6658
SELECT MAX ( - - 13 ) col1
----
13

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

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

query I rowsort
SELECT 10 * 17 col1
----
170

query I rowsort
SELECT 46 * 60 col1
----
2760

onlyif mysql # DIV for integer division: 
query I rowsort label-6662
SELECT - 21 DIV - + 11 - 40 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6662
SELECT - 21 / - + 11 - 40 AS col2
----
-39

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6664
SELECT 29 + - 33 AS col1, 7 * + 77 - + CAST( NULL AS SIGNED ) AS col2
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-6664
SELECT 29 + - 33 AS col1, 7 * + 77 - + CAST ( NULL AS INTEGER ) AS col2
----
-4
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6665
SELECT 36 * 2 * ( + 48 ) DIV - 44 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-6665
SELECT 36 * 2 * ( + 48 ) / - 44 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ALL - 78 + + 12 * 58 - MAX( - 58 ) AS col2
----
676

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL - 78 + + 12 * 58 - MAX ( - 58 ) AS col2
----
676

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

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

query II rowsort
SELECT ALL 48 + + 59 AS col0, 50
----
107
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6669
SELECT SUM( ALL 24 ) * CAST( 47 AS DECIMAL ) * + 75 * CASE + 18 WHEN 87 / - 26 + + - 20 + + COALESCE ( - - ( 60 ), + 16 * + 48 ) * 55 THEN + 12 WHEN 19 * 33 / + ( 20 ) + - 17 THEN COUNT( * ) + - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT SUM ( ALL 24 ) * CAST ( 47 AS REAL ) * + 75 * CASE + 18 WHEN 87 / - 26 + + - 20 + + COALESCE ( - - ( 60 ), + 16 * + 48 ) * 55 THEN + 12 WHEN 19 * 33 / + ( 20 ) + - 17 THEN COUNT ( * ) + - 32 END
----
NULL

query I rowsort
SELECT DISTINCT 95 + - 73 - 61 * + + 86
----
-5224

onlyif mysql # aggregate syntax: 
query II rowsort label-6671
SELECT MAX( DISTINCT - 54 ) * SUM( DISTINCT - COALESCE ( + 33, 4 - - - 83 * 18, 70 + 16, 17 ) ) + + 41, COUNT( * ) AS col1
----
1823
1

skipif mysql # not compatible
query II rowsort label-6671
SELECT MAX ( DISTINCT - 54 ) * SUM ( DISTINCT - COALESCE ( + 33, 4 - - - 83 * 18, 70 + 16, 17 ) ) + + 41, COUNT ( * ) AS col1
----
1823
1

query I rowsort
SELECT DISTINCT 47 * - 90 col2
----
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT DISTINCT + NULLIF ( + CASE - 98 WHEN COUNT( * ) THEN 0 END, 72 * - 60 * + - 63 / - - 92 + + 80 ) + - - ( MAX( - + ( - 71 ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT + NULLIF ( + CASE - 98 WHEN COUNT ( * ) THEN 0 END, 72 * - 60 * + - 63 / - - 92 + + 80 ) + - - ( MAX ( - + ( - 71 ) ) ) col2
----
NULL

query I rowsort
SELECT ALL 82 * + + 55 AS col1
----
4510

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT DISTINCT 42 * - ( - COUNT( * ) ) * - 96
----
-4032

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT 42 * - ( - COUNT ( * ) ) * - 96
----
-4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6676
SELECT + ( - COALESCE ( + - 7, + 98 + + 54 - ( + + 36 ) DIV + + 0 * - NULLIF ( CASE - ( NULLIF ( + 62, - + 20 ) ) WHEN + - MAX( - + 22 ) + 35 THEN + MIN( 71 ) END, COUNT( * ) + CAST( NULL AS SIGNED ) ) DIV + 32, - 60 ) ) col2
----
7

skipif mysql # not compatible
query I rowsort label-6676
SELECT + ( - COALESCE ( + - 7, + 98 + + 54 - ( + + 36 ) / + + 0 * - NULLIF ( CASE - ( NULLIF ( + 62, - + 20 ) ) WHEN + - MAX ( - + 22 ) + 35 THEN + MIN ( 71 ) END, COUNT ( * ) + CAST ( NULL AS INTEGER ) ) / + 32, - 60 ) ) col2
----
7

query II rowsort
SELECT DISTINCT 99 * - 36, 19 col0
----
-3564
19

query I rowsort
SELECT + 48 * 44
----
2112

query I rowsort
SELECT - 87 + + + 84
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT - 96 + CAST( 95 AS SIGNED ) * - + 65 * - 19 AS col2
----
117229

skipif mysql # not compatible
query I rowsort label-6680
SELECT - 96 + CAST ( 95 AS INTEGER ) * - + 65 * - 19 AS col2
----
117229

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT + COALESCE ( + - 83, + 3 + - 92 ) + - + 24 * COUNT( * )
----
-107

skipif mysql # not compatible
query I rowsort label-6681
SELECT + COALESCE ( + - 83, + 3 + - 92 ) + - + 24 * COUNT ( * )
----
-107

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

query II rowsort
SELECT DISTINCT CASE - + 60 WHEN + 19 THEN + + 15 END col0, - 22 * - 24 + + 79 * + 73 + + 58 AS col2
----
NULL
6353

query I rowsort
SELECT 21 + - 80 * 55
----
-4379

query I rowsort
SELECT 52 + - 51 * + 74
----
-3722

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT ALL COALESCE ( - COUNT( * ), + 45 * + 66 + 6 ) * - 73 * - 83 + + 67 + + 48
----
-5944

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL COALESCE ( - COUNT ( * ), + 45 * + 66 + 6 ) * - 73 * - 83 + + 67 + + 48
----
-5944

query I rowsort
SELECT + 17 * - 50
----
-850

query I rowsort
SELECT - 86 + - - 13 + + + 65 AS col1
----
-8

query I rowsort
SELECT ALL + + 99 * 90
----
8910

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT COUNT ( ALL - ( - CAST ( NULL AS INTEGER ) ) )
----
0

query I rowsort
SELECT DISTINCT 31 + + - 19
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6694
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 11 * - 73
----
NULL
-803

skipif mysql # not compatible
query II rowsort label-6694
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 11 * - 73
----
NULL
-803

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT ALL + ( - + COUNT( ALL - 23 ) ) * 42 + - 0 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL + ( - + COUNT ( ALL - 23 ) ) * 42 + - 0 AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT DISTINCT + CASE - - CAST( + 40 AS SIGNED ) WHEN + - 65 THEN COUNT( * ) WHEN + 90 * 90 + + - 29 / + 61 THEN - - 38 * + + CASE 74 WHEN + 63 THEN - - 6 END ELSE - 13 END
----
-13

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT + CASE - - CAST ( + 40 AS INTEGER ) WHEN + - 65 THEN COUNT ( * ) WHEN + 90 * 90 + + - 29 / + 61 THEN - - 38 * + + CASE 74 WHEN + 63 THEN - - 6 END ELSE - 13 END
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6698
SELECT ALL + NULLIF ( 57, - - 83 ) DIV + + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL + NULLIF ( 57, - - 83 ) / + + 79 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6699
SELECT - 66 DIV - - 45 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6699
SELECT - 66 / - - 45 AS col0
----
-1

query I rowsort
SELECT - 25 * 99
----
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT + COUNT( * ) * + + 56 + 16 - + 96 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-6701
SELECT + COUNT ( * ) * + + 56 + 16 - + 96 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT - COUNT( * ) * - CASE - + 74 WHEN - 16 * 36 THEN - - 89 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6702
SELECT - COUNT ( * ) * - CASE - + 74 WHEN - 16 * 36 THEN - - 89 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT DISTINCT 60 * + COALESCE ( 78, + 34, COUNT( * ), + + 78 ) + + - COUNT( * ) * - COUNT( * ) - + + 20 AS col0
----
4661

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT 60 * + COALESCE ( 78, + 34, COUNT ( * ), + + 78 ) + + - COUNT ( * ) * - COUNT ( * ) - + + 20 AS col0
----
4661

query I rowsort
SELECT NULLIF ( - 52, - AVG ( DISTINCT - - 63 ) + + 87 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT + 10 * - - ( SUM( + 27 ) ) + + 25
----
295

skipif mysql # not compatible
query I rowsort label-6705
SELECT + 10 * - - ( SUM ( + 27 ) ) + + 25
----
295

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

query I rowsort
SELECT + 32 * + 58
----
1856

query I rowsort
SELECT - 71 * - 95 AS col1
----
6745

query I rowsort
SELECT + 41 + - - 75 AS col2
----
116

query I rowsort
SELECT ALL + 79 * + 14
----
1106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6711
SELECT ALL + - COALESCE ( - ( - 21 ), COALESCE ( + COUNT( * ), 51 + - 9 + 3 ) * + NULLIF ( + + NULLIF ( + - 47, + CAST( NULL AS SIGNED ) DIV SUM( - 78 ) ), 39 + COUNT( * ) ) * CASE - MAX( + - 48 ) WHEN - CAST( ( + MAX( DISTINCT 34 ) ) AS SIGNED ) * - 30 THEN NULL WHEN + COALESCE ( - 53, - COUNT( * ) ) THEN NULL ELSE 17 END - 62 ) DIV - 12
----
1

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL + - COALESCE ( - ( - 21 ), COALESCE ( + COUNT ( * ), 51 + - 9 + 3 ) * + NULLIF ( + + NULLIF ( + - 47, + CAST ( NULL AS INTEGER ) / SUM ( - 78 ) ), 39 + COUNT ( * ) ) * CASE - MAX ( + - 48 ) WHEN - CAST ( ( + MAX ( DISTINCT 34 ) ) AS INTEGER ) * - 30 THEN NULL WHEN + COALESCE ( - 53, - COUNT ( * ) ) THEN NULL ELSE 17 END - 62 ) / - 12
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6712
SELECT ALL - 4 * + + CAST( 77 AS SIGNED ) col0
----
-308

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL - 4 * + + CAST ( 77 AS INTEGER ) col0
----
-308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6713
SELECT - + 44, 45 * - - 71 * - CAST( - 76 AS SIGNED ) * COUNT( * ) AS col2
----
-44
242820

skipif mysql # not compatible
query II rowsort label-6713
SELECT - + 44, 45 * - - 71 * - CAST ( - 76 AS INTEGER ) * COUNT ( * ) AS col2
----
-44
242820

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

skipif mysql # not compatible
query I rowsort label-6714
SELECT + 48 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT ALL 18 * COUNT( * ) * 94 AS col2
----
1692

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL 18 * COUNT ( * ) * 94 AS col2
----
1692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6716
SELECT DISTINCT - MAX( ALL CAST( + + 87 AS SIGNED ) ) col1, 48 AS col0
----
-87
48

skipif mysql # not compatible
query II rowsort label-6716
SELECT DISTINCT - MAX ( ALL CAST ( + + 87 AS INTEGER ) ) col1, 48 AS col0
----
-87
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6717
SELECT + + NULLIF ( - + COUNT( * ), CAST( 42 AS SIGNED ) + + - 79 ) * + 44 * 15 * + COUNT( * ) + COUNT( * )
----
-659

skipif mysql # not compatible
query I rowsort label-6717
SELECT + + NULLIF ( - + COUNT ( * ), CAST ( 42 AS INTEGER ) + + - 79 ) * + 44 * 15 * + COUNT ( * ) + COUNT ( * )
----
-659

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT + 15 * + + 48 + - + 31 - + ( + CASE 96 WHEN 84 + - 5 - + 13 * + - 60 + - 10 * + 21 + - 2 THEN + + COUNT( ALL - - 44 ) + AVG ( - 47 ) WHEN 51 THEN NULL END ) * 81 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT + 15 * + + 48 + - + 31 - + ( + CASE 96 WHEN 84 + - 5 - + 13 * + - 60 + - 10 * + 21 + - 2 THEN + + COUNT ( ALL - - 44 ) + AVG ( - 47 ) WHEN 51 THEN NULL END ) * 81 * - 47
----
NULL

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

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

query II rowsort
SELECT 82, 58 * 59 AS col0
----
82
3422

query I rowsort
SELECT ALL 90 + 44 AS col0
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-6723
SELECT ALL + 32 + COUNT( * ) + + 38 * + 72, + 60 AS col0
----
2769
60

skipif mysql # not compatible
query II rowsort label-6723
SELECT ALL + 32 + COUNT ( * ) + + 38 * + 72, + 60 AS col0
----
2769
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT - 54 - - CASE - 92 WHEN - 97 * ( + + 73 ) + 47 + - NULLIF ( - - COUNT( DISTINCT + + 35 ), + 2 / + 52 ) THEN + 77 WHEN - + 29 / + 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT - 54 - - CASE - 92 WHEN - 97 * ( + + 73 ) + 47 + - NULLIF ( - - COUNT ( DISTINCT + + 35 ), + 2 / + 52 ) THEN + 77 WHEN - + 29 / + 78 THEN NULL END
----
NULL

query I rowsort
SELECT + 25 + - 17 AS col2
----
8

query I rowsort
SELECT - ( + - 3 ) * - 22 AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6728
SELECT CAST( + 19 AS SIGNED ), 28 AS col0
----
19
28

skipif mysql # not compatible
query II rowsort label-6728
SELECT CAST ( + 19 AS INTEGER ), 28 AS col0
----
19
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6729
SELECT + 96 AS col2, SUM( ALL 38 ) * - 53 * + 40
----
96
-80560

skipif mysql # not compatible
query II rowsort label-6729
SELECT + 96 AS col2, SUM ( ALL 38 ) * - 53 * + 40
----
96
-80560

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

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

query II rowsort
SELECT + 7 AS col0, - 59
----
7
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6732
SELECT DISTINCT - 73 DIV 26 + - - 74 + + ( 27 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT - 73 / 26 + - - 74 + + ( 27 ) AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6733
SELECT ALL + ( 29 ) DIV COUNT( * ) DIV - 83 - - MIN( + 72 ) + + - 55 + + 5 + - SUM( + 7 ) - - 61 * - - 92 - - + 52 * 2 * - 82 * - COUNT( * ) * - 81 AS col2
----
-685141

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL + ( 29 ) / COUNT ( * ) / - 83 - - MIN ( + 72 ) + + - 55 + + 5 + - SUM ( + 7 ) - - 61 * - - 92 - - + 52 * 2 * - 82 * - COUNT ( * ) * - 81 AS col2
----
-685141

onlyif mysql # DIV for integer division: 
query I rowsort label-6734
SELECT DISTINCT - 70 DIV - 31
----
2

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT - 70 / - 31
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6735
SELECT ALL - 61 DIV MAX( + 6 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL - 61 / MAX ( + 6 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT - 65 * + 30 * COUNT( * ) * - 10 * COUNT( * ) AS col1
----
19500

skipif mysql # not compatible
query I rowsort label-6736
SELECT - 65 * + 30 * COUNT ( * ) * - 10 * COUNT ( * ) AS col1
----
19500

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT + COUNT( * ) + COALESCE ( + + 39, + 48 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6737
SELECT + COUNT ( * ) + COALESCE ( + + 39, + 48 ) AS col0
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ( - - ( MAX( - - 88 ) ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6739
SELECT ( - - ( MAX ( - - 88 ) ) ) AS col0
----
88

query II rowsort
SELECT - 85, - 8 AS col2
----
-85
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6741
SELECT ALL 24 * - 65 * ( - + 19 ) - + COUNT( * ) + - 51 DIV ( - 93 )
----
29639

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL 24 * - 65 * ( - + 19 ) - + COUNT ( * ) + - 51 / ( - 93 )
----
29639

query I rowsort
SELECT - - ( + + 49 ) * - - ( + 51 ) AS col2
----
2499

query I rowsort
SELECT DISTINCT + 50 * + 51 * + 45 * - 9 + - + 84 col0
----
-1032834

query I rowsort
SELECT ALL + 39 * + 57
----
2223

query II rowsort
SELECT ALL + - 45, - 30 * 88 - - 99 AS col2
----
-45
-2541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6746
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 50 + - AVG ( + 67 ) / - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 50 + - AVG ( + 67 ) / - + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT + 11 * SUM( DISTINCT + - 22 ) * - - 94 + + CASE + 51 WHEN + 47 THEN + + 48 / + 59 + - COUNT( * ) * + + 3 + + COUNT( * ) + 57 WHEN - 12 + - - 3 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT + 11 * SUM ( DISTINCT + - 22 ) * - - 94 + + CASE + 51 WHEN + 47 THEN + + 48 / + 59 + - COUNT ( * ) * + + 3 + + COUNT ( * ) + 57 WHEN - 12 + - - 3 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6748
SELECT - 70, CAST( 58 AS SIGNED ) AS col1
----
-70
58

skipif mysql # not compatible
query II rowsort label-6748
SELECT - 70, CAST ( 58 AS INTEGER ) AS col1
----
-70
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT CASE NULLIF ( + 29, - 59 ) WHEN 31 THEN 81 * AVG ( ALL + 79 ) + + 75 + - + 63 + - - 86 + - 59 / + COUNT( * ) WHEN 80 THEN NULL END + 68 + - COUNT( * ) + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6749
SELECT CASE NULLIF ( + 29, - 59 ) WHEN 31 THEN 81 * AVG ( ALL + 79 ) + + 75 + - + 63 + - - 86 + - 59 / + COUNT ( * ) WHEN 80 THEN NULL END + 68 + - COUNT ( * ) + - 81
----
NULL

query I rowsort
SELECT + 41 * - - 26 + + + ( + CASE - + 45 WHEN + 96 THEN NULL WHEN 29 THEN - + 3 END )
----
NULL

query II rowsort
SELECT - 54 AS col0, 57 AS col1
----
-54
57

query II rowsort
SELECT - - ( - + 36 ) AS col1, - 84 * - NULLIF ( 38, - + 64 / - 91 ) * 6 + + 46 AS col0
----
-36
19198

query I rowsort
SELECT 61 + + 63
----
124

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6754
SELECT DISTINCT - 62 DIV - CAST( - 21 AS SIGNED ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT - 62 / - CAST ( - 21 AS INTEGER ) AS col1
----
-2

query I rowsort
SELECT 39 + - 51 * 37 AS col0
----
-1848

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

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

query I rowsort
SELECT DISTINCT 31 * + ( + 49 ) AS col1
----
1519

query I rowsort
SELECT ALL ( 87 ) + + - CASE - 85 WHEN - 59 THEN - - 69 + 60 * + 33 + 15 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6759
SELECT CAST( - AVG ( ALL 52 ) AS SIGNED ) + - COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6759
SELECT CAST ( - AVG ( ALL 52 ) AS INTEGER ) + - COUNT ( * ) AS col2
----
-53

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

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

query I rowsort
SELECT 64 * + + 95 AS col1
----
6080

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT ALL 77 - - ( - - MIN( DISTINCT - 94 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL 77 - - ( - - MIN ( DISTINCT - 94 ) )
----
-17

query I rowsort
SELECT ALL + 29 - - 37 + 23 AS col0
----
89

query I rowsort
SELECT DISTINCT - 75 * 35
----
-2625

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT 60 * + + 40 col0, MAX( + 22 )
----
2400
22

skipif mysql # not compatible
query II rowsort label-6765
SELECT 60 * + + 40 col0, MAX ( + 22 )
----
2400
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6766
SELECT DISTINCT 64 * - AVG ( ALL CAST( NULL AS SIGNED ) ) * + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT 64 * - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + 82 AS col2
----
NULL

query I rowsort
SELECT - 23 * + CASE 78 WHEN 94 THEN NULL ELSE + 58 END
----
-1334

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

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

query I rowsort
SELECT DISTINCT 32 * + 12 AS col0
----
384

onlyif mysql # DIV for integer division: 
query II rowsort label-6770
SELECT - 76 + + 63 AS col0, 60 DIV - + 40
----
-13
-1

skipif mysql # not compatible
query II rowsort label-6770
SELECT - 76 + + 63 AS col0, 60 / - + 40
----
-13
-1

query II rowsort
SELECT ALL - - COALESCE ( + 29, - 49 ) AS col2, 51 col1
----
29
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT COUNT( * ) * - MAX( DISTINCT - - 45 ) - + 94 + 15 * + 10
----
11

skipif mysql # not compatible
query I rowsort label-6772
SELECT COUNT ( * ) * - MAX ( DISTINCT - - 45 ) - + 94 + 15 * + 10
----
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ALL - + NULLIF ( - + 67, - MIN( + 78 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL - + NULLIF ( - + 67, - MIN ( + 78 ) ) AS col0
----
67

query II rowsort
SELECT + 39 + + 49 AS col2, 57 + + 99 AS col0
----
88
156

query II rowsort
SELECT ( 25 ) AS col1, + 21 AS col0
----
25
21

onlyif mysql # DIV for integer division: 
query II rowsort label-6777
SELECT ALL + - 92 + 77 * + 12 AS col2, 91 DIV 9 * + 88 AS col2
----
832
880

skipif mysql # not compatible
query II rowsort label-6777
SELECT ALL + - 92 + 77 * + 12 AS col2, 91 / 9 * + 88 AS col2
----
832
880

query I rowsort
SELECT ALL - - 79 + + 40 - - 40 - - 34 * 4
----
295

query I rowsort
SELECT 20 * + 66 AS col0
----
1320

query I rowsort
SELECT 55 * + + 24 col1
----
1320

query I rowsort
SELECT ALL + 60 + ( - + 85 ) AS col2
----
-25

query I rowsort
SELECT 45 - 66 AS col0
----
-21

query I rowsort
SELECT 80 * - 25
----
-2000

onlyif mysql # DIV for integer division: 
query I rowsort label-6784
SELECT DISTINCT - 88 DIV + 46 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT - 88 / + 46 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT DISTINCT - COUNT( * ) - - 87
----
86

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT - COUNT ( * ) - - 87
----
86

query II rowsort
SELECT 45, 74 col0
----
45
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL 83 * + 83 * COUNT( + + 77 )
----
6889

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL 83 * + 83 * COUNT ( + + 77 )
----
6889

query I rowsort
SELECT 70 * - - 76
----
5320

query I rowsort
SELECT ALL + 71 * - - 88
----
6248

query I rowsort
SELECT 54 + - 87 col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6791
SELECT MIN( DISTINCT - 25 ) - + + 2 col2, + 57 * + 61 AS col1
----
-27
3477

skipif mysql # not compatible
query II rowsort label-6791
SELECT MIN ( DISTINCT - 25 ) - + + 2 col2, + 57 * + 61 AS col1
----
-27
3477

query I rowsort
SELECT 60 * - 86
----
-5160

query I rowsort
SELECT 63 + + 73
----
136

query I rowsort
SELECT ALL 23 * - 55
----
-1265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6795
SELECT CASE - - COUNT( * ) WHEN - + 92 * + - 82 THEN - 79 + + - 24 WHEN - CAST( - - 19 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6795
SELECT CASE - - COUNT ( * ) WHEN - + 92 * + - 82 THEN - 79 + + - 24 WHEN - CAST ( - - 19 AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT 4 * + 17
----
68

query I rowsort
SELECT - 65 + 11
----
-54

query II rowsort
SELECT ALL - + 4 AS col2, + 51 + 78
----
-4
129

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL - 97 * 66 + + SUM( ALL + - 22 )
----
-6424

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL - 97 * 66 + + SUM ( ALL + - 22 )
----
-6424

onlyif mysql # aggregate syntax: 
query II rowsort label-6800
SELECT DISTINCT + - 22 col0, + ( + 96 ) * - - 73 - - + CASE WHEN - 57 IS NOT NULL THEN NULL WHEN NOT + 27 + + 75 + - SUM( - 7 ) + - ( 21 ) + 90 + + - 45 > - 53 THEN + - COUNT( * ) ELSE 71 END
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-6800
SELECT DISTINCT + - 22 col0, + ( + 96 ) * - - 73 - - + CASE WHEN - 57 IS NOT NULL THEN NULL WHEN NOT + 27 + + 75 + - SUM ( - 7 ) + - ( 21 ) + 90 + + - 45 > - 53 THEN + - COUNT ( * ) ELSE 71 END
----
-22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT + MIN( - 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-6801
SELECT + MIN ( - 18 ) AS col0
----
-18

query I rowsort
SELECT + - 62 + - 82 + 5 AS col1
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6803
SELECT DISTINCT + + 83 * + 56 + - COALESCE ( - CAST( + 0 AS SIGNED ), + 51 * 11 * - 63, - + 37 ) * + + 44 * + 12 col1
----
4648

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT + + 83 * + 56 + - COALESCE ( - CAST ( + 0 AS INTEGER ), + 51 * 11 * - 63, - + 37 ) * + + 44 * + 12 col1
----
4648

query I rowsort
SELECT + + 34 - - NULLIF ( + 16, + - 67 )
----
50

query II rowsort
SELECT + - 21 col0, - 15 * - 5
----
-21
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6806
SELECT MIN( 68 ) * + + COUNT( * ) * + - 73 - + - 12 + 66 DIV + 41 * + COUNT( * )
----
-4951

skipif mysql # not compatible
query I rowsort label-6806
SELECT MIN ( 68 ) * + + COUNT ( * ) * + - 73 - + - 12 + 66 / + 41 * + COUNT ( * )
----
-4951

query I rowsort
SELECT ALL - 82 * + 97 * + - 93 + - 76 AS col1
----
739646

query I rowsort
SELECT ALL + 73 + - 42
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-6809
SELECT DISTINCT 69 * - - ( + 6 ), 33 DIV + + 98 * 42 + - 62 col0
----
414
-62

skipif mysql # not compatible
query II rowsort label-6809
SELECT DISTINCT 69 * - - ( + 6 ), 33 / + + 98 * 42 + - 62 col0
----
414
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6810
SELECT - COALESCE ( - 10, + + 15 DIV + + MIN( DISTINCT ( - CAST( + 52 AS SIGNED ) ) ) ) - + + 68 AS col0, - 0 AS col2
----
-58
0

skipif mysql # not compatible
query II rowsort label-6810
SELECT - COALESCE ( - 10, + + 15 / + + MIN ( DISTINCT ( - CAST ( + 52 AS INTEGER ) ) ) ) - + + 68 AS col0, - 0 AS col2
----
-58
0

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

skipif mysql # not compatible
query I rowsort label-6811
SELECT + COUNT ( + - CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT - 26 - 93
----
-119

query II rowsort
SELECT ALL + 65 AS col2, 63 AS col1
----
65
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6814
SELECT + 26 + - 27 + - + COUNT( * ) * - + COUNT( * ) DIV - - 8 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6814
SELECT + 26 + - 27 + - + COUNT ( * ) * - + COUNT ( * ) / - - 8 AS col1
----
-1

query I rowsort
SELECT - 32 - + - 11 col0
----
-21

query I rowsort
SELECT - NULLIF ( - - 32, + 97 ) AS col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6817
SELECT + COUNT( * ) * + MAX( DISTINCT - 52 ) * 40 - 25 DIV - 49 * NULLIF ( 59, 39 ) AS col1, 79
----
-2080
79

skipif mysql # not compatible
query II rowsort label-6817
SELECT + COUNT ( * ) * + MAX ( DISTINCT - 52 ) * 40 - 25 / - 49 * NULLIF ( 59, 39 ) AS col1, 79
----
-2080
79

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

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

query I rowsort
SELECT - 96 + 97 + 99 * - 4 * AVG ( + CASE + ( + 5 ) WHEN + 52 THEN - + ( - 3 ) * - + 1 * + - 80 WHEN - 44 THEN NULL END ) + + 26 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6821
SELECT ALL COUNT( DISTINCT - 16 ) AS col0, + ( + 81 ) AS col2
----
1
81

skipif mysql # not compatible
query II rowsort label-6821
SELECT ALL COUNT ( DISTINCT - 16 ) AS col0, + ( + 81 ) AS col2
----
1
81

query I rowsort
SELECT ALL - 75 * + + 37 AS col0
----
-2775

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT - COUNT( * ) + - + 30, - 18 + 33 + + - 23 AS col2
----
-31
-8

skipif mysql # not compatible
query II rowsort label-6823
SELECT - COUNT ( * ) + - + 30, - 18 + 33 + + - 23 AS col2
----
-31
-8

query I rowsort
SELECT DISTINCT + 84 * + 57 * 76
----
363888

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT - NULLIF ( 82, + + 71 * 24 * + + 97 * + MAX( 71 ) / COUNT( * ) ) + - ( - COUNT( * ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-6825
SELECT - NULLIF ( 82, + + 71 * 24 * + + 97 * + MAX ( 71 ) / COUNT ( * ) ) + - ( - COUNT ( * ) ) AS col0
----
-81

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

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

query I rowsort
SELECT DISTINCT ( - - 6 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6828
SELECT ALL + COUNT( * ) DIV 41 AS col2, - 48 AS col0
----
0
-48

skipif mysql # not compatible
query II rowsort label-6828
SELECT ALL + COUNT ( * ) / 41 AS col2, - 48 AS col0
----
0
-48

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6830
SELECT DISTINCT NULLIF ( - 12, + ( - MAX( DISTINCT + 2 ) ) * + 39 * CAST( NULL AS SIGNED ) + - 17 ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT NULLIF ( - 12, + ( - MAX ( DISTINCT + 2 ) ) * + 39 * CAST ( NULL AS INTEGER ) + - 17 ) col1
----
-12

query I rowsort
SELECT - - 15 * - - 16
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-6832
SELECT ALL - 7 DIV 29 + + 98 + + 7 - - 34 + + 97
----
236

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL - 7 / 29 + + 98 + + 7 - - 34 + + 97
----
236

onlyif mysql # DIV for integer division: 
query II rowsort label-6833
SELECT - 11 + + 69 AS col1, - 32 DIV - 88
----
58
0

skipif mysql # not compatible
query II rowsort label-6833
SELECT - 11 + + 69 AS col1, - 32 / - 88
----
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT - ( - COUNT( * ) ) * COUNT( * ) + - - COALESCE ( + - 31, - 80 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-6834
SELECT - ( - COUNT ( * ) ) * COUNT ( * ) + - - COALESCE ( + - 31, - 80 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT + MIN( ALL 40 ) + - + 35 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6835
SELECT + MIN ( ALL 40 ) + - + 35 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6836
SELECT + CASE - 65 WHEN 22 / - - 30 + + 41 + - + 15 + - NULLIF ( CAST( - - 80 AS SIGNED ), + - 0 ) * - - COUNT( * ) / - 53 THEN NULL WHEN - 69 THEN 93 END * 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6836
SELECT + CASE - 65 WHEN 22 / - - 30 + + 41 + - + 15 + - NULLIF ( CAST ( - - 80 AS INTEGER ), + - 0 ) * - - COUNT ( * ) / - 53 THEN NULL WHEN - 69 THEN 93 END * 47 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6837
SELECT DISTINCT - 27 * + - 77 col1, COUNT( * ) AS col2
----
2079
1

skipif mysql # not compatible
query II rowsort label-6837
SELECT DISTINCT - 27 * + - 77 col1, COUNT ( * ) AS col2
----
2079
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT ALL - + 40 * + - ( - COUNT( * ) ) + - 24 + + - 47 + - COUNT( * ) AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - + 40 * + - ( - COUNT ( * ) ) + - 24 + + - 47 + - COUNT ( * ) AS col2
----
-112

query I rowsort
SELECT ALL - - 21 * + 2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT + + 88 + + 41 + COUNT( - + 37 ) AS col0
----
130

skipif mysql # not compatible
query I rowsort label-6840
SELECT + + 88 + + 41 + COUNT ( - + 37 ) AS col0
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6841
SELECT DISTINCT - + CASE + - MAX( ALL 44 ) WHEN 46 THEN NULL WHEN - 74 THEN 58 END * - + 75 * NULLIF ( - - 25, + 97 ) * 96 + - 86 + - 99 * + CAST( + 15 AS SIGNED ) * 14 + - 86 - + - 22 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT - + CASE + - MAX ( ALL 44 ) WHEN 46 THEN NULL WHEN - 74 THEN 58 END * - + 75 * NULLIF ( - - 25, + 97 ) * 96 + - 86 + - 99 * + CAST ( + 15 AS INTEGER ) * 14 + - 86 - + - 22 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT + - 90 * - MAX( - + 15 ) + 99 - + 31
----
-1282

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + - 90 * - MAX ( - + 15 ) + 99 - + 31
----
-1282

query I rowsort
SELECT + 24 + - 57 AS col0
----
-33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6845
SELECT + MIN( - CAST( NULL AS SIGNED ) ) * + 84 * + - 25
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6846
SELECT ALL ( - - 91 ) DIV - NULLIF ( - 70, + + COUNT( * ) * + 30 * + - 87 - + 50 ) DIV - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL ( - - 91 ) / - NULLIF ( - 70, + + COUNT ( * ) * + 30 * + - 87 - + 50 ) / - COUNT ( * ) AS col0
----
-1

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6849
SELECT + CAST ( MIN ( + 52 ) AS INTEGER ) / 77 + - 28 + + 14 * + COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT MIN( ALL + + NULLIF ( 79, + 87 ) )
----
79

skipif mysql # not compatible
query I rowsort label-6850
SELECT MIN ( ALL + + NULLIF ( 79, + 87 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT - 18 * - - COUNT( * ) * - - 56 * COALESCE ( 1, - - 50 * - + 49 + + 43, + 78 )
----
-1008

skipif mysql # not compatible
query I rowsort label-6851
SELECT - 18 * - - COUNT ( * ) * - - 56 * COALESCE ( 1, - - 50 * - + 49 + + 43, + 78 )
----
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-6852
SELECT DISTINCT - 26 DIV - 4
----
6

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT - 26 / - 4
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6853
SELECT ALL CASE - NULLIF ( + 11, + COUNT( * ) ) WHEN - + ( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + + 55 * NULLIF ( + 6, 46 ) + + 46 THEN - ( NULLIF ( + 20, + 68 / - ( - 18 ) + - 49 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL CASE - NULLIF ( + 11, + COUNT ( * ) ) WHEN - + ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + + 55 * NULLIF ( + 6, 46 ) + + 46 THEN - ( NULLIF ( + 20, + 68 / - ( - 18 ) + - 49 ) ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT + NULLIF ( - COUNT( * ), - - 50 - 23 ) - 71 + + + COUNT( * ) * + - MIN( DISTINCT + 4 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-6854
SELECT + NULLIF ( - COUNT ( * ), - - 50 - 23 ) - 71 + + + COUNT ( * ) * + - MIN ( DISTINCT + 4 ) AS col0
----
-76

query I rowsort
SELECT ALL 71 + - + 77 + - - 57
----
51

query I rowsort
SELECT DISTINCT 6 + + + 41 AS col1
----
47

query I rowsort
SELECT ALL 64 + - 6
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6858
SELECT DISTINCT - 81 + - + COUNT( * ) DIV + - 52 * + - 59
----
-81

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT - 81 + - + COUNT ( * ) / + - 52 * + - 59
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6859
SELECT DISTINCT + ( - MAX( - 1 ) ) + + - CAST( NULL AS SIGNED ) * - 83 * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT + ( - MAX ( - 1 ) ) + + - CAST ( NULL AS INTEGER ) * - 83 * - 38
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6860
SELECT ALL + 89 * + 49 + 22 * + 91 + - 22 AS col0, - ( + 31 ) + SUM( DISTINCT - 14 ) * + - 5 + 12 AS col1
----
6341
51

skipif mysql # not compatible
query II rowsort label-6860
SELECT ALL + 89 * + 49 + 22 * + 91 + - 22 AS col0, - ( + 31 ) + SUM ( DISTINCT - 14 ) * + - 5 + 12 AS col1
----
6341
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6861
SELECT - ( COUNT( - 18 ) ), COALESCE ( + 65, 31, + ( + + ( + + 65 ) ) + - 92 ) * 25 AS col0
----
-1
1625

skipif mysql # not compatible
query II rowsort label-6861
SELECT - ( COUNT ( - 18 ) ), COALESCE ( + 65, 31, + ( + + ( + + 65 ) ) + - 92 ) * 25 AS col0
----
-1
1625

query I rowsort
SELECT 25 - - + 99 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL - - ( - 62 ) + + NULLIF ( - COUNT( * ), + 41 + - COUNT( + + 8 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL - - ( - 62 ) + + NULLIF ( - COUNT ( * ), + 41 + - COUNT ( + + 8 ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL + 40 + - + 81 * + ( + 28 ) + - - MAX( ALL + + 53 ) - + - 22
----
-2153

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + 40 + - + 81 * + ( + 28 ) + - - MAX ( ALL + + 53 ) - + - 22
----
-2153

query I rowsort
SELECT NULLIF ( + 65, + 37 ) + 66 AS col2
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT ALL - 92 AS col2, COUNT( * ) + + + 37 * + - 91 AS col1
----
-92
-3366

skipif mysql # not compatible
query II rowsort label-6866
SELECT ALL - 92 AS col2, COUNT ( * ) + + + 37 * + - 91 AS col1
----
-92
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL - 37 + + - 35 + - 74 * + - COALESCE ( 63, - - 52 ) * + - COUNT( * ) + + 79
----
-4655

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - 37 + + - 35 + - 74 * + - COALESCE ( 63, - - 52 ) * + - COUNT ( * ) + + 79
----
-4655

onlyif mysql # DIV for integer division: 
query I rowsort label-6868
SELECT DISTINCT - + 56 DIV - - 31 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT - + 56 / - - 31 col1
----
-1

query I rowsort
SELECT ALL - - 6 * 99
----
594

query I rowsort
SELECT 20 + + 22 + + 81 col2
----
123

query I rowsort
SELECT - 61 - ( - - 46 ) AS col2
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT DISTINCT + COUNT( * ) * - + ( - - 63 ) * 53
----
-3339

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT + COUNT ( * ) * - + ( - - 63 ) * 53
----
-3339

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT MIN( - 69 ) * - 7 col0
----
483

skipif mysql # not compatible
query I rowsort label-6873
SELECT MIN ( - 69 ) * - 7 col0
----
483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6874
SELECT 80 - - 41 * - 13 * + ( ( + 24 ) ) * CAST( - COUNT( * ) AS SIGNED )
----
12872

skipif mysql # not compatible
query I rowsort label-6874
SELECT 80 - - 41 * - 13 * + ( ( + 24 ) ) * CAST ( - COUNT ( * ) AS INTEGER )
----
12872

query II rowsort
SELECT DISTINCT - 15 AS col1, + 54 + - - 59 AS col2
----
-15
113

query I rowsort
SELECT + 54 * - + ( 54 ) + 11
----
-2905

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6877
SELECT 64 + - - 24 + + 76 + + - CASE - + 45 WHEN + 66 THEN NULL WHEN COALESCE ( - 51, - 48 ) THEN NULL WHEN - 40 THEN 29 * - + 59 DIV + 38 - + COUNT( * ) WHEN + 31 THEN + + 98 ELSE - + ( + NULLIF ( COUNT( * ), - 51 ) ) * - MAX( ALL 52 ) - - COUNT( * ) END + + + 46 - 92 col0
----
65

skipif mysql # not compatible
query I rowsort label-6877
SELECT 64 + - - 24 + + 76 + + - CASE - + 45 WHEN + 66 THEN NULL WHEN COALESCE ( - 51, - 48 ) THEN NULL WHEN - 40 THEN 29 * - + 59 / + 38 - + COUNT ( * ) WHEN + 31 THEN + + 98 ELSE - + ( + NULLIF ( COUNT ( * ), - 51 ) ) * - MAX ( ALL 52 ) - - COUNT ( * ) END + + + 46 - 92 col0
----
65

query I rowsort
SELECT 39 * - 74 + - + 22 * 69 col1
----
-4404

onlyif mysql # DIV for integer division: 
query I rowsort label-6879
SELECT ALL - 67 DIV 29
----
-2

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL - 67 / 29
----
-2

query I rowsort
SELECT DISTINCT 30 + - 6
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6881
SELECT ALL 53 + 74 + - 9 + + 34 + + 81 + + 79 AS col0, ( - 70 ) * 7 * + + COUNT( * ) * 77
----
312
-37730

skipif mysql # not compatible
query II rowsort label-6881
SELECT ALL 53 + 74 + - 9 + + 34 + + 81 + + 79 AS col0, ( - 70 ) * 7 * + + COUNT ( * ) * 77
----
312
-37730

query I rowsort
SELECT 99 + + 35 * - + NULLIF ( - - 25, + + ( - - 70 ) ) * - 22
----
19349

query I rowsort
SELECT ALL 65 + 96 + 16 AS col0
----
177

query II rowsort
SELECT - 12, - ( - - 85 ) AS col1
----
-12
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6885
SELECT ALL + COUNT( * ) + 85 * 57 * + 32 DIV + COUNT( * )
----
155041

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL + COUNT ( * ) + 85 * 57 * + 32 / + COUNT ( * )
----
155041

onlyif mysql # DIV for integer division: 
query I rowsort label-6886
SELECT 89 DIV - 39
----
-2

skipif mysql # not compatible
query I rowsort label-6886
SELECT 89 / - 39
----
-2

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

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

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

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

query I rowsort
SELECT 27 * 38
----
1026

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6890
SELECT DISTINCT + 86 col1, 99 + + CAST( NULL AS SIGNED ) col0
----
86
NULL

skipif mysql # not compatible
query II rowsort label-6890
SELECT DISTINCT + 86 col1, 99 + + CAST ( NULL AS INTEGER ) col0
----
86
NULL

query I rowsort
SELECT DISTINCT - 41 - + 81
----
-122

query I rowsort
SELECT - 43 + + + 31 col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6893
SELECT DISTINCT - 37 AS col1, + COUNT( * ) * 5 - - 51 + ( - + 28 ) * + CAST( NULL AS SIGNED ) / COUNT( * ) + + 87 AS col1
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-6893
SELECT DISTINCT - 37 AS col1, + COUNT ( * ) * 5 - - 51 + ( - + 28 ) * + CAST ( NULL AS INTEGER ) / COUNT ( * ) + + 87 AS col1
----
-37
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6894
SELECT - - 12 * + COUNT( * ) - - - 75 * - 30 - + - 59 + + 88 AS col0, 82 * - 21
----
2409
-1722

skipif mysql # not compatible
query II rowsort label-6894
SELECT - - 12 * + COUNT ( * ) - - - 75 * - 30 - + - 59 + + 88 AS col0, 82 * - 21
----
2409
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT SUM( - 86 ) * - + COALESCE ( + 4, - 47 - - - COUNT( * ) ) + + COALESCE ( + COUNT( * ), - - COALESCE ( - ( + + 6 ), + 95 ) ) * + 3 * + + 68
----
548

skipif mysql # not compatible
query I rowsort label-6895
SELECT SUM ( - 86 ) * - + COALESCE ( + 4, - 47 - - - COUNT ( * ) ) + + COALESCE ( + COUNT ( * ), - - COALESCE ( - ( + + 6 ), + 95 ) ) * + 3 * + + 68
----
548

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6897
SELECT CAST( + - COUNT( * ) AS SIGNED ) * 49 * + 92 AS col2
----
-4508

skipif mysql # not compatible
query I rowsort label-6897
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) * 49 * + 92 AS col2
----
-4508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6898
SELECT 45 DIV 80 * - 40 + - - 61 DIV - COUNT( 2 )
----
-61

skipif mysql # not compatible
query I rowsort label-6898
SELECT 45 / 80 * - 40 + - - 61 / - COUNT ( 2 )
----
-61

query I rowsort
SELECT ( - - 8 ) AS col2
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT ALL - NULLIF ( 64, - + COUNT( * ) + 45 * MAX( 1 ) + - + 3 + 55 )
----
-64

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL - NULLIF ( 64, - + COUNT ( * ) + 45 * MAX ( 1 ) + - + 3 + 55 )
----
-64

query I rowsort
SELECT + 88 * + - 10 * - 35 + 52
----
30852

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6903
SELECT DISTINCT - COALESCE ( - 28, COUNT( * ) DIV - + 39 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT - COALESCE ( - 28, COUNT ( * ) / - + 39 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL - 43 * - - ( - 38 ) * + 66 + + ( + COUNT( * ) ) col2
----
107845

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - 43 * - - ( - 38 ) * + 66 + + ( + COUNT ( * ) ) col2
----
107845

query I rowsort
SELECT 54 * 10
----
540

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

skipif mysql # not compatible
query I rowsort label-6906
SELECT 90 + - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + 71 + + 93 + ( 27 )
----
191

query I rowsort
SELECT 80 * + 79
----
6320

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

query I rowsort
SELECT DISTINCT - 26 + + 94
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT DISTINCT 12 + + MAX( DISTINCT - 80 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT 12 + + MAX ( DISTINCT - 80 ) AS col2
----
-68

query I rowsort
SELECT ALL 47 + + 65 AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT ALL COALESCE ( - + 14, + 97 * MIN( ALL + 6 ) * + 60 + 63 + - - 23 * - + 91 + 6, + 42 - - - 79 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL COALESCE ( - + 14, + 97 * MIN ( ALL + 6 ) * + 60 + 63 + - - 23 * - + 91 + 6, + 42 - - - 79 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-6914
SELECT - NULLIF ( 60, MIN( ALL ( 73 ) ) / + 12 ) + - 45, 85 AS col1
----
-105
85

skipif mysql # not compatible
query II rowsort label-6914
SELECT - NULLIF ( 60, MIN ( ALL ( 73 ) ) / + 12 ) + - 45, 85 AS col1
----
-105
85

query I rowsort
SELECT ALL 11 + - 71 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT - SUM( ALL 6 ) * + 80
----
-480

skipif mysql # not compatible
query I rowsort label-6916
SELECT - SUM ( ALL 6 ) * + 80
----
-480

query II rowsort
SELECT + 4 - - + 88 AS col2, - 14
----
92
-14

query I rowsort
SELECT ALL - + 14 - + + NULLIF ( + + 26, + - 84 + + ( - AVG ( + + 84 ) ) + 28 )
----
-40

query I rowsort
SELECT + 31 + - 88
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6920
SELECT DISTINCT 6 * + 0 + - CASE WHEN - 9 IS NULL THEN NULL ELSE 61 END * CASE + COUNT( * ) WHEN - COUNT( * ) * - AVG ( ALL - + 18 ) THEN NULL WHEN 77 THEN + 4 DIV - 24 * - + COUNT( * ) + + - 75 + 93 ELSE - 41 END * 11
----
27511

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT 6 * + 0 + - CASE WHEN - 9 IS NULL THEN NULL ELSE 61 END * CASE + COUNT ( * ) WHEN - COUNT ( * ) * - AVG ( ALL - + 18 ) THEN NULL WHEN 77 THEN + 4 / - 24 * - + COUNT ( * ) + + - 75 + 93 ELSE - 41 END * 11
----
27511

query I rowsort
SELECT - - 57 + 72 + - 58
----
71

query I rowsort
SELECT + 93 * 30 * + + 1 col0
----
2790

query I rowsort
SELECT + + ( - 12 ) + - 49 + + 9 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT + + 77 - COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-6924
SELECT + + 77 - COUNT ( * ) AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6925
SELECT - - NULLIF ( + + 92, - 4 ) - 0 * + CAST( + 75 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-6925
SELECT - - NULLIF ( + + 92, - 4 ) - 0 * + CAST ( + 75 AS INTEGER )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT ALL 51 - - + COUNT( ALL - 21 ) * + 46 + + 57 + 61
----
215

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL 51 - - + COUNT ( ALL - 21 ) * + 46 + + 57 + 61
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT - COUNT( + 61 ) * - 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6927
SELECT - COUNT ( + 61 ) * - 67 AS col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6928
SELECT DISTINCT 8 DIV + - 94 AS col2, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-6928
SELECT DISTINCT 8 / + - 94 AS col2, COUNT ( * ) AS col2
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6929
SELECT + CASE CAST( + + COUNT( * ) AS SIGNED ) WHEN + 12 * - + 26 + + 87 + + 39 + - 44 THEN - 99 - + ( + + 32 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6929
SELECT + CASE CAST ( + + COUNT ( * ) AS INTEGER ) WHEN + 12 * - + 26 + + 87 + + 39 + - 44 THEN - 99 - + ( + + 32 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6930
SELECT + - 50 * ( + MIN( + - 73 ) ) * + 63 + - 78 + - + 63 AS col0, 16 + - COUNT( - 26 ) AS col1
----
229809
15

skipif mysql # not compatible
query II rowsort label-6930
SELECT + - 50 * ( + MIN ( + - 73 ) ) * + 63 + - 78 + - + 63 AS col0, 16 + - COUNT ( - 26 ) AS col1
----
229809
15

query I rowsort
SELECT ALL - 21 * - 52 + 9
----
1101

query II rowsort
SELECT + 73 AS col2, - 46 + + + 81
----
73
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT + 13 * 25 * + COUNT( * ) * - + MAX( DISTINCT + - 7 ) AS col2
----
2275

skipif mysql # not compatible
query I rowsort label-6933
SELECT + 13 * 25 * + COUNT ( * ) * - + MAX ( DISTINCT + - 7 ) AS col2
----
2275

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

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

query II rowsort
SELECT + 38 col0, + 52
----
38
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6936
SELECT ALL + 66 * - + 8 + - 81 + + ( 13 ) * COUNT( * ) + 60 DIV + COUNT( * )
----
-536

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL + 66 * - + 8 + - 81 + + ( 13 ) * COUNT ( * ) + 60 / + COUNT ( * )
----
-536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6937
SELECT CAST( + - 19 AS SIGNED ) * + 39 + + 0 * 31
----
-741

skipif mysql # not compatible
query I rowsort label-6937
SELECT CAST ( + - 19 AS INTEGER ) * + 39 + + 0 * 31
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT ALL COUNT( ALL 53 ) * 86 * - 1 + - - 91 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL COUNT ( ALL 53 ) * 86 * - 1 + - - 91 AS col2
----
5

query I rowsort
SELECT ALL + NULLIF ( + 53, + 41 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL + MIN( 48 ) * + - COUNT( 84 ) + + 42 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + MIN ( 48 ) * + - COUNT ( 84 ) + + 42 AS col2
----
-6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6942
SELECT ALL 89 * + + CAST( 90 AS SIGNED ) * CASE - - COUNT( * ) WHEN - - 47 THEN - 89 + - 72 WHEN + 7 THEN NULL END + - + COUNT( * ) / + ( - - 90 ) - - - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL 89 * + + CAST ( 90 AS INTEGER ) * CASE - - COUNT ( * ) WHEN - - 47 THEN - 89 + - 72 WHEN + 7 THEN NULL END + - + COUNT ( * ) / + ( - - 90 ) - - - 72 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6943
SELECT + COUNT( * ) + - COUNT( * ) + - - 27 AS col2, + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * - 14
----
27
NULL

skipif mysql # not compatible
query II rowsort label-6943
SELECT + COUNT ( * ) + - COUNT ( * ) + - - 27 AS col2, + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 14
----
27
NULL

query I rowsort
SELECT - 53 - + 69
----
-122

query I rowsort
SELECT 13 * + 34 * + 85 + 56 * + ( - + COALESCE ( 18, - 96, + 80 ) ) AS col0
----
36562

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

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

skipif mysql # not compatible
query I rowsort label-6947
SELECT - 26 * + 74 + + - COUNT ( * ) AS col1
----
-1925

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

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL - COUNT ( * ) * - COUNT ( * ) - - COUNT ( * ) + 65 AS col1
----
67

query I rowsort
SELECT - 17 * + 75 col2
----
-1275

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

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

query I rowsort
SELECT + 82 + + - 44
----
38

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

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

query I rowsort
SELECT - + 72 + + + 95
----
23

query I rowsort
SELECT ALL - 61 - 93
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT - 25 * + COALESCE ( + MAX( - 96 ), 98, 5 * + - 94 * + 84 )
----
2400

skipif mysql # not compatible
query I rowsort label-6955
SELECT - 25 * + COALESCE ( + MAX ( - 96 ), 98, 5 * + - 94 * + 84 )
----
2400

query I rowsort
SELECT - 78 + 60 + 1 * + 75 + 16
----
73

query I rowsort
SELECT + 52 + ( 18 ) AS col2
----
70

query I rowsort
SELECT - 91 * + 32
----
-2912

query I rowsort
SELECT + 65 + 24
----
89

query I rowsort
SELECT + 79 + + 8
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6961
SELECT DISTINCT 37 col1, - 77 * + 51 - - - CAST( NULL AS SIGNED ) / COUNT( * ) col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-6961
SELECT DISTINCT 37 col1, - 77 * + 51 - - - CAST ( NULL AS INTEGER ) / COUNT ( * ) col2
----
37
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT ALL + 34 * + 35 * - - 78 + + CAST( 12 AS SIGNED )
----
92832

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL + 34 * + 35 * - - 78 + + CAST ( 12 AS INTEGER )
----
92832

query I rowsort
SELECT + + 29 + - + 8
----
21

query I rowsort
SELECT DISTINCT + - 70 * + COALESCE ( 99, + 44 )
----
-6930

query I rowsort
SELECT DISTINCT + 7 * 25 AS col1
----
175

query I rowsort
SELECT + - 95 * + 58 * + 50
----
-275500

query I rowsort
SELECT ALL + ( + + 74 ) col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6968
SELECT ALL 94 DIV + - COUNT( + 71 ) + - 71 * - 9 + + 86 - 73 * 96 col2
----
-6377

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL 94 / + - COUNT ( + 71 ) + - 71 * - 9 + + 86 - 73 * 96 col2
----
-6377

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT - ( - + NULLIF ( - COUNT( * ), - 63 ) ) * + 90 * - 76
----
6840

skipif mysql # not compatible
query I rowsort label-6969
SELECT - ( - + NULLIF ( - COUNT ( * ), - 63 ) ) * + 90 * - 76
----
6840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6970
SELECT CAST( NULL AS SIGNED ) * + + 47 * + 22 * - - 43 * + 43 - + - 44 + - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT CAST ( NULL AS INTEGER ) * + + 47 * + 22 * - - 43 * + 43 - + - 44 + - + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6971
SELECT DISTINCT 92 / + - CASE - 56 WHEN - 88 * - 53 * + + 10 - - 94 * - + 5 + - COUNT( * ) THEN - 65 WHEN + CAST( - ( - - 94 ) AS SIGNED ) THEN NULL ELSE - - ( + - 89 ) + 39 END + + - 16 - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT 92 / + - CASE - 56 WHEN - 88 * - 53 * + + 10 - - 94 * - + 5 + - COUNT ( * ) THEN - 65 WHEN + CAST ( - ( - - 94 ) AS INTEGER ) THEN NULL ELSE - - ( + - 89 ) + 39 END + + - 16 - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6972
SELECT + CASE 97 WHEN + ( - 67 ) * 34 * - + 75 * 97 + - 29 * + 70 THEN - COUNT( * ) * 41 + 34 + - COUNT( * ) * + 0 WHEN + 74 * - 57 THEN 50 * - MAX( DISTINCT - 92 ) ELSE + 61 * - - 25 - + 54 DIV + ( - 9 ) END
----
1531

skipif mysql # not compatible
query I rowsort label-6972
SELECT + CASE 97 WHEN + ( - 67 ) * 34 * - + 75 * 97 + - 29 * + 70 THEN - COUNT ( * ) * 41 + 34 + - COUNT ( * ) * + 0 WHEN + 74 * - 57 THEN 50 * - MAX ( DISTINCT - 92 ) ELSE + 61 * - - 25 - + 54 / + ( - 9 ) END
----
1531

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT + 55 * 45 + - 33 * - 65 - CASE - 83 WHEN COUNT( * ) * - - 31 * + 29 THEN ( 26 ) * - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT + 55 * 45 + - 33 * - 65 - CASE - 83 WHEN COUNT ( * ) * - - 31 * + 29 THEN ( 26 ) * - 93 END
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-6975
SELECT 80 * + COUNT ( * ) + - 11 AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6976
SELECT + CAST( - + MIN( 71 ) AS SIGNED ) + - 44 + ( 40 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6976
SELECT + CAST ( - + MIN ( 71 ) AS INTEGER ) + - 44 + ( 40 ) AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6977
SELECT ALL 4 DIV - 65 + - ( - - 51 ) + + - 74 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL 4 / - 65 + - ( - - 51 ) + + - 74 AS col0
----
-125

query I rowsort
SELECT DISTINCT 0 - - + 53
----
53

query I rowsort
SELECT 24 + 14
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT ALL COUNT( * ) - + 67 - + 55 + + - ( + 67 ) + - COUNT( * ) + - + 37 AS col0
----
-226

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL COUNT ( * ) - + 67 - + 55 + + - ( + 67 ) + - COUNT ( * ) + - + 37 AS col0
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT DISTINCT - SUM( ALL - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-6981
SELECT DISTINCT - SUM ( ALL - 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT ( + 29 ) * COUNT( * ) * 52
----
1508

skipif mysql # not compatible
query I rowsort label-6982
SELECT ( + 29 ) * COUNT ( * ) * 52
----
1508

query I rowsort
SELECT ALL 76 - 68 col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6984
SELECT ALL + - COUNT( * ) - + 38 col2, CAST( NULL AS SIGNED ) * - 82
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-6984
SELECT ALL + - COUNT ( * ) - + 38 col2, CAST ( NULL AS INTEGER ) * - 82
----
-39
NULL

query I rowsort
SELECT 56 * - 4 AS col1
----
-224

onlyif mysql # aggregate syntax: 
query II rowsort label-6986
SELECT - 53 - + 11 AS col0, 79 * COUNT( * ) AS col1
----
-64
79

skipif mysql # not compatible
query II rowsort label-6986
SELECT - 53 - + 11 AS col0, 79 * COUNT ( * ) AS col1
----
-64
79

query I rowsort
SELECT 5 + - 6 AS col2
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6989
SELECT - 80 + - NULLIF ( + COUNT( * ), 28 + - + 53 ) + + - COUNT( * ) - - ( - + MIN( - CAST( + + 15 AS SIGNED ) ) ) + 90 * 86
----
7673

skipif mysql # not compatible
query I rowsort label-6989
SELECT - 80 + - NULLIF ( + COUNT ( * ), 28 + - + 53 ) + + - COUNT ( * ) - - ( - + MIN ( - CAST ( + + 15 AS INTEGER ) ) ) + 90 * 86
----
7673

query I rowsort
SELECT + 3 - 80 * 52 + + + 24 col2
----
-4133

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6991
SELECT ALL - - CAST( 7 AS SIGNED ) * + 20 DIV 18 + 16
----
23

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL - - CAST ( 7 AS INTEGER ) * + 20 / 18 + 16
----
23

query I rowsort
SELECT ALL - 3 + + - 17 AS col0
----
-20

query I rowsort
SELECT ALL + - 92 + - 79 AS col1
----
-171

query I rowsort
SELECT 53 + - 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT - COUNT( ALL ( - 11 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6995
SELECT - COUNT ( ALL ( - 11 ) ) col0
----
-1

query I rowsort
SELECT - 96 + - 74 * + 52 AS col0
----
-3944

onlyif mysql # DIV for integer division: 
query II rowsort label-6997
SELECT 43 - 99 * + - 79 * 4 AS col0, 76 DIV - 66 AS col1
----
31327
-1

skipif mysql # not compatible
query II rowsort label-6997
SELECT 43 - 99 * + - 79 * 4 AS col0, 76 / - 66 AS col1
----
31327
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6999
SELECT COALESCE ( - 95, 8 + + + 28 * + 83 + - 54 ) - + CASE + + 58 WHEN COUNT( * ) * 23 THEN NULL ELSE - CAST( - 46 AS SIGNED ) END
----
-141

skipif mysql # not compatible
query I rowsort label-6999
SELECT COALESCE ( - 95, 8 + + + 28 * + 83 + - 54 ) - + CASE + + 58 WHEN COUNT ( * ) * 23 THEN NULL ELSE - CAST ( - 46 AS INTEGER ) END
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL COUNT( * ) + 80 + - 91 * - 6
----
627

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL COUNT ( * ) + 80 + - 91 * - 6
----
627

query I rowsort
SELECT DISTINCT + 39 + + 2
----
41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7002
SELECT ALL + 21 * COALESCE ( - ( - NULLIF ( + - CAST( NULL AS SIGNED ), - 83 * + 38 ) ), 30 DIV - + 60 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + 21 * COALESCE ( - ( - NULLIF ( + - CAST ( NULL AS INTEGER ), - 83 * + 38 ) ), 30 / - + 60 ) AS col1
----
0

query I rowsort
SELECT ALL + 12 * + 81
----
972

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT + 62 DIV + 26 + + 27 * + + 19
----
515

skipif mysql # not compatible
query I rowsort label-7005
SELECT + 62 / + 26 + + 27 * + + 19
----
515

query I rowsort
SELECT ALL ( - 25 ) - - 34 + + - 8
----
1

query II rowsort
SELECT ALL - 63 AS col0, + 20
----
-63
20

query I rowsort
SELECT 98 + - 67 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT 5 + - COUNT( - - 23 ) col0
----
4

skipif mysql # not compatible
query I rowsort label-7009
SELECT 5 + - COUNT ( - - 23 ) col0
----
4

query I rowsort
SELECT 8 * - 52 * - 84
----
34944

query I rowsort
SELECT ALL - 77 - - 54 AS col0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT ALL 35 DIV + 8 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL 35 / + 8 AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT 33 + + 42 * - 14 - - 63 DIV + + 89 * + + COUNT( * ) + - 9
----
-564

skipif mysql # not compatible
query I rowsort label-7013
SELECT 33 + + 42 * - 14 - - 63 / + + 89 * + + COUNT ( * ) + - 9
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL + 61 * 91 * - + COUNT( * ) * + + 20 * - - 98 * + 22
----
-239359120

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL + 61 * 91 * - + COUNT ( * ) * + + 20 * - - 98 * + 22
----
-239359120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT CASE + + 32 WHEN 58 THEN - - MIN( ( - 71 ) ) ELSE NULL END - + MAX( ALL - 78 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7016
SELECT CASE + + 32 WHEN 58 THEN - - MIN ( ( - 71 ) ) ELSE NULL END - + MAX ( ALL - 78 ) col0
----
NULL

query I rowsort
SELECT ALL + 33 * + - ( 46 ) AS col1
----
-1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7018
SELECT MAX( DISTINCT 62 ) * + 1 + - 57 + - AVG ( + - CAST( NULL AS SIGNED ) ) / - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7018
SELECT MAX ( DISTINCT 62 ) * + 1 + - 57 + - AVG ( + - CAST ( NULL AS INTEGER ) ) / - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT + 20 + - 46 + NULLIF ( 94, - COUNT( * ) * 89 )
----
68

skipif mysql # not compatible
query I rowsort label-7019
SELECT + 20 + - 46 + NULLIF ( 94, - COUNT ( * ) * 89 )
----
68

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

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

query I rowsort
SELECT + - 24 * + + 42 + - - 61 + - 28 AS col1
----
-975

query I rowsort
SELECT - 43 * - - 94 AS col1
----
-4042

query I rowsort
SELECT ALL - 9 + - + 11 + - 89
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT ALL + COUNT( * ) * - - 55 * - 67 + - 3
----
-3688

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL + COUNT ( * ) * - - 55 * - 67 + - 3
----
-3688

onlyif mysql # DIV for integer division: 
query I rowsort label-7025
SELECT - 0 + + 23 - + 83 DIV - + 86 col1
----
23

skipif mysql # not compatible
query I rowsort label-7025
SELECT - 0 + + 23 - + 83 / - + 86 col1
----
23

query I rowsort
SELECT DISTINCT - 6 + 71
----
65

query I rowsort
SELECT - - NULLIF ( + + 74, - 24 ) AS col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7028
SELECT - 27 DIV + 97 + + 63 + - 95 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7028
SELECT - 27 / + 97 + + 63 + - 95 AS col0
----
-32

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

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

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

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

query I rowsort
SELECT + 36 * - 61 AS col0
----
-2196

query I rowsort
SELECT ALL COALESCE ( + - 45, + - 64, + 34 ) AS col0
----
-45

query I rowsort
SELECT DISTINCT - 24 * - 33 * 24 + 72 - 96 AS col0
----
18984

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT DISTINCT + 66 + + - 37 + + 53 + + MIN( ALL - - 94 )
----
176

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT + 66 + + - 37 + + 53 + + MIN ( ALL - - 94 )
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7035
SELECT ALL - - COUNT( * ) * + + 85 + - 20 DIV 56 col1
----
85

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL - - COUNT ( * ) * + + 85 + - 20 / 56 col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT ALL + COUNT( * ) + MAX( - - ( - CAST( + 40 AS SIGNED ) ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL + COUNT ( * ) + MAX ( - - ( - CAST ( + 40 AS INTEGER ) ) ) AS col0
----
-39

query II rowsort
SELECT ALL 70, 96 AS col1
----
70
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7038
SELECT DISTINCT 31 * + 20 * 61 DIV COUNT( * ) * + 1 AS col2
----
37820

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT 31 * + 20 * 61 / COUNT ( * ) * + 1 AS col2
----
37820

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT - 43 DIV + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7039
SELECT - 43 / + 59 AS col2
----
0

query I rowsort
SELECT ALL COALESCE ( - 41, 96 ) AS col1
----
-41

query I rowsort
SELECT - 60 + + + 54 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-7042
SELECT ALL + 26 - - COALESCE ( + 52, + 41, + COUNT( * ) * - - 12 + - 78 + - 1, + - 78 ), - ( 95 ) * + 22 col0
----
78
-2090

skipif mysql # not compatible
query II rowsort label-7042
SELECT ALL + 26 - - COALESCE ( + 52, + 41, + COUNT ( * ) * - - 12 + - 78 + - 1, + - 78 ), - ( 95 ) * + 22 col0
----
78
-2090

query I rowsort
SELECT COALESCE ( - ( + 91 ), + - 85, + + 50, 84 ) AS col0
----
-91

query I rowsort
SELECT NULLIF ( + - 85, + 99 )
----
-85

query I rowsort
SELECT - 30 + - 58 - 37 AS col1
----
-125

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

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

query I rowsort
SELECT - 8 * - ( 14 ) + - + 81 + + 79 - ( + 54 ) * 97 - - - 16 * 0
----
-5128

query I rowsort
SELECT NULLIF ( - 74, - - 65 ) col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT COALESCE ( - 57, 10, + + 72 * - 54 * - SUM( ALL - 71 ) * + 36 )
----
-57

skipif mysql # not compatible
query I rowsort label-7049
SELECT COALESCE ( - 57, 10, + + 72 * - 54 * - SUM ( ALL - 71 ) * + 36 )
----
-57

query I rowsort
SELECT NULLIF ( 88, + + 27 - + - 23 )
----
88

query I rowsort
SELECT DISTINCT 82 * 1 col1
----
82

query II rowsort
SELECT ALL + 98, - 50 + + 54 AS col2
----
98
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT + MAX( + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7053
SELECT + MAX ( + 68 ) AS col2
----
68

query I rowsort
SELECT DISTINCT - 64 * 92 * + 6 AS col0
----
-35328

query I rowsort
SELECT - 34 * + 60
----
-2040

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT - COUNT( * ) * + 24 * 25 * - + 68 AS col0
----
40800

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT - COUNT ( * ) * + 24 * 25 * - + 68 AS col0
----
40800

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT + CASE + MIN( - 57 ) WHEN 63 - 91 * 51 THEN 28 + - 0 WHEN - + 1 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT + CASE + MIN ( - 57 ) WHEN 63 - 91 * 51 THEN 28 + - 0 WHEN - + 1 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7059
SELECT + CAST ( NULL AS REAL ) + 48 / + 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7060
SELECT - - COALESCE ( + - 29, + 71, - + 19 DIV + + MAX( - - 75 ) ) DIV 5 * COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-7060
SELECT - - COALESCE ( + - 29, + 71, - + 19 / + + MAX ( - - 75 ) ) / 5 * COUNT ( * )
----
-5

query I rowsort
SELECT + 18 * 98 + - + 43 AS col0
----
1721

query I rowsort
SELECT ALL + 12 * - - 68 + + + 65
----
881

onlyif mysql # aggregate syntax: 
query II rowsort label-7063
SELECT ALL + + 41, COALESCE ( - 12, CASE - ( 95 ) WHEN + 49 - - 58 - 35 + MIN( DISTINCT - 99 ) + 3 / COALESCE ( + 1, 32 * + 19 - + + 30 * 89 ) THEN + 64 END ) AS col2
----
41
-12

skipif mysql # not compatible
query II rowsort label-7063
SELECT ALL + + 41, COALESCE ( - 12, CASE - ( 95 ) WHEN + 49 - - 58 - 35 + MIN ( DISTINCT - 99 ) + 3 / COALESCE ( + 1, 32 * + 19 - + + 30 * 89 ) THEN + 64 END ) AS col2
----
41
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-7064
SELECT DISTINCT - - 30 * + 96 + + + 25 + - 84 DIV + - 94 AS col0
----
2905

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT - - 30 * + 96 + + + 25 + - 84 / + - 94 AS col0
----
2905

query I rowsort
SELECT ALL + 47 * - 75
----
-3525

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( + 28, - - 17 * + + 27 ) + + 79
----
51

query II rowsort
SELECT ALL - 77 + - 78 + + 52 + + - 88, - 97 AS col1
----
-191
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7069
SELECT DISTINCT 72 DIV 20 * + - 13 * - 52 * - ( 5 ) AS col2, - CAST( + COUNT( * ) AS SIGNED )
----
-10140
-1

skipif mysql # not compatible
query II rowsort label-7069
SELECT DISTINCT 72 / 20 * + - 13 * - 52 * - ( 5 ) AS col2, - CAST ( + COUNT ( * ) AS INTEGER )
----
-10140
-1

query II rowsort
SELECT - 17, 23 AS col0
----
-17
23

query II rowsort
SELECT + - 17 * + 46 AS col2, 81 AS col0
----
-782
81

query I rowsort
SELECT + + ( - + 17 ) + + - 75 + + + 14 * 4 col1
----
-36

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7074
SELECT + COUNT( * ) - + COALESCE ( + 78, - 40 * + + 50, + COUNT( * ) ) AS col2, 85
----
-77
85

skipif mysql # not compatible
query II rowsort label-7074
SELECT + COUNT ( * ) - + COALESCE ( + 78, - 40 * + + 50, + COUNT ( * ) ) AS col2, 85
----
-77
85

query I rowsort
SELECT ALL 70 * - - 94 AS col2
----
6580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7076
SELECT ALL CASE - CASE 0 WHEN + COALESCE ( + 23, - 47 * 8 + - - 32 + - + 46 * + 97 ) THEN 34 / ( 56 ) * + 69 * - ( + 95 ) - + + NULLIF ( + CAST( NULL AS SIGNED ), + COUNT( * ) ) ELSE NULL END WHEN 76 / + 59 + COUNT( * ) THEN - 18 WHEN 55 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL CASE - CASE 0 WHEN + COALESCE ( + 23, - 47 * 8 + - - 32 + - + 46 * + 97 ) THEN 34 / ( 56 ) * + 69 * - ( + 95 ) - + + NULLIF ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ELSE NULL END WHEN 76 / + 59 + COUNT ( * ) THEN - 18 WHEN 55 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 19 + + 77
----
96

query I rowsort
SELECT ALL 25 - - + 59 * + 7 AS col0
----
438

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT - COALESCE ( + + 32, + 11 + - 37 + + + SUM( ALL + - ( + - 39 ) ) + + - 96 * - COUNT( * ) + - COUNT( - 12 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-7079
SELECT - COALESCE ( + + 32, + 11 + - 37 + + + SUM ( ALL + - ( + - 39 ) ) + + - 96 * - COUNT ( * ) + - COUNT ( - 12 ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT + ( - - 59 ) + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-7080
SELECT + ( - - 59 ) + - COUNT ( * )
----
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7082
SELECT DISTINCT 78 DIV + - 28 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT 78 / + - 28 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT + MAX( DISTINCT - 11 ) + + - 1 * - ( + 24 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7083
SELECT + MAX ( DISTINCT - 11 ) + + - 1 * - ( + 24 ) AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT - 89 - - + 60 DIV + 11 - + 35
----
-119

skipif mysql # not compatible
query I rowsort label-7084
SELECT - 89 - - + 60 / + 11 - + 35
----
-119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT - 7 * - SUM( ALL 68 ) AS col0
----
476

skipif mysql # not compatible
query I rowsort label-7086
SELECT - 7 * - SUM ( ALL 68 ) AS col0
----
476

query I rowsort
SELECT ALL - 49 * NULLIF ( - 32, 47 ) AS col0
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT ALL MIN( DISTINCT - 23 ) * + 47 * - 49 * - 84 col1
----
-4449396

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL MIN ( DISTINCT - 23 ) * + 47 * - 49 * - 84 col1
----
-4449396

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT - COUNT( * ) * + 97 + 18
----
-79

skipif mysql # not compatible
query I rowsort label-7089
SELECT - COUNT ( * ) * + 97 + 18
----
-79

query I rowsort
SELECT - 11 + - 50
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7091
SELECT - COALESCE ( - COALESCE ( COUNT( * ), + + 92 + 30 + - - 40 + - + 65 ), + - 97 + - 68 - + ( 65 ) + + 94 * 75 * + 0 ) + CAST( COUNT( DISTINCT 97 ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-7091
SELECT - COALESCE ( - COALESCE ( COUNT ( * ), + + 92 + 30 + - - 40 + - + 65 ), + - 97 + - 68 - + ( 65 ) + + 94 * 75 * + 0 ) + CAST ( COUNT ( DISTINCT 97 ) AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT ALL COUNT( * ) * - 94 + - - 69 + + SUM( ALL 8 ) col2
----
-17

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL COUNT ( * ) * - 94 + - - 69 + + SUM ( ALL 8 ) col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT - - COUNT( * ) + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-7093
SELECT - - COUNT ( * ) + - 76
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7094
SELECT - COUNT( * ) * + 89 + + 64 DIV + 86 + - COUNT( * ) - - + 3 + + 84 + - COUNT( * ) * + 76 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-7094
SELECT - COUNT ( * ) * + 89 + + 64 / + 86 + - COUNT ( * ) - - + 3 + + 84 + - COUNT ( * ) * + 76 AS col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7095
SELECT DISTINCT - - COALESCE ( 76, - 80, 68 + ( + 40 ) ) * - 80 * CAST( COUNT( DISTINCT - 52 ) AS SIGNED )
----
-6080

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT - - COALESCE ( 76, - 80, 68 + ( + 40 ) ) * - 80 * CAST ( COUNT ( DISTINCT - 52 ) AS INTEGER )
----
-6080

onlyif mysql # aggregate syntax: 
query II rowsort label-7096
SELECT ALL + COUNT( * ) * - COUNT( * ) + COUNT( * ) * + - 48 + - - 32 + - 75 - - 89, - 66 AS col1
----
-3
-66

skipif mysql # not compatible
query II rowsort label-7096
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) * + - 48 + - - 32 + - 75 - - 89, - 66 AS col1
----
-3
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT - + 12 + + + 8 * - + ( SUM( ALL 88 ) ) AS col2, + 16
----
-716
16

skipif mysql # not compatible
query II rowsort label-7097
SELECT - + 12 + + + 8 * - + ( SUM ( ALL 88 ) ) AS col2, + 16
----
-716
16

query I rowsort
SELECT DISTINCT - 90 * + NULLIF ( + 26, - 68 ) col1
----
-2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7099
SELECT ALL - + CASE + 78 WHEN + 7 THEN - 83 DIV - - 35 ELSE + 5 * + 81 END * - COUNT( * ) AS col0
----
405

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL - + CASE + 78 WHEN + 7 THEN - 83 / - - 35 ELSE + 5 * + 81 END * - COUNT ( * ) AS col0
----
405

query II rowsort
SELECT DISTINCT + 71 * ( - 68 ) + + ( - - 56 ) AS col1, - 40 AS col2
----
-4772
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7101
SELECT - - 35 * + CAST( - 66 AS SIGNED ) * + 56
----
-129360

skipif mysql # not compatible
query I rowsort label-7101
SELECT - - 35 * + CAST ( - 66 AS INTEGER ) * + 56
----
-129360

query II rowsort
SELECT ALL + ( 42 ) AS col1, 61
----
42
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7103
SELECT ALL - 74 DIV - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL - 74 / - COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL - - 81 - SUM( + 72 ) * - SUM( ALL 73 )
----
5337

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL - - 81 - SUM ( + 72 ) * - SUM ( ALL 73 )
----
5337

query I rowsort
SELECT DISTINCT 47 * - ( - 43 ) - 14 AS col2
----
2007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7106
SELECT NULLIF ( NULLIF ( - 97, + + 0 ), - - COUNT( * ) + COUNT( * ) ) DIV + 46 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7106
SELECT NULLIF ( NULLIF ( - 97, + + 0 ), - - COUNT ( * ) + COUNT ( * ) ) / + 46 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7107
SELECT ALL COUNT( * ) DIV - - 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL COUNT ( * ) / - - 38 AS col1
----
0

query I rowsort
SELECT ALL 19 * - - 23
----
437

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

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

query I rowsort
SELECT ALL 72 * - 1 AS col1
----
-72

query I rowsort
SELECT 8 * - + 68
----
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL - SUM( - 80 ) * - 94 * - 71 AS col1
----
533920

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL - SUM ( - 80 ) * - 94 * - 71 AS col1
----
533920

query II rowsort
SELECT DISTINCT 39 AS col0, - 2
----
39
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7114
SELECT DISTINCT 18 * - 44 * COALESCE ( + 80, + - SUM( DISTINCT + 36 ), 76 + - 4 * + + CAST( NULL AS SIGNED ) * - + ( NULLIF ( + 93, + 57 ) ) ) col2, + 53
----
-63360
53

skipif mysql # not compatible
query II rowsort label-7114
SELECT DISTINCT 18 * - 44 * COALESCE ( + 80, + - SUM ( DISTINCT + 36 ), 76 + - 4 * + + CAST ( NULL AS INTEGER ) * - + ( NULLIF ( + 93, + 57 ) ) ) col2, + 53
----
-63360
53

query I rowsort
SELECT ALL 36 * + ( + - 89 ) AS col1
----
-3204

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT COUNT( * ) * 55 col1
----
55

skipif mysql # not compatible
query I rowsort label-7116
SELECT COUNT ( * ) * 55 col1
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7117
SELECT ALL 98 AS col2, + COALESCE ( + 2, - CASE WHEN NULL IS NULL THEN - 50 END * 11 DIV + - 80 ) * MIN( + 95 ) * - - COUNT( * )
----
98
190

skipif mysql # not compatible
query II rowsort label-7117
SELECT ALL 98 AS col2, + COALESCE ( + 2, - CASE WHEN NULL IS NULL THEN - 50 END * 11 / + - 80 ) * MIN ( + 95 ) * - - COUNT ( * )
----
98
190

query I rowsort
SELECT ALL 29 + + 0 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT 59 + + - SUM( DISTINCT 63 ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-7119
SELECT 59 + + - SUM ( DISTINCT 63 ) col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7120
SELECT ( - 32 ) * - + 68 DIV - COUNT( * ) + - 66 DIV 37 * COALESCE ( + - 91, + - 77, 99 ) col0
----
-2085

skipif mysql # not compatible
query I rowsort label-7120
SELECT ( - 32 ) * - + 68 / - COUNT ( * ) + - 66 / 37 * COALESCE ( + - 91, + - 77, 99 ) col0
----
-2085

query I rowsort
SELECT DISTINCT 5 + 39 - + - 82 AS col2
----
126

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

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

query I rowsort
SELECT ALL - COALESCE ( + ( + 93 ), - 75 * - + 35 ) AS col0
----
-93

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

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

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

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL - 52 * + CAST ( NULL AS INTEGER ) col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT DISTINCT - + NULLIF ( - - 85, COALESCE ( 67, - SUM( ALL - - 95 ) + - 55 ) + + 15 / 33 )
----
-85

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT - + NULLIF ( - - 85, COALESCE ( 67, - SUM ( ALL - - 95 ) + - 55 ) + + 15 / 33 )
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7128
SELECT - 89 * - + 7 + + CAST( NULL AS DECIMAL ) + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT - 89 * - + 7 + + CAST ( NULL AS REAL ) + 93 AS col0
----
NULL

query I rowsort
SELECT ALL + + COALESCE ( + + 50, CASE - 5 WHEN + 23 THEN - ( 76 ) END * + - 29 ) - + 98 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT + + NULLIF ( - COUNT( * ), + 11 * + 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-7130
SELECT + + NULLIF ( - COUNT ( * ), + 11 * + 3 )
----
-1

query I rowsort
SELECT ALL - 95 - - 77 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT MAX( - 89 ) * - + COUNT( * ) * - 15 - - + 48 + - 31
----
-1318

skipif mysql # not compatible
query I rowsort label-7132
SELECT MAX ( - 89 ) * - + COUNT ( * ) * - 15 - - + 48 + - 31
----
-1318

query II rowsort
SELECT DISTINCT - 25, - 77 + + 88 AS col2
----
-25
11

query I rowsort
SELECT ALL + 45 * + 99 col1
----
4455

query II rowsort
SELECT - 80 col1, 52
----
-80
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7136
SELECT 54 * - CASE 46 WHEN + + 66 + + - 17 THEN 24 END * + COUNT( * ) + - + COUNT( DISTINCT + CASE + 17 WHEN + CAST( + CAST( + 6 AS SIGNED ) AS SIGNED ) THEN NULL WHEN 48 THEN 84 WHEN + - 32 THEN - 40 * 39 END ) - - 11 + - 40 * - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7136
SELECT 54 * - CASE 46 WHEN + + 66 + + - 17 THEN 24 END * + COUNT ( * ) + - + COUNT ( DISTINCT + CASE + 17 WHEN + CAST ( + CAST ( + 6 AS INTEGER ) AS INTEGER ) THEN NULL WHEN 48 THEN 84 WHEN + - 32 THEN - 40 * 39 END ) - - 11 + - 40 * - - 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7137
SELECT 35 * 84 - - - 69 + 44 AS col1, 12 * + COALESCE ( - COUNT( * ), - 28 )
----
2915
-12

skipif mysql # not compatible
query II rowsort label-7137
SELECT 35 * 84 - - - 69 + 44 AS col1, 12 * + COALESCE ( - COUNT ( * ), - 28 )
----
2915
-12

query I rowsort
SELECT 89 * 40 * 81
----
288360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7139
SELECT COALESCE ( - COUNT( * ), 19, - MIN( DISTINCT ( - 71 ) ) ) * - - CAST( NULL AS SIGNED ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7139
SELECT COALESCE ( - COUNT ( * ), 19, - MIN ( DISTINCT ( - 71 ) ) ) * - - CAST ( NULL AS INTEGER ) * 76
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL SUM ( ALL - 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT ALL + COUNT( DISTINCT - 63 ) * - 87
----
-87

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL + COUNT ( DISTINCT - 63 ) * - 87
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7142
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 94 / 50 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 94 / 50 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT NULLIF ( + 6, - 3 + CASE - + 87 WHEN + + 0 * 89 * + 76 * + 96 THEN COUNT( * ) * + - 51 + - 90 END + + 25 ) + - 1 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7143
SELECT NULLIF ( + 6, - 3 + CASE - + 87 WHEN + + 0 * 89 * + 76 * + 96 THEN COUNT ( * ) * + - 51 + - 90 END + + 25 ) + - 1 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT ALL SUM( + COALESCE ( - 34, - 33, + + 10 * - - 42 - 87 - 47 * 14 * + 3 + - 79 * - + 91 ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL SUM ( + COALESCE ( - 34, - 33, + + 10 * - - 42 - 87 - 47 * 14 * + 3 + - 79 * - + 91 ) ) AS col1
----
-34

query I rowsort
SELECT 7 + 1 + 16 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL - 59 + + 61 * - ( COUNT( * ) ) AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - 59 + + 61 * - ( COUNT ( * ) ) AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT 14 * + COUNT( + 35 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-7147
SELECT 14 * + COUNT ( + 35 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7148
SELECT COUNT( * ) + 54 * - ( - 54 ) AS col0, - 14 AS col1
----
2917
-14

skipif mysql # not compatible
query II rowsort label-7148
SELECT COUNT ( * ) + 54 * - ( - 54 ) AS col0, - 14 AS col1
----
2917
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7149
SELECT DISTINCT CASE - + 46 WHEN + 1 THEN NULL WHEN - 2 * + 5 - 15 THEN - ( + 78 ) END + - CAST( + - MAX( - 18 ) AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT CASE - + 46 WHEN + 1 THEN NULL WHEN - 2 * + 5 - 15 THEN - ( + 78 ) END + - CAST ( + - MAX ( - 18 ) AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7150
SELECT DISTINCT 23 + + COUNT( * ) + - 82 DIV + 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT 23 + + COUNT ( * ) + - 82 / + 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT CASE WHEN NOT NULL NOT BETWEEN - 39 AND - 79 THEN + + 28 END * + MIN( - + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7151
SELECT CASE WHEN NOT NULL NOT BETWEEN - 39 AND - 79 THEN + + 28 END * + MIN ( - + 11 )
----
NULL

query I rowsort
SELECT DISTINCT 17 * - 41
----
-697

query I rowsort
SELECT DISTINCT + 0 * - + 83 + - 70 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT DISTINCT 60 * - - 72 + COUNT( * ) col1
----
4321

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT 60 * - - 72 + COUNT ( * ) col1
----
4321

query I rowsort
SELECT - 95 * - 11
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT + + SUM( + + 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-7156
SELECT + + SUM ( + + 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT + 17 + COUNT( ALL - 84 )
----
18

skipif mysql # not compatible
query I rowsort label-7157
SELECT + 17 + COUNT ( ALL - 84 )
----
18

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

skipif mysql # not compatible
query I rowsort label-7158
SELECT + COALESCE ( - COUNT ( * ), - - COUNT ( * ), - 53 * - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7159
SELECT CAST( - - 54 AS SIGNED ) AS col1, 18 AS col0
----
54
18

skipif mysql # not compatible
query II rowsort label-7159
SELECT CAST ( - - 54 AS INTEGER ) AS col1, 18 AS col0
----
54
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7160
SELECT + 40 + + COALESCE ( - CASE + + 65 WHEN - NULLIF ( MIN( - - CAST( NULL AS SIGNED ) ), + ( + - 23 ) ) * - - 24 + - 89 + 98 / + - 52 + 70 + COUNT( * ) THEN COUNT( * ) WHEN + 79 THEN NULL END, + 86 ) AS col2
----
126

skipif mysql # not compatible
query I rowsort label-7160
SELECT + 40 + + COALESCE ( - CASE + + 65 WHEN - NULLIF ( MIN ( - - CAST ( NULL AS INTEGER ) ), + ( + - 23 ) ) * - - 24 + - 89 + 98 / + - 52 + 70 + COUNT ( * ) THEN COUNT ( * ) WHEN + 79 THEN NULL END, + 86 ) AS col2
----
126

query I rowsort
SELECT DISTINCT 79 * + 98 + 83 AS col2
----
7825

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT DISTINCT - 96 DIV - 74 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT - 96 / - 74 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT + NULLIF ( + 82, + - COALESCE ( 17, - - 93 + - 79 * MAX( + - 93 ) ) ) * 11 + - - 55 * - - 31 + 43 * - NULLIF ( - 34, MIN( DISTINCT - 68 ) - + 86 + + 83 - - - MAX( - 33 ) ) + + - COUNT( * ) + + 72 + + - 27 + + - 65 + ( - 20 ) AS col1
----
4028

skipif mysql # not compatible
query I rowsort label-7163
SELECT + NULLIF ( + 82, + - COALESCE ( 17, - - 93 + - 79 * MAX ( + - 93 ) ) ) * 11 + - - 55 * - - 31 + 43 * - NULLIF ( - 34, MIN ( DISTINCT - 68 ) - + 86 + + 83 - - - MAX ( - 33 ) ) + + - COUNT ( * ) + + 72 + + - 27 + + - 65 + ( - 20 ) AS col1
----
4028

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

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

query I rowsort
SELECT ALL + 72 * - 16
----
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ALL + COALESCE ( 74, + - COUNT( * ), + 87 )
----
74

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL + COALESCE ( 74, + - COUNT ( * ), + 87 )
----
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT - - 55 * + + COUNT( * ) + - - 29 + - MIN( ALL - 30 )
----
114

skipif mysql # not compatible
query I rowsort label-7168
SELECT - - 55 * + + COUNT ( * ) + - - 29 + - MIN ( ALL - 30 )
----
114

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

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

query I rowsort
SELECT - 66 + ( + 93 ) AS col0
----
27

query I rowsort
SELECT ALL COALESCE ( + 33, 32 ) AS col0
----
33

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

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL + COUNT ( * ) + + ( 51 ) AS col2
----
52

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

skipif mysql # not compatible
query I rowsort label-7173
SELECT - 72 * + 0 * - COUNT ( * ) * + 58 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7174
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( * ) + - 35 + 65 * - COUNT( * ) AS col2, - 52 + + NULLIF ( COUNT( * ), + - 47 ) * 60 * COUNT( * ) AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-7174
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 35 + 65 * - COUNT ( * ) AS col2, - 52 + + NULLIF ( COUNT ( * ), + - 47 ) * 60 * COUNT ( * ) AS col1
----
NULL
8

query I rowsort
SELECT ALL COALESCE ( - 53, 21 * - 28, - 36 + - + 63 * + + 91 )
----
-53

query I rowsort
SELECT - ( - 4 ) AS col2
----
4

query I rowsort
SELECT ALL + 27 * - - 5 col1
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7178
SELECT - 36 + + 86 DIV 89 DIV + MIN( + 2 ) col1, COALESCE ( + + 73, + 43 ) + + 98 AS col1
----
-36
171

skipif mysql # not compatible
query II rowsort label-7178
SELECT - 36 + + 86 / 89 / + MIN ( + 2 ) col1, COALESCE ( + + 73, + 43 ) + + 98 AS col1
----
-36
171

onlyif mysql # aggregate syntax: 
query II rowsort label-7179
SELECT DISTINCT + COUNT( * ) + + 47 - + 86, + 6 AS col1
----
-38
6

skipif mysql # not compatible
query II rowsort label-7179
SELECT DISTINCT + COUNT ( * ) + + 47 - + 86, + 6 AS col1
----
-38
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7180
SELECT - 71 * + CAST( NULL AS SIGNED ) * - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT - 71 * + CAST ( NULL AS INTEGER ) * - 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7181
SELECT - ( 84 ) + - 80 + - + CASE + + 61 WHEN - COUNT( * ) THEN - 52 + + 64 / 15 END / - 45 col1, 92 AS col1
----
NULL
92

skipif mysql # not compatible
query II rowsort label-7181
SELECT - ( 84 ) + - 80 + - + CASE + + 61 WHEN - COUNT ( * ) THEN - 52 + + 64 / 15 END / - 45 col1, 92 AS col1
----
NULL
92

query I rowsort
SELECT ALL CASE WHEN NOT NULL > 75 THEN NULL ELSE + - 4 END AS col1
----
-4

query II rowsort
SELECT - 98, + 6 + - 51 + 52 + - 22 AS col0
----
-98
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT - SUM( ALL 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-7184
SELECT - SUM ( ALL 94 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-7185
SELECT ALL + COUNT( ALL - + 44 ) + 47 + COUNT( * ) * + ( COUNT( * ) ) * + 74 * - 3 + NULLIF ( ( - 19 ), 73 * COUNT( * ) * - + AVG ( DISTINCT + + 52 ) + + - COUNT( * ) ), 30 * - 26 * - - COUNT( * ) AS col0
----
-193
-780

skipif mysql # not compatible
query II rowsort label-7185
SELECT ALL + COUNT ( ALL - + 44 ) + 47 + COUNT ( * ) * + ( COUNT ( * ) ) * + 74 * - 3 + NULLIF ( ( - 19 ), 73 * COUNT ( * ) * - + AVG ( DISTINCT + + 52 ) + + - COUNT ( * ) ), 30 * - 26 * - - COUNT ( * ) AS col0
----
-193
-780

query I rowsort
SELECT ALL 35 + - 16 AS col1
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7187
SELECT ALL COALESCE ( + - 59, + 91 DIV + + 73 - + 19 DIV - - 67, + CAST( + + 42 AS SIGNED ) * - 24 * - 96 + - 46 + NULLIF ( - 13, 18 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL COALESCE ( + - 59, + 91 / + + 73 - + 19 / - - 67, + CAST ( + + 42 AS INTEGER ) * - 24 * - 96 + - 46 + NULLIF ( - 13, 18 ) )
----
-59

query I rowsort
SELECT - 58 + + + 38 col0
----
-20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7190
SELECT DISTINCT - 83 DIV 62 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT - 83 / 62 AS col2
----
-1

query I rowsort
SELECT - + 88 * - 21 AS col0
----
1848

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7193
SELECT + + COUNT( * ) * - - 29 - 65 - - + MAX( - 77 ) + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT + + COUNT ( * ) * - - 29 - 65 - - + MAX ( - 77 ) + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7194
SELECT ALL - - 54 DIV + ( - 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL - - 54 / + ( - 30 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7195
SELECT DISTINCT - 81 DIV 13 - + + 94 + + 86 + 21 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT - 81 / 13 - + + 94 + + 86 + 21 AS col1
----
7

query I rowsort
SELECT + + NULLIF ( + 42, - 81 ) AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7197
SELECT + MAX( ALL + 89 ) + + + COUNT( ALL - CAST( - - CAST( - 6 AS DECIMAL ) AS SIGNED ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7197
SELECT + MAX ( ALL + 89 ) + + + COUNT ( ALL - CAST ( - - CAST ( - 6 AS REAL ) AS INTEGER ) ) AS col2
----
90

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

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL + - CAST ( + + 41 AS INTEGER ) AS col1
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-7199
SELECT DISTINCT + 52 AS col0, - 37 DIV - 7
----
52
5

skipif mysql # not compatible
query II rowsort label-7199
SELECT DISTINCT + 52 AS col0, - 37 / - 7
----
52
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT ALL + + CASE COUNT( * ) WHEN + - 40 * - 59 * + - 71 THEN + 8 * - + 28 + ( COALESCE ( - 70, + MIN( DISTINCT - - 61 ) * + 76 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL + + CASE COUNT ( * ) WHEN + - 40 * - 59 * + - 71 THEN + 8 * - + 28 + ( COALESCE ( - 70, + MIN ( DISTINCT - - 61 ) * + 76 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - - 12 - 92 - COUNT( - - 34 ) + 61 + 80 * + - 9 AS col0
----
-740

skipif mysql # not compatible
query I rowsort label-7201
SELECT - - 12 - 92 - COUNT ( - - 34 ) + 61 + 80 * + - 9 AS col0
----
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL + - MAX( DISTINCT - 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL + - MAX ( DISTINCT - 86 ) AS col2
----
86

query I rowsort
SELECT + - 62 * + 10
----
-620

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7205
SELECT DISTINCT - - COUNT( * ) * - 67 - - - 65 * + - SUM( ALL + 7 ) + - - 45 - - MAX( + 76 ) + - 69 + CAST( SUM( ALL + CAST( + + 97 AS SIGNED ) ) AS SIGNED ) AS col2, SUM( ( - - 90 ) ) + - 54 AS col0
----
537
36

skipif mysql # not compatible
query II rowsort label-7205
SELECT DISTINCT - - COUNT ( * ) * - 67 - - - 65 * + - SUM ( ALL + 7 ) + - - 45 - - MAX ( + 76 ) + - 69 + CAST ( SUM ( ALL + CAST ( + + 97 AS INTEGER ) ) AS INTEGER ) AS col2, SUM ( ( - - 90 ) ) + - 54 AS col0
----
537
36

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

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

query I rowsort
SELECT ALL - 38 * + 6 + + 13 + + 0 * + + 25
----
-215

query I rowsort
SELECT + 54 * - - 67 * + 91 AS col2
----
329238

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL CASE COUNT( * ) WHEN + 4 * 95 + + AVG ( ALL 33 ) + + 93 + - 67 THEN NULL WHEN - 59 THEN + - 7 + + + 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL CASE COUNT ( * ) WHEN + 4 * 95 + + AVG ( ALL 33 ) + + 93 + - 67 THEN NULL WHEN - 59 THEN + - 7 + + + 25 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7211
SELECT SUM ( - + 22 )
----
-22

query I rowsort
SELECT DISTINCT + 44 * ( + 99 ) + + 54 + 95 * + 93 + - - 82 * + ( - + 22 )
----
11441

query II rowsort
SELECT ALL - 61 * + + 46 + - - 94 + + 51 - 88 * - - 79, 28 * - 84 AS col2
----
-9613
-2352

query I rowsort
SELECT + 95 + 96 AS col2
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT + 0 * - 60 - - - COUNT( * ) + + 68 + - 30 * 95 * - 28 * + 70
----
5586067

skipif mysql # not compatible
query I rowsort label-7215
SELECT + 0 * - 60 - - - COUNT ( * ) + + 68 + - 30 * 95 * - 28 * + 70
----
5586067

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT ALL COUNT( + - 16 ) col1, 53
----
1
53

skipif mysql # not compatible
query II rowsort label-7216
SELECT ALL COUNT ( + - 16 ) col1, 53
----
1
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7217
SELECT COUNT( * ), 13 + + ( + MIN( + 63 ) ) AS col0
----
1
76

skipif mysql # not compatible
query II rowsort label-7217
SELECT COUNT ( * ), 13 + + ( + MIN ( + 63 ) ) AS col0
----
1
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7218
SELECT DISTINCT NULLIF ( - 13, + + NULLIF ( NULLIF ( - + 8, - 59 ), - CAST( NULL AS SIGNED ) ) * + 33 / - COALESCE ( + ( - + 58 ), - 27 ) * - - 52 / - - CAST( NULL AS SIGNED ) * - 24 * - CAST( NULL AS SIGNED ) - + 65 + - - 55 - - 57 / 27 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT NULLIF ( - 13, + + NULLIF ( NULLIF ( - + 8, - 59 ), - CAST ( NULL AS INTEGER ) ) * + 33 / - COALESCE ( + ( - + 58 ), - 27 ) * - - 52 / - - CAST ( NULL AS INTEGER ) * - 24 * - CAST ( NULL AS INTEGER ) - + 65 + - - 55 - - 57 / 27 ) AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7219
SELECT DISTINCT COUNT( * ) + 14 / + + MIN( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT COUNT ( * ) + 14 / + + MIN ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL ( + + 66 ) AS col2, - 40
----
66
-40

query I rowsort
SELECT ALL + 42 - - 58 AS col0
----
100

query I rowsort
SELECT - 41 + 42
----
1

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

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

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

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

query I rowsort
SELECT - 17 + + 72 AS col2
----
55

query I rowsort
SELECT ALL - 70 * + 87 AS col2
----
-6090

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL - 97 * - COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL - 97 * - COUNT ( * ) AS col0
----
97

query II rowsort
SELECT + 46 - ( + 56 ) + + 3 AS col0, - 22 * - + 41
----
-7
902

query I rowsort
SELECT DISTINCT - - 52 * - - 32
----
1664

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT + + MIN( 93 ) + + 6 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7230
SELECT + + MIN ( 93 ) + + 6 AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7231
SELECT ALL - 73 * 51 DIV + 21 - + CASE + COUNT( * ) WHEN + 91 THEN NULL ELSE + 9 END AS col1
----
-186

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL - 73 * 51 / + 21 - + CASE + COUNT ( * ) WHEN + 91 THEN NULL ELSE + 9 END AS col1
----
-186

query I rowsort
SELECT - 86 * - - 73 AS col2
----
-6278

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT - 60 + + COUNT( * ) - + 62 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-7234
SELECT - 60 + + COUNT ( * ) - + 62 AS col2
----
-121

query I rowsort
SELECT + COALESCE ( - 83, + - 2 * 73 ) - + - 86
----
3

query II rowsort
SELECT DISTINCT - 0 col2, - NULLIF ( + + 27, 71 ) * + 16
----
0
-432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7237
SELECT 18 + - + 8 AS col1, CAST( - 68 AS SIGNED ) * - COUNT( ALL + 86 ) * - - 13
----
10
884

skipif mysql # not compatible
query II rowsort label-7237
SELECT 18 + - + 8 AS col1, CAST ( - 68 AS INTEGER ) * - COUNT ( ALL + 86 ) * - - 13
----
10
884

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT ALL - COUNT( - 71 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL - COUNT ( - 71 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT ALL - MIN( DISTINCT + 61 ) * + 75
----
-4575

skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL - MIN ( DISTINCT + 61 ) * + 75
----
-4575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7240
SELECT + COUNT( * ) * 70 * 61 + + + 57 * 41 DIV - - 11 + - + 2 AS col2
----
4480

skipif mysql # not compatible
query I rowsort label-7240
SELECT + COUNT ( * ) * 70 * 61 + + + 57 * 41 / - - 11 + - + 2 AS col2
----
4480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7241
SELECT + 38 DIV 21 + - 27 DIV - SUM( - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-7241
SELECT + 38 / 21 + - 27 / - SUM ( - 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT - + 54 * + 48 * + 30 - - COUNT( * ) AS col2
----
-77759

skipif mysql # not compatible
query I rowsort label-7242
SELECT - + 54 * + 48 * + 30 - - COUNT ( * ) AS col2
----
-77759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7243
SELECT ALL + - CASE + - CASE + CAST( + 76 AS DECIMAL ) WHEN + COUNT( 76 ) THEN NULL WHEN - 34 * + COUNT( CAST( NULL AS SIGNED ) ) THEN - 3 * 40 END WHEN + 35 * 93 THEN - + 57 END * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL + - CASE + - CASE + CAST ( + 76 AS REAL ) WHEN + COUNT ( 76 ) THEN NULL WHEN - 34 * + COUNT ( CAST ( NULL AS INTEGER ) ) THEN - 3 * 40 END WHEN + 35 * 93 THEN - + 57 END * - 42
----
NULL

query I rowsort
SELECT - COALESCE ( + - 15, + 14 ) + - 68 col1
----
-53

query I rowsort
SELECT ALL 59 * 53 + 98
----
3225

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT 20 * + COUNT( * ) col2
----
20

skipif mysql # not compatible
query I rowsort label-7246
SELECT 20 * + COUNT ( * ) col2
----
20

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7248
SELECT ALL + COALESCE ( - 34, - 21 + + 85 ) + - - 51 DIV 37 + + ( - COUNT( 86 ) ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL + COALESCE ( - 34, - 21 + + 85 ) + - - 51 / 37 + + ( - COUNT ( 86 ) ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT - + 17 * + 67 + + ( + CASE + 92 WHEN - COALESCE ( - 28, - 26 * - + 40 + - MAX( - 29 ), + 14 - 82 + + 58 + + - 24 * - 97 / - 43 ) THEN - 46 / NULLIF ( + 54, + 95 ) * + 42 - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7249
SELECT - + 17 * + 67 + + ( + CASE + 92 WHEN - COALESCE ( - 28, - 26 * - + 40 + - MAX ( - 29 ), + 14 - 82 + + 58 + + - 24 * - 97 / - 43 ) THEN - 46 / NULLIF ( + 54, + 95 ) * + 42 - COUNT ( * ) END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7250
SELECT ALL - 45 * - + CASE CASE 63 WHEN + CAST( 95 AS SIGNED ) THEN - COUNT( * ) * 63 WHEN - 5 * - 28 * - 37 THEN NULL ELSE NULL END WHEN 94 * + + 43 THEN NULL WHEN - + 90 + 71 THEN + 95 ELSE NULL END * - COALESCE ( + + ( 54 ), - 51 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL - 45 * - + CASE CASE 63 WHEN + CAST ( 95 AS INTEGER ) THEN - COUNT ( * ) * 63 WHEN - 5 * - 28 * - 37 THEN NULL ELSE NULL END WHEN 94 * + + 43 THEN NULL WHEN - + 90 + 71 THEN + 95 ELSE NULL END * - COALESCE ( + + ( 54 ), - 51 ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT DISTINCT + CASE + 94 WHEN + 65 THEN NULL WHEN - 78 * - 17 THEN - COUNT( * ) END + ( - + 16 ) + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT + CASE + 94 WHEN + 65 THEN NULL WHEN - 78 * - 17 THEN - COUNT ( * ) END + ( - + 16 ) + 82 AS col0
----
NULL

query I rowsort
SELECT ALL 43 + - - 27 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT DISTINCT - COUNT( * ) * SUM( ALL + 8 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT - COUNT ( * ) * SUM ( ALL + 8 ) col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7254
SELECT ALL COALESCE ( - 40, NULLIF ( + COUNT( * ), + 88 ) ) + + CAST( NULL AS SIGNED ) + MIN( - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL COALESCE ( - 40, NULLIF ( + COUNT ( * ), + 88 ) ) + + CAST ( NULL AS INTEGER ) + MIN ( - 44 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7255
SELECT DISTINCT 72 + 66 AS col0, + 6 * + MAX( + NULLIF ( + 54, + + CAST( NULL AS SIGNED ) + - - 6 * + + 38 ) ) * + 33
----
138
10692

skipif mysql # not compatible
query II rowsort label-7255
SELECT DISTINCT 72 + 66 AS col0, + 6 * + MAX ( + NULLIF ( + 54, + + CAST ( NULL AS INTEGER ) + - - 6 * + + 38 ) ) * + 33
----
138
10692

query I rowsort
SELECT 17 * + + ( - 38 )
----
-646

query II rowsort
SELECT 52 + - 37 + - + 93 AS col0, - 1
----
-78
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7258
SELECT + ( - 59 ) * + + COUNT( * ) + - 93 / + 63 * - 77 * - SUM( ALL - ( 62 ) ) + + 46 * + 12 / 27 / CASE - 74 WHEN - 75 THEN + CAST( - 46 AS SIGNED ) + COALESCE ( - + 60, - 92 * 59, + - 31 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7258
SELECT + ( - 59 ) * + + COUNT ( * ) + - 93 / + 63 * - 77 * - SUM ( ALL - ( 62 ) ) + + 46 * + 12 / 27 / CASE - 74 WHEN - 75 THEN + CAST ( - 46 AS INTEGER ) + COALESCE ( - + 60, - 92 * 59, + - 31 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 59 - - 68 + - - NULLIF ( + 12, + ( 99 ) ) * - - 69 * - 79
----
-65285

query I rowsort
SELECT 42 * - ( - 1 ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7261
SELECT ALL 41 * - 77 * - ( + - 20 ) * - + CASE - NULLIF ( 27, - 74 * - 14 ) WHEN 33 + - 33 + + + 62 - CAST( NULL AS SIGNED ) THEN NULL ELSE 28 + + + 88 END
----
7324240

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL 41 * - 77 * - ( + - 20 ) * - + CASE - NULLIF ( 27, - 74 * - 14 ) WHEN 33 + - 33 + + + 62 - CAST ( NULL AS INTEGER ) THEN NULL ELSE 28 + + + 88 END
----
7324240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7262
SELECT ALL 99 * - 21, + 52 * - 58 + + SUM( ALL + 12 ) + + 72 DIV - 29 AS col2
----
-2079
-3006

skipif mysql # not compatible
query II rowsort label-7262
SELECT ALL 99 * - 21, + 52 * - 58 + + SUM ( ALL + 12 ) + + 72 / - 29 AS col2
----
-2079
-3006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7263
SELECT 48 + + CAST( - 41 AS SIGNED ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7263
SELECT 48 + + CAST ( - 41 AS INTEGER ) AS col2
----
7

query I rowsort
SELECT 94 * - - 78 + - + 79 AS col1
----
7253

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ALL + MAX( 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + MAX ( 62 ) AS col0
----
62

query II rowsort
SELECT - 6 + + 16 AS col0, - 91 AS col2
----
10
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT 17 + + COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT COUNT( DISTINCT + + 12 ) * - 58 * - ( 47 )
----
2726

skipif mysql # not compatible
query I rowsort label-7269
SELECT COUNT ( DISTINCT + + 12 ) * - 58 * - ( 47 )
----
2726

onlyif mysql # aggregate syntax: 
query II rowsort label-7270
SELECT ALL - + SUM( + 41 ), 44 AS col1
----
-41
44

skipif mysql # not compatible
query II rowsort label-7270
SELECT ALL - + SUM ( + 41 ), 44 AS col1
----
-41
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT DISTINCT + - 57 + - - NULLIF ( - ( - COUNT( DISTINCT - - 60 ) ), - 46 * + 73 ) + - 18 * - + 1
----
-38

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT + - 57 + - - NULLIF ( - ( - COUNT ( DISTINCT - - 60 ) ), - 46 * + 73 ) + - 18 * - + 1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7272
SELECT 12 DIV - MAX( + + 16 )
----
0

skipif mysql # not compatible
query I rowsort label-7272
SELECT 12 / - MAX ( + + 16 )
----
0

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

query I rowsort
SELECT ALL - 41 + 12
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT 8 - - 66 + + ( + ( - COUNT( * ) ) ) * + - 19 + + 50 + 18 AS col2
----
161

skipif mysql # not compatible
query I rowsort label-7275
SELECT 8 - - 66 + + ( + ( - COUNT ( * ) ) ) * + - 19 + + 50 + 18 AS col2
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-7276
SELECT 17 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-7276
SELECT 17 / - 96
----
0

query I rowsort
SELECT 23 * 55 AS col2
----
1265

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

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

query I rowsort
SELECT DISTINCT - 96 * 52
----
-4992

query II rowsort
SELECT ALL - 7 AS col1, 90 - + 14 col0
----
-7
76

query II rowsort
SELECT - 92 * - - 72 - + 86 AS col0, - 32 + 92
----
-6710
60

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

query I rowsort
SELECT ALL - 14 * + + 50 * - 43 AS col0
----
30100

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT 52 - - 46 + + SUM( - 24 ) * - 70 AS col2
----
1778

skipif mysql # not compatible
query I rowsort label-7284
SELECT 52 - - 46 + + SUM ( - 24 ) * - 70 AS col2
----
1778

query II rowsort
SELECT 48, 26 + + - 48 AS col2
----
48
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7286
SELECT ALL NULLIF ( - 43, MIN( DISTINCT + 5 ) / - CAST( + 15 AS SIGNED ) + + 66 * + 63 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL NULLIF ( - 43, MIN ( DISTINCT + 5 ) / - CAST ( + 15 AS INTEGER ) + + 66 * + 63 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT 48 * 70 * 4 * + COUNT( * ) AS col2
----
13440

skipif mysql # not compatible
query I rowsort label-7287
SELECT 48 * 70 * 4 * + COUNT ( * ) AS col2
----
13440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT 52 + - - CAST( NULL AS SIGNED ) * + + 29 + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT 52 + - - CAST ( NULL AS INTEGER ) * + + 29 + + 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7289
SELECT 87 - 84 * + CASE + 56 WHEN + - CAST( + - ( - 52 ) AS SIGNED ) * - 54 THEN - 58 / - 88 END * NULLIF ( + + 95, - 5 ) + - 9 + + ( 92 ) * - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT 87 - 84 * + CASE + 56 WHEN + - CAST ( + - ( - 52 ) AS INTEGER ) * - 54 THEN - 58 / - 88 END * NULLIF ( + + 95, - 5 ) + - 9 + + ( 92 ) * - 7 AS col1
----
NULL

query I rowsort
SELECT ALL 87 * 95
----
8265

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT DISTINCT 16 * - COALESCE ( + 67, - + CAST( + 52 AS SIGNED ), - 23 )
----
-1072

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT 16 * - COALESCE ( + 67, - + CAST ( + 52 AS INTEGER ), - 23 )
----
-1072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7293
SELECT DISTINCT + + 93 DIV - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT + + 93 / - COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL COUNT( * ) * + COUNT( * ) - + 74 * + MIN( - 84 ) * - + 20 - + - 36 * 34
----
-123095

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL COUNT ( * ) * + COUNT ( * ) - + 74 * + MIN ( - 84 ) * - + 20 - + - 36 * 34
----
-123095

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7295
SELECT + 18 * - COUNT( * ) DIV - 99 col2, + CASE + - 37 WHEN + + 10 THEN - COUNT( ALL + 45 ) + - 12 * + ( 89 ) DIV ( + 19 ) * + + MIN( + + 88 ) WHEN + + MAX( 50 ) + - - AVG ( ALL 45 ) THEN - + 20 ELSE NULL END + + 32
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7295
SELECT + 18 * - COUNT ( * ) / - 99 col2, + CASE + - 37 WHEN + + 10 THEN - COUNT ( ALL + 45 ) + - 12 * + ( 89 ) / ( + 19 ) * + + MIN ( + + 88 ) WHEN + + MAX ( 50 ) + - - AVG ( ALL 45 ) THEN - + 20 ELSE NULL END + + 32
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT + + 99 + - - COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-7296
SELECT + + 99 + - - COUNT ( * ) AS col0
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7297
SELECT + - COALESCE ( - - 53, - + 3, ( + - 16 ) + 24 ) DIV + COALESCE ( + 30, - + COUNT( * ), + 32 + 19 - - 4 + + MIN( DISTINCT - 34 ) ) + - 86
----
-87

skipif mysql # not compatible
query I rowsort label-7297
SELECT + - COALESCE ( - - 53, - + 3, ( + - 16 ) + 24 ) / + COALESCE ( + 30, - + COUNT ( * ), + 32 + 19 - - 4 + + MIN ( DISTINCT - 34 ) ) + - 86
----
-87

query I rowsort
SELECT + - 19 * - - 96 + + 32 + - 20 AS col0
----
-1812

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

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

query I rowsort
SELECT ALL 23 + - 91 + 39 - + - 86 * - 59 * 60 * 60 * - 97 AS col1
----
1771840771

query I rowsort
SELECT ALL 37 + - 78 * 93 * - 44 col2
----
319213

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

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

query I rowsort
SELECT DISTINCT - - 93 * 58 * + 34 + + 28 + ( + 34 )
----
183458

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT DISTINCT + + 83 * - 75 / 73 + 0 * - CASE + + 51 WHEN + ( - 90 ) THEN 29 - - - 42 + - COUNT( * ) + - COUNT( * ) END - - 83 + + 20 * 2 * - - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT + + 83 * - 75 / 73 + 0 * - CASE + + 51 WHEN + ( - 90 ) THEN 29 - - - 42 + - COUNT ( * ) + - COUNT ( * ) END - - 83 + + 20 * 2 * - - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7305
SELECT DISTINCT + 9 * - - 0 * - - 62 + + + ( - COALESCE ( - + 24, + MAX( 72 ), + CAST( NULL AS SIGNED ), + 99 * + 37 * 82 + 63 ) ) + - 95 * 40 AS col1
----
-3776

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT + 9 * - - 0 * - - 62 + + + ( - COALESCE ( - + 24, + MAX ( 72 ), + CAST ( NULL AS INTEGER ), + 99 * + 37 * 82 + 63 ) ) + - 95 * 40 AS col1
----
-3776

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

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

query I rowsort
SELECT DISTINCT + 12 * + + 77 col2
----
924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7308
SELECT 73 * - + COALESCE ( COUNT( * ), - 28 * - 8 * + CAST( - - ( + MAX( + + 49 ) ) AS SIGNED ) + CASE + 52 WHEN 33 THEN - 90 - + 32 + + 15 DIV + + 63 END + NULLIF ( + CASE COUNT( * ) WHEN 89 * + - 80 DIV 20 * - 59 THEN NULL WHEN COUNT( * ) THEN 22 END, 31 - - + ( - COUNT( * ) ) - - NULLIF ( MAX( DISTINCT + 87 ), 32 ) ) DIV 80 ) * 31 - + 49
----
-2312

skipif mysql # not compatible
query I rowsort label-7308
SELECT 73 * - + COALESCE ( COUNT ( * ), - 28 * - 8 * + CAST ( - - ( + MAX ( + + 49 ) ) AS INTEGER ) + CASE + 52 WHEN 33 THEN - 90 - + 32 + + 15 / + + 63 END + NULLIF ( + CASE COUNT ( * ) WHEN 89 * + - 80 / 20 * - 59 THEN NULL WHEN COUNT ( * ) THEN 22 END, 31 - - + ( - COUNT ( * ) ) - - NULLIF ( MAX ( DISTINCT + 87 ), 32 ) ) / 80 ) * 31 - + 49
----
-2312

query I rowsort
SELECT ALL + ( - 26 ) * + - 84 AS col0
----
2184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7310
SELECT + 72 + + 64 * CASE CAST( NULL AS SIGNED ) WHEN - MIN( - - 25 ) / - 43 + + 55 - + 68 THEN + CASE + - 40 WHEN - 98 + - 35 THEN - COUNT( 66 ) - CAST( - 93 AS SIGNED ) WHEN + COUNT( - COALESCE ( + 16, + 71 ) ) THEN NULL ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT + 72 + + 64 * CASE CAST ( NULL AS INTEGER ) WHEN - MIN ( - - 25 ) / - 43 + + 55 - + 68 THEN + CASE + - 40 WHEN - 98 + - 35 THEN - COUNT ( 66 ) - CAST ( - 93 AS INTEGER ) WHEN + COUNT ( - COALESCE ( + 16, + 71 ) ) THEN NULL ELSE NULL END END AS col0
----
NULL

query I rowsort
SELECT DISTINCT CASE 28 WHEN - 16 THEN NULL ELSE + 35 END * + 40 AS col1
----
1400

query I rowsort
SELECT ALL ( + 8 ) * + 50 AS col2
----
400

query I rowsort
SELECT + 25 * - - 10 + - + 51 * 90 AS col1
----
-4340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7314
SELECT - 18 + CAST( ( - 37 ) AS SIGNED ) + - + 28 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-7314
SELECT - 18 + CAST ( ( - 37 ) AS INTEGER ) + - + 28 AS col1
----
-83

query I rowsort
SELECT - ( + - NULLIF ( 75, 49 * 91 ) ) + + + 21
----
96

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7317
SELECT - CAST( NULL AS DECIMAL ) / + 34, - 68 col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-7317
SELECT - CAST ( NULL AS REAL ) / + 34, - 68 col2
----
NULL
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT ALL + 38 DIV - - 74 * + 71 * - - 7
----
0

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL + 38 / - - 74 * + 71 * - - 7
----
0

query I rowsort
SELECT ALL - 11 * - CASE + 22 WHEN - - CASE + + 43 WHEN + - 25 + + + 96 THEN - 82 ELSE NULL END THEN NULL ELSE - 20 * 58 END
----
-12760

onlyif mysql # DIV for integer division: 
query I rowsort label-7320
SELECT ALL - 38 DIV 23
----
-1

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL - 38 / 23
----
-1

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

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL + COUNT ( * ) * 94 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT DISTINCT + 66 + - - COUNT( * ) - - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT + 66 + - - COUNT ( * ) - - COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT DISTINCT 23 + - MAX( - - 84 ) - + + ( - + 19 ) * - - 22 * + + ( - 30 )
----
-12601

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT 23 + - MAX ( - - 84 ) - + + ( - + 19 ) * - - 22 * + + ( - 30 )
----
-12601

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

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

query I rowsort
SELECT - NULLIF ( + + 17, + 17 ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7327
SELECT + CAST( NULL AS SIGNED ) + + 4 / - 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT + CAST ( NULL AS INTEGER ) + + 4 / - 96 AS col1
----
NULL

query I rowsort
SELECT + 38 + + - 43
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL + 10 + COUNT( DISTINCT - - 36 ) * - 34 + + MIN( - 64 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL + 10 + COUNT ( DISTINCT - - 36 ) * - 34 + + MIN ( - 64 ) AS col0
----
-88

query I rowsort
SELECT + 91 + + - 63
----
28

query I rowsort
SELECT + + 13 + - 70
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-7332
SELECT - NULLIF ( - ( - 80 ), 34 ) AS col0, + SUM( DISTINCT + - 94 ) + - 12 AS col1
----
-80
-106

skipif mysql # not compatible
query II rowsort label-7332
SELECT - NULLIF ( - ( - 80 ), 34 ) AS col0, + SUM ( DISTINCT + - 94 ) + - 12 AS col1
----
-80
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT ALL - 27 - + 78 + + COUNT( * )
----
-104

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL - 27 - + 78 + + COUNT ( * )
----
-104

query II rowsort
SELECT + 40 + - 27 AS col1, COALESCE ( + 10, - - 26 )
----
13
10

query I rowsort
SELECT DISTINCT 10 * 51
----
510

query I rowsort
SELECT ALL - 83 * + 94
----
-7802

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT + SUM( + 68 ) + + - 37 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7337
SELECT + SUM ( + 68 ) + + - 37 AS col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7338
SELECT + 72 * COUNT( * ) DIV 69
----
1

skipif mysql # not compatible
query I rowsort label-7338
SELECT + 72 * COUNT ( * ) / 69
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT + 90 DIV - 74
----
-1

skipif mysql # not compatible
query I rowsort label-7339
SELECT + 90 / - 74
----
-1

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

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

query I rowsort
SELECT ALL + 42 * - 49 AS col0
----
-2058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7342
SELECT + NULLIF ( - 19, + CAST( - 92 AS SIGNED ) * ( + COUNT( * ) ) + - 65 - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 80 ) * - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT + NULLIF ( - 19, + CAST ( - 92 AS INTEGER ) * ( + COUNT ( * ) ) + - 65 - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 80 ) * - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7343
SELECT + 6 - SUM( ALL + - 58 ) + + COUNT( * ) DIV + ( 72 ) + - 51 * 54 AS col1
----
-2690

skipif mysql # not compatible
query I rowsort label-7343
SELECT + 6 - SUM ( ALL + - 58 ) + + COUNT ( * ) / + ( 72 ) + - 51 * 54 AS col1
----
-2690

query I rowsort
SELECT ALL 76 * + - 89 AS col1
----
-6764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7345
SELECT CAST( 2 AS SIGNED ) * 86
----
172

skipif mysql # not compatible
query I rowsort label-7345
SELECT CAST ( 2 AS INTEGER ) * 86
----
172

query I rowsort
SELECT DISTINCT + 25 * + 60 AS col0
----
1500

query I rowsort
SELECT 71 * 74 AS col2
----
5254

query I rowsort
SELECT ALL 41 + 20 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7349
SELECT MIN( - + 39 ) * - COALESCE ( CAST( 14 AS SIGNED ), + 70 + - 0 ) * + ( + + COUNT( * ) ) - + 6
----
540

skipif mysql # not compatible
query I rowsort label-7349
SELECT MIN ( - + 39 ) * - COALESCE ( CAST ( 14 AS INTEGER ), + 70 + - 0 ) * + ( + + COUNT ( * ) ) - + 6
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL + 52 + SUM( DISTINCT + 68 ) + 54
----
174

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + 52 + SUM ( DISTINCT + 68 ) + 54
----
174

query I rowsort
SELECT ALL 34 + 99 + - - 37 * + 73
----
2834

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT DISTINCT - ( - 45 ) + - - 17 + + ( - COUNT( * ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT - ( - 45 ) + - - 17 + + ( - COUNT ( * ) ) AS col2
----
61

query I rowsort
SELECT 96 * + 65
----
6240

onlyif mysql # aggregate syntax: 
query II rowsort label-7354
SELECT DISTINCT - + 25 + COUNT( DISTINCT - 86 ), 39 AS col1
----
-24
39

skipif mysql # not compatible
query II rowsort label-7354
SELECT DISTINCT - + 25 + COUNT ( DISTINCT - 86 ), 39 AS col1
----
-24
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT + 43 + - + 88 - + NULLIF ( + - 8, COALESCE ( + 82, + COUNT( * ) ) ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-7355
SELECT + 43 + - + 88 - + NULLIF ( + - 8, COALESCE ( + 82, + COUNT ( * ) ) ) AS col0
----
-37

query I rowsort
SELECT 62 - 83
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT DISTINCT - SUM( DISTINCT - - 41 ) + + 78 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT - SUM ( DISTINCT - - 41 ) + + 78 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7358
SELECT ALL + NULLIF ( - 72, 40 * - + 89 / - 63 + + 73 - + 76 ) + + COUNT( ALL - - 95 ) * - 13 AS col1, 34
----
-85
34

skipif mysql # not compatible
query II rowsort label-7358
SELECT ALL + NULLIF ( - 72, 40 * - + 89 / - 63 + + 73 - + 76 ) + + COUNT ( ALL - - 95 ) * - 13 AS col1, 34
----
-85
34

query I rowsort
SELECT DISTINCT - + 50 * - 47
----
2350

query I rowsort
SELECT DISTINCT - + 33 + + - 7
----
-40

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

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

query I rowsort
SELECT DISTINCT 41 - - 65 + + + 48 * - 13
----
-518

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT 51 + - 31 * COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-7364
SELECT 51 + - 31 * COUNT ( * )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7365
SELECT CAST( NULL AS SIGNED ) * + COALESCE ( - 13, + 24 / - MIN( - 65 ), + 52 - 51 / 80 * + - COUNT( * ) + COUNT( * ) - - - COUNT( * ) * - - AVG ( + 7 ) ) - - COUNT( * ), 63 AS col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-7365
SELECT CAST ( NULL AS INTEGER ) * + COALESCE ( - 13, + 24 / - MIN ( - 65 ), + 52 - 51 / 80 * + - COUNT ( * ) + COUNT ( * ) - - - COUNT ( * ) * - - AVG ( + 7 ) ) - - COUNT ( * ), 63 AS col2
----
NULL
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7366
SELECT DISTINCT - 95 - - 43 + - NULLIF ( + + COUNT( ALL 75 ), + 15 + + - 1 + - 83 * - 65 + + CAST( NULL AS SIGNED ) - + 81 + 22 - 67 ) * - 27 + - + NULLIF ( - 41, 76 - + 50 - + - 45 ) * + 82 + + NULLIF ( - 97, - 58 + NULLIF ( + COALESCE ( 94, - - COUNT( * ) * 87 * - 2 * - - 44 + + + CASE 31 WHEN - + COUNT( 40 ) * + 31 THEN - 39 * - + 69 ELSE NULL END, - - 9 ), + 11 * 23 / + ( 84 ) ) ) * 70 * NULLIF ( + 69, + 9 + + 88 )
----
-465173

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT - 95 - - 43 + - NULLIF ( + + COUNT ( ALL 75 ), + 15 + + - 1 + - 83 * - 65 + + CAST ( NULL AS INTEGER ) - + 81 + 22 - 67 ) * - 27 + - + NULLIF ( - 41, 76 - + 50 - + - 45 ) * + 82 + + NULLIF ( - 97, - 58 + NULLIF ( + COALESCE ( 94, - - COUNT ( * ) * 87 * - 2 * - - 44 + + + CASE 31 WHEN - + COUNT ( 40 ) * + 31 THEN - 39 * - + 69 ELSE NULL END, - - 9 ), + 11 * 23 / + ( 84 ) ) ) * 70 * NULLIF ( + 69, + 9 + + 88 )
----
-465173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7367
SELECT 90 * + - ( - 1 ) * - - ( - ( + 72 ) ) * COUNT( ALL - 9 ) * - COUNT( * ) * - CAST( + 39 AS SIGNED ) + - SUM( - 89 ) + - + 1 + - 1 + + 32 + - COUNT( * ) + 36 + + 35 AS col0
----
-252531

skipif mysql # not compatible
query I rowsort label-7367
SELECT 90 * + - ( - 1 ) * - - ( - ( + 72 ) ) * COUNT ( ALL - 9 ) * - COUNT ( * ) * - CAST ( + 39 AS INTEGER ) + - SUM ( - 89 ) + - + 1 + - 1 + + 32 + - COUNT ( * ) + 36 + + 35 AS col0
----
-252531

query I rowsort
SELECT 43 - - - 81 AS col1
----
-38

query I rowsort
SELECT DISTINCT 78 * ( + 21 )
----
1638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7370
SELECT + 80 DIV + ( - + 16 ) + - - 6 - + CASE + COUNT( ( 36 ) ) WHEN - 44 - CAST( NULL AS SIGNED ) THEN NULL WHEN - + 89 THEN NULL ELSE + 81 + - - 68 * - 19 + - 23 * - 54 END AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-7370
SELECT + 80 / + ( - + 16 ) + - - 6 - + CASE + COUNT ( ( 36 ) ) WHEN - 44 - CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 89 THEN NULL ELSE + 81 + - - 68 * - 19 + - 23 * - 54 END AS col0
----
-30

query I rowsort
SELECT ALL - ( 34 ) AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT ALL - 55 DIV - + 85 col1
----
0

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - 55 / - + 85 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT 62 * MAX( DISTINCT 6 )
----
372

skipif mysql # not compatible
query I rowsort label-7373
SELECT 62 * MAX ( DISTINCT 6 )
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT 10 * MAX( ALL + 53 ) * + 8 + - 11 + - - ( 92 ) * 49 AS col2
----
8737

skipif mysql # not compatible
query I rowsort label-7374
SELECT 10 * MAX ( ALL + 53 ) * + 8 + - 11 + - - ( 92 ) * 49 AS col2
----
8737

onlyif mysql # aggregate syntax: 
query II rowsort label-7375
SELECT 67 col0, + COUNT( + 96 )
----
67
1

skipif mysql # not compatible
query II rowsort label-7375
SELECT 67 col0, + COUNT ( + 96 )
----
67
1

query I rowsort
SELECT - 17 * 24 + - 98 col0
----
-506

query II rowsort
SELECT ( + + 65 ) - - - 34 * - 65 * + 68 + - 59, - 19 AS col1
----
150286
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7378
SELECT 81 DIV + COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7378
SELECT 81 / + COUNT ( * ) AS col1
----
81

query II rowsort
SELECT ALL - 23 AS col2, - 1 col2
----
-23
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL MIN( ALL - 81 ) + + ( - + 60 ) AS col0
----
-141

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL MIN ( ALL - 81 ) + + ( - + 60 ) AS col0
----
-141

query II rowsort
SELECT 59 col0, 47 * + 12
----
59
564

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

query I rowsort
SELECT ALL 23 + + 51
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL 35 + + 0 + - + 49 * - - COUNT( * ) + + 67
----
53

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL 35 + + 0 + - + 49 * - - COUNT ( * ) + + 67
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL 87 + + + COUNT( DISTINCT + 86 )
----
88

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL 87 + + + COUNT ( DISTINCT + 86 )
----
88

query I rowsort
SELECT 77 * + 68 col1
----
5236

query I rowsort
SELECT COALESCE ( - 34, 22, + 25 )
----
-34

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

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT - COUNT ( * ) + 44 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT + + CASE 92 WHEN + 40 / - - NULLIF ( AVG ( ALL + 28 ), - + 80 ) THEN - 27 * + + COUNT( * ) + 32 * + 15 * + - 80 WHEN 7 THEN NULL ELSE - 85 * - 8 + + COUNT( * ) - + 16 + + 34 END AS col2
----
699

skipif mysql # not compatible
query I rowsort label-7390
SELECT + + CASE 92 WHEN + 40 / - - NULLIF ( AVG ( ALL + 28 ), - + 80 ) THEN - 27 * + + COUNT ( * ) + 32 * + 15 * + - 80 WHEN 7 THEN NULL ELSE - 85 * - 8 + + COUNT ( * ) - + 16 + + 34 END AS col2
----
699

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT + 81 * + COUNT( * ) * + 83 * - 11 + - + 82 + + + CASE + - 52 WHEN - 1 THEN 24 / + + MAX( DISTINCT - - 62 ) WHEN + 87 * - 96 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT + 81 * + COUNT ( * ) * + 83 * - 11 + - + 82 + + + CASE + - 52 WHEN - 1 THEN 24 / + + MAX ( DISTINCT - - 62 ) WHEN + 87 * - 96 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 68 + 33 * + 65
----
2213

query I rowsort
SELECT 64 * + ( 56 ) AS col0
----
3584

query I rowsort
SELECT DISTINCT 29 - + 80 AS col0
----
-51

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7396
SELECT 56 DIV - COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7396
SELECT 56 / - COUNT ( * ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7397
SELECT ALL - COALESCE ( 1, - - CAST( NULL AS SIGNED ) - + CASE + COUNT( * ) WHEN 97 THEN NULL ELSE - ( + + 63 ) END ) - - 29 - + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - COALESCE ( 1, - - CAST ( NULL AS INTEGER ) - + CASE + COUNT ( * ) WHEN 97 THEN NULL ELSE - ( + + 63 ) END ) - - 29 - + COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7398
SELECT DISTINCT - 15 AS col0, + 50 + - 77 * COUNT( * ) AS col0
----
-15
-27

skipif mysql # not compatible
query II rowsort label-7398
SELECT DISTINCT - 15 AS col0, + 50 + - 77 * COUNT ( * ) AS col0
----
-15
-27

query II rowsort
SELECT 8 AS col0, 94
----
8
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7400
SELECT 21 AS col0, 30 DIV - - 97 * 26, + 2 + + 57 + 80 DIV - + CAST( NULL AS SIGNED ) * + 43 + - 47 AS col1
----
21
0
NULL

skipif mysql # not compatible
query III rowsort label-7400
SELECT 21 AS col0, 30 / - - 97 * 26, + 2 + + 57 + 80 / - + CAST ( NULL AS INTEGER ) * + 43 + - 47 AS col1
----
21
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7401
SELECT ALL 96 AS col2, 95 * - COUNT( * )
----
96
-95

skipif mysql # not compatible
query II rowsort label-7401
SELECT ALL 96 AS col2, 95 * - COUNT ( * )
----
96
-95

query I rowsort
SELECT - 39 + 25
----
-14

query I rowsort
SELECT 35 - + 19
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7404
SELECT - 13 DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-7404
SELECT - 13 / + 18
----
0

query I rowsort
SELECT + 22 + + 38 + 15 * - 43 AS col0
----
-585

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7406
SELECT DISTINCT - + 56 DIV + + COUNT( + - 99 ) + 48
----
-8

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT - + 56 / + + COUNT ( + - 99 ) + 48
----
-8

query II rowsort
SELECT - + 12 col0, + 20
----
-12
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT 56 + - - 25 - + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7408
SELECT 56 + - - 25 - + COUNT ( * ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT ALL + 91 * - COUNT( * ) * - - 45
----
-4095

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL + 91 * - COUNT ( * ) * - - 45
----
-4095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7410
SELECT + COUNT( DISTINCT - 23 ) DIV + ( 58 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7410
SELECT + COUNT ( DISTINCT - 23 ) / + ( 58 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT - CAST( + 81 AS SIGNED ) + + 59
----
-22

skipif mysql # not compatible
query I rowsort label-7411
SELECT - CAST ( + 81 AS INTEGER ) + + 59
----
-22

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

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

query I rowsort
SELECT 52 + - 84
----
-32

query I rowsort
SELECT 71 * + 60
----
4260

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7416
SELECT DISTINCT + 97 + - CAST( NULL AS SIGNED ), - 45 AS col1
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-7416
SELECT DISTINCT + 97 + - CAST ( NULL AS INTEGER ), - 45 AS col1
----
NULL
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7417
SELECT + ( + 83 ) + + 42 * - 37 * COUNT( * ), + ( CAST( 72 AS SIGNED ) ) AS col0
----
-1471
72

skipif mysql # not compatible
query II rowsort label-7417
SELECT + ( + 83 ) + + 42 * - 37 * COUNT ( * ), + ( CAST ( 72 AS INTEGER ) ) AS col0
----
-1471
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ( - COUNT( * ) ) * 84 * + 70 + COUNT( * ) + 55
----
-5824

skipif mysql # not compatible
query I rowsort label-7419
SELECT ( - COUNT ( * ) ) * 84 * + 70 + COUNT ( * ) + 55
----
-5824

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT COALESCE ( - + 78, 2 * + 89 * + + 50 - 12 + + - COUNT( * ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-7420
SELECT COALESCE ( - + 78, 2 * + 89 * + + 50 - 12 + + - COUNT ( * ) ) AS col2
----
-78

query I rowsort
SELECT ALL 87 * - 1 + 73
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT COALESCE ( - + 52, - 70 - + ( - 88 ), + - 92 * - COUNT( * ) )
----
-52

skipif mysql # not compatible
query I rowsort label-7422
SELECT COALESCE ( - + 52, - 70 - + ( - 88 ), + - 92 * - COUNT ( * ) )
----
-52

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT 16 DIV ( - + 55 ) - + 50
----
-50

skipif mysql # not compatible
query I rowsort label-7424
SELECT 16 / ( - + 55 ) - + 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT CASE + 31 WHEN + 86 * - SUM( DISTINCT 39 ) + + + 19 + - + 25 + - + 28 THEN + COUNT( * ) * - 73 * + 50 + + 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT CASE + 31 WHEN + 86 * - SUM ( DISTINCT 39 ) + + + 19 + - + 25 + - + 28 THEN + COUNT ( * ) * - 73 * + 50 + + 56 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7426
SELECT ALL CAST( NULL AS SIGNED ) * - MAX( DISTINCT + 3 ) + - 4 * + + 95 - - 18 * - 89 * + - 27 AS col2, 85 AS col2
----
NULL
85

skipif mysql # not compatible
query II rowsort label-7426
SELECT ALL CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT + 3 ) + - 4 * + + 95 - - 18 * - 89 * + - 27 AS col2, 85 AS col2
----
NULL
85

query I rowsort
SELECT + 99 * 7 * + + 19 AS col2
----
13167

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT ( - COUNT( * ) ) * - - 97 * + - ( - ( - - 44 ) ) + + SUM( - + 39 ) - - - 37
----
-4344

skipif mysql # not compatible
query I rowsort label-7428
SELECT ( - COUNT ( * ) ) * - - 97 * + - ( - ( - - 44 ) ) + + SUM ( - + 39 ) - - - 37
----
-4344

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7430
SELECT + + 91 * CAST( - 56 AS SIGNED ) * 34 + 20
----
-173244

skipif mysql # not compatible
query I rowsort label-7430
SELECT + + 91 * CAST ( - 56 AS INTEGER ) * 34 + 20
----
-173244

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7432
SELECT + - COUNT( * ) - + 2 AS col0, - 9
----
-3
-9

skipif mysql # not compatible
query II rowsort label-7432
SELECT + - COUNT ( * ) - + 2 AS col0, - 9
----
-3
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7433
SELECT ALL - 11 * CASE + 61 WHEN + - 47 THEN COUNT( * ) - + ( 89 ) * 64 WHEN - 49 + + ( + 68 ) THEN - 15 ELSE NULL END AS col0, + 99 + 54 - 53
----
NULL
100

skipif mysql # not compatible
query II rowsort label-7433
SELECT ALL - 11 * CASE + 61 WHEN + - 47 THEN COUNT ( * ) - + ( 89 ) * 64 WHEN - 49 + + ( + 68 ) THEN - 15 ELSE NULL END AS col0, + 99 + 54 - 53
----
NULL
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT ALL + CASE - - 6 WHEN + - MIN( DISTINCT 54 ) * - 53 + - 25 THEN + 74 * + 36 * 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL + CASE - - 6 WHEN + - MIN ( DISTINCT 54 ) * - 53 + - 25 THEN + 74 * + 36 * 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT + 62 - + - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-7435
SELECT + 62 - + - COUNT ( * )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7436
SELECT 56 * 93 * ( - 35 ) + - 56 * 19 DIV - - 33 AS col1
----
-182312

skipif mysql # not compatible
query I rowsort label-7436
SELECT 56 * 93 * ( - 35 ) + - 56 * 19 / - - 33 AS col1
----
-182312

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT + 84 * - COUNT( DISTINCT 29 ) * 48 + - ( 7 ) AS col1
----
-4039

skipif mysql # not compatible
query I rowsort label-7437
SELECT + 84 * - COUNT ( DISTINCT 29 ) * 48 + - ( 7 ) AS col1
----
-4039

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT + 28 + 35 * COALESCE ( COUNT( - 30 ), - 36 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7438
SELECT + 28 + 35 * COALESCE ( COUNT ( - 30 ), - 36 ) AS col1
----
63

query I rowsort
SELECT - + COALESCE ( + + 25, - 76 + 89 - + - NULLIF ( - 69, + 48 ) * - 42 )
----
-25

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

skipif mysql # not compatible
query II rowsort label-7440
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, 64 AS col2
----
NULL
64

query I rowsort
SELECT + 42 + - 58
----
-16

query I rowsort
SELECT + - 1 - - 94 * + 80 AS col2
----
7519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7443
SELECT ALL + MIN( - + 70 ) * + 80 DIV + COUNT( * )
----
-5600

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL + MIN ( - + 70 ) * + 80 / + COUNT ( * )
----
-5600

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT + + MIN( + - 25 ) * 25 + - + NULLIF ( + 91, - 45 * 8 ) AS col1
----
-716

skipif mysql # not compatible
query I rowsort label-7444
SELECT + + MIN ( + - 25 ) * 25 + - + NULLIF ( + 91, - 45 * 8 ) AS col1
----
-716

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT - NULLIF ( + 30, + + 84 * AVG ( DISTINCT + 18 ) + - 14 / + + 7 * + COUNT( * ) * - 38 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7445
SELECT - NULLIF ( + 30, + + 84 * AVG ( DISTINCT + 18 ) + - 14 / + + 7 * + COUNT ( * ) * - 38 ) AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7446
SELECT + + ( - - 19 ) + - COUNT( * ) DIV - 27 + + 86 - - 71 - COALESCE ( - 60, + 18 * 26 + 56 + - + CASE + 58 WHEN + 95 THEN - - 72 * - - 26 * COUNT( * ) * 71 WHEN - 63 THEN NULL ELSE NULL END * 45 ) * - 7 AS col2
----
-244

skipif mysql # not compatible
query I rowsort label-7446
SELECT + + ( - - 19 ) + - COUNT ( * ) / - 27 + + 86 - - 71 - COALESCE ( - 60, + 18 * 26 + 56 + - + CASE + 58 WHEN + 95 THEN - - 72 * - - 26 * COUNT ( * ) * 71 WHEN - 63 THEN NULL ELSE NULL END * 45 ) * - 7 AS col2
----
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL 47 * 68 + + 14 * + + MAX( ALL + 3 ) AS col1
----
3238

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL 47 * 68 + + 14 * + + MAX ( ALL + 3 ) AS col1
----
3238

query I rowsort
SELECT + 87 * - ( + + ( 87 ) )
----
-7569

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT + 91 + - 76 + + - 4 * - COUNT( * ) * - + 98 * - CASE + 9 WHEN - 29 THEN NULL ELSE + 2 END col2
----
799

skipif mysql # not compatible
query I rowsort label-7449
SELECT + 91 + - 76 + + - 4 * - COUNT ( * ) * - + 98 * - CASE + 9 WHEN - 29 THEN NULL ELSE + 2 END col2
----
799

query I rowsort
SELECT + 31 + - + 62 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT + 83 + - + 71 + COUNT( - 71 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7451
SELECT + 83 + - + 71 + COUNT ( - 71 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT - 23 col2, - COALESCE ( + 6, - + COUNT( * ) ) + 77 AS col2
----
-23
71

skipif mysql # not compatible
query II rowsort label-7452
SELECT - 23 col2, - COALESCE ( + 6, - + COUNT ( * ) ) + 77 AS col2
----
-23
71

query I rowsort
SELECT - ( 63 ) + - ( - 10 )
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7454
SELECT ALL + 93 DIV - + 50
----
-1

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL + 93 / - + 50
----
-1

query I rowsort
SELECT DISTINCT - 38 + 1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-7456
SELECT DISTINCT 24 + + 87 * - 26 AS col2, + 48 + COALESCE ( - - COUNT( * ), 72, + 88 + - 71 ) - + 14 + 41 * + 37 * + 9 AS col2
----
-2238
13688

skipif mysql # not compatible
query II rowsort label-7456
SELECT DISTINCT 24 + + 87 * - 26 AS col2, + 48 + COALESCE ( - - COUNT ( * ), 72, + 88 + - 71 ) - + 14 + 41 * + 37 * + 9 AS col2
----
-2238
13688

query I rowsort
SELECT ALL - 20 + 4 col1
----
-16

query I rowsort
SELECT - 53 + 51
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT ALL 59 + 4 - + 31 + - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL 59 + 4 - + 31 + - COUNT ( * )
----
31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7461
SELECT CAST( NULL AS SIGNED ), 3 * + 63 AS col2
----
NULL
189

skipif mysql # not compatible
query II rowsort label-7461
SELECT CAST ( NULL AS INTEGER ), 3 * + 63 AS col2
----
NULL
189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7462
SELECT + 97, - MAX( - - 49 ) + CAST( NULL AS SIGNED ) * + 94 + + ( + 56 ) AS col2
----
97
NULL

skipif mysql # not compatible
query II rowsort label-7462
SELECT + 97, - MAX ( - - 49 ) + CAST ( NULL AS INTEGER ) * + 94 + + ( + 56 ) AS col2
----
97
NULL

query II rowsort
SELECT ALL + 48, 87 * 31 AS col1
----
48
2697

query I rowsort
SELECT - 89 * 82 + + 26 + + - 6
----
-7278

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT DISTINCT 64 DIV - ( + + 23 ) - + 41
----
-43

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT 64 / - ( + + 23 ) - + 41
----
-43

query I rowsort
SELECT - - 62 * 22
----
1364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7467
SELECT ALL + - COUNT( * ) DIV + + 21 * COUNT( * ) * - 84 + - - 55
----
55

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + - COUNT ( * ) / + + 21 * COUNT ( * ) * - 84 + - - 55
----
55

query I rowsort
SELECT - 98 * + 93 + - 35
----
-9149

query I rowsort
SELECT - 59 + + + 27 + + + 68
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7470
SELECT ALL + + 14 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL + + 14 / 92
----
0

query I rowsort
SELECT DISTINCT + 58 * + + CASE + - CASE + + 30 WHEN + + 65 THEN - 64 * + ( - 83 ) - 1 ELSE + 81 END WHEN 17 THEN NULL ELSE - 53 END col2
----
-3074

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

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

query I rowsort
SELECT - 93 * 88 + + + ( 87 ) AS col1
----
-8097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7474
SELECT - + 36 * - CAST( + - COUNT( * ) AS SIGNED ) + - 52 col2
----
-88

skipif mysql # not compatible
query I rowsort label-7474
SELECT - + 36 * - CAST ( + - COUNT ( * ) AS INTEGER ) + - 52 col2
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7475
SELECT - 35 DIV COUNT( ALL - - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-7475
SELECT - 35 / COUNT ( ALL - - 35 ) AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7476
SELECT DISTINCT + - 72 * + + CAST( - COUNT( * ) AS SIGNED ), NULLIF ( + 52, + 60 ) * 12 + 50 - - 87 + ( + 89 ) AS col1, - 2 AS col1
----
72
850
-2

skipif mysql # not compatible
query III rowsort label-7476
SELECT DISTINCT + - 72 * + + CAST ( - COUNT ( * ) AS INTEGER ), NULLIF ( + 52, + 60 ) * 12 + 50 - - 87 + ( + 89 ) AS col1, - 2 AS col1
----
72
850
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7477
SELECT ALL 92 DIV - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL 92 / - COUNT ( * )
----
-92

query II rowsort
SELECT - 20, 41 * - 29 + - + 60 AS col2
----
-20
-1249

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT - COUNT( DISTINCT - - 52 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7479
SELECT - COUNT ( DISTINCT - - 52 ) col0
----
-1

query I rowsort
SELECT + - 78 + + 80 + + 65
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL + 8 * 26 + CASE + 5 WHEN 17 THEN + 65 WHEN + COUNT( * ) / + 48 * - + 59 + - - 27 + + + 3 - + 16 * - + 88 + - 53 THEN + 33 * + + 64 * 38 WHEN + COUNT( * ) * - COUNT( * ) + COALESCE ( + 28, - ( - - ( ( - COALESCE ( + + ( + + COALESCE ( + + 50, 21 ) ), + - 23 / + 9 + 18 / - 19 * + 4 ) ) ) ), 41 * + + 96 ) + 64 THEN + + 65 + - + 72 ELSE - 38 * + NULLIF ( + 1, 40 * - NULLIF ( 88, + 24 * 0 ) ) + 92 END + 78 * 37 AS col1
----
3148

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL + 8 * 26 + CASE + 5 WHEN 17 THEN + 65 WHEN + COUNT ( * ) / + 48 * - + 59 + - - 27 + + + 3 - + 16 * - + 88 + - 53 THEN + 33 * + + 64 * 38 WHEN + COUNT ( * ) * - COUNT ( * ) + COALESCE ( + 28, - ( - - ( ( - COALESCE ( + + ( + + COALESCE ( + + 50, 21 ) ), + - 23 / + 9 + 18 / - 19 * + 4 ) ) ) ), 41 * + + 96 ) + 64 THEN + + 65 + - + 72 ELSE - 38 * + NULLIF ( + 1, 40 * - NULLIF ( 88, + 24 * 0 ) ) + 92 END + 78 * 37 AS col1
----
3148

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT CASE - COUNT( * ) WHEN + 51 * + + 17 + 87 THEN - 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT CASE - COUNT ( * ) WHEN + 51 * + + 17 + 87 THEN - 33 ELSE NULL END
----
NULL

query I rowsort
SELECT ( - 35 ) + 2
----
-33

query I rowsort
SELECT DISTINCT 13 * + 79
----
1027

query II rowsort
SELECT ALL 71 + + 54 AS col1, - 91 col0
----
125
-91

query I rowsort
SELECT ( + 6 ) + - 54
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7487
SELECT DISTINCT 77 * - 10 * + NULLIF ( - - 45, COUNT( * ) * 95 + - CAST( NULL AS SIGNED ) * 96 + + - 87 - COUNT( * ) + 24 + + COALESCE ( ( - - 55 ), 96 - - 11 + 41 + + 22 / - - 25 + - 74 + - 55 ) * 72 * + + ( 48 ) ) * - COUNT( * ) - - 90 AS col0
----
34740

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT 77 * - 10 * + NULLIF ( - - 45, COUNT ( * ) * 95 + - CAST ( NULL AS INTEGER ) * 96 + + - 87 - COUNT ( * ) + 24 + + COALESCE ( ( - - 55 ), 96 - - 11 + 41 + + 22 / - - 25 + - 74 + - 55 ) * 72 * + + ( 48 ) ) * - COUNT ( * ) - - 90 AS col0
----
34740

query I rowsort
SELECT DISTINCT - 16 + - + 76
----
-92

query I rowsort
SELECT 12 + - + 20 * + 17 AS col2
----
-328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7490
SELECT 22 + COALESCE ( - ( + + 80 ), + + 82 DIV + NULLIF ( - 83, 78 * - 44 ) ) DIV + COUNT( * ) + + 66 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7490
SELECT 22 + COALESCE ( - ( + + 80 ), + + 82 / + NULLIF ( - 83, 78 * - 44 ) ) / + COUNT ( * ) + + 66 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT DISTINCT - ( - 80 ) / - - ( - + CASE + + COALESCE ( 62, + - COUNT( * ) + - 48 ) WHEN 45 THEN NULLIF ( + 3, - COUNT( * ) * + 2 + - + 0 - - 59 * - 97 ) * COUNT( * ) END ) + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - ( - 80 ) / - - ( - + CASE + + COALESCE ( 62, + - COUNT ( * ) + - 48 ) WHEN 45 THEN NULLIF ( + 3, - COUNT ( * ) * + 2 + - + 0 - - 59 * - 97 ) * COUNT ( * ) END ) + - 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL - MIN( ALL 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - MIN ( ALL 83 ) AS col2
----
-83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7494
SELECT 92 * - SUM( + 3 ) + + - 22 * - 98 AS col0, COUNT( * )
----
1880
1

skipif mysql # not compatible
query II rowsort label-7494
SELECT 92 * - SUM ( + 3 ) + + - 22 * - 98 AS col0, COUNT ( * )
----
1880
1

query I rowsort
SELECT CASE + + 23 WHEN + - 89 * 4 / - - 54 THEN 89 * - 99 - - 44 ELSE NULL END * + 9
----
NULL

query I rowsort
SELECT ALL + 28 * - 17 + - COALESCE ( - 67, + - 66 ) + 30 AS col2
----
-379

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT 33 * + CASE - 6 WHEN + SUM( ALL 73 ) THEN + 78 + - 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7497
SELECT 33 * + CASE - 6 WHEN + SUM ( ALL 73 ) THEN + 78 + - 23 END
----
NULL

query I rowsort
SELECT ALL + - 7 + - ( + - 97 ) AS col1
----
90

query I rowsort
SELECT 79 * + 83 AS col2
----
6557

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL - - SUM( 61 ) * - 3
----
-183

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL - - SUM ( 61 ) * - 3
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT + - ( + - 54 ) + MAX( 47 ) + + 88
----
189

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT + - ( + - 54 ) + MAX ( 47 ) + + 88
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT MIN( ALL - 34 ) - 41 + - - 92 * + ( - 20 ) AS col2
----
-1915

skipif mysql # not compatible
query I rowsort label-7502
SELECT MIN ( ALL - 34 ) - 41 + - - 92 * + ( - 20 ) AS col2
----
-1915

query II rowsort
SELECT ALL 72 + - 41 + - 97 + + - ( - - 14 ) AS col0, - 61 AS col0
----
-80
-61

query I rowsort
SELECT ALL 30 + - 8
----
22

query I rowsort
SELECT 71 * 28 * 36 * - - 12 AS col1
----
858816

query II rowsort
SELECT ALL 74 AS col2, + 40 * 30 col1
----
74
1200

query II rowsort
SELECT 52 AS col1, 45 AS col0
----
52
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT ALL + 20 - + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL + 20 - + COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT 70 * + + CASE 65 WHEN NULLIF ( - MAX( + + 51 ), - + 15 + - ( - 84 ) ) * COUNT( * ) + + 95 * + 82 THEN + + 70 WHEN + MIN( - + 57 ) / - 19 THEN 82 END * + + 21 * + 94 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT 70 * + + CASE 65 WHEN NULLIF ( - MAX ( + + 51 ), - + 15 + - ( - 84 ) ) * COUNT ( * ) + + 95 * + 82 THEN + + 70 WHEN + MIN ( - + 57 ) / - 19 THEN 82 END * + + 21 * + 94 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT ( - CASE + ( 22 ) WHEN MIN( + 60 ) THEN ( + 28 ) WHEN - ( + COUNT( 83 ) ) THEN + 22 - + 76 + + 83 * + 28 ELSE + NULLIF ( + 14, + + 41 + + 18 ) END ) * 95 + - - 90 * - 55
----
-6280

skipif mysql # not compatible
query I rowsort label-7510
SELECT ( - CASE + ( 22 ) WHEN MIN ( + 60 ) THEN ( + 28 ) WHEN - ( + COUNT ( 83 ) ) THEN + 22 - + 76 + + 83 * + 28 ELSE + NULLIF ( + 14, + + 41 + + 18 ) END ) * 95 + - - 90 * - 55
----
-6280

query I rowsort
SELECT 86 + + - 13 * - ( - 96 )
----
-1162

query I rowsort
SELECT CASE + 17 WHEN + 35 THEN - ( 36 ) END * + COALESCE ( 15, + - 92 ) AS col1
----
NULL

query I rowsort
SELECT ( 76 ) + - - 8 - + 49 + + - ( - + 2 ) AS col1
----
37

query II rowsort
SELECT DISTINCT 54 AS col0, - 76
----
54
-76

query I rowsort
SELECT ALL 22 * + 62
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT + + COALESCE ( 99, + MAX( - 27 ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7516
SELECT + + COALESCE ( 99, + MAX ( - 27 ) ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7517
SELECT ( 28 ) + + 9 AS col0, + COUNT( DISTINCT + 13 ) AS col1
----
37
1

skipif mysql # not compatible
query II rowsort label-7517
SELECT ( 28 ) + + 9 AS col0, + COUNT ( DISTINCT + 13 ) AS col1
----
37
1

query I rowsort
SELECT - + 73 * - 31 + 39
----
2302

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7520
SELECT 69 DIV + 84 + 86, - NULLIF ( - 96, MAX( DISTINCT + 29 ) + + - 72 * - COUNT( * ) + - 5 * - - 50 * - ( 37 ) ) AS col0
----
86
96

skipif mysql # not compatible
query II rowsort label-7520
SELECT 69 / + 84 + 86, - NULLIF ( - 96, MAX ( DISTINCT + 29 ) + + - 72 * - COUNT ( * ) + - 5 * - - 50 * - ( 37 ) ) AS col0
----
86
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT - 8 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-7521
SELECT - 8 / + 88
----
0

query I rowsort
SELECT + 17 + + 1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7523
SELECT ALL + ( + 41 ) DIV 68 * + 22
----
0

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL + ( + 41 ) / 68 * + 22
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT ALL - - ( - CASE - - ( + 46 ) WHEN + COUNT( * ) * - 27 + SUM( 15 ) + 43 + 41 * + 35 - - 54 THEN NULL WHEN - - 3 THEN NULL ELSE + - 88 * - 34 * + COALESCE ( + - 45, + 79 * + - SUM( ALL + COALESCE ( + + 64, + 56 * + 35 + ( - 91 ) ) ), + 51 ) + + 87 + CASE + CAST( NULL AS SIGNED ) WHEN - 57 / + 45 * - ( + COUNT( * ) ) + - + 18 THEN NULL WHEN - 40 THEN - 73 ELSE NULL END - + - 55 END ) * 45 + + 32 + COUNT( * ) * - + COUNT( * ) * + AVG ( DISTINCT - 45 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - - ( - CASE - - ( + 46 ) WHEN + COUNT ( * ) * - 27 + SUM ( 15 ) + 43 + 41 * + 35 - - 54 THEN NULL WHEN - - 3 THEN NULL ELSE + - 88 * - 34 * + COALESCE ( + - 45, + 79 * + - SUM ( ALL + COALESCE ( + + 64, + 56 * + 35 + ( - 91 ) ) ), + 51 ) + + 87 + CASE + CAST ( NULL AS INTEGER ) WHEN - 57 / + 45 * - ( + COUNT ( * ) ) + - + 18 THEN NULL WHEN - 40 THEN - 73 ELSE NULL END - + - 55 END ) * 45 + + 32 + COUNT ( * ) * - + COUNT ( * ) * + AVG ( DISTINCT - 45 ) AS col2
----
NULL

query I rowsort
SELECT ALL + + 34 * + + 97 * - 69 AS col0
----
-227562

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL + COUNT( * ) * + + ( - MAX( DISTINCT 69 ) ) + - - 76 * - 60 AS col2
----
-4629

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL + COUNT ( * ) * + + ( - MAX ( DISTINCT 69 ) ) + - - 76 * - 60 AS col2
----
-4629

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7527
SELECT - 63 DIV + + MAX( + 74 ) * - - SUM( - 94 ) + - - 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7527
SELECT - 63 / + + MAX ( + 74 ) * - - SUM ( - 94 ) + - - 53 AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7528
SELECT ALL - 8 * - + ( - - 68 ) - - + ( 59 ) + - + 52 DIV - - 67 AS col0
----
603

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL - 8 * - + ( - - 68 ) - - + ( 59 ) + - + 52 / - - 67 AS col0
----
603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7529
SELECT + 57 + - - COUNT( * ) * - + CAST( - 31 AS SIGNED ) col0
----
88

skipif mysql # not compatible
query I rowsort label-7529
SELECT + 57 + - - COUNT ( * ) * - + CAST ( - 31 AS INTEGER ) col0
----
88

query II rowsort
SELECT + + 58 AS col1, NULLIF ( - 9, 62 ) AS col1
----
58
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL COUNT( * ) * - + 90 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL COUNT ( * ) * - + 90 AS col0
----
-90

query II rowsort
SELECT DISTINCT + - 98 AS col2, - 38
----
-98
-38

query II rowsort
SELECT ALL + 34 + + 90 AS col1, - 58 + - 45 * + NULLIF ( - 15, 11 )
----
124
617

query II rowsort
SELECT 8 AS col2, 51
----
8
51

query II rowsort
SELECT ALL 62, - NULLIF ( + 42, 46 + 74 + - 47 + + ( + 43 ) * + 27 ) AS col0
----
62
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL - 61 * MIN( + 65 ) * - - 35 col0
----
-138775

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL - 61 * MIN ( + 65 ) * - - 35 col0
----
-138775

query I rowsort
SELECT - 30 + - 66
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7539
SELECT ALL COUNT( * ), CAST( NULL AS SIGNED ) AS col1, - ( + 65 ) AS col0
----
1
NULL
-65

skipif mysql # not compatible
query III rowsort label-7539
SELECT ALL COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1, - ( + 65 ) AS col0
----
1
NULL
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL + 34 - + COUNT( * ) * + + 58
----
-24

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL + 34 - + COUNT ( * ) * + + 58
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7541
SELECT - 73 AS col0, - 43 + + - CAST( NULL AS SIGNED )
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-7541
SELECT - 73 AS col0, - 43 + + - CAST ( NULL AS INTEGER )
----
-73
NULL

query II rowsort
SELECT - 77 * + 53, 34 * - 16 AS col2
----
-4081
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL - MIN( + 92 ) * - 96
----
8832

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL - MIN ( + 92 ) * - 96
----
8832

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

query II rowsort
SELECT - 84 AS col1, + 78 * + 54
----
-84
4212

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7546
SELECT + 76 + + 25, + CAST( NULL AS DECIMAL ) AS col2
----
101
NULL

skipif mysql # not compatible
query II rowsort label-7546
SELECT + 76 + + 25, + CAST ( NULL AS REAL ) AS col2
----
101
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT MAX( ALL ( + 23 ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT MAX ( ALL ( + 23 ) ) AS col2
----
23

query II rowsort
SELECT - 42, + ( 58 ) col0
----
-42
58

query I rowsort
SELECT - 23 * - 66 AS col2
----
1518

query I rowsort
SELECT ALL + 99 * - 64 * 11
----
-69696

query I rowsort
SELECT ALL COALESCE ( + - 98, + 17 )
----
-98

query I rowsort
SELECT - 87 * - ( 83 )
----
7221

query I rowsort
SELECT + 93 * - 76 AS col2
----
-7068

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT CASE + 37 WHEN - 31 + COUNT( * ) * - - 1 + + - 61 THEN NULL WHEN + 56 THEN - 98 ELSE - 29 END
----
-29

skipif mysql # not compatible
query I rowsort label-7554
SELECT CASE + 37 WHEN - 31 + COUNT ( * ) * - - 1 + + - 61 THEN NULL WHEN + 56 THEN - 98 ELSE - 29 END
----
-29

query I rowsort
SELECT - + 23 * 36 col0
----
-828

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7556
SELECT 69 AS col2, + CAST( NULL AS DECIMAL ) * + + NULLIF ( ( 15 ), + 9 * + 85 ) AS col0
----
69
NULL

skipif mysql # not compatible
query II rowsort label-7556
SELECT 69 AS col2, + CAST ( NULL AS REAL ) * + + NULLIF ( ( 15 ), + 9 * + 85 ) AS col0
----
69
NULL

query II rowsort
SELECT ALL - + 26 * + 6 + + ( 25 ) AS col2, - 96 * - 46 AS col0
----
-131
4416

query I rowsort
SELECT DISTINCT + - ( - + 20 ) * + 87 + CASE + 72 WHEN - - 80 THEN 81 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 68 * - 12 + 26
----
-790

onlyif mysql # aggregate syntax: 
query II rowsort label-7560
SELECT + 61 AS col0, - MAX( - 57 ) * 84 * - 11 AS col2
----
61
-52668

skipif mysql # not compatible
query II rowsort label-7560
SELECT + 61 AS col0, - MAX ( - 57 ) * 84 * - 11 AS col2
----
61
-52668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7561
SELECT - CASE + 88 WHEN + 4 THEN + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7561
SELECT - CASE + 88 WHEN + 4 THEN + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT + + ( - 24 ) + - - 44 + - - 71 + - 78 * - 78 + 15 + 83 * 99 * - 56
----
-453962

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7564
SELECT 47 * - 87 * - SUM( 76 ) * CASE 28 WHEN + MIN( DISTINCT - - ( + - 20 ) ) THEN - - COALESCE ( - 92, - + 81 * + - 78 ) + - 9 + - + 68 / - 60 / - + 55 * - - 71 * + 28 * - 41 END * + + 14 * 99 * + 28 + CAST( NULL AS SIGNED ) + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT 47 * - 87 * - SUM ( 76 ) * CASE 28 WHEN + MIN ( DISTINCT - - ( + - 20 ) ) THEN - - COALESCE ( - 92, - + 81 * + - 78 ) + - 9 + - + 68 / - 60 / - + 55 * - - 71 * + 28 * - 41 END * + + 14 * 99 * + 28 + CAST ( NULL AS INTEGER ) + 90
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT + - NULLIF ( + 3, - MAX( ALL 11 ) ) DIV - COUNT( 75 )
----
3

skipif mysql # not compatible
query I rowsort label-7565
SELECT + - NULLIF ( + 3, - MAX ( ALL 11 ) ) / - COUNT ( 75 )
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT + ( + + COUNT( - 56 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7567
SELECT + ( + + COUNT ( - 56 ) )
----
1

query II rowsort
SELECT + 89 + + + 64 AS col0, 73 - - + 81 AS col1
----
153
154

query I rowsort
SELECT ALL 24 * 23 - - 2
----
554

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

skipif mysql # not compatible
query I rowsort label-7570
SELECT + 1 * - 21 / - - COUNT ( * ) AS col0
----
-21

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

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

query I rowsort
SELECT + 53 + - 26
----
27

query II rowsort
SELECT - 59 - - 26 AS col1, 41
----
-33
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7574
SELECT MAX( DISTINCT 29 ) AS col2, MAX( 16 )
----
29
16

skipif mysql # not compatible
query II rowsort label-7574
SELECT MAX ( DISTINCT 29 ) AS col2, MAX ( 16 )
----
29
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT DISTINCT MIN( ALL + COALESCE ( + + 68, - - 83 + 13 * + 13 ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT MIN ( ALL + COALESCE ( + + 68, - - 83 + 13 * + 13 ) ) AS col1
----
68

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

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

query I rowsort
SELECT ALL + 41 + - 27 AS col0
----
14

query I rowsort
SELECT - ( 90 ) + + + 29 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL + 91 + + NULLIF ( + COUNT( * ), - 45 )
----
92

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL + 91 + + NULLIF ( + COUNT ( * ), - 45 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7581
SELECT ALL + + CASE + 9 WHEN + CAST( COUNT( 78 ) AS SIGNED ) THEN + 44 WHEN 41 - + 33 THEN NULL ELSE + NULLIF ( 76, + - 72 + 19 - 42 + + 38 * + ( 14 ) * - NULLIF ( 58, 5 ) ) * 74 END + - - 61 - + - CASE - 28 WHEN + COUNT( * ) * + 20 THEN NULL ELSE - 37 END AS col1
----
5648

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL + + CASE + 9 WHEN + CAST ( COUNT ( 78 ) AS INTEGER ) THEN + 44 WHEN 41 - + 33 THEN NULL ELSE + NULLIF ( 76, + - 72 + 19 - 42 + + 38 * + ( 14 ) * - NULLIF ( 58, 5 ) ) * 74 END + - - 61 - + - CASE - 28 WHEN + COUNT ( * ) * + 20 THEN NULL ELSE - 37 END AS col1
----
5648

query I rowsort
SELECT - ( + 36 ) + + 90
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT + 96 * - COUNT( * ) + 24 + - + 54 * 41
----
-2286

skipif mysql # not compatible
query I rowsort label-7583
SELECT + 96 * - COUNT ( * ) + 24 + - + 54 * 41
----
-2286

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7584
SELECT CASE + MIN( - + ( - - 15 ) ) WHEN 84 * + 28 THEN NULL WHEN + 47 THEN NULL ELSE 86 * MAX( ALL NULLIF ( - 47, 34 ) ) - + + 41 END DIV + 64
----
-63

skipif mysql # not compatible
query I rowsort label-7584
SELECT CASE + MIN ( - + ( - - 15 ) ) WHEN 84 * + 28 THEN NULL WHEN + 47 THEN NULL ELSE 86 * MAX ( ALL NULLIF ( - 47, 34 ) ) - + + 41 END / + 64
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7585
SELECT + CAST( - MIN( DISTINCT 96 ) AS SIGNED ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7585
SELECT + CAST ( - MIN ( DISTINCT 96 ) AS INTEGER ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT + - CASE 76 WHEN - COUNT( * ) THEN + 7 - + 12 / 98 * + + 56 / + + 35 WHEN + - 53 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT + - CASE 76 WHEN - COUNT ( * ) THEN + 7 - + 12 / 98 * + + 56 / + + 35 WHEN + - 53 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7587
SELECT COUNT( * ) * + COALESCE ( + + 51, CAST( + - 21 AS SIGNED ), - + 30 + + - 14, + 75 ) + + COUNT( - CASE + + 28 WHEN + + 74 THEN NULL ELSE - 0 * + 33 + 24 END ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7587
SELECT COUNT ( * ) * + COALESCE ( + + 51, CAST ( + - 21 AS INTEGER ), - + 30 + + - 14, + 75 ) + + COUNT ( - CASE + + 28 WHEN + + 74 THEN NULL ELSE - 0 * + 33 + 24 END ) AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7588
SELECT ALL ( + 30 ) - - - 4 + + 12 * 45 + - 35 + - ( - CAST( - 66 AS SIGNED ) ) + - + 17 + + 55 / CAST( NULL AS SIGNED ), + 4 col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-7588
SELECT ALL ( + 30 ) - - - 4 + + 12 * 45 + - 35 + - ( - CAST ( - 66 AS INTEGER ) ) + - + 17 + + 55 / CAST ( NULL AS INTEGER ), + 4 col2
----
NULL
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7589
SELECT DISTINCT - COUNT( * ) * 52 DIV + COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - COUNT ( * ) * 52 / + COUNT ( * )
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL + SUM( - 19 ) * - COUNT( * ) * + 9 * 51 * + + 21 AS col1
----
183141

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL + SUM ( - 19 ) * - COUNT ( * ) * + 9 * 51 * + + 21 AS col1
----
183141

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT + NULLIF ( + 37, + 21 + + ( 54 ) + - - 16 / + 41 * - + 31 - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-7592
SELECT + NULLIF ( + 37, + 21 + + ( 54 ) + - - 16 / + 41 * - + 31 - COUNT ( * ) )
----
37

query I rowsort
SELECT 57 + 55
----
112

query I rowsort
SELECT 61 * - 58
----
-3538

query I rowsort
SELECT ALL 13 * + + 4
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7596
SELECT - COUNT( DISTINCT + 93 ) * + - ( + + ( + 18 ) ) + NULLIF ( + 33, CAST( NULL AS SIGNED ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7596
SELECT - COUNT ( DISTINCT + 93 ) * + - ( + + ( + 18 ) ) + NULLIF ( + 33, CAST ( NULL AS INTEGER ) ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT SUM( ALL + 48 ) * 72 * 10
----
34560

skipif mysql # not compatible
query I rowsort label-7597
SELECT SUM ( ALL + 48 ) * 72 * 10
----
34560

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

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

query II rowsort
SELECT 63, 20 AS col1
----
63
20

query I rowsort
SELECT ALL ( + 55 ) * - 43 AS col0
----
-2365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT ( + 13 ) + + - CAST( 42 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-7601
SELECT ( + 13 ) + + - CAST ( 42 AS INTEGER )
----
-29

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

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

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

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

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

query I rowsort
SELECT ALL ( - - 15 ) + + 31 + - + 53
----
-7

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT 47 + - 19 * 7 DIV + 57
----
45

skipif mysql # not compatible
query I rowsort label-7609
SELECT 47 + - 19 * 7 / + 57
----
45

query I rowsort
SELECT 56 + 43 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT ALL 30 + - 72 + SUM( ALL + 96 ) * ( 51 )
----
4854

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL 30 + - 72 + SUM ( ALL + 96 ) * ( 51 )
----
4854

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7612
SELECT DISTINCT - 43 + + - 71 DIV - 62 - - 74 + + CAST( - 93 AS SIGNED ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT - 43 + + - 71 / - 62 - - 74 + + CAST ( - 93 AS INTEGER ) AS col0
----
-61

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

query I rowsort
SELECT ALL - 10 + - 88 AS col0
----
-98

query II rowsort
SELECT ALL - 44 AS col0, 1 AS col2
----
-44
1

query II rowsort
SELECT - 50, COALESCE ( - - 11, - 22, 6 ) + - + 32 AS col0
----
-50
-21

query I rowsort
SELECT + 36 - - - 51 AS col2
----
-15

query II rowsort
SELECT 61 AS col2, + 34 + - 3 col2
----
61
31

onlyif mysql # DIV for integer division: 
query II rowsort label-7619
SELECT - + 77, 46 DIV + + 68 - 12 AS col2
----
-77
-12

skipif mysql # not compatible
query II rowsort label-7619
SELECT - + 77, 46 / + + 68 - 12 AS col2
----
-77
-12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT 54 DIV + 14
----
3

skipif mysql # not compatible
query I rowsort label-7621
SELECT 54 / + 14
----
3

query I rowsort
SELECT ALL + + 35 * - 77 col1
----
-2695

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

skipif mysql # not compatible
query II rowsort label-7623
SELECT ALL - 0, - CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

query II rowsort
SELECT + + 87 AS col2, 35
----
87
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT ALL - - 56 - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL - - 56 - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7626
SELECT + + 25, + 26 + + COUNT( * ) DIV 42 AS col2
----
25
26

skipif mysql # not compatible
query II rowsort label-7626
SELECT + + 25, + 26 + + COUNT ( * ) / 42 AS col2
----
25
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7627
SELECT 13 DIV + 53 + + COUNT( DISTINCT + 13 ) * + + 92 + - 82 + + 52 * + + 95 + + 90 + + - 75 AS col0
----
4965

skipif mysql # not compatible
query I rowsort label-7627
SELECT 13 / + 53 + + COUNT ( DISTINCT + 13 ) * + + 92 + - 82 + + 52 * + + 95 + + 90 + + - 75 AS col0
----
4965

query I rowsort
SELECT 71 + + - ( 76 ) + 31 col2
----
26

query I rowsort
SELECT 6 * - + ( + 85 ) AS col1
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT CASE + - 16 WHEN 94 + - MIN( DISTINCT + 23 ) THEN 44 END * - + 28 * + 37 / + 87 * + 49 + - + 52 - ( - 73 ) * - + 52 * - + COUNT( * ) * + 56 / 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT CASE + - 16 WHEN 94 + - MIN ( DISTINCT + 23 ) THEN 44 END * - + 28 * + 37 / + 87 * + 49 + - + 52 - ( - 73 ) * - + 52 * - + COUNT ( * ) * + 56 / 67 col1
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( - + 98, + 71 * 17 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL ( + 0 ) + + MIN( - 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL ( + 0 ) + + MIN ( - 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT COUNT( * ) + - + 91 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-7633
SELECT COUNT ( * ) + - + 91 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ALL + 40 * - + 48 * - COUNT( * ) AS col1
----
1920

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + 40 * - + 48 * - COUNT ( * ) AS col1
----
1920

query I rowsort
SELECT 13 * + 36 + + + 35 AS col0
----
503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7636
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) + 72 + 78 / - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) + 72 + 78 / - + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL + COUNT( * ) + SUM( DISTINCT - - 23 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL + COUNT ( * ) + SUM ( DISTINCT - - 23 ) AS col0
----
24

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7639
SELECT + MIN( ALL + 91 ) AS col0, 98 AS col1
----
91
98

skipif mysql # not compatible
query II rowsort label-7639
SELECT + MIN ( ALL + 91 ) AS col0, 98 AS col1
----
91
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7640
SELECT COUNT( * ) DIV + + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7640
SELECT COUNT ( * ) / + + 51 AS col1
----
0

query I rowsort
SELECT ( - 83 ) * + - 14
----
1162

onlyif mysql # aggregate syntax: 
query II rowsort label-7642
SELECT ALL + 14 + - 49, SUM( ALL 1 ) AS col2
----
-35
1

skipif mysql # not compatible
query II rowsort label-7642
SELECT ALL + 14 + - 49, SUM ( ALL 1 ) AS col2
----
-35
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7643
SELECT ALL 46 + - 35 * - CASE + NULLIF ( + 26, + CAST( - - 91 AS DECIMAL ) ) WHEN + 32 * + 12 THEN - 85 * + 46 WHEN + COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) * - 81 + 69 THEN + + COUNT( * ) * - COALESCE ( + - 5, + + 94 / 20 * + + NULLIF ( - NULLIF ( 21, 16 ), + 92 + - 83 * + + 16 * - + 18 ) + 73 ) - 69 + + - 17 + - COUNT( * ) * + 93 END + - + NULLIF ( 89, + 50 + AVG ( DISTINCT - + 16 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL 46 + - 35 * - CASE + NULLIF ( + 26, + CAST ( - - 91 AS REAL ) ) WHEN + 32 * + 12 THEN - 85 * + 46 WHEN + COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 81 + 69 THEN + + COUNT ( * ) * - COALESCE ( + - 5, + + 94 / 20 * + + NULLIF ( - NULLIF ( 21, 16 ), + 92 + - 83 * + + 16 * - + 18 ) + 73 ) - 69 + + - 17 + - COUNT ( * ) * + 93 END + - + NULLIF ( 89, + 50 + AVG ( DISTINCT - + 16 ) )
----
NULL

query I rowsort
SELECT 37 - - + 5 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT + MIN( DISTINCT 23 ) * + + 53 * - + 29 AS col2
----
-35351

skipif mysql # not compatible
query I rowsort label-7645
SELECT + MIN ( DISTINCT 23 ) * + + 53 * - + 29 AS col2
----
-35351

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT + ( + 1 ) - 63 - + 20 - - 66 * - COUNT( DISTINCT 97 ) * 66 + 25
----
-4413

skipif mysql # not compatible
query I rowsort label-7646
SELECT + ( + 1 ) - 63 - + 20 - - 66 * - COUNT ( DISTINCT 97 ) * 66 + 25
----
-4413

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT + 8 * + 72 * + COUNT( * )
----
576

skipif mysql # not compatible
query I rowsort label-7647
SELECT + 8 * + 72 * + COUNT ( * )
----
576

query I rowsort
SELECT + 47 + - 43 AS col0
----
4

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

query I rowsort
SELECT + 61 + 58
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT DISTINCT 49 * + + MAX( - 25 )
----
-1225

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT 49 * + + MAX ( - 25 )
----
-1225

query II rowsort
SELECT - + 93 + - 95 AS col2, 38
----
-188
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7653
SELECT + - COALESCE ( + 63, 82, + 17 DIV - AVG ( DISTINCT - 17 ) + SUM( ALL - 78 ), - ( + + COUNT( * ) ) ) * - 92 + 8 * + 64 * COALESCE ( + 74, + COUNT( * ), - 53 + - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) ) + + - COUNT( * ) + CAST( + + 95 AS SIGNED )
----
43778

skipif mysql # not compatible
query I rowsort label-7653
SELECT + - COALESCE ( + 63, 82, + 17 / - AVG ( DISTINCT - 17 ) + SUM ( ALL - 78 ), - ( + + COUNT ( * ) ) ) * - 92 + 8 * + 64 * COALESCE ( + 74, + COUNT ( * ), - 53 + - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) + + - COUNT ( * ) + CAST ( + + 95 AS INTEGER )
----
43778

onlyif mysql # aggregate syntax: 
query II rowsort label-7654
SELECT DISTINCT + + MIN( ALL 55 ) AS col1, 93
----
55
93

skipif mysql # not compatible
query II rowsort label-7654
SELECT DISTINCT + + MIN ( ALL 55 ) AS col1, 93
----
55
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT ALL + SUM( DISTINCT + + 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL + SUM ( DISTINCT + + 35 ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7656
SELECT + ( CASE - + 39 WHEN - - SUM( ALL - - 62 ) + + 50 THEN NULL WHEN + 87 THEN + - 37 + - - 75 ELSE CAST( NULL AS SIGNED ) * - - 33 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7656
SELECT + ( CASE - + 39 WHEN - - SUM ( ALL - - 62 ) + + 50 THEN NULL WHEN + 87 THEN + - 37 + - - 75 ELSE CAST ( NULL AS INTEGER ) * - - 33 END )
----
NULL

query I rowsort
SELECT + 30 * - ( - 23 ) * ( + 89 ) AS col2
----
61410

query II rowsort
SELECT DISTINCT + 28 AS col1, 47
----
28
47

query I rowsort
SELECT DISTINCT 61 * CASE - 4 WHEN - 80 THEN NULL ELSE - ( - ( + 38 ) ) END + 32 + - 8 AS col1
----
2342

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT + SUM( ALL + + 20 ) * + SUM( ALL 74 ) col2
----
1480

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT + SUM ( ALL + + 20 ) * + SUM ( ALL 74 ) col2
----
1480

query I rowsort
SELECT COALESCE ( 48, + CASE 29 WHEN - 23 THEN NULL WHEN - 40 THEN + - 49 END * - ( - 74 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL + 83 * - - COUNT( * ) + 64 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL + 83 * - - COUNT ( * ) + 64 AS col1
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-7663
SELECT - 70 * NULLIF ( - + 67, + MAX( + 35 ) ) * + 97 AS col0, 71 AS col0
----
454930
71

skipif mysql # not compatible
query II rowsort label-7663
SELECT - 70 * NULLIF ( - + 67, + MAX ( + 35 ) ) * + 97 AS col0, 71 AS col0
----
454930
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT 36 * - - 1 + - - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-7664
SELECT 36 * - - 1 + - - COUNT ( * )
----
37

query I rowsort
SELECT - 41 * - + 57 AS col0
----
2337

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT + MIN( + - 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7666
SELECT + MIN ( + - 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT ALL - COUNT( * ) * + 6 * - 8 + - 16 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL - COUNT ( * ) * + 6 * - 8 + - 16 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT DISTINCT + CASE - 37 WHEN + 13 * 51 THEN NULL WHEN + CASE - + COUNT( * ) WHEN 42 + + AVG ( ALL + - 29 ) THEN - - COALESCE ( - - MIN( + 11 ), + + 37 * + + COUNT( DISTINCT - - 9 ) + 33 + + ( - 74 ) + + + 35 + - ( 36 ) * + 73 * + MAX( DISTINCT - - ( + - 84 ) ) / 82 - 56 + + - CASE - + COUNT( * ) WHEN AVG ( + 33 ) - - - 74 + + 7 * + - 96 - + + AVG ( ALL 69 ) THEN NULL WHEN - 82 THEN NULL ELSE - 74 END + - 81 * - 29 ) ELSE - + 16 END THEN 90 ELSE 71 * - 86 END
----
-6106

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT + CASE - 37 WHEN + 13 * 51 THEN NULL WHEN + CASE - + COUNT ( * ) WHEN 42 + + AVG ( ALL + - 29 ) THEN - - COALESCE ( - - MIN ( + 11 ), + + 37 * + + COUNT ( DISTINCT - - 9 ) + 33 + + ( - 74 ) + + + 35 + - ( 36 ) * + 73 * + MAX ( DISTINCT - - ( + - 84 ) ) / 82 - 56 + + - CASE - + COUNT ( * ) WHEN AVG ( + 33 ) - - - 74 + + 7 * + - 96 - + + AVG ( ALL 69 ) THEN NULL WHEN - 82 THEN NULL ELSE - 74 END + - 81 * - 29 ) ELSE - + 16 END THEN 90 ELSE 71 * - 86 END
----
-6106

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT - COUNT( * ) * - 59 * 67 AS col2
----
3953

skipif mysql # not compatible
query I rowsort label-7669
SELECT - COUNT ( * ) * - 59 * 67 AS col2
----
3953

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL ( - MAX( ALL - 49 ) ) col2
----
49

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL ( - MAX ( ALL - 49 ) ) col2
----
49

query I rowsort
SELECT - 74 * 70
----
-5180

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

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

query I rowsort
SELECT - 51 - - 98
----
47

query I rowsort
SELECT + 33 * - 6 AS col2
----
-198

query I rowsort
SELECT - 44 * 93
----
-4092

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT DISTINCT 91 DIV 42
----
2

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT 91 / 42
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT DISTINCT CAST( 39 AS SIGNED ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT CAST ( 39 AS INTEGER ) AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT DISTINCT 38 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT 38 / 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT - NULLIF ( + 15, COUNT( - 61 ) ) - - 69 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7680
SELECT - NULLIF ( + 15, COUNT ( - 61 ) ) - - 69 AS col0
----
54

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7682
SELECT + 67 DIV 9
----
7

skipif mysql # not compatible
query I rowsort label-7682
SELECT + 67 / 9
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT - SUM( DISTINCT 85 ) * 16
----
-1360

skipif mysql # not compatible
query I rowsort label-7683
SELECT - SUM ( DISTINCT 85 ) * 16
----
-1360

query I rowsort
SELECT ALL 90 * 83 AS col0
----
7470

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

query I rowsort
SELECT ALL 37 + 81
----
118

query I rowsort
SELECT DISTINCT 95 * - 49
----
-4655

query I rowsort
SELECT + 7 * + 88
----
616

onlyif mysql # DIV for integer division: 
query I rowsort label-7689
SELECT ALL - 66 DIV 13 + - 55 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL - 66 / 13 + - 55 AS col2
----
-60

query I rowsort
SELECT ALL 30 * 9 col2
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT + 71 + - COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7691
SELECT + 71 + - COUNT ( * ) AS col2
----
70

query I rowsort
SELECT + 77 * 57
----
4389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7693
SELECT ALL + 88 DIV COUNT( * ) + 53 DIV 49
----
89

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL + 88 / COUNT ( * ) + 53 / 49
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7694
SELECT CAST( 1 AS SIGNED ) / - CASE - 39 * - SUM( ALL 30 * 69 ) WHEN + 56 THEN ( 26 ) + CASE 53 WHEN COUNT( * ) + 58 THEN 27 + - 48 ELSE NULL END WHEN - 79 THEN 83 * - COUNT( * ) ELSE NULL END + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT CAST ( 1 AS INTEGER ) / - CASE - 39 * - SUM ( ALL 30 * 69 ) WHEN + 56 THEN ( 26 ) + CASE 53 WHEN COUNT ( * ) + 58 THEN 27 + - 48 ELSE NULL END WHEN - 79 THEN 83 * - COUNT ( * ) ELSE NULL END + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + 65 + + NULLIF ( 37, + COUNT( * ) + 91 )
----
102

skipif mysql # not compatible
query I rowsort label-7695
SELECT + 65 + + NULLIF ( 37, + COUNT ( * ) + 91 )
----
102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT 50 * - MAX( - 79 ) + 54 AS col0
----
4004

skipif mysql # not compatible
query I rowsort label-7697
SELECT 50 * - MAX ( - 79 ) + 54 AS col0
----
4004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7698
SELECT - 47 - CASE - 43 + - 61 WHEN + 54 THEN - SUM( + ( 22 ) ) WHEN 3 THEN + 33 DIV - COUNT( * ) ELSE 36 END
----
-83

skipif mysql # not compatible
query I rowsort label-7698
SELECT - 47 - CASE - 43 + - 61 WHEN + 54 THEN - SUM ( + ( 22 ) ) WHEN 3 THEN + 33 / - COUNT ( * ) ELSE 36 END
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-7699
SELECT - 62 * + 50 + 18 DIV 19
----
-3100

skipif mysql # not compatible
query I rowsort label-7699
SELECT - 62 * + 50 + 18 / 19
----
-3100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7700
SELECT DISTINCT 82 DIV - MIN( ALL 89 * + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT 82 / - MIN ( ALL 89 * + 40 )
----
0

query I rowsort
SELECT ALL 93 * 25 - + 37 * 22 AS col1
----
1511

query I rowsort
SELECT - 11 + 19
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT + SUM( - ( + 34 ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT + SUM ( - ( + 34 ) ) AS col1
----
-34

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

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

query I rowsort
SELECT ALL - 5 * - 22
----
110

query I rowsort
SELECT ALL + ( + 94 ) - - 90
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT 65 * + SUM( ALL - 29 * - 77 )
----
145145

skipif mysql # not compatible
query I rowsort label-7707
SELECT 65 * + SUM ( ALL - 29 * - 77 )
----
145145

query I rowsort
SELECT - - 18 * + 27 + - 41
----
445

query I rowsort
SELECT - 7 * + 65
----
-455

query I rowsort
SELECT 29 * + 21
----
609

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT + CASE + COUNT( * ) WHEN - 90 * - 43 THEN + 11 ELSE 62 END + CASE - 62 WHEN - 30 * + 47 THEN NULL WHEN 4 - 6 THEN NULL ELSE - 26 * 74 END
----
-1862

skipif mysql # not compatible
query I rowsort label-7712
SELECT + CASE + COUNT ( * ) WHEN - 90 * - 43 THEN + 11 ELSE 62 END + CASE - 62 WHEN - 30 * + 47 THEN NULL WHEN 4 - 6 THEN NULL ELSE - 26 * 74 END
----
-1862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT - CAST( CAST( - AVG ( DISTINCT 1 ) AS SIGNED ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7713
SELECT - CAST ( CAST ( - AVG ( DISTINCT 1 ) AS INTEGER ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT 39 - 77 AS col1
----
-38

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

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 55
----
NULL

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

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

query I rowsort
SELECT - 79 * + 85
----
-6715

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

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

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

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

query I rowsort
SELECT DISTINCT - 29 * 55 AS col2
----
-1595

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7722
SELECT NULLIF ( COUNT( * ), - ( CASE - 21 WHEN CAST( 74 AS SIGNED ) THEN + 80 * + 80 WHEN 33 THEN NULL END ) ) - + 69
----
-68

skipif mysql # not compatible
query I rowsort label-7722
SELECT NULLIF ( COUNT ( * ), - ( CASE - 21 WHEN CAST ( 74 AS INTEGER ) THEN + 80 * + 80 WHEN 33 THEN NULL END ) ) - + 69
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT 54 - - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-7723
SELECT 54 - - COUNT ( * )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT 88 + 94 DIV 56 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7724
SELECT 88 + 94 / 56 AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT - CASE 64 WHEN + 44 / + CAST( + 19 AS SIGNED ) THEN ( + 36 ) * - 97 + - 68 WHEN + 57 THEN + 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT - CASE 64 WHEN + 44 / + CAST ( + 19 AS INTEGER ) THEN ( + 36 ) * - 97 + - 68 WHEN + 57 THEN + 32 END AS col2
----
NULL

query I rowsort
SELECT ALL + 36 + 46 col2
----
82

query I rowsort
SELECT 34 + + 36
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7728
SELECT DISTINCT COALESCE ( 37, + 90 ) DIV + 18
----
2

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT COALESCE ( 37, + 90 ) / + 18
----
2

query I rowsort
SELECT DISTINCT + 99 + - 74 * + 16 AS col2
----
-1085

query I rowsort
SELECT ALL - 44 + - 1 * 89
----
-133

query I rowsort
SELECT 96 * - + 80 AS col0
----
-7680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT COALESCE ( + - 84, + CAST( NULL AS SIGNED ) + + 95 / - 78, - 69 - COUNT( * ) * - CAST( CASE 33 WHEN + 83 THEN 82 * COALESCE ( 35 * - 43, 50 + 37 ) WHEN + 75 THEN - SUM( DISTINCT 54 ) END AS SIGNED ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT COALESCE ( + - 84, + CAST ( NULL AS INTEGER ) + + 95 / - 78, - 69 - COUNT ( * ) * - CAST ( CASE 33 WHEN + 83 THEN 82 * COALESCE ( 35 * - 43, 50 + 37 ) WHEN + 75 THEN - SUM ( DISTINCT 54 ) END AS INTEGER ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 5 * + - NULLIF ( - 55, + 31 ) * - 3 AS col0
----
-825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7734
SELECT COUNT( * ) * - + 90 * SUM( 27 DIV 35 ) + 96
----
96

skipif mysql # not compatible
query I rowsort label-7734
SELECT COUNT ( * ) * - + 90 * SUM ( 27 / 35 ) + 96
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7735
SELECT COUNT( * ) DIV - COALESCE ( 58, COUNT( * ) + 59 DIV NULLIF ( 27, 77 * 91 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7735
SELECT COUNT ( * ) / - COALESCE ( 58, COUNT ( * ) + 59 / NULLIF ( 27, 77 * 91 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT + SUM( + 66 ) * - 16 + 47
----
-1009

skipif mysql # not compatible
query I rowsort label-7736
SELECT + SUM ( + 66 ) * - 16 + 47
----
-1009

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT COALESCE ( + + 3, 58 * - ( + 17 ), NULLIF ( 73, - SUM( ALL 83 ) ) * COUNT( * ) + 5 ) * 51
----
153

skipif mysql # not compatible
query I rowsort label-7737
SELECT COALESCE ( + + 3, 58 * - ( + 17 ), NULLIF ( 73, - SUM ( ALL 83 ) ) * COUNT ( * ) + 5 ) * 51
----
153

query I rowsort
SELECT DISTINCT + CASE + 12 WHEN 18 THEN + 92 * 62 END - 26 * + 94 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL COUNT( DISTINCT + + 52 ) - 91
----
-90

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL COUNT ( DISTINCT + + 52 ) - 91
----
-90

query I rowsort
SELECT 20 * - 44 * 6
----
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT - 76 * + - 82 - 33 * COUNT( * )
----
6199

skipif mysql # not compatible
query I rowsort label-7742
SELECT - 76 * + - 82 - 33 * COUNT ( * )
----
6199

query I rowsort
SELECT 75 * + - 24 * ( 31 )
----
-55800

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7745
SELECT - 70 + 58 DIV - ( - COALESCE ( 75, 82 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-7745
SELECT - 70 + 58 / - ( - COALESCE ( 75, 82 ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL + - COUNT( * ) * - - 76 + + 41 * 57
----
2261

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL + - COUNT ( * ) * - - 76 + + 41 * 57
----
2261

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT ALL 97 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL 97 / 65
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7748
SELECT DISTINCT - CASE CAST( NULL AS SIGNED ) WHEN - 5 - 95 * - MAX( ALL - 15 / - COALESCE ( ( + ( 92 ) ), + 47 ) ) THEN NULL WHEN - COUNT( * ) THEN + CASE ( + MAX( 30 ) ) WHEN - 75 + 27 THEN - ( + ( COUNT( * ) ) ) + + 78 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT - CASE CAST ( NULL AS INTEGER ) WHEN - 5 - 95 * - MAX ( ALL - 15 / - COALESCE ( ( + ( 92 ) ), + 47 ) ) THEN NULL WHEN - COUNT ( * ) THEN + CASE ( + MAX ( 30 ) ) WHEN - 75 + 27 THEN - ( + ( COUNT ( * ) ) ) + + 78 END END
----
NULL

query I rowsort
SELECT DISTINCT ( 13 ) * - 81
----
-1053

onlyif mysql # DIV for integer division: 
query I rowsort label-7750
SELECT + 94 DIV - 92
----
-1

skipif mysql # not compatible
query I rowsort label-7750
SELECT + 94 / - 92
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7751
SELECT 0 DIV + 60 * MAX( 11 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7751
SELECT 0 / + 60 * MAX ( 11 ) col1
----
0

query I rowsort
SELECT - COALESCE ( 54, + 67, - 79 ) * - 43 AS col1
----
2322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7753
SELECT ALL - + 22 + + - 3 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL - + 22 + + - 3 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT ( NULLIF ( - CAST( NULL AS SIGNED ), - 59 * 45 ) ) * + 76 + 87 * - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7754
SELECT ( NULLIF ( - CAST ( NULL AS INTEGER ), - 59 * 45 ) ) * + 76 + 87 * - 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT DISTINCT - + CASE + 32 WHEN - 34 + COUNT( * ) THEN 73 * + 86 WHEN 11 * + 88 THEN NULL ELSE NULL END + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT - + CASE + 32 WHEN - 34 + COUNT ( * ) THEN 73 * + 86 WHEN 11 * + 88 THEN NULL ELSE NULL END + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT + COUNT( * ) - - 92 - + 16 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-7756
SELECT + COUNT ( * ) - - 92 - + 16 AS col0
----
77

query I rowsort
SELECT ALL - 34 + - 45
----
-79

query I rowsort
SELECT DISTINCT - - 80 + + - 89
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7759
SELECT ALL + 84 * CAST( + NULLIF ( 49, + 88 + 82 * 9 ) AS SIGNED ) + 33 * - NULLIF ( + COUNT( * ), 3 )
----
4083

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL + 84 * CAST ( + NULLIF ( 49, + 88 + 82 * 9 ) AS INTEGER ) + 33 * - NULLIF ( + COUNT ( * ), 3 )
----
4083

query I rowsort
SELECT 48 * + 55
----
2640

query I rowsort
SELECT 96 - - 57 AS col0
----
153

query II rowsort
SELECT - 10, - 56 AS col2
----
-10
-56

query I rowsort
SELECT 5 - 62
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-7764
SELECT - 18, - COUNT( ( + 61 ) ) + + COUNT( * ) AS col1
----
-18
0

skipif mysql # not compatible
query II rowsort label-7764
SELECT - 18, - COUNT ( ( + 61 ) ) + + COUNT ( * ) AS col1
----
-18
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT ALL + 50 - + ( + 29 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + 50 - + ( + 29 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 31 * 72 * - 62 AS col2
----
-138384

query I rowsort
SELECT 40 - - + 77 - 40
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT ALL 82 * - 19 * + ( MIN( DISTINCT ( + 68 ) ) )
----
-105944

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL 82 * - 19 * + ( MIN ( DISTINCT ( + 68 ) ) )
----
-105944

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT COALESCE ( + 75, + + COUNT( * ) + - ( ( COUNT( * ) ) ) * MAX( + 91 ) ) col1
----
75

skipif mysql # not compatible
query I rowsort label-7769
SELECT COALESCE ( + 75, + + COUNT ( * ) + - ( ( COUNT ( * ) ) ) * MAX ( + 91 ) ) col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT + COALESCE ( 55, - 2 + 67 * + 35, 28 * COUNT( * ) - 83 * - 24 ) * - COUNT( + 53 - NULLIF ( 24, 19 ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7770
SELECT + COALESCE ( 55, - 2 + 67 * + 35, 28 * COUNT ( * ) - 83 * - 24 ) * - COUNT ( + 53 - NULLIF ( 24, 19 ) ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-7771
SELECT + COUNT( * ) AS col2, - MIN( 49 ) * 3 - - 10 AS col1
----
1
-137

skipif mysql # not compatible
query II rowsort label-7771
SELECT + COUNT ( * ) AS col2, - MIN ( 49 ) * 3 - - 10 AS col1
----
1
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7772
SELECT 51 DIV + + 74 + + COUNT( * ) + 27
----
28

skipif mysql # not compatible
query I rowsort label-7772
SELECT 51 / + + 74 + + COUNT ( * ) + 27
----
28

query I rowsort
SELECT ALL 46 * 88 AS col2
----
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT - COUNT( + 28 ) + ( 60 ) - 70 * 0
----
59

skipif mysql # not compatible
query I rowsort label-7774
SELECT - COUNT ( + 28 ) + ( 60 ) - 70 * 0
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT - CASE COALESCE ( - + 72, - COUNT( * ) * ( + 88 ) ) WHEN + 75 + - 51 / - 20 THEN ( + 32 ) / - 43 WHEN - 36 THEN 60 END * 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7776
SELECT - CASE COALESCE ( - + 72, - COUNT ( * ) * ( + 88 ) ) WHEN + 75 + - 51 / - 20 THEN ( + 32 ) / - 43 WHEN - 36 THEN 60 END * 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT - 10 * + + 84 * - 39 + MIN( ALL - 43 ) AS col1
----
32717

skipif mysql # not compatible
query I rowsort label-7777
SELECT - 10 * + + 84 * - 39 + MIN ( ALL - 43 ) AS col1
----
32717

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT + COALESCE ( - + 96, + COUNT( * ) - - 65 ) - 90 * + COUNT( * ) AS col1
----
-186

skipif mysql # not compatible
query I rowsort label-7778
SELECT + COALESCE ( - + 96, + COUNT ( * ) - - 65 ) - 90 * + COUNT ( * ) AS col1
----
-186

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7779
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT - CAST ( NULL AS REAL ) * 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT ALL + CASE - + COUNT( ALL + + ( 91 ) ) WHEN - 37 THEN - 10 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + CASE - + COUNT ( ALL + + ( 91 ) ) WHEN - 37 THEN - 10 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 7 * + 61 + - - 13 + 70
----
510

query I rowsort
SELECT + - 84 * - + 71 * - 87 AS col1
----
-518868

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ALL + + NULLIF ( - 95, + - COUNT( * ) * 3 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL + + NULLIF ( - 95, + - COUNT ( * ) * 3 ) AS col2
----
-95

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

query I rowsort
SELECT DISTINCT - 96 + 47
----
-49

query I rowsort
SELECT DISTINCT - 38 + CASE 7 WHEN 63 THEN NULL WHEN 65 - 93 * - 14 THEN - ( 50 ) / - 31 + ( 11 ) ELSE NULL END * 88
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - ( - - 25 ), 5 + - 60 * - 96 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL + COUNT( 13 ) + + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL + COUNT ( 13 ) + + - 89
----
-88

query I rowsort
SELECT ALL 71 + + 84
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT DISTINCT COUNT( * ) + - + CASE 9 WHEN 52 THEN NULL WHEN 73 THEN NULL ELSE - 96 * - 22 END
----
-2111

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT COUNT ( * ) + - + CASE 9 WHEN 52 THEN NULL WHEN 73 THEN NULL ELSE - 96 * - 22 END
----
-2111

query I rowsort
SELECT DISTINCT 20 + - 21 + - 51 * 94
----
-4795

query I rowsort
SELECT - 98 * + NULLIF ( + 92, - 40 ) + - 22
----
-9038

query I rowsort
SELECT ALL 33 + - 42 + + - 36 * 35
----
-1269

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

skipif mysql # not compatible
query I rowsort label-7794
SELECT + COUNT ( * ) + - 60 AS col1
----
-59

query I rowsort
SELECT + + 64 * 91
----
5824

query I rowsort
SELECT + 66 + - 11 AS col0
----
55

query I rowsort
SELECT - 71 - 64 + + 40 * - - 28
----
985

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7798
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / - 38 * + 16 * - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT - CAST ( NULL AS REAL ) / - 38 * + 16 * - 20 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7799
SELECT ALL + CASE WHEN ( NULL ) IS NOT NULL THEN 6 ELSE 41 END - CAST( COALESCE ( 44, - MIN( - 15 ) + COUNT( - 46 + ( 79 ) ) * 2 ) AS SIGNED ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL + CASE WHEN ( NULL ) IS NOT NULL THEN 6 ELSE 41 END - CAST ( COALESCE ( 44, - MIN ( - 15 ) + COUNT ( - 46 + ( 79 ) ) * 2 ) AS INTEGER ) AS col1
----
-3

query I rowsort
SELECT + 18 * - - 7 * - 89
----
-11214

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT - 35 + + - ( + 13 ) / - CASE + AVG ( ALL 51 ) WHEN 73 * 95 - 46 * + 22 THEN NULL WHEN + COALESCE ( 14, 75 ) THEN NULLIF ( + 18, + 8 / + 38 ) END * - 60 + - MAX( ALL - 25 - 5 * + 51 ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT - 35 + + - ( + 13 ) / - CASE + AVG ( ALL 51 ) WHEN 73 * 95 - 46 * + 22 THEN NULL WHEN + COALESCE ( 14, 75 ) THEN NULLIF ( + 18, + 8 / + 38 ) END * - 60 + - MAX ( ALL - 25 - 5 * + 51 ) * + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT - COUNT( * ) + + NULLIF ( - 13, - 9 ) + - NULLIF ( 7 + + 56, - 85 / 59 )
----
-77

skipif mysql # not compatible
query I rowsort label-7802
SELECT - COUNT ( * ) + + NULLIF ( - 13, - 9 ) + - NULLIF ( 7 + + 56, - 85 / 59 )
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT - 88 + - - COUNT( * ) * - 39
----
-127

skipif mysql # not compatible
query I rowsort label-7804
SELECT - 88 + - - COUNT ( * ) * - 39
----
-127

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

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

query I rowsort
SELECT - CASE + ( + 99 ) WHEN + 40 THEN 28 END * - 52 AS col1
----
NULL

query I rowsort
SELECT ALL + 46 * - 70 AS col2
----
-3220

query I rowsort
SELECT DISTINCT + 37 * + 60 AS col1
----
2220

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT - COALESCE ( + ( - - ( - - 58 ) ), 69 ) DIV 33 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7809
SELECT - COALESCE ( + ( - - ( - - 58 ) ), 69 ) / 33 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7810
SELECT ALL - CASE - CASE + + 45 WHEN COUNT( * ) * 21 THEN NULL WHEN + 8 THEN AVG ( DISTINCT 71 ) ELSE NULL END WHEN 33 THEN - CASE - NULLIF ( + 51, CASE - 14 WHEN + CASE - 71 WHEN + 15 THEN + 24 WHEN 31 + 26 THEN + 68 * 96 ELSE ( 78 ) END * 41 THEN NULL WHEN 89 * + 4 THEN NULL ELSE - 88 END + - 20 ) WHEN + 97 * 24 THEN NULL WHEN + 37 + 85 THEN + CAST( NULL AS SIGNED ) / 12 WHEN - 82 THEN NULL ELSE - 87 * - 29 + + NULLIF ( 8 + COUNT( * ), 29 + 27 / COUNT( * ) ) END * + COUNT( * ) END / - 18 + - COALESCE ( COUNT( * ), - COUNT( * ) * + 95 - 20 * + AVG ( ALL 79 ) ) * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL - CASE - CASE + + 45 WHEN COUNT ( * ) * 21 THEN NULL WHEN + 8 THEN AVG ( DISTINCT 71 ) ELSE NULL END WHEN 33 THEN - CASE - NULLIF ( + 51, CASE - 14 WHEN + CASE - 71 WHEN + 15 THEN + 24 WHEN 31 + 26 THEN + 68 * 96 ELSE ( 78 ) END * 41 THEN NULL WHEN 89 * + 4 THEN NULL ELSE - 88 END + - 20 ) WHEN + 97 * 24 THEN NULL WHEN + 37 + 85 THEN + CAST ( NULL AS INTEGER ) / 12 WHEN - 82 THEN NULL ELSE - 87 * - 29 + + NULLIF ( 8 + COUNT ( * ), 29 + 27 / COUNT ( * ) ) END * + COUNT ( * ) END / - 18 + - COALESCE ( COUNT ( * ), - COUNT ( * ) * + 95 - 20 * + AVG ( ALL 79 ) ) * 2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT ALL 5 DIV 16 + + 13 + + 21
----
34

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL 5 / 16 + + 13 + + 21
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT DISTINCT + 5 DIV 18 + + + 2 + 25 + 31 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT + 5 / 18 + + + 2 + 25 + 31 AS col0
----
58

query II rowsort
SELECT ALL + ( + - 80 ) AS col0, - 69 AS col2
----
-80
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7814
SELECT - - ( + + CAST( 31 AS SIGNED ) ) + + CAST( COUNT( 6 ) AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-7814
SELECT - - ( + + CAST ( 31 AS INTEGER ) ) + + CAST ( COUNT ( 6 ) AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT + + MAX( ALL + - 1 ) + + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7815
SELECT + + MAX ( ALL + - 1 ) + + - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT ALL - 9 * + + 37
----
-333

query I rowsort
SELECT ALL - 98 * + - COALESCE ( + 29, - 82, + 79 )
----
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT DISTINCT - 11 * COUNT( * ) + + - CASE 16 WHEN COUNT( ALL 75 ) + 39 THEN COUNT( ALL 18 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT - 11 * COUNT ( * ) + + - CASE 16 WHEN COUNT ( ALL 75 ) + 39 THEN COUNT ( ALL 18 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 75 * - 34 + - 32 * - 24
----
3318

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT + NULLIF ( COALESCE ( 27, + 99 ), COUNT( * ) * 79 ) + + 16
----
43

skipif mysql # not compatible
query I rowsort label-7820
SELECT + NULLIF ( COALESCE ( 27, + 99 ), COUNT ( * ) * 79 ) + + 16
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7821
SELECT - - 51 * - CAST( NULL AS SIGNED ) AS col1, 34 * + COUNT( * ) * - 51 AS col0
----
NULL
-1734

skipif mysql # not compatible
query II rowsort label-7821
SELECT - - 51 * - CAST ( NULL AS INTEGER ) AS col1, 34 * + COUNT ( * ) * - 51 AS col0
----
NULL
-1734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT CASE - 50 WHEN - 86 THEN + 10 * 10 WHEN - 25 THEN 64 * - 91 WHEN 89 / 12 + + 93 THEN - CAST( 16 AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT CASE - 50 WHEN - 86 THEN + 10 * 10 WHEN - 25 THEN 64 * - 91 WHEN 89 / 12 + + 93 THEN - CAST ( 16 AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT + + 71 + + - MAX( 40 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7823
SELECT + + 71 + + - MAX ( 40 ) AS col1
----
31

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

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

query I rowsort
SELECT - NULLIF ( 96, 59 * COALESCE ( + - 27, + 45 ) + - 42 + 20 ) AS col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7826
SELECT + 48 + + COUNT( * ) DIV - 1 + - 61
----
-14

skipif mysql # not compatible
query I rowsort label-7826
SELECT + 48 + + COUNT ( * ) / - 1 + - 61
----
-14

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT + 94 * + COALESCE ( + CAST( NULL AS SIGNED ), + 36 ) AS col0
----
3384

skipif mysql # not compatible
query I rowsort label-7830
SELECT + 94 * + COALESCE ( + CAST ( NULL AS INTEGER ), + 36 ) AS col0
----
3384

query I rowsort
SELECT ALL 18 * - - 99 AS col2
----
1782

query II rowsort
SELECT ALL 70 col2, - 25 col0
----
70
-25

query I rowsort
SELECT DISTINCT 53 * - 5 AS col1
----
-265

query I rowsort
SELECT 24 * + - 73
----
-1752

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

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

query I rowsort
SELECT ALL 70 * 70 * - - 54
----
264600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7837
SELECT 30 - 79 DIV + 48 + MIN( + 53 ) + 32
----
114

skipif mysql # not compatible
query I rowsort label-7837
SELECT 30 - 79 / + 48 + MIN ( + 53 ) + 32
----
114

query I rowsort
SELECT ( - + 21 ) - - + 14
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT COUNT( * ) * - 24 col1
----
-24

skipif mysql # not compatible
query I rowsort label-7839
SELECT COUNT ( * ) * - 24 col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT ALL - 87 DIV - 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL - 87 / - 31 AS col2
----
2

onlyif mysql # aggregate syntax: 
query III rowsort label-7841
SELECT - 95 AS col0, 86 - - COUNT( * ) AS col2, 82 * MAX( + 59 ) + + MAX( NULLIF ( - 38, 93 / 77 ) + 71 )
----
-95
87
4871

skipif mysql # not compatible
query III rowsort label-7841
SELECT - 95 AS col0, 86 - - COUNT ( * ) AS col2, 82 * MAX ( + 59 ) + + MAX ( NULLIF ( - 38, 93 / 77 ) + 71 )
----
-95
87
4871

query I rowsort
SELECT DISTINCT + 15 + - 27 AS col2
----
-12

query I rowsort
SELECT 75 - ( + + 22 )
----
53

query II rowsort
SELECT DISTINCT - 13 AS col1, - 16 * - 62 col2
----
-13
992

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT + + MIN( ALL + ( 45 ) ) col0
----
45

skipif mysql # not compatible
query I rowsort label-7845
SELECT + + MIN ( ALL + ( 45 ) ) col0
----
45

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7847
SELECT ALL - - 40 + - 39 + COUNT( * ) DIV + 27 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL - - 40 + - 39 + COUNT ( * ) / + 27 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL - 13 * - COALESCE ( 59, + 38 + + 1 + + 57, + COUNT( * ), - 76 ) AS col1
----
767

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL - 13 * - COALESCE ( 59, + 38 + + 1 + + 57, + COUNT ( * ), - 76 ) AS col1
----
767

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + COALESCE ( COUNT( * ), + + COUNT( DISTINCT - 41 ), + ( 67 ) * 72 )
----
1

skipif mysql # not compatible
query I rowsort label-7849
SELECT + COALESCE ( COUNT ( * ), + + COUNT ( DISTINCT - 41 ), + ( 67 ) * 72 )
----
1

query I rowsort
SELECT 29 * - + 22 col0
----
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ALL - CASE + CASE 26 WHEN 7 THEN - + 35 + - MAX( ALL - 83 ) * 90 WHEN + 59 / 10 + 65 THEN 29 WHEN 37 + 38 THEN - COUNT( 91 ) + + 3 * - 82 ELSE NULL END WHEN - 29 * + ( 67 ) THEN NULL ELSE + 29 END
----
-29

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL - CASE + CASE 26 WHEN 7 THEN - + 35 + - MAX ( ALL - 83 ) * 90 WHEN + 59 / 10 + 65 THEN 29 WHEN 37 + 38 THEN - COUNT ( 91 ) + + 3 * - 82 ELSE NULL END WHEN - 29 * + ( 67 ) THEN NULL ELSE + 29 END
----
-29

query I rowsort
SELECT ALL + - 2 + + - 37
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7853
SELECT DISTINCT + 10 + SUM( - 32 ) AS col2, + COUNT( * )
----
-22
1

skipif mysql # not compatible
query II rowsort label-7853
SELECT DISTINCT + 10 + SUM ( - 32 ) AS col2, + COUNT ( * )
----
-22
1

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

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

query I rowsort
SELECT - 37 + 75
----
38

query I rowsort
SELECT 57 * + 64 AS col2
----
3648

onlyif mysql # aggregate syntax: 
query II rowsort label-7857
SELECT + 46 * - + COUNT( * ) * - 73, - COUNT( * ) AS col2
----
3358
-1

skipif mysql # not compatible
query II rowsort label-7857
SELECT + 46 * - + COUNT ( * ) * - 73, - COUNT ( * ) AS col2
----
3358
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7858
SELECT + ( - 18 ) * + CASE + - 43 WHEN - + 64 THEN NULL WHEN 42 + COUNT( ( - CAST( NULL AS SIGNED ) ) + 63 ) THEN NULL ELSE - COUNT( * ) * + 25 END + COUNT( * ) AS col1
----
451

skipif mysql # not compatible
query I rowsort label-7858
SELECT + ( - 18 ) * + CASE + - 43 WHEN - + 64 THEN NULL WHEN 42 + COUNT ( ( - CAST ( NULL AS INTEGER ) ) + 63 ) THEN NULL ELSE - COUNT ( * ) * + 25 END + COUNT ( * ) AS col1
----
451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7859
SELECT - 27 * SUM( + + 18 ) DIV - COUNT( * ) DIV - + COUNT( * ) - - 45 + CAST( ( - 75 ) AS SIGNED ) col2
----
-516

skipif mysql # not compatible
query I rowsort label-7859
SELECT - 27 * SUM ( + + 18 ) / - COUNT ( * ) / - + COUNT ( * ) - - 45 + CAST ( ( - 75 ) AS INTEGER ) col2
----
-516

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT ALL + - 31 DIV + - 8 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL + - 31 / + - 8 AS col2
----
3

query I rowsort
SELECT ALL 30 * - 40
----
-1200

query I rowsort
SELECT 31 - - 18 + 1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7863
SELECT 34 DIV + + 9 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7863
SELECT 34 / + + 9 AS col2
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL - ( - 56 ) * - CASE - NULLIF ( - + 89, - + 74 ) WHEN + 56 * ( - NULLIF ( 11, COUNT( * ) + 28 ) / NULLIF ( ( + COUNT( * ) ), 22 * 79 ) ) + - ( - 71 ) THEN 79 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL - ( - 56 ) * - CASE - NULLIF ( - + 89, - + 74 ) WHEN + 56 * ( - NULLIF ( 11, COUNT ( * ) + 28 ) / NULLIF ( ( + COUNT ( * ) ), 22 * 79 ) ) + - ( - 71 ) THEN 79 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 65 AS col2, + 83
----
65
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7867
SELECT 21 + + 5, + 17 * - 41 + - - CAST( NULL AS SIGNED ) + - 14 / 24 AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-7867
SELECT 21 + + 5, + 17 * - 41 + - - CAST ( NULL AS INTEGER ) + - 14 / 24 AS col1
----
26
NULL

query II rowsort
SELECT 71 col0, - 78 + - 31
----
71
-109

query I rowsort
SELECT 69 * - 67
----
-4623

query I rowsort
SELECT 40 + NULLIF ( 2, - - 78 * - - 9 * + 35 * + 89 ) * - 84 AS col2
----
-128

query I rowsort
SELECT 75 - + 98 - - - 9
----
-32

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7873
SELECT 59 * + CAST( NULL AS SIGNED ), - ( - CAST( NULL AS SIGNED ) ) * - - AVG ( ALL - + 92 ) - 39 / + 65
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7873
SELECT 59 * + CAST ( NULL AS INTEGER ), - ( - CAST ( NULL AS INTEGER ) ) * - - AVG ( ALL - + 92 ) - 39 / + 65
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7874
SELECT ALL - 28 + - 77 + + MIN( - + 80 ) AS col2, COALESCE ( + 99, 11 ) * 68 AS col2
----
-185
6732

skipif mysql # not compatible
query II rowsort label-7874
SELECT ALL - 28 + - 77 + + MIN ( - + 80 ) AS col2, COALESCE ( + 99, 11 ) * 68 AS col2
----
-185
6732

query I rowsort
SELECT ALL 17 + - 41
----
-24

query II rowsort
SELECT 65 + - 36, 64 AS col0
----
29
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7877
SELECT - 90 AS col0, + COUNT( - + 41 ) - + - 67 + 4 * - - 18 AS col0
----
-90
140

skipif mysql # not compatible
query II rowsort label-7877
SELECT - 90 AS col0, + COUNT ( - + 41 ) - + - 67 + 4 * - - 18 AS col0
----
-90
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ( + - COUNT( * ) ) + 50 + 76 * - 21 + + 8 AS col2
----
-1539

skipif mysql # not compatible
query I rowsort label-7878
SELECT ( + - COUNT ( * ) ) + 50 + 76 * - 21 + + 8 AS col2
----
-1539

query I rowsort
SELECT ALL 63 * 39
----
2457

query I rowsort
SELECT DISTINCT 22 + + - CASE WHEN NOT ( ( - + 40 ) >= 68 * - 1 ) THEN - 20 ELSE NULL END + 59 * 26
----
NULL

query I rowsort
SELECT 55 * + ( 25 ) AS col2
----
1375

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT - COUNT( ALL - 26 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7882
SELECT - COUNT ( ALL - 26 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 98 * + - 62 * + - 90 * + 58
----
31716720

query I rowsort
SELECT ALL 57 + - 0 col1
----
57

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

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

query I rowsort
SELECT DISTINCT - ( - 40 ) AS col2
----
40

query II rowsort
SELECT - 28, 25 AS col2
----
-28
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT DISTINCT - + COALESCE ( + 97, + + 83 * - 1 DIV - 42 - - ( - 59 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT - + COALESCE ( + 97, + + 83 * - 1 / - 42 - - ( - 59 ) )
----
-97

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

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

query I rowsort
SELECT 92 * 82 * + + ( 14 )
----
105616

query II rowsort
SELECT ALL - + 77, 38 AS col1
----
-77
38

query I rowsort
SELECT - 79 * + 13 + - 75
----
-1102

query I rowsort
SELECT ALL - 57 * 65 AS col2
----
-3705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7894
SELECT + COUNT( * ) * - + 8 - ( + + 29 ) + + 59 DIV - + 41
----
-38

skipif mysql # not compatible
query I rowsort label-7894
SELECT + COUNT ( * ) * - + 8 - ( + + 29 ) + + 59 / - + 41
----
-38

query I rowsort
SELECT + 44 * 6
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-7896
SELECT 14 AS col1, CASE + + 56 WHEN 10 THEN - ( + 16 ) WHEN + 13 - 22 THEN + 59 WHEN 42 * + 20 + - SUM( + 32 - + 50 ) * COUNT( * ) THEN - 46 ELSE + 40 + 98 END AS col1
----
14
138

skipif mysql # not compatible
query II rowsort label-7896
SELECT 14 AS col1, CASE + + 56 WHEN 10 THEN - ( + 16 ) WHEN + 13 - 22 THEN + 59 WHEN 42 * + 20 + - SUM ( + 32 - + 50 ) * COUNT ( * ) THEN - 46 ELSE + 40 + 98 END AS col1
----
14
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT - ( - ( + MIN( DISTINCT 37 ) ) ) * COUNT( * ) - COUNT( * ) + - 46 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-7897
SELECT - ( - ( + MIN ( DISTINCT 37 ) ) ) * COUNT ( * ) - COUNT ( * ) + - 46 AS col2
----
-10

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7899
SELECT ALL 71 * - ( COUNT( ALL + NULLIF ( - 31, - CAST( + 99 AS SIGNED ) * + 2 ) ) ) + + 78 DIV 92 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL 71 * - ( COUNT ( ALL + NULLIF ( - 31, - CAST ( + 99 AS INTEGER ) * + 2 ) ) ) + + 78 / 92 AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7900
SELECT - CAST( NULL AS SIGNED ) * - - ( + CAST( NULL AS DECIMAL ) ) + 60 / 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT - CAST ( NULL AS INTEGER ) * - - ( + CAST ( NULL AS REAL ) ) + 60 / 57 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 23 ) * 6 AS col1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT - COALESCE ( + 4, + 69 ) * COALESCE ( - + SUM( 1 ), + 46 ) - + 67 col1
----
-63

skipif mysql # not compatible
query I rowsort label-7902
SELECT - COALESCE ( + 4, + 69 ) * COALESCE ( - + SUM ( 1 ), + 46 ) - + 67 col1
----
-63

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

skipif mysql # not compatible
query I rowsort label-7903
SELECT - MIN ( ALL + 75 ) * - COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7904
SELECT DISTINCT + COUNT( * ) DIV + - 38 * - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT + COUNT ( * ) / + - 38 * - 89 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7906
SELECT - CASE + 54 WHEN 74 * + 31 + 29 + - 99 THEN - 67 * COUNT( * ) WHEN CASE 62 WHEN + 80 + + COUNT( * ) THEN 55 WHEN 86 + 17 THEN + CAST( 24 AS DECIMAL ) ELSE NULL END THEN NULL END + ( - COUNT( - 50 ) ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT - CASE + 54 WHEN 74 * + 31 + 29 + - 99 THEN - 67 * COUNT ( * ) WHEN CASE 62 WHEN + 80 + + COUNT ( * ) THEN 55 WHEN 86 + 17 THEN + CAST ( 24 AS REAL ) ELSE NULL END THEN NULL END + ( - COUNT ( - 50 ) ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 87 * 71
----
6177

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL NULLIF ( + 72, + 93 + + 71 - COALESCE ( - MIN( DISTINCT 21 ), 45 ) * - 83 )
----
72

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL NULLIF ( + 72, + 93 + + 71 - COALESCE ( - MIN ( DISTINCT 21 ), 45 ) * - 83 )
----
72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 24 + - 80 + - - 7 * + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 24 + - 80 + - - 7 * + 90 AS col1
----
NULL

query II rowsort
SELECT ALL + 88 * + 57, 26 AS col1
----
5016
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL NULLIF ( CASE + ( + - CASE + + 94 WHEN - 2 + - 92 THEN NULL WHEN + COUNT( * ) + + 54 THEN 44 END ) WHEN - 30 THEN 21 ELSE - 86 END, 13 ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL NULLIF ( CASE + ( + - CASE + + 94 WHEN - 2 + - 92 THEN NULL WHEN + COUNT ( * ) + + 54 THEN 44 END ) WHEN - 30 THEN 21 ELSE - 86 END, 13 ) col0
----
-86

query I rowsort
SELECT - 99 * + 50
----
-4950

query I rowsort
SELECT ALL CASE + 73 WHEN + 84 THEN + + 84 WHEN 93 + - 79 + - 75 * 30 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT ALL + 61 + 73 DIV - 21
----
58

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL + 61 + 73 / - 21
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT - SUM( + 7 ) - 66 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-7916
SELECT - SUM ( + 7 ) - 66 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - 39 + - COUNT( * ) + - + ( 88 )
----
-128

skipif mysql # not compatible
query I rowsort label-7917
SELECT - 39 + - COUNT ( * ) + - + ( 88 )
----
-128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7918
SELECT + NULLIF ( - CASE - 36 WHEN - ( 66 ) THEN - 1 + COALESCE ( - 50, - 8 ) + - COALESCE ( NULLIF ( 70, 51 + 36 * - 85 ), 52 + + 37 ) DIV 10 WHEN COUNT( * ) - 22 THEN 85 * COUNT( * ) ELSE 84 * - 43 + NULLIF ( ( 63 ), 13 ) END, 80 ) AS col1
----
3549

skipif mysql # not compatible
query I rowsort label-7918
SELECT + NULLIF ( - CASE - 36 WHEN - ( 66 ) THEN - 1 + COALESCE ( - 50, - 8 ) + - COALESCE ( NULLIF ( 70, 51 + 36 * - 85 ), 52 + + 37 ) / 10 WHEN COUNT ( * ) - 22 THEN 85 * COUNT ( * ) ELSE 84 * - 43 + NULLIF ( ( 63 ), 13 ) END, 80 ) AS col1
----
3549

query I rowsort
SELECT ALL + + 56 - - + 42
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7920
SELECT DISTINCT - CAST( - + 30 AS SIGNED ), 65 AS col1
----
30
65

skipif mysql # not compatible
query II rowsort label-7920
SELECT DISTINCT - CAST ( - + 30 AS INTEGER ), 65 AS col1
----
30
65

query I rowsort
SELECT DISTINCT - 80 * 85 AS col1
----
-6800

query I rowsort
SELECT ALL 8 - - - 52
----
-44

query I rowsort
SELECT + - 16 - - 89 + - + 45
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT + + COALESCE ( + COUNT( * ), - - 71 * - 16 * + - COUNT( * ) * + 36 ) - - - ( 94 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7925
SELECT + + COALESCE ( + COUNT ( * ), - - 71 * - 16 * + - COUNT ( * ) * + 36 ) - - - ( 94 ) AS col0
----
-93

query I rowsort
SELECT ALL - 30 * 50
----
-1500

query I rowsort
SELECT + 1 * - 68 AS col1
----
-68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7930
SELECT + 58 + - - 64 * + CAST( - + 4 AS SIGNED ) * 36 * + 88
----
-810950

skipif mysql # not compatible
query I rowsort label-7930
SELECT + 58 + - - 64 * + CAST ( - + 4 AS INTEGER ) * 36 * + 88
----
-810950

onlyif mysql # DIV for integer division: 
query I rowsort label-7931
SELECT + 28 DIV + ( - 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7931
SELECT + 28 / + ( - 79 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT + SUM( 46 ) * - 48 col1
----
-2208

skipif mysql # not compatible
query I rowsort label-7932
SELECT + SUM ( 46 ) * - 48 col1
----
-2208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7933
SELECT + 85 * + 65 DIV COUNT( * ) + - 79 * - - 34 + - + 17
----
2822

skipif mysql # not compatible
query I rowsort label-7933
SELECT + 85 * + 65 / COUNT ( * ) + - 79 * - - 34 + - + 17
----
2822

query I rowsort
SELECT + 41 - - 96
----
137

query I rowsort
SELECT ALL + - ( + NULLIF ( - - 3, - 94 ) ) col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT DISTINCT - CASE - + 21 WHEN + + 89 + 5 * + SUM( - 17 ) THEN NULL WHEN 58 THEN - 74 END * + NULLIF ( + 60 * - COALESCE ( ( 2 ), - 20 * - 65 ), + 77 / + AVG ( DISTINCT - 5 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT - CASE - + 21 WHEN + + 89 + 5 * + SUM ( - 17 ) THEN NULL WHEN 58 THEN - 74 END * + NULLIF ( + 60 * - COALESCE ( ( 2 ), - 20 * - 65 ), + 77 / + AVG ( DISTINCT - 5 ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7937
SELECT ALL + 3 DIV - + 18
----
0

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL + 3 / - + 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT ALL + MAX( + + 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL + MAX ( + + 58 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT + - NULLIF ( + COUNT( * ), + 5 + - ( - + 20 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7939
SELECT + - NULLIF ( + COUNT ( * ), + 5 + - ( - + 20 ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + + 65 * - 61 + - 34 col2
----
-3999

query I rowsort
SELECT + - 65 + + 39 col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT CASE - COUNT( * ) WHEN + 23 THEN + - 13 WHEN 58 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7942
SELECT CASE - COUNT ( * ) WHEN + 23 THEN + - 13 WHEN 58 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 87 * - 73 * 65 + + - 62
----
-412877

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT - SUM( + 51 ) * 67 AS col0
----
-3417

skipif mysql # not compatible
query I rowsort label-7944
SELECT - SUM ( + 51 ) * 67 AS col0
----
-3417

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT CASE - - 1 WHEN MAX( - + 30 ) THEN + - 21 + ( - 26 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT CASE - - 1 WHEN MAX ( - + 30 ) THEN + - 21 + ( - 26 ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT + 12 AS col0, - 19 AS col2
----
12
-19

query I rowsort
SELECT ALL + 1 * 51
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT DISTINCT COUNT( * ) * + 43 + 36 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT COUNT ( * ) * + 43 + 36 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL 77 * + NULLIF ( + ( + SUM( ALL 33 ) ), + 0 ) + - 86 + + - 26 * + ( - COALESCE ( 46, COUNT( * ) ) )
----
3651

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL 77 * + NULLIF ( + ( + SUM ( ALL 33 ) ), + 0 ) + - 86 + + - 26 * + ( - COALESCE ( 46, COUNT ( * ) ) )
----
3651

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT ( + NULLIF ( + COUNT( * ), 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT ( + NULLIF ( + COUNT ( * ), 11 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT - SUM( 21 ) + - - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-7951
SELECT - SUM ( 21 ) + - - COUNT ( * )
----
-20

query I rowsort
SELECT ALL - 29 + - 7
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT - CAST( - - 42 AS SIGNED ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-7953
SELECT - CAST ( - - 42 AS INTEGER ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT + ( - 15 ) + + - 12 - 35 * 60 + 60 + MAX( DISTINCT + 96 ) * + 36 * COALESCE ( 5, - 6 * + 95 ) AS col2
----
15213

skipif mysql # not compatible
query I rowsort label-7954
SELECT + ( - 15 ) + + - 12 - 35 * 60 + 60 + MAX ( DISTINCT + 96 ) * + 36 * COALESCE ( 5, - 6 * + 95 ) AS col2
----
15213

query I rowsort
SELECT - 69 - + - 78 * - + 84
----
-6621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7956
SELECT DISTINCT + 57 DIV - 64 * + - 88 * - SUM( DISTINCT + 37 )
----
0

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT + 57 / - 64 * + - 88 * - SUM ( DISTINCT + 37 )
----
0

query I rowsort
SELECT ALL ( 88 ) AS col0
----
88

query I rowsort
SELECT - 45 - - 59 AS col2
----
14

query I rowsort
SELECT ALL + 39 * 11 AS col0
----
429

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT ALL 21 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL 21 / + 46
----
0

query I rowsort
SELECT ALL - 30 - + 13 AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7962
SELECT DISTINCT - + 92 DIV COUNT( * )
----
-92

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7963
SELECT DISTINCT + 23 * + + CAST( - - ( + SUM( - + 3 ) ) AS SIGNED ) * - 81 * - 40 + - COALESCE ( 93, 89, + COUNT( * ) DIV 74 )
----
-223653

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT + 23 * + + CAST ( - - ( + SUM ( - + 3 ) ) AS INTEGER ) * - 81 * - 40 + - COALESCE ( 93, 89, + COUNT ( * ) / 74 )
----
-223653

query I rowsort
SELECT - ( - 28 ) + + 68
----
96

query I rowsort
SELECT - 29 * - 81 + - 16
----
2333

query I rowsort
SELECT - 99 * - + 27 * - - 31
----
82863

onlyif mysql # aggregate syntax: 
query II rowsort label-7967
SELECT + 14 AS col1, - COUNT( * ) + - - 69 * 18 AS col1
----
14
1241

skipif mysql # not compatible
query II rowsort label-7967
SELECT + 14 AS col1, - COUNT ( * ) + - - 69 * 18 AS col1
----
14
1241

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT - - 87 * - COUNT( * ) + - ( 84 )
----
-171

skipif mysql # not compatible
query I rowsort label-7968
SELECT - - 87 * - COUNT ( * ) + - ( 84 )
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7969
SELECT ALL - 74 * - CAST( NULL AS SIGNED ) + + - COUNT( * ) + - 99 - - + 31 + 60 * - 1 + - COUNT( * ) / + SUM( 85 + COALESCE ( 90, ( - 2 ) + - 95 ) ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL - 74 * - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) + - 99 - - + 31 + 60 * - 1 + - COUNT ( * ) / + SUM ( 85 + COALESCE ( 90, ( - 2 ) + - 95 ) ) * - COUNT ( * ) col2
----
NULL

query II rowsort
SELECT DISTINCT - - 27, + 71 AS col1
----
27
71

query I rowsort
SELECT ALL COALESCE ( - - 0, + - 13 * - - 49 ) * - 11
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT + + COUNT( * ) + COALESCE ( - 38, + 37 * 29 ) + 55
----
18

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT + + COUNT ( * ) + COALESCE ( - 38, + 37 * 29 ) + 55
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL CASE COUNT( * ) WHEN - 74 * - - 44 THEN + + 12 / + - 59 WHEN - COUNT( * ) - - 58 THEN + 27 END + 85 * + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL CASE COUNT ( * ) WHEN - 74 * - - 44 THEN + + 12 / + - 59 WHEN - COUNT ( * ) - - 58 THEN + 27 END + 85 * + 69 AS col1
----
NULL

query I rowsort
SELECT ALL 89 + + - 36 AS col2
----
53

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT - 30 * MIN( - 7 ) - - - 60 + + 74
----
224

skipif mysql # not compatible
query I rowsort label-7977
SELECT - 30 * MIN ( - 7 ) - - - 60 + + 74
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT 42 * MAX( + NULLIF ( + + 50, + 38 ) ) * 49 - + + 22
----
102878

skipif mysql # not compatible
query I rowsort label-7978
SELECT 42 * MAX ( + NULLIF ( + + 50, + 38 ) ) * 49 - + + 22
----
102878

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7979
SELECT 78 * + 72 DIV + + ( COUNT( * ) ) col0
----
5616

skipif mysql # not compatible
query I rowsort label-7979
SELECT 78 * + 72 / + + ( COUNT ( * ) ) col0
----
5616

query I rowsort
SELECT 68 * - + 4
----
-272

query I rowsort
SELECT ALL 5 + - + 96
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7982
SELECT ALL 82 - + CAST( NULL AS SIGNED ) + - 42 + - CASE + 5 WHEN + - COUNT( * ) * - 78 THEN - 15 + + + CASE - 3 WHEN MIN( 14 ) + 81 * + 33 THEN NULL WHEN 72 THEN - 26 ELSE NULL END * CASE - 63 * 85 WHEN - COALESCE ( CASE 67 WHEN + ( - 21 ) THEN CASE COALESCE ( + 80, + 84 ) WHEN + 24 * COUNT( * ) THEN COUNT( 76 ) * 50 WHEN + COALESCE ( COUNT( * ), + 59 * - 48 - CAST( NULL AS SIGNED ), + 61 + 67 / + COUNT( * ) ) * - 27 - + COUNT( * ) * 32 THEN NULL END + - CASE + 64 WHEN + MIN( ALL 5 ) THEN + 55 + + 25 * + COUNT( * ) ELSE - 54 END / COUNT( * ) END, + 21, + ( 11 ) ) * 25 THEN 76 / CAST( NULL AS DECIMAL ) END ELSE - 37 END * + COUNT( * ) * - 26 * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL 82 - + CAST ( NULL AS INTEGER ) + - 42 + - CASE + 5 WHEN + - COUNT ( * ) * - 78 THEN - 15 + + + CASE - 3 WHEN MIN ( 14 ) + 81 * + 33 THEN NULL WHEN 72 THEN - 26 ELSE NULL END * CASE - 63 * 85 WHEN - COALESCE ( CASE 67 WHEN + ( - 21 ) THEN CASE COALESCE ( + 80, + 84 ) WHEN + 24 * COUNT ( * ) THEN COUNT ( 76 ) * 50 WHEN + COALESCE ( COUNT ( * ), + 59 * - 48 - CAST ( NULL AS INTEGER ), + 61 + 67 / + COUNT ( * ) ) * - 27 - + COUNT ( * ) * 32 THEN NULL END + - CASE + 64 WHEN + MIN ( ALL 5 ) THEN + 55 + + 25 * + COUNT ( * ) ELSE - 54 END / COUNT ( * ) END, + 21, + ( 11 ) ) * 25 THEN 76 / CAST ( NULL AS REAL ) END ELSE - 37 END * + COUNT ( * ) * - 26 * 74
----
NULL

query I rowsort
SELECT 61 * + + 9 + - CASE 18 WHEN + - 47 THEN + - 14 END * - - 89
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT 10 + + 41 * + 25 * COALESCE ( + 88, ( + - 29 ) ) * COUNT( * ) AS col2
----
90210

skipif mysql # not compatible
query I rowsort label-7985
SELECT 10 + + 41 * + 25 * COALESCE ( + 88, ( + - 29 ) ) * COUNT ( * ) AS col2
----
90210

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT DISTINCT + MAX( ALL + + 18 ) * + 19 + - 44 + - 98
----
200

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT + MAX ( ALL + + 18 ) * + 19 + - 44 + - 98
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7987
SELECT ALL + COALESCE ( + 40, - CAST( NULL AS SIGNED ), + CASE COUNT( * ) WHEN - + 6 THEN - CASE + ( + 38 ) WHEN + COUNT( * ) THEN NULL ELSE NULLIF ( + COUNT( * ), - 12 ) END DIV 30 END + - 93 * + MIN( ALL - 54 ) ) * COUNT( 94 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL + COALESCE ( + 40, - CAST ( NULL AS INTEGER ), + CASE COUNT ( * ) WHEN - + 6 THEN - CASE + ( + 38 ) WHEN + COUNT ( * ) THEN NULL ELSE NULLIF ( + COUNT ( * ), - 12 ) END / 30 END + - 93 * + MIN ( ALL - 54 ) ) * COUNT ( 94 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ALL SUM( ALL - - 64 ) * + 90
----
5760

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL SUM ( ALL - - 64 ) * + 90
----
5760

query I rowsort
SELECT DISTINCT + 52 * + 96
----
4992

query I rowsort
SELECT 0 * - 12 * - + 50 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7991
SELECT + ( - 79 ) DIV - - 53
----
-1

skipif mysql # not compatible
query I rowsort label-7991
SELECT + ( - 79 ) / - - 53
----
-1

query I rowsort
SELECT 77 - + + ( + 74 )
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7994
SELECT ALL - + NULLIF ( - 98, + 93 ) DIV + ( + - 3 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL - + NULLIF ( - 98, + 93 ) / + ( + - 3 ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT + CASE - 68 WHEN - 39 + - 21 THEN - 67 WHEN - + NULLIF ( - NULLIF ( 72, - MIN( - ( + 30 ) ) ), + 14 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT + CASE - 68 WHEN - 39 + - 21 THEN - 67 WHEN - + NULLIF ( - NULLIF ( 72, - MIN ( - ( + 30 ) ) ), + 14 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT ALL - + 22 + + - 57 + 63 + - 67 * SUM( ALL + 97 ) * + ( - + 24 )
----
155960

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL - + 22 + + - 57 + 63 + - 67 * SUM ( ALL + 97 ) * + ( - + 24 )
----
155960

onlyif mysql # DIV for integer division: 
query I rowsort label-7997
SELECT 46 - - - 43 DIV 8
----
41

skipif mysql # not compatible
query I rowsort label-7997
SELECT 46 - - - 43 / 8
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT ALL - 87 + + + 17 + - + 44 DIV + + 46 * + 14 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL - 87 + + + 17 + - + 44 / + + 46 * + 14 AS col2
----
-70

query I rowsort
SELECT ALL + 28 + + + 31 + 49 AS col0
----
108

query I rowsort
SELECT ALL + - 9 * - COALESCE ( + 83, + + 24 ) - - + 42 col1
----
789

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT + - MAX( - 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8001
SELECT + - MAX ( - 68 ) AS col2
----
68

query I rowsort
SELECT + 99 * 41
----
4059

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL - 26 + CASE - 48 WHEN 41 THEN - + 72 END + + 0 * - MIN( DISTINCT + 6 ) * 29 / - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL - 26 + CASE - 48 WHEN 41 THEN - + 72 END + + 0 * - MIN ( DISTINCT + 6 ) * 29 / - 86
----
NULL

query I rowsort
SELECT + CASE 81 WHEN - 23 / + 24 THEN - + 99 * - + 12 * + 83 WHEN 99 * + 29 THEN NULL ELSE + 21 + 22 * + 26 END + - 25
----
568

query II rowsort
SELECT + 65 * NULLIF ( + 12, - + 48 ) AS col0, + 13 * + 81 * + 53
----
780
55809

query I rowsort
SELECT DISTINCT + 28 + 0 AS col1
----
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT + ( 40 ) + - + ( - 24 ) + - COALESCE ( - 56, + - COUNT( * ) + - 54 ) + - ( - - 70 )
----
50

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT + ( 40 ) + - + ( - 24 ) + - COALESCE ( - 56, + - COUNT ( * ) + - 54 ) + - ( - - 70 )
----
50

query I rowsort
SELECT DISTINCT 35 * + + 58 AS col2
----
2030

query I rowsort
SELECT DISTINCT 53 - 48 AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8011
SELECT ALL - 74 DIV 57 * + + 17 DIV ( + 2 )
----
-8

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - 74 / 57 * + + 17 / ( + 2 )
----
-8

query II rowsort
SELECT 58, 89 AS col0
----
58
89

query I rowsort
SELECT ALL + 11 - - 48 + + 99 AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT DISTINCT - 56 * + SUM( + + 4 ) AS col0
----
-224

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT - 56 * + SUM ( + + 4 ) AS col0
----
-224

query I rowsort
SELECT 68 * + 21
----
1428

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

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

query I rowsort
SELECT ALL 34 * - 64 col2
----
-2176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8018
SELECT DISTINCT - 57 * 67 * + CASE CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN NULL WHEN - - ( - NULLIF ( 2, - 3 ) ) + + + COUNT( DISTINCT - 63 ) * + CAST( NULL AS SIGNED ) THEN - CAST( NULL AS SIGNED ) - ( 1 ) * + CAST( NULL AS SIGNED ) ELSE 8 END AS col2
----
-30552

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - 57 * 67 * + CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN NULL WHEN - - ( - NULLIF ( 2, - 3 ) ) + + + COUNT ( DISTINCT - 63 ) * + CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) - ( 1 ) * + CAST ( NULL AS INTEGER ) ELSE 8 END AS col2
----
-30552

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT 93 * + MAX( DISTINCT 9 )
----
837

skipif mysql # not compatible
query I rowsort label-8019
SELECT 93 * + MAX ( DISTINCT 9 )
----
837

query I rowsort
SELECT - 49 * + - 51 + + 68 col0
----
2567

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8021
SELECT CASE - 52 WHEN 23 + 11 THEN - + 74 WHEN + ( + CASE - 42 WHEN + 91 * 8 THEN - 85 WHEN 8 / - CASE CAST( NULL AS SIGNED ) WHEN 13 THEN ( 78 ) WHEN CAST( 76 AS SIGNED ) THEN CAST( 90 AS DECIMAL ) * 69 + 99 ELSE NULL END THEN 0 END ) * 38 THEN NULL ELSE NULL END * + ( - 60 * 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT CASE - 52 WHEN 23 + 11 THEN - + 74 WHEN + ( + CASE - 42 WHEN + 91 * 8 THEN - 85 WHEN 8 / - CASE CAST ( NULL AS INTEGER ) WHEN 13 THEN ( 78 ) WHEN CAST ( 76 AS INTEGER ) THEN CAST ( 90 AS REAL ) * 69 + 99 ELSE NULL END THEN 0 END ) * 38 THEN NULL ELSE NULL END * + ( - 60 * 97 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8022
SELECT - ( - ( + - 93 ) ) DIV - COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8022
SELECT - ( - ( + - 93 ) ) / - COUNT ( * ) AS col1
----
93

query I rowsort
SELECT 13 + + 32 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT + 97 + - + COUNT( * ) - + ( + 22 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8024
SELECT + 97 + - + COUNT ( * ) - + ( + 22 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT 92 + - + 71 + + COUNT( * ) + + + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8025
SELECT 92 + - + 71 + + COUNT ( * ) + + + COUNT ( * )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8026
SELECT 36 + - 28 + + + 7 + - 19 + COALESCE ( - + ( + 2 ), - 26 + 37 + - 40 ) * - COUNT( * ) DIV - 91 col2
----
-4

skipif mysql # not compatible
query I rowsort label-8026
SELECT 36 + - 28 + + + 7 + - 19 + COALESCE ( - + ( + 2 ), - 26 + 37 + - 40 ) * - COUNT ( * ) / - 91 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT DISTINCT - COUNT( 16 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT - COUNT ( 16 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT DISTINCT COALESCE ( - - 47, - + COUNT( * ) * 39, + + 42 * - + 53 ) + 43 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT COALESCE ( - - 47, - + COUNT ( * ) * 39, + + 42 * - + 53 ) + 43 AS col0
----
90

query I rowsort
SELECT ALL 77 + + 69 col0
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8030
SELECT DISTINCT - CASE + - 79 WHEN - + 19 - 68 * 80 THEN - ( ( - + 96 ) ) WHEN - 56 THEN NULL ELSE - MAX( ALL ( 85 ) ) DIV - COUNT( * ) - 5 END + - 19
----
-99

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT - CASE + - 79 WHEN - + 19 - 68 * 80 THEN - ( ( - + 96 ) ) WHEN - 56 THEN NULL ELSE - MAX ( ALL ( 85 ) ) / - COUNT ( * ) - 5 END + - 19
----
-99

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

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

query I rowsort
SELECT + 74 + + 56 * ( - 12 )
----
-598

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

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

query I rowsort
SELECT - + 77 + + 48
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT SUM( ALL 46 )
----
46

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT SUM ( ALL 46 )
----
46

query I rowsort
SELECT ALL - ( + 22 ) + - 82 AS col2
----
-104

query I rowsort
SELECT - - 86 * + 28
----
2408

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT - COUNT( * ) * MIN( ( + 1 ) ) * + + 40
----
-40

skipif mysql # not compatible
query I rowsort label-8039
SELECT - COUNT ( * ) * MIN ( ( + 1 ) ) * + + 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL + 33 * + MIN( - + 62 ) AS col2
----
-2046

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL + 33 * + MIN ( - + 62 ) AS col2
----
-2046

query I rowsort
SELECT 33 * + 74 + + 81
----
2523

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT 90 * + 44 * - 0 - - + MIN( DISTINCT - + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT 90 * + 44 * - 0 - - + MIN ( DISTINCT - + 91 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8043
SELECT + CASE + + 20 WHEN - 89 THEN 17 * 91 / + - COALESCE ( + + 87, 46 * 84, + - AVG ( ALL - ( - 92 ) ) - - MIN( DISTINCT CAST( + ( ( 27 ) ) AS SIGNED ) ) ) + + AVG ( ( - 52 ) + CAST( 48 AS SIGNED ) ) + + COALESCE ( + 85 + 24, 62 ) END * - 86 + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT + CASE + + 20 WHEN - 89 THEN 17 * 91 / + - COALESCE ( + + 87, 46 * 84, + - AVG ( ALL - ( - 92 ) ) - - MIN ( DISTINCT CAST ( + ( ( 27 ) ) AS INTEGER ) ) ) + + AVG ( ( - 52 ) + CAST ( 48 AS INTEGER ) ) + + COALESCE ( + 85 + 24, 62 ) END * - 86 + + 42
----
NULL

query I rowsort
SELECT COALESCE ( - - ( + 72 ), 65 ) AS col0
----
72

query I rowsort
SELECT - 46 + - 68 AS col1
----
-114

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT + MIN( - - 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT + MIN ( - - 38 ) AS col0
----
38

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8050
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - MIN( + - 91 ) + - + 3 AS col2, + COUNT( * ) - - CAST( NULL AS SIGNED )
----
NULL
88
NULL

skipif mysql # not compatible
query III rowsort label-8050
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - MIN ( + - 91 ) + - + 3 AS col2, + COUNT ( * ) - - CAST ( NULL AS INTEGER )
----
NULL
88
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8051
SELECT COUNT( * ) AS col1, - 94 * 26 * - 46
----
1
112424

skipif mysql # not compatible
query II rowsort label-8051
SELECT COUNT ( * ) AS col1, - 94 * 26 * - 46
----
1
112424

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8052
SELECT - 99 AS col0, 81 * + - ( - CAST( NULL AS SIGNED ) ) * - 66 + + 18 * - 79 AS col0
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-8052
SELECT - 99 AS col0, 81 * + - ( - CAST ( NULL AS INTEGER ) ) * - 66 + + 18 * - 79 AS col0
----
-99
NULL

query I rowsort
SELECT ALL - 46 * + 22 + - 46
----
-1058

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8054
SELECT 95 col1, + MIN( + + 34 ) DIV 51 - - 3 + 79
----
95
82

skipif mysql # not compatible
query II rowsort label-8054
SELECT 95 col1, + MIN ( + + 34 ) / 51 - - 3 + 79
----
95
82

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

query I rowsort
SELECT ( + 90 ) col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8057
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) + - - SUM( + - 14 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) + - - SUM ( + - 14 ) AS col0
----
-15

query I rowsort
SELECT ALL + 76 + 39
----
115

query I rowsort
SELECT - 98 * - 59
----
5782

query I rowsort
SELECT - - 12 + 52
----
64

query I rowsort
SELECT + - COALESCE ( + 58, - + 62 * + + 80 ) * - 52
----
3016

query I rowsort
SELECT - 11 + - - 96 col0
----
85

query II rowsort
SELECT DISTINCT - 50 AS col1, 92 + - + 73 AS col2
----
-50
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8064
SELECT + 25 + - - CAST( NULL AS SIGNED ) AS col2, 69 AS col0
----
NULL
69

skipif mysql # not compatible
query II rowsort label-8064
SELECT + 25 + - - CAST ( NULL AS INTEGER ) AS col2, 69 AS col0
----
NULL
69

query I rowsort
SELECT + 38 + - 72
----
-34

query I rowsort
SELECT ALL 78 * 29 * 96 * - ( + + 66 ) AS col2
----
-14332032

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8067
SELECT 56 AS col0, ( COUNT( DISTINCT - + 51 ) ) DIV MAX( + 14 ) + 11 AS col2
----
56
11

skipif mysql # not compatible
query II rowsort label-8067
SELECT 56 AS col0, ( COUNT ( DISTINCT - + 51 ) ) / MAX ( + 14 ) + 11 AS col2
----
56
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT - NULLIF ( 86, COUNT( * ) ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-8068
SELECT - NULLIF ( 86, COUNT ( * ) ) AS col1
----
-86

query I rowsort
SELECT ALL 77 - - + 82 AS col0
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-8070
SELECT + NULLIF ( - 13, - - ( - - COUNT( + 4 ) ) ), 29 AS col2
----
-13
29

skipif mysql # not compatible
query II rowsort label-8070
SELECT + NULLIF ( - 13, - - ( - - COUNT ( + 4 ) ) ), 29 AS col2
----
-13
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT + SUM( ALL + 44 ) * - - COUNT( * ) * - + 18 - COUNT( * ) + - + COALESCE ( - 59, - 26 * 47 + + - 55, + 88 ) * + 98 * COUNT( * ) + - 23 AS col0
----
4966

skipif mysql # not compatible
query I rowsort label-8071
SELECT + SUM ( ALL + 44 ) * - - COUNT ( * ) * - + 18 - COUNT ( * ) + - + COALESCE ( - 59, - 26 * 47 + + - 55, + 88 ) * + 98 * COUNT ( * ) + - 23 AS col0
----
4966

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-8074
SELECT ALL + 11 / - 35, 98 AS col2
----
0
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT + ( + - COUNT( * ) ) * - + MAX( + 36 ) col1
----
36

skipif mysql # not compatible
query I rowsort label-8075
SELECT + ( + - COUNT ( * ) ) * - + MAX ( + 36 ) col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT ALL + CASE + 59 WHEN + COUNT( * ) THEN COUNT( - 74 ) END * 23 + 1 + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL + CASE + 59 WHEN + COUNT ( * ) THEN COUNT ( - 74 ) END * 23 + 1 + - 60
----
NULL

query I rowsort
SELECT - 87 * + 2
----
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8078
SELECT - 45 + 70 * 26 AS col2, 94 * + CASE - - ( - 73 ) WHEN - 10 * + COALESCE ( - 12, + COUNT( * ) * + CAST( + 37 AS SIGNED ) + MAX( ALL + 46 ) ) * + 85 + 78 + MAX( ALL 64 ) THEN 87 END * 29 + + AVG ( ALL - 13 + 64 * + CAST( NULL AS SIGNED ) )
----
1775
NULL

skipif mysql # not compatible
query II rowsort label-8078
SELECT - 45 + 70 * 26 AS col2, 94 * + CASE - - ( - 73 ) WHEN - 10 * + COALESCE ( - 12, + COUNT ( * ) * + CAST ( + 37 AS INTEGER ) + MAX ( ALL + 46 ) ) * + 85 + 78 + MAX ( ALL 64 ) THEN 87 END * 29 + + AVG ( ALL - 13 + 64 * + CAST ( NULL AS INTEGER ) )
----
1775
NULL

query I rowsort
SELECT - 63 * - + 11 AS col1
----
693

onlyif mysql # DIV for integer division: 
query I rowsort label-8080
SELECT - 39 DIV 96 * 61
----
0

skipif mysql # not compatible
query I rowsort label-8080
SELECT - 39 / 96 * 61
----
0

query I rowsort
SELECT + 41 * + - 49 + - 55 col0
----
-2064

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

query I rowsort
SELECT - 93 + - 93 + ( - 58 ) * - 95 * + 78
----
429594

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT CASE - 50 WHEN 55 THEN COALESCE ( - + 43, + 94 ) * - 70 + + + 39 WHEN + - COUNT( * ) + - 61 + + COUNT( * ) THEN + 24 * 85 + + 73 / 39 END + AVG ( 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT CASE - 50 WHEN 55 THEN COALESCE ( - + 43, + 94 ) * - 70 + + + 39 WHEN + - COUNT ( * ) + - 61 + + COUNT ( * ) THEN + 24 * 85 + + 73 / 39 END + AVG ( 80 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8086
SELECT ALL + - CASE WHEN + 79 >= - 27 + 92 THEN - 54 * - 19 + 48 * + COUNT( * ) * CAST( 20 AS SIGNED ) + 61 END + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL + - CASE WHEN + 79 >= - 27 + 92 THEN - 54 * - 19 + 48 * + COUNT ( * ) * CAST ( 20 AS INTEGER ) + 61 END + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( + + 22 ) + + 38 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8088
SELECT - CASE CASE 61 WHEN CAST( + 12 AS SIGNED ) THEN 28 + + 42 END WHEN COUNT( * ) + + - ( 24 ) + ( COALESCE ( + 68, 24 + 59, SUM( ALL - 10 ) * - 3 ) ) THEN 74 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT - CASE CASE 61 WHEN CAST ( + 12 AS INTEGER ) THEN 28 + + 42 END WHEN COUNT ( * ) + + - ( 24 ) + ( COALESCE ( + 68, 24 + 59, SUM ( ALL - 10 ) * - 3 ) ) THEN 74 END AS col2
----
NULL

query I rowsort
SELECT 45 + 36
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT ALL + + 2 + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL + + 2 + + COUNT ( * )
----
3

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

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

query I rowsort
SELECT - 70 + 23 + - CASE + 20 WHEN - 30 + 10 THEN NULL ELSE - - 77 END
----
-124

query I rowsort
SELECT - 83 * - 1
----
83

query I rowsort
SELECT 55 * 93 + NULLIF ( 41, 82 ) AS col1
----
5156

query I rowsort
SELECT DISTINCT + - 60 - 93 * + + 20
----
-1920

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT ALL - 14 DIV 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL - 14 / 39 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8097
SELECT MIN( + 91 ) + - - 6, + COUNT( * ) AS col1
----
97
1

skipif mysql # not compatible
query II rowsort label-8097
SELECT MIN ( + 91 ) + - - 6, + COUNT ( * ) AS col1
----
97
1

query I rowsort
SELECT 49 * - 87 AS col0
----
-4263

onlyif mysql # aggregate syntax: 
query II rowsort label-8099
SELECT DISTINCT 54, - 7 * + - 66 * 91 + - CASE - - ( + COUNT( * ) ) WHEN + 55 * + 46 + + 33 THEN + + SUM( + 70 ) * AVG ( DISTINCT - 84 ) END AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-8099
SELECT DISTINCT 54, - 7 * + - 66 * 91 + - CASE - - ( + COUNT ( * ) ) WHEN + 55 * + 46 + + 33 THEN + + SUM ( + 70 ) * AVG ( DISTINCT - 84 ) END AS col2
----
54
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8100
SELECT 58 DIV 82 col0
----
0

skipif mysql # not compatible
query I rowsort label-8100
SELECT 58 / 82 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8101
SELECT + 76 DIV SUM( - 82 ) + + 92 + - 46 + + 24 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8101
SELECT + 76 / SUM ( - 82 ) + + 92 + - 46 + + 24 AS col0
----
70

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8103
SELECT + 18 AS col2, 77 * - NULLIF ( + 62, + COUNT( * ) )
----
18
-4774

skipif mysql # not compatible
query II rowsort label-8103
SELECT + 18 AS col2, 77 * - NULLIF ( + 62, + COUNT ( * ) )
----
18
-4774

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

query II rowsort
SELECT ALL - 38 AS col2, 62 AS col1
----
-38
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT - 37 * - 85 + - CASE - 73 WHEN 57 THEN NULL WHEN + COALESCE ( + - 61, + 98, 53 + - + 5 ) THEN NULL ELSE + 88 * 16 - - + COUNT( DISTINCT + 12 ) END
----
1736

skipif mysql # not compatible
query I rowsort label-8106
SELECT - 37 * - 85 + - CASE - 73 WHEN 57 THEN NULL WHEN + COALESCE ( + - 61, + 98, 53 + - + 5 ) THEN NULL ELSE + 88 * 16 - - + COUNT ( DISTINCT + 12 ) END
----
1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL CASE - COUNT( ALL - 15 ) WHEN - - 59 THEN - CASE + 35 WHEN - 72 * + 6 * - 36 THEN NULL WHEN - CASE + 38 WHEN + 31 + + + 32 THEN NULL WHEN 64 - + CAST( 58 + 55 AS SIGNED ) THEN 83 * + AVG ( ALL 52 * 77 ) ELSE + SUM( ALL - ( - CAST( + 48 AS SIGNED ) ) ) * + 11 END THEN 41 + + ( CAST( NULL AS SIGNED ) + 71 ) ELSE + MAX( DISTINCT ( + 27 ) ) END * + SUM( + 16 - CASE + 41 WHEN + 50 - + 57 THEN NULL WHEN - 83 THEN - 11 END ) ELSE + COUNT( * ) END + 17 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL CASE - COUNT ( ALL - 15 ) WHEN - - 59 THEN - CASE + 35 WHEN - 72 * + 6 * - 36 THEN NULL WHEN - CASE + 38 WHEN + 31 + + + 32 THEN NULL WHEN 64 - + CAST ( 58 + 55 AS INTEGER ) THEN 83 * + AVG ( ALL 52 * 77 ) ELSE + SUM ( ALL - ( - CAST ( + 48 AS INTEGER ) ) ) * + 11 END THEN 41 + + ( CAST ( NULL AS INTEGER ) + 71 ) ELSE + MAX ( DISTINCT ( + 27 ) ) END * + SUM ( + 16 - CASE + 41 WHEN + 50 - + 57 THEN NULL WHEN - 83 THEN - 11 END ) ELSE + COUNT ( * ) END + 17 AS col2
----
18

query II rowsort
SELECT ALL 28 + + 88 + - - 68 AS col1, 92 col2
----
184
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8109
SELECT 69, 38 * NULLIF ( + - CAST( + ( - 71 ) AS SIGNED ), - + 95 / + - 20 + - NULLIF ( - 27, + + ( - 56 ) ) ) AS col2
----
69
2698

skipif mysql # not compatible
query II rowsort label-8109
SELECT 69, 38 * NULLIF ( + - CAST ( + ( - 71 ) AS INTEGER ), - + 95 / + - 20 + - NULLIF ( - 27, + + ( - 56 ) ) ) AS col2
----
69
2698

query I rowsort
SELECT - 37 * + 89 - - 10 col2
----
-3283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8111
SELECT CAST( NULL AS SIGNED ) / + MIN( ALL + COALESCE ( - 25, - NULLIF ( 4, + 21 ) * - + 12 ) ) * + CAST( 65 AS SIGNED ) * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT CAST ( NULL AS INTEGER ) / + MIN ( ALL + COALESCE ( - 25, - NULLIF ( 4, + 21 ) * - + 12 ) ) * + CAST ( 65 AS INTEGER ) * 88
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 54, 33 * 9 ) + - + 80 + + - 44 * + + 23 * 87
----
-88178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8113
SELECT ALL + - COUNT( * ) + + 72 + + COUNT( * ) * + - 12 DIV 84 * + 17 + + 61
----
132

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL + - COUNT ( * ) + + 72 + + COUNT ( * ) * + - 12 / 84 * + 17 + + 61
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8114
SELECT 87 AS col0, CAST( - + COALESCE ( + 43, + - COUNT( * ) ) AS SIGNED )
----
87
-43

skipif mysql # not compatible
query II rowsort label-8114
SELECT 87 AS col0, CAST ( - + COALESCE ( + 43, + - COUNT ( * ) ) AS INTEGER )
----
87
-43

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8116
SELECT 21 * - 73 DIV - COUNT( * ) AS col2
----
1533

skipif mysql # not compatible
query I rowsort label-8116
SELECT 21 * - 73 / - COUNT ( * ) AS col2
----
1533

query II rowsort
SELECT + + 54 AS col1, + NULLIF ( - 54, + 37 )
----
54
-54

query I rowsort
SELECT ALL 10 - + 31 * + - 34 * - + 82
----
-86418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8119
SELECT COUNT( * ) - + CAST( 91 AS SIGNED ) * - 8
----
729

skipif mysql # not compatible
query I rowsort label-8119
SELECT COUNT ( * ) - + CAST ( 91 AS INTEGER ) * - 8
----
729

query I rowsort
SELECT + 49 * - 22
----
-1078

query II rowsort
SELECT - 79 AS col2, NULLIF ( - 98, + - 63 )
----
-79
-98

query I rowsort
SELECT 90 * + 2 + 68 col0
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL MAX( DISTINCT 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL MAX ( DISTINCT 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT DISTINCT + + ( - NULLIF ( - MIN( ALL - 56 ), - 8 ) ) - + + 85
----
-141

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT + + ( - NULLIF ( - MIN ( ALL - 56 ), - 8 ) ) - + + 85
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT 18 + + COUNT( * ) * + 31 + + 44 * + 86 + + COUNT( * ) AS col1, - 32
----
3834
-32

skipif mysql # not compatible
query II rowsort label-8125
SELECT 18 + + COUNT ( * ) * + 31 + + 44 * + 86 + + COUNT ( * ) AS col1, - 32
----
3834
-32

query I rowsort
SELECT + ( 39 ) * 3
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-8127
SELECT 59 + - 85, + ( - 58 ) * + 81 - + COUNT( + 80 ) AS col0
----
-26
-4699

skipif mysql # not compatible
query II rowsort label-8127
SELECT 59 + - 85, + ( - 58 ) * + 81 - + COUNT ( + 80 ) AS col0
----
-26
-4699

query I rowsort
SELECT 97 * - 34
----
-3298

query I rowsort
SELECT 68 + + 70 AS col2
----
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8130
SELECT 4 - + 77 - + 73 DIV ( + ( 75 ) ) + - NULLIF ( + + MAX( DISTINCT - 59 ), 79 )
----
-14

skipif mysql # not compatible
query I rowsort label-8130
SELECT 4 - + 77 - + 73 / ( + ( 75 ) ) + - NULLIF ( + + MAX ( DISTINCT - 59 ), 79 )
----
-14

query I rowsort
SELECT DISTINCT - 38 * + 91 AS col1
----
-3458

query I rowsort
SELECT 87 + 79 * + + 5
----
482

onlyif mysql # aggregate syntax: 
query II rowsort label-8133
SELECT DISTINCT MAX( + 83 ) AS col1, COUNT( DISTINCT - 15 ) - 68
----
83
-67

skipif mysql # not compatible
query II rowsort label-8133
SELECT DISTINCT MAX ( + 83 ) AS col1, COUNT ( DISTINCT - 15 ) - 68
----
83
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT ALL CASE + + 28 WHEN - 83 + + 2 THEN - 22 * 55 ELSE NULL END + - - MIN( DISTINCT ( + 26 ) ) / CASE 57 WHEN + 93 * + 21 * + 90 + 76 THEN 94 WHEN 5 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL CASE + + 28 WHEN - 83 + + 2 THEN - 22 * 55 ELSE NULL END + - - MIN ( DISTINCT ( + 26 ) ) / CASE 57 WHEN + 93 * + 21 * + 90 + 76 THEN 94 WHEN 5 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8135
SELECT DISTINCT - 94 + - + 52 + - 19 DIV - 92
----
-146

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT - 94 + - + 52 + - 19 / - 92
----
-146

query I rowsort
SELECT - 33 / CASE - 71 WHEN - 4 THEN NULL WHEN + 17 * - 0 + - - 29 THEN + + 25 * 88 - - 33 WHEN 62 THEN 33 / - 98 ELSE NULL END + + - 58
----
NULL

query I rowsort
SELECT ALL - 55 * - 33 + + 19 AS col2
----
1834

query I rowsort
SELECT 2 + - + 92 AS col0
----
-90

query I rowsort
SELECT 38 * 34 AS col2
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT NULLIF ( + 51, + ( COUNT( * ) ) * + 76 )
----
51

skipif mysql # not compatible
query I rowsort label-8140
SELECT NULLIF ( + 51, + ( COUNT ( * ) ) * + 76 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT ALL 14 * - + 32 * - COUNT( * ) * + + 48 + 27 - - 34
----
21565

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL 14 * - + 32 * - COUNT ( * ) * + + 48 + 27 - - 34
----
21565

query I rowsort
SELECT ALL 83 * - + 3 + 10 + - 28 * - 99 col0
----
2533

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL - 22 * COUNT( * ) + 13
----
-9

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL - 22 * COUNT ( * ) + 13
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8144
SELECT ALL + 39 * MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) + + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL + 39 * MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + + 57 AS col0
----
NULL

query I rowsort
SELECT + 2 * - - 71 * 18 + - 55 AS col0
----
2501

query I rowsort
SELECT - 41 + - 75
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8147
SELECT + CASE + 19 WHEN 80 + COUNT( * ) + - 79 * 31 * - 84 + + 19 * - 1 THEN 84 * + CAST( + 21 AS SIGNED ) ELSE + 29 END
----
29

skipif mysql # not compatible
query I rowsort label-8147
SELECT + CASE + 19 WHEN 80 + COUNT ( * ) + - 79 * 31 * - 84 + + 19 * - 1 THEN 84 * + CAST ( + 21 AS INTEGER ) ELSE + 29 END
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8148
SELECT - + 4 * + ( - MIN( DISTINCT - - 94 ) ) * - 3 * - COUNT( * ) + - + 21 AS col2, - 40 col2
----
1107
-40

skipif mysql # not compatible
query II rowsort label-8148
SELECT - + 4 * + ( - MIN ( DISTINCT - - 94 ) ) * - 3 * - COUNT ( * ) + - + 21 AS col2, - 40 col2
----
1107
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT + - ( - 82 ) * - + COUNT( * ) * - - 76 AS col0
----
-6232

skipif mysql # not compatible
query I rowsort label-8149
SELECT + - ( - 82 ) * - + COUNT ( * ) * - - 76 AS col0
----
-6232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8150
SELECT + - 19 * - ( - - CAST( - + 55 AS SIGNED ) )
----
-1045

skipif mysql # not compatible
query I rowsort label-8150
SELECT + - 19 * - ( - - CAST ( - + 55 AS INTEGER ) )
----
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT - 27 * + + 58 + + 6 + MAX( ALL 87 ) + - 45 * + + COUNT( ALL 84 ) * 92 + - 65 - - + 89 - + 69 + + 66 * 87 * - 88
----
-510954

skipif mysql # not compatible
query I rowsort label-8151
SELECT - 27 * + + 58 + + 6 + MAX ( ALL 87 ) + - 45 * + + COUNT ( ALL 84 ) * 92 + - 65 - - + 89 - + 69 + + 66 * 87 * - 88
----
-510954

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT + COUNT( * ) - - SUM( DISTINCT + 61 )
----
62

skipif mysql # not compatible
query I rowsort label-8152
SELECT + COUNT ( * ) - - SUM ( DISTINCT + 61 )
----
62

query I rowsort
SELECT + 91 + + 39 + 54 AS col0
----
184

query I rowsort
SELECT DISTINCT + + 65 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT + 5 + + 26 + - COUNT( * ) + 22 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8155
SELECT + 5 + + 26 + - COUNT ( * ) + 22 AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT ALL CAST( NULL AS SIGNED ) * + - 69 * 94
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT + COUNT( * ) + 89 + + + 9
----
99

skipif mysql # not compatible
query I rowsort label-8157
SELECT + COUNT ( * ) + 89 + + + 9
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT + ( - COALESCE ( - - 9, + + COUNT( * ) ) ) * 59 * - 33 * - 18 + - + 30
----
-315444

skipif mysql # not compatible
query I rowsort label-8158
SELECT + ( - COALESCE ( - - 9, + + COUNT ( * ) ) ) * 59 * - 33 * - 18 + - + 30
----
-315444

query I rowsort
SELECT ALL - 87 * + 2 AS col2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT CASE 16 WHEN - + CASE + COUNT( * ) WHEN + + 51 * 83 THEN NULLIF ( - - COUNT( * ), + 7 * + NULLIF ( - COUNT( * ), + 50 ) + - - COUNT( * ) ) * - + 13 END * - 75 + 66 THEN NULL WHEN - 10 THEN COUNT( DISTINCT - 9 ) * + 38 WHEN - 76 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT CASE 16 WHEN - + CASE + COUNT ( * ) WHEN + + 51 * 83 THEN NULLIF ( - - COUNT ( * ), + 7 * + NULLIF ( - COUNT ( * ), + 50 ) + - - COUNT ( * ) ) * - + 13 END * - 75 + 66 THEN NULL WHEN - 10 THEN COUNT ( DISTINCT - 9 ) * + 38 WHEN - 76 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT - - COUNT( * ) + + 52 * 62
----
3225

skipif mysql # not compatible
query I rowsort label-8161
SELECT - - COUNT ( * ) + + 52 * 62
----
3225

query I rowsort
SELECT DISTINCT 28 * + 76 - + 49 col1
----
2079

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8163
SELECT DISTINCT COALESCE ( 20, - 12 * 18 + - 84 DIV - 12 + 7, - - CAST( 8 AS SIGNED ) * + 56 ) * 75 DIV - - 40
----
37

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT COALESCE ( 20, - 12 * 18 + - 84 / - 12 + 7, - - CAST ( 8 AS INTEGER ) * + 56 ) * 75 / - - 40
----
37

query I rowsort
SELECT + - 32 * + 29 * 9 * + - 49
----
409248

query I rowsort
SELECT DISTINCT - 7 + + + 88 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL + CASE - 56 WHEN - 54 THEN + 39 END + + MIN( 38 ) * + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL + CASE - 56 WHEN - 54 THEN + 39 END + + MIN ( 38 ) * + - 86
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - - 32, + 37 - + 21 ) AS col1
----
32

query I rowsort
SELECT ALL 59 + + 35 AS col1
----
94

query I rowsort
SELECT DISTINCT + 34 + + + 21
----
55

query I rowsort
SELECT - ( + NULLIF ( + 18, + 36 * + - 29 * - 88 - + 7 ) ) AS col1
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL + 53 + 43 * - CASE - MIN( DISTINCT + 67 ) WHEN - + COUNT( * ) + + + 14 THEN + 22 WHEN + 66 THEN - 24 + - + CASE + - 83 WHEN + 73 THEN - + MIN( DISTINCT + 5 ) + 59 END END / 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + 53 + 43 * - CASE - MIN ( DISTINCT + 67 ) WHEN - + COUNT ( * ) + + + 14 THEN + 22 WHEN + 66 THEN - 24 + - + CASE + - 83 WHEN + 73 THEN - + MIN ( DISTINCT + 5 ) + 59 END END / 46 AS col2
----
NULL

query III rowsort
SELECT 94 AS col0, + 59 * - 78 AS col1, 6 AS col0
----
94
-4602
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL - AVG ( - 60 ) * - 16 + + 70 - + + CASE 74 WHEN - 96 * - 95 / COUNT( * ) THEN + + 95 + + 21 WHEN - - ( + 1 ) THEN - 43 WHEN + 88 THEN NULL WHEN - 79 THEN NULL END * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL - AVG ( - 60 ) * - 16 + + 70 - + + CASE 74 WHEN - 96 * - 95 / COUNT ( * ) THEN + + 95 + + 21 WHEN - - ( + 1 ) THEN - 43 WHEN + 88 THEN NULL WHEN - 79 THEN NULL END * + 12
----
NULL

query I rowsort
SELECT - 52 + + + 40
----
-12

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

skipif mysql # not compatible
query I rowsort label-8176
SELECT - MAX ( + + 50 )
----
-50

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

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

query I rowsort
SELECT DISTINCT - ( - 53 ) * - 95 AS col2
----
-5035

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8180
SELECT ALL CAST( NULL AS SIGNED ) / CASE - 26 WHEN + 64 + - 38 * - COUNT( * ) / - 70 + + 51 + - 4 + - 99 * + 26 * + 83 THEN + - ( + 73 ) + - 25 ELSE NULL END * 76 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL CAST ( NULL AS INTEGER ) / CASE - 26 WHEN + 64 + - 38 * - COUNT ( * ) / - 70 + + 51 + - 4 + - 99 * + 26 * + 83 THEN + - ( + 73 ) + - 25 ELSE NULL END * 76 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT DISTINCT + CASE + 24 WHEN + 70 THEN 15 + + COUNT( * ) + 26 + + 17 * + 79 * - - 9 * - 86 + + MIN( + + 11 ) * - 96 * - + 59 WHEN - 14 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT + CASE + 24 WHEN + 70 THEN 15 + + COUNT ( * ) + 26 + + 17 * + 79 * - - 9 * - 86 + + MIN ( + + 11 ) * - 96 * - + 59 WHEN - 14 THEN NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT ALL + 95 DIV - 3 + + 56 * + 61 AS col2
----
3385

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL + 95 / - 3 + + 56 * + 61 AS col2
----
3385

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT DISTINCT - MAX( + + 47 ) * 45 col1
----
-2115

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT - MAX ( + + 47 ) * 45 col1
----
-2115

query I rowsort
SELECT - 57 * - 95 AS col1
----
5415

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT - - 39 * 23 * COUNT( * ) * 5
----
4485

skipif mysql # not compatible
query I rowsort label-8186
SELECT - - 39 * 23 * COUNT ( * ) * 5
----
4485

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT - + 54 DIV ( - 30 ) * + ( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-8187
SELECT - + 54 / ( - 30 ) * + ( 96 )
----
96

query I rowsort
SELECT + + 48 * + 97 AS col0
----
4656

query I rowsort
SELECT + 31 + + COALESCE ( + 62, - 61 )
----
93

query I rowsort
SELECT + 2 * 62 col1
----
124

query I rowsort
SELECT ALL - + 16 * + - 16
----
256

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

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

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

skipif mysql # not compatible
query I rowsort label-8193
SELECT + - MAX ( + 59 )
----
-59

query I rowsort
SELECT - + 52 * 13 - - + 29
----
-647

query I rowsort
SELECT + + 47 * 15
----
705

query I rowsort
SELECT ALL 28 * + + 44 * + 97 + ( NULLIF ( - + 2, - 61 + - + 11 ) ) - - + 45
----
119547

query I rowsort
SELECT + 5 * - 16 AS col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8198
SELECT - ( + 34 ), + MIN( DISTINCT 77 ) DIV - 88 AS col2
----
-34
0

skipif mysql # not compatible
query II rowsort label-8198
SELECT - ( + 34 ), + MIN ( DISTINCT 77 ) / - 88 AS col2
----
-34
0

query I rowsort
SELECT ALL + 93 * + ( - - 28 ) + - 28
----
2576

query I rowsort
SELECT + 94 - 76 * + 71
----
-5302

query I rowsort
SELECT DISTINCT COALESCE ( + + 90, + 85 )
----
90

query I rowsort
SELECT DISTINCT 18 + + 89
----
107

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8203
SELECT + 41 + + + 52 + - 79 * - - 98 * - + CAST( NULL AS DECIMAL ) * + - 12 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT + 41 + + + 52 + - 79 * - - 98 * - + CAST ( NULL AS REAL ) * + - 12 col1
----
NULL

query I rowsort
SELECT ALL 53 + - 92 AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8205
SELECT DISTINCT COUNT( * ) * + - NULLIF ( + + CAST( + 31 AS SIGNED ), - ( - 48 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT COUNT ( * ) * + - NULLIF ( + + CAST ( + 31 AS INTEGER ), - ( - 48 ) )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8206
SELECT - 23 DIV + 44 * - 66
----
0

skipif mysql # not compatible
query I rowsort label-8206
SELECT - 23 / + 44 * - 66
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8207
SELECT + ( - 86 ) + + COALESCE ( - COUNT( * ), NULLIF ( + + COUNT( * ), + 13 ), - 41 * - + 21 + + 66 + 53 * 96 * 33 DIV - ( + 90 ) - + 4 + + 52 * 77 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-8207
SELECT + ( - 86 ) + + COALESCE ( - COUNT ( * ), NULLIF ( + + COUNT ( * ), + 13 ), - 41 * - + 21 + + 66 + 53 * 96 * 33 / - ( + 90 ) - + 4 + + 52 * 77 ) AS col1
----
-87

query I rowsort
SELECT - 40 * - - 82 * 17
----
-55760

onlyif mysql # aggregate syntax: 
query II rowsort label-8209
SELECT ALL SUM( - 74 ) col1, ( + MIN( + + 99 ) ) + 41
----
-74
140

skipif mysql # not compatible
query II rowsort label-8209
SELECT ALL SUM ( - 74 ) col1, ( + MIN ( + + 99 ) ) + 41
----
-74
140

query II rowsort
SELECT ALL 5 + 83 AS col0, - 88 - - ( 2 ) AS col2
----
88
-86

query I rowsort
SELECT 3 + + 13 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8212
SELECT 38 - 27, - CASE - NULLIF ( + 65, + MAX( ALL + + 65 ) * - 0 * + 80 - + 76 ) WHEN 51 - + 56 * + + 64 * - 71 * - - 44 + 74 + + 14 THEN + ( - 78 ) + + 7 ELSE NULL END AS col0
----
11
NULL

skipif mysql # not compatible
query II rowsort label-8212
SELECT 38 - 27, - CASE - NULLIF ( + 65, + MAX ( ALL + + 65 ) * - 0 * + 80 - + 76 ) WHEN 51 - + 56 * + + 64 * - 71 * - - 44 + 74 + + 14 THEN + ( - 78 ) + + 7 ELSE NULL END AS col0
----
11
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8213
SELECT ( ( + + 21 ) ) + + COUNT( * ) + + + COUNT( * ) * 25 AS col0, - 85 AS col0
----
47
-85

skipif mysql # not compatible
query II rowsort label-8213
SELECT ( ( + + 21 ) ) + + COUNT ( * ) + + + COUNT ( * ) * 25 AS col0, - 85 AS col0
----
47
-85

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

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT 52 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( 14 ) - 79
----
-93

query II rowsort
SELECT ALL 37 AS col2, 87 AS col2
----
37
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT DISTINCT 4 - - COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT 4 - - COUNT ( * ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT 95 * + - 58 * - 45 * 82 + + 68 * + - COUNT( * ) * 97 * 29 * - + 95
----
38503880

skipif mysql # not compatible
query I rowsort label-8218
SELECT 95 * + - 58 * - 45 * 82 + + 68 * + - COUNT ( * ) * 97 * 29 * - + 95
----
38503880

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8219
SELECT ALL - COUNT( ALL 40 ) - + 72 DIV + - 95 - - NULLIF ( - - COALESCE ( 70, - 49, + 65 + + ( + 26 ) ), ( + - CASE 17 WHEN - - NULLIF ( 25, 44 * AVG ( 75 ) ) THEN - SUM( 94 ) + COUNT( * ) DIV + ( 89 ) ELSE + CASE + 98 WHEN CAST( 2 AS DECIMAL ) + - 50 THEN COUNT( * ) WHEN 90 * 77 THEN NULL ELSE COUNT( * ) END END ) ) col1
----
69

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL - COUNT ( ALL 40 ) - + 72 / + - 95 - - NULLIF ( - - COALESCE ( 70, - 49, + 65 + + ( + 26 ) ), ( + - CASE 17 WHEN - - NULLIF ( 25, 44 * AVG ( 75 ) ) THEN - SUM ( 94 ) + COUNT ( * ) / + ( 89 ) ELSE + CASE + 98 WHEN CAST ( 2 AS REAL ) + - 50 THEN COUNT ( * ) WHEN 90 * 77 THEN NULL ELSE COUNT ( * ) END END ) ) col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8220
SELECT ALL - - 76 AS col1, SUM( DISTINCT 52 )
----
76
52

skipif mysql # not compatible
query II rowsort label-8220
SELECT ALL - - 76 AS col1, SUM ( DISTINCT 52 )
----
76
52

query II rowsort
SELECT + 69 AS col1, - 56 + - + 21 AS col2
----
69
-77

query I rowsort
SELECT + 60 * + 61
----
3660

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

skipif mysql # not compatible
query II rowsort label-8223
SELECT ALL - - 3, COUNT ( * ) col0
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT + - COALESCE ( + ( - ( - 29 ) ), COUNT( * ) ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-8224
SELECT + - COALESCE ( + ( - ( - 29 ) ), COUNT ( * ) ) col2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT + 87 DIV - 13 + + - 30 * - + 80 + + + 87
----
2481

skipif mysql # not compatible
query I rowsort label-8225
SELECT + 87 / - 13 + + - 30 * - + 80 + + + 87
----
2481

query I rowsort
SELECT DISTINCT + + 51 * 4 AS col2
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8227
SELECT 98 AS col1, - NULLIF ( + - 19, + - 73 ) + + + COALESCE ( ( 55 ), 39 DIV + - COUNT( * ), + - SUM( DISTINCT - - CASE - + CAST( NULL AS SIGNED ) WHEN ( - 22 ) THEN - 85 ELSE 24 END ) - + 34, 8 DIV + 45 ) + + MIN( ALL + 90 ) DIV 32
----
98
76

skipif mysql # not compatible
query II rowsort label-8227
SELECT 98 AS col1, - NULLIF ( + - 19, + - 73 ) + + + COALESCE ( ( 55 ), 39 / + - COUNT ( * ), + - SUM ( DISTINCT - - CASE - + CAST ( NULL AS INTEGER ) WHEN ( - 22 ) THEN - 85 ELSE 24 END ) - + 34, 8 / + 45 ) + + MIN ( ALL + 90 ) / 32
----
98
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8228
SELECT - COUNT( ALL - 67 ) DIV + + 30 + - 42 + - ( 58 ) * NULLIF ( - 61, + + 81 )
----
3496

skipif mysql # not compatible
query I rowsort label-8228
SELECT - COUNT ( ALL - 67 ) / + + 30 + - 42 + - ( 58 ) * NULLIF ( - 61, + + 81 )
----
3496

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT 14 DIV 34 * + + 49 DIV 99 + + 27
----
27

skipif mysql # not compatible
query I rowsort label-8229
SELECT 14 / 34 * + + 49 / 99 + + 27
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8230
SELECT NULLIF ( - - 39, - CAST( NULL AS SIGNED ) + COUNT( * ) - - - 74 * + + 44 ) - + ( + - COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-8230
SELECT NULLIF ( - - 39, - CAST ( NULL AS INTEGER ) + COUNT ( * ) - - - 74 * + + 44 ) - + ( + - COUNT ( * ) )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT - 36 * 83 DIV + 19 - + 33 + + 44
----
-146

skipif mysql # not compatible
query I rowsort label-8231
SELECT - 36 * 83 / + 19 - + 33 + + 44
----
-146

query I rowsort
SELECT ALL - 95 + - 40 col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT SUM( + 5 ) * - COUNT( * ) - + 13 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8233
SELECT SUM ( + 5 ) * - COUNT ( * ) - + 13 AS col0
----
-18

query I rowsort
SELECT ALL + 4 + - - 72
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8235
SELECT - 10, ( - - COUNT( * ) ) * + - 54 + + 86 * - 4 AS col0
----
-10
-398

skipif mysql # not compatible
query II rowsort label-8235
SELECT - 10, ( - - COUNT ( * ) ) * + - 54 + + 86 * - 4 AS col0
----
-10
-398

query II rowsort
SELECT DISTINCT - - 68 AS col1, 89
----
68
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8237
SELECT DISTINCT COUNT( * ) * - + 62 AS col0, + 57 + + 14 + 29 DIV + 33 AS col1
----
-62
71

skipif mysql # not compatible
query II rowsort label-8237
SELECT DISTINCT COUNT ( * ) * - + 62 AS col0, + 57 + + 14 + 29 / + 33 AS col1
----
-62
71

query I rowsort
SELECT ALL 65 + 53 + - 40
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT COUNT( * ) + + ( - 15 ) + - + 93 * - MIN( + 48 )
----
4450

skipif mysql # not compatible
query I rowsort label-8239
SELECT COUNT ( * ) + + ( - 15 ) + - + 93 * - MIN ( + 48 )
----
4450

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT COUNT( ALL 12 ) * + 93 * - 96 * + + 5 * - + 56 + + COALESCE ( MAX( ALL 1 ), - + 7 + 29 ) + - - 3
----
2499844

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT COUNT ( ALL 12 ) * + 93 * - 96 * + + 5 * - + 56 + + COALESCE ( MAX ( ALL 1 ), - + 7 + 29 ) + - - 3
----
2499844

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT COUNT( * ) * 38 * 31
----
1178

skipif mysql # not compatible
query I rowsort label-8241
SELECT COUNT ( * ) * 38 * 31
----
1178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8242
SELECT ALL + 90 - 28 * - - COUNT( * ) DIV 89 * + + COUNT( * ) - 76 * + + 86 + 71 * COUNT( * )
----
-6375

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL + 90 - 28 * - - COUNT ( * ) / 89 * + + COUNT ( * ) - 76 * + + 86 + 71 * COUNT ( * )
----
-6375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8243
SELECT ALL 99 - - COUNT( * ) DIV - - NULLIF ( + - 67, - - 74 + + 23 + - 35 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL 99 - - COUNT ( * ) / - - NULLIF ( + - 67, - - 74 + + 23 + - 35 ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT DISTINCT ( + 99 ) / - NULLIF ( - 89, + - 69 ) * + - CAST( NULL AS SIGNED ) + + 8 - + ( + 16 ) * + - CAST( + 91 AS SIGNED ) * + 51 + - ( + 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT ( + 99 ) / - NULLIF ( - 89, + - 69 ) * + - CAST ( NULL AS INTEGER ) + + 8 - + ( + 16 ) * + - CAST ( + 91 AS INTEGER ) * + 51 + - ( + 93 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8245
SELECT ALL CAST( 45 AS SIGNED ) * - + ( + + 12 ) * - 62 + - 1 AS col0
----
33479

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL CAST ( 45 AS INTEGER ) * - + ( + + 12 ) * - 62 + - 1 AS col0
----
33479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8246
SELECT DISTINCT ( 35 ) / - CAST( NULL AS SIGNED ) / - + 16 * + 35 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT ( 35 ) / - CAST ( NULL AS INTEGER ) / - + 16 * + 35 + + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8247
SELECT NULLIF ( - SUM( ALL + 38 ), - ( - - 64 ) * - 75 ) DIV COUNT( * ) AS col0, 17 - 73 AS col1
----
-38
-56

skipif mysql # not compatible
query II rowsort label-8247
SELECT NULLIF ( - SUM ( ALL + 38 ), - ( - - 64 ) * - 75 ) / COUNT ( * ) AS col0, 17 - 73 AS col1
----
-38
-56

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

skipif mysql # not compatible
query I rowsort label-8248
SELECT COUNT ( * ) - + NULLIF ( - - CAST ( NULL AS INTEGER ), 31 ) - + 39
----
NULL

query II rowsort
SELECT 63 * - 73 AS col2, 63 * - - 38
----
-4599
2394

query I rowsort
SELECT 21 + - 38
----
-17

query I rowsort
SELECT DISTINCT 70 * + - 96 AS col1
----
-6720

query I rowsort
SELECT + NULLIF ( - 23, - 2 * 68 ) * - 55 AS col2
----
1265

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL - MAX( DISTINCT NULLIF ( + 31, - 58 + 7 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL - MAX ( DISTINCT NULLIF ( + 31, - 58 + 7 ) )
----
-31

query I rowsort
SELECT 90 + - 99 * 13 AS col1
----
-1197

query I rowsort
SELECT - COALESCE ( - 18, 89 ) * + 17 * + 35
----
10710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8256
SELECT + CAST( NULL AS SIGNED ) * - 4 + - 39 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL - 99 + + COUNT( DISTINCT - 93 ) col0
----
-98

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL - 99 + + COUNT ( DISTINCT - 93 ) col0
----
-98

query I rowsort
SELECT + 60 * ( - 50 )
----
-3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8259
SELECT CAST( 89 AS SIGNED ) + 53
----
142

skipif mysql # not compatible
query I rowsort label-8259
SELECT CAST ( 89 AS INTEGER ) + 53
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL + + 74 * 88 * - - COUNT( * ) AS col0
----
6512

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL + + 74 * 88 * - - COUNT ( * ) AS col0
----
6512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8261
SELECT DISTINCT - MAX( 31 ) AS col0, CAST( NULL AS SIGNED ) AS col2
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-8261
SELECT DISTINCT - MAX ( 31 ) AS col0, CAST ( NULL AS INTEGER ) AS col2
----
-31
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8262
SELECT DISTINCT - COUNT( * ) + + 15 DIV - 17
----
-1

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT - COUNT ( * ) + + 15 / - 17
----
-1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8264
SELECT ALL - - SUM( ALL - 61 ) + - COUNT( * ) AS col1, + ( + 14 )
----
-62
14

skipif mysql # not compatible
query II rowsort label-8264
SELECT ALL - - SUM ( ALL - 61 ) + - COUNT ( * ) AS col1, + ( + 14 )
----
-62
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL - - ( ( - SUM( - 63 ) ) ) + - 9
----
54

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL - - ( ( - SUM ( - 63 ) ) ) + - 9
----
54

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8267
SELECT COUNT( * ) DIV 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8267
SELECT COUNT ( * ) / 4 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT COALESCE ( + 77, 25, - 48 ) * + 20 + - 26 * COUNT( * ) - - 95 col0
----
1609

skipif mysql # not compatible
query I rowsort label-8268
SELECT COALESCE ( + 77, 25, - 48 ) * + 20 + - 26 * COUNT ( * ) - - 95 col0
----
1609

query I rowsort
SELECT - 0 * - + ( 33 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT - 11 - - CASE - 60 WHEN 9 + - MIN( DISTINCT + - 75 ) + + 47 * + 21 + + + 29 * + 72 THEN 89 WHEN + + 71 THEN NULL ELSE NULL END + - 27 + + 85 / - COUNT( * ) * + 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8270
SELECT - 11 - - CASE - 60 WHEN 9 + - MIN ( DISTINCT + - 75 ) + + 47 * + 21 + + + 29 * + 72 THEN 89 WHEN + + 71 THEN NULL ELSE NULL END + - 27 + + 85 / - COUNT ( * ) * + 79 AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT DISTINCT - 49 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT - 49 / 87
----
0

query I rowsort
SELECT - 5 * + 23 AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT DISTINCT ( - 43 ) * - + 91 * + 15 * - 22 * - 53 * - COUNT( * )
----
-68438370

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT ( - 43 ) * - + 91 * + 15 * - 22 * - 53 * - COUNT ( * )
----
-68438370

query I rowsort
SELECT DISTINCT + 76 - + 93 * - - 96
----
-8852

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT - COUNT( - 45 ) - COUNT( * ) + 37
----
35

skipif mysql # not compatible
query I rowsort label-8276
SELECT - COUNT ( - 45 ) - COUNT ( * ) + 37
----
35

query I rowsort
SELECT - 69 * - 64 * + - 29 AS col1
----
-128064

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8278
SELECT - 28 + + ( + COUNT( 58 ) ) AS col1, COALESCE ( + 52, + 31 DIV - - 34 + - COUNT( * ) ) AS col0
----
-27
52

skipif mysql # not compatible
query II rowsort label-8278
SELECT - 28 + + ( + COUNT ( 58 ) ) AS col1, COALESCE ( + 52, + 31 / - - 34 + - COUNT ( * ) ) AS col0
----
-27
52

query I rowsort
SELECT DISTINCT COALESCE ( 48, + + 89 * - 12 + 82 ) col2
----
48

query I rowsort
SELECT ALL + 32 * - 40 AS col2
----
-1280

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT - 98 + - COALESCE ( 17, 94 + - 42 - - + COUNT( * ) )
----
-115

skipif mysql # not compatible
query I rowsort label-8281
SELECT - 98 + - COALESCE ( 17, 94 + - 42 - - + COUNT ( * ) )
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8282
SELECT DISTINCT + COALESCE ( - - COUNT( ALL - 20 ), - CAST( NULL AS SIGNED ), + + ( - MAX( ALL + 83 ) ) ) * 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT + COALESCE ( - - COUNT ( ALL - 20 ), - CAST ( NULL AS INTEGER ), + + ( - MAX ( ALL + 83 ) ) ) * 94 AS col2
----
94

query I rowsort
SELECT ALL COALESCE ( - - 41, 51 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8284
SELECT + ( - - 30 ) / + 80 / - CASE COUNT( * ) WHEN 15 THEN - + 28 - - CAST( NULL AS DECIMAL ) WHEN + + 57 THEN - ( + CAST( NULL AS SIGNED ) ) WHEN + + 30 * 32 THEN - 13 ELSE NULL END * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8284
SELECT + ( - - 30 ) / + 80 / - CASE COUNT ( * ) WHEN 15 THEN - + 28 - - CAST ( NULL AS REAL ) WHEN + + 57 THEN - ( + CAST ( NULL AS INTEGER ) ) WHEN + + 30 * 32 THEN - 13 ELSE NULL END * + 34
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8285
SELECT - + 28 AS col1, 65 * MAX( - - 24 ) AS col0
----
-28
1560

skipif mysql # not compatible
query II rowsort label-8285
SELECT - + 28 AS col1, 65 * MAX ( - - 24 ) AS col0
----
-28
1560

onlyif mysql # DIV for integer division: 
query I rowsort label-8286
SELECT ALL 38 DIV 80 * - + 48
----
0

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL 38 / 80 * - + 48
----
0

query I rowsort
SELECT DISTINCT 43 + - 79 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT + COUNT( * ) + - 57 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-8288
SELECT + COUNT ( * ) + - 57 AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8289
SELECT + CASE + 32 WHEN - 68 + CAST( NULL AS SIGNED ) + - 70 * + 8 + + 67 - + 42 THEN NULL WHEN + AVG ( + + 73 ) * 5 * + + 26 * - - 56 THEN + CAST( + 78 AS DECIMAL ) * - + 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT + CASE + 32 WHEN - 68 + CAST ( NULL AS INTEGER ) + - 70 * + 8 + + 67 - + 42 THEN NULL WHEN + AVG ( + + 73 ) * 5 * + + 26 * - - 56 THEN + CAST ( + 78 AS REAL ) * - + 26 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8290
SELECT DISTINCT + 26 * - CAST( ( - 85 ) AS SIGNED ) * - COALESCE ( - 86, + MIN( DISTINCT CASE 95 WHEN + + 65 THEN + 55 END ), + 32 * - + 81 * - - COALESCE ( COUNT( * ), + NULLIF ( - ( + - 34 ), + COUNT( * ) * + 57 ) DIV 56 ) - + 13 * + COUNT( * ), 99 )
----
190060

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT + 26 * - CAST ( ( - 85 ) AS INTEGER ) * - COALESCE ( - 86, + MIN ( DISTINCT CASE 95 WHEN + + 65 THEN + 55 END ), + 32 * - + 81 * - - COALESCE ( COUNT ( * ), + NULLIF ( - ( + - 34 ), + COUNT ( * ) * + 57 ) / 56 ) - + 13 * + COUNT ( * ), 99 )
----
190060

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT ALL - 86 * 24 + - NULLIF ( - COUNT( * ), 16 * + 9 * COUNT( * ) )
----
-2063

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL - 86 * 24 + - NULLIF ( - COUNT ( * ), 16 * + 9 * COUNT ( * ) )
----
-2063

query I rowsort
SELECT ALL + 21 * + 55 + + + 35 + + 12
----
1202

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT - ( + - 12 ) * - + MIN( - - 54 ) - - SUM( - NULLIF ( 23, - 91 ) ) * + 97 * + 16
----
-36344

skipif mysql # not compatible
query I rowsort label-8293
SELECT - ( + - 12 ) * - + MIN ( - - 54 ) - - SUM ( - NULLIF ( 23, - 91 ) ) * + 97 * + 16
----
-36344

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT + + COUNT( * ) + + 77
----
78

skipif mysql # not compatible
query I rowsort label-8294
SELECT + + COUNT ( * ) + + 77
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT + CASE - - ( + + 63 ) WHEN - 64 + 35 + + + 17 THEN + 12 + 54 ELSE + CAST( + 36 AS SIGNED ) END
----
36

skipif mysql # not compatible
query I rowsort label-8295
SELECT + CASE - - ( + + 63 ) WHEN - 64 + 35 + + + 17 THEN + 12 + 54 ELSE + CAST ( + 36 AS INTEGER ) END
----
36

query I rowsort
SELECT COALESCE ( + 90, - + 81, - 97 + - - 8 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8297
SELECT ALL + CASE + 76 WHEN CAST( NULL AS SIGNED ) THEN + 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL + CASE + 76 WHEN CAST ( NULL AS INTEGER ) THEN + 29 ELSE NULL END
----
NULL

query I rowsort
SELECT - 41 - + + 73 AS col2
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8299
SELECT + 12 + + - 13 + + + COUNT( * ) + + 31 + + - 98 DIV - + NULLIF ( - 45, - + 53 * + - 99 + + + COUNT( * ) ) + - SUM( ALL + - 58 ) DIV NULLIF ( - 48, + 99 - - ( + 40 ) + - + 57 ) + + 26
----
54

skipif mysql # not compatible
query I rowsort label-8299
SELECT + 12 + + - 13 + + + COUNT ( * ) + + 31 + + - 98 / - + NULLIF ( - 45, - + 53 * + - 99 + + + COUNT ( * ) ) + - SUM ( ALL + - 58 ) / NULLIF ( - 48, + 99 - - ( + 40 ) + - + 57 ) + + 26
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT ALL - ( 54 ) * - - MAX( ALL ( - - 13 ) ) * - 21 + + + ( + 4 )
----
14746

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL - ( 54 ) * - - MAX ( ALL ( - - 13 ) ) * - 21 + + + ( + 4 )
----
14746

query I rowsort
SELECT DISTINCT - 17 * - 20 AS col2
----
340

query I rowsort
SELECT - 82 + 45
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-8303
SELECT 63 * + 30 + 80 + - - 57 + - - 42 * + 76 * + - 28, MAX( ALL 59 ) AS col2
----
-87349
59

skipif mysql # not compatible
query II rowsort label-8303
SELECT 63 * + 30 + 80 + - - 57 + - - 42 * + 76 * + - 28, MAX ( ALL 59 ) AS col2
----
-87349
59

onlyif mysql # DIV for integer division: 
query II rowsort label-8304
SELECT + 69 DIV + 44 AS col0, + 49 AS col0
----
1
49

skipif mysql # not compatible
query II rowsort label-8304
SELECT + 69 / + 44 AS col0, + 49 AS col0
----
1
49

query I rowsort
SELECT DISTINCT COALESCE ( + 69, - 64, - 24 ) AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8306
SELECT SUM( - - CAST( NULL AS SIGNED ) ), 39 * + 85 col0
----
NULL
3315

skipif mysql # not compatible
query II rowsort label-8306
SELECT SUM ( - - CAST ( NULL AS INTEGER ) ), 39 * + 85 col0
----
NULL
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT - 10 + - COUNT( ALL + + NULLIF ( + + 35, 38 ) ) + 79
----
68

skipif mysql # not compatible
query I rowsort label-8307
SELECT - 10 + - COUNT ( ALL + + NULLIF ( + + 35, 38 ) ) + 79
----
68

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

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

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

skipif mysql # not compatible
query I rowsort label-8309
SELECT - COUNT ( * ) * - 58
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT DISTINCT - 55 + - + 4 - 39 * - + 75 * - CAST( NULL AS SIGNED ) + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT - 55 + - + 4 - 39 * - + 75 * - CAST ( NULL AS INTEGER ) + 35
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8311
SELECT ALL + + 74 + + 37, CASE + + 53 WHEN - COUNT( * ) - - 54 * COUNT( * ) THEN NULL WHEN - ( + + 99 ) THEN - 14 END AS col2
----
111
NULL

skipif mysql # not compatible
query II rowsort label-8311
SELECT ALL + + 74 + + 37, CASE + + 53 WHEN - COUNT ( * ) - - 54 * COUNT ( * ) THEN NULL WHEN - ( + + 99 ) THEN - 14 END AS col2
----
111
NULL

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

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT - - 7 * + COUNT ( * ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT DISTINCT + - 45 + + - 42 + - 12 * + COUNT( + + 57 ) + + ( - 70 ) * + 63 + + + 28 - + + 89 + - + 71 + 50 * 78 * + 48
----
182559

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT + - 45 + + - 42 + - 12 * + COUNT ( + + 57 ) + + ( - 70 ) * + 63 + + + 28 - + + 89 + - + 71 + 50 * 78 * + 48
----
182559

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

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

query I rowsort
SELECT - + 94 - - 4 * 10 AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8316
SELECT ALL - + 63 / - - CAST( NULL AS SIGNED ) * 93 * + + 6 + + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - + 63 / - - CAST ( NULL AS INTEGER ) * 93 * + + 6 + + - 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8317
SELECT + MIN( DISTINCT - - 37 ) * + CASE 24 WHEN 29 * + 89 * 0 + - CAST( NULL AS SIGNED ) - - 55 * MIN( DISTINCT + - ( - 53 ) ) THEN NULL WHEN - - CAST( 40 AS SIGNED ) THEN COUNT( * ) + + COUNT( * ) * 46 END, + 14 * 28 - 98 AS col1
----
NULL
294

skipif mysql # not compatible
query II rowsort label-8317
SELECT + MIN ( DISTINCT - - 37 ) * + CASE 24 WHEN 29 * + 89 * 0 + - CAST ( NULL AS INTEGER ) - - 55 * MIN ( DISTINCT + - ( - 53 ) ) THEN NULL WHEN - - CAST ( 40 AS INTEGER ) THEN COUNT ( * ) + + COUNT ( * ) * 46 END, + 14 * 28 - 98 AS col1
----
NULL
294

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT - NULLIF ( - COUNT( * ), - + 83 + 85 * - 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8318
SELECT - NULLIF ( - COUNT ( * ), - + 83 + 85 * - 17 ) AS col0
----
1

query I rowsort
SELECT + 5 * + + 38 AS col2
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT DISTINCT 84 * + - 42 * - 4 + + + CAST( - - 82 AS SIGNED ) * - + ( - COALESCE ( 94, + 84 ) )
----
21820

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT 84 * + - 42 * - 4 + + + CAST ( - - 82 AS INTEGER ) * - + ( - COALESCE ( 94, + 84 ) )
----
21820

query I rowsort
SELECT ALL 94 * 91
----
8554

query I rowsort
SELECT DISTINCT 53 * - 47 AS col1
----
-2491

query II rowsort
SELECT DISTINCT - 79 AS col2, - 22 AS col1
----
-79
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT 95 * - 53 * - COUNT( * ) - - 41
----
5076

skipif mysql # not compatible
query I rowsort label-8324
SELECT 95 * - 53 * - COUNT ( * ) - - 41
----
5076

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT DISTINCT COUNT( * ) * 47 * 6
----
282

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT COUNT ( * ) * 47 * 6
----
282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8328
SELECT MIN( - + ( - + 72 ) ) DIV + + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8328
SELECT MIN ( - + ( - + 72 ) ) / + + 79 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT ALL - 69 + - 31 + + - 82 + + ( + ( + - CAST( NULL AS SIGNED ) ) ) * + + 88 + - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL - 69 + - 31 + + - 82 + + ( + ( + - CAST ( NULL AS INTEGER ) ) ) * + + 88 + - + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT 63 - - - NULLIF ( + + 96, + COUNT( * ) * NULLIF ( NULLIF ( 66, - 61 - + COALESCE ( 21, - - 59 ) * ( MIN( + 54 ) ) * + 86 - + 41 + + 42 ), + - 48 * - 18 + + COUNT( ALL - 48 ) ) / + ( 91 ) + MIN( 41 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-8330
SELECT 63 - - - NULLIF ( + + 96, + COUNT ( * ) * NULLIF ( NULLIF ( 66, - 61 - + COALESCE ( 21, - - 59 ) * ( MIN ( + 54 ) ) * + 86 - + 41 + + 42 ), + - 48 * - 18 + + COUNT ( ALL - 48 ) ) / + ( 91 ) + MIN ( 41 ) ) AS col0
----
-33

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

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

query I rowsort
SELECT + 37 - 34
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT MIN( 93 ) + + 58 AS col2
----
151

skipif mysql # not compatible
query I rowsort label-8333
SELECT MIN ( 93 ) + + 58 AS col2
----
151

query I rowsort
SELECT ALL + - 42 + 85 + 53
----
96

query I rowsort
SELECT 44 * + 20 col1
----
880

query II rowsort
SELECT - 77 col0, 70 AS col1
----
-77
70

query I rowsort
SELECT - 4 + + 72 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT ALL COALESCE ( - MAX( - + 27 ), + 60 + + - 81 )
----
27

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL COALESCE ( - MAX ( - + 27 ), + 60 + + - 81 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT DISTINCT + NULLIF ( + 76, - + ( COUNT( * ) ) ) + 48 + + - ( + 39 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT + NULLIF ( + 76, - + ( COUNT ( * ) ) ) + 48 + + - ( + 39 ) AS col0
----
85

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

query I rowsort
SELECT ALL 0 - - 13 - + 80 * - - ( + 23 )
----
-1827

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT DISTINCT + 9 DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT + 9 / 44
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT - 93 + ( COUNT( * ) ) col1
----
-92

skipif mysql # not compatible
query I rowsort label-8344
SELECT - 93 + ( COUNT ( * ) ) col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT COUNT( * ) + - + 58 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-8345
SELECT COUNT ( * ) + - + 58 AS col1
----
-57

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

query I rowsort
SELECT ALL + COALESCE ( + 54, 6 ) - 34
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8348
SELECT 85 * - CAST( + - COUNT( * ) AS SIGNED ) * + 85 + + 83 AS col0, - COUNT( * ) + 71
----
7308
70

skipif mysql # not compatible
query II rowsort label-8348
SELECT 85 * - CAST ( + - COUNT ( * ) AS INTEGER ) * + 85 + + 83 AS col0, - COUNT ( * ) + 71
----
7308
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL - SUM( - 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL - SUM ( - 15 ) AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8350
SELECT ALL - 24 * CASE - CAST( - 20 AS DECIMAL ) WHEN COALESCE ( 78, + 86 ) * - COUNT( * ) - - + AVG ( ALL - + 35 ) + 88 THEN + - 50 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL - 24 * CASE - CAST ( - 20 AS REAL ) WHEN COALESCE ( 78, + 86 ) * - COUNT ( * ) - - + AVG ( ALL - + 35 ) + 88 THEN + - 50 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-8351
SELECT 34 AS col1, + NULLIF ( - 88, + 8 / - - 16 ) + - 80 * + + MIN( 33 ) * COUNT( * ), - - 26 col2
----
34
-2728
26

skipif mysql # not compatible
query III rowsort label-8351
SELECT 34 AS col1, + NULLIF ( - 88, + 8 / - - 16 ) + - 80 * + + MIN ( 33 ) * COUNT ( * ), - - 26 col2
----
34
-2728
26

query II rowsort
SELECT ALL - 83, 43 + 10 AS col1
----
-83
53

query I rowsort
SELECT 22 * + + 60
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT - NULLIF ( + - COUNT( * ), - - 20 * + 20 + 54 + + 59 * 68 / + 26 + - 63 ) * - + 71 - - - MAX( 22 )
----
-93

skipif mysql # not compatible
query I rowsort label-8354
SELECT - NULLIF ( + - COUNT ( * ), - - 20 * + 20 + 54 + + 59 * 68 / + 26 + - 63 ) * - + 71 - - - MAX ( 22 )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8355
SELECT DISTINCT CASE + 38 WHEN + 60 THEN + - 70 + + + 57 ELSE + - 95 + - COUNT( * ) * + + 23 DIV NULLIF ( + - 71, + + 68 * 57 ) + - - 66 END * - 50 + - + 59 * - + COUNT( * )
----
1509

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT CASE + 38 WHEN + 60 THEN + - 70 + + + 57 ELSE + - 95 + - COUNT ( * ) * + + 23 / NULLIF ( + - 71, + + 68 * 57 ) + - - 66 END * - 50 + - + 59 * - + COUNT ( * )
----
1509

query I rowsort
SELECT 12 * 68
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT COUNT( * ) + - ( - 37 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8357
SELECT COUNT ( * ) + - ( - 37 ) AS col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8358
SELECT ALL + MAX( DISTINCT - 17 ) DIV - + COUNT( * ) AS col1
----
17

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8360
SELECT + 17 AS col0, - 16 DIV + COUNT( * ) * 1 AS col2
----
17
-16

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8361
SELECT 0 * + 42 + 49 + - + 8 DIV + 8
----
48

skipif mysql # not compatible
query I rowsort label-8361
SELECT 0 * + 42 + 49 + - + 8 / + 8
----
48

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

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL 93 + + - COUNT ( * ) AS col2
----
92

query I rowsort
SELECT ALL + 0 + - 79 * 81 AS col0
----
-6399

onlyif mysql # aggregate syntax: 
query III rowsort label-8364
SELECT DISTINCT - 76 AS col2, 81 - COUNT( * ) * - 25 - - CASE - - 65 WHEN + 41 THEN + + 74 + + - 17 END col0, - 48 * - + COUNT( DISTINCT - 44 ) AS col1
----
-76
NULL
48

skipif mysql # not compatible
query III rowsort label-8364
SELECT DISTINCT - 76 AS col2, 81 - COUNT ( * ) * - 25 - - CASE - - 65 WHEN + 41 THEN + + 74 + + - 17 END col0, - 48 * - + COUNT ( DISTINCT - 44 ) AS col1
----
-76
NULL
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT 47 + + - MIN( DISTINCT + 59 ) - + 9 * - 53
----
465

skipif mysql # not compatible
query I rowsort label-8365
SELECT 47 + + - MIN ( DISTINCT + 59 ) - + 9 * - 53
----
465

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL 86 + + SUM( 43 )
----
129

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL 86 + + SUM ( 43 )
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ( 37 ) + - + 8 + + ( + 26 ) - - + COUNT( * ) + + 52 * - - ( - - 20 ) - 92 * + 27
----
-1388

skipif mysql # not compatible
query I rowsort label-8367
SELECT ( 37 ) + - + 8 + + ( + 26 ) - - + COUNT ( * ) + + 52 * - - ( - - 20 ) - 92 * + 27
----
-1388

onlyif mysql # DIV for integer division: 
query I rowsort label-8368
SELECT ALL 33 * ( - 7 ) DIV 37
----
-6

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL 33 * ( - 7 ) / 37
----
-6

query I rowsort
SELECT 37 * - 57 AS col0
----
-2109

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT COUNT( * ) * + 73 + - 93 + - 51 * - 48 * - + COUNT( * ) + - 3 + - 78 + + 71
----
-2478

skipif mysql # not compatible
query I rowsort label-8370
SELECT COUNT ( * ) * + 73 + - 93 + - 51 * - 48 * - + COUNT ( * ) + - 3 + - 78 + + 71
----
-2478

query I rowsort
SELECT ALL 5 + - 80 + - 42
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT 72 + - MIN( ALL + + 86 ) + + 72 + + MAX( 67 )
----
125

skipif mysql # not compatible
query I rowsort label-8372
SELECT 72 + - MIN ( ALL + + 86 ) + + 72 + + MAX ( 67 )
----
125

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL + - NULLIF ( + 6, - ( 83 ) - - - COUNT( * ) ) - ( + 80 ) * + 84 + - + 68 AS col0
----
-6794

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL + - NULLIF ( + 6, - ( 83 ) - - - COUNT ( * ) ) - ( + 80 ) * + 84 + - + 68 AS col0
----
-6794

onlyif mysql # DIV for integer division: 
query I rowsort label-8375
SELECT 82 * 84 DIV - 81 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8375
SELECT 82 * 84 / - 81 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL 94 * + - 39 * + 33 * + 20 * + ( + - COUNT( * ) )
----
2419560

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL 94 * + - 39 * + 33 * + 20 * + ( + - COUNT ( * ) )
----
2419560

query I rowsort
SELECT DISTINCT + 47 * 23 * - - 82
----
88642

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT - 51 DIV 53 DIV + + 98
----
0

skipif mysql # not compatible
query I rowsort label-8378
SELECT - 51 / 53 / + + 98
----
0

query I rowsort
SELECT - 60 + + 48 col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8380
SELECT ALL 69 AS col1, - 1 * ( COUNT( ALL + 19 ) ) * + 63 + 47
----
69
-16

skipif mysql # not compatible
query II rowsort label-8380
SELECT ALL 69 AS col1, - 1 * ( COUNT ( ALL + 19 ) ) * + 63 + 47
----
69
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8381
SELECT DISTINCT - CAST( - + 50 AS SIGNED ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT - CAST ( - + 50 AS INTEGER ) AS col1
----
50

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 82 + - 85 + 90 + 19
----
-58

query I rowsort
SELECT + 53 * 28 col0
----
1484

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL + SUM( - 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL + SUM ( - 17 ) AS col1
----
-17

query I rowsort
SELECT NULLIF ( - - 54, NULLIF ( 78, + + 62 ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT COALESCE ( SUM( - 91 ), + 22 * + + COUNT( * ) ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-8390
SELECT COALESCE ( SUM ( - 91 ), + 22 * + + COUNT ( * ) ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT - COUNT( * ) * + 52 AS col1, + 46
----
-52
46

skipif mysql # not compatible
query II rowsort label-8391
SELECT - COUNT ( * ) * + 52 AS col1, + 46
----
-52
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT - 23 * + MAX( DISTINCT - 87 )
----
2001

skipif mysql # not compatible
query I rowsort label-8392
SELECT - 23 * + MAX ( DISTINCT - 87 )
----
2001

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8393
SELECT + 88 DIV + + NULLIF ( + 51, 96 + + 68 * - 93 * + NULLIF ( 17, + - 80 - - COUNT( * ) ) ) + 60 + + 41, COUNT( * ) DIV - 20 AS col2
----
102
0

skipif mysql # not compatible
query II rowsort label-8393
SELECT + 88 / + + NULLIF ( + 51, 96 + + 68 * - 93 * + NULLIF ( 17, + - 80 - - COUNT ( * ) ) ) + 60 + + 41, COUNT ( * ) / - 20 AS col2
----
102
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8394
SELECT ALL + COALESCE ( + 17, - - 68, + CAST( COUNT( * ) AS SIGNED ) ) * - 29 * + CAST( - + 97 AS SIGNED )
----
47821

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL + COALESCE ( + 17, - - 68, + CAST ( COUNT ( * ) AS INTEGER ) ) * - 29 * + CAST ( - + 97 AS INTEGER )
----
47821

onlyif mysql # aggregate syntax: 
query II rowsort label-8395
SELECT - MIN( DISTINCT + + 13 ) * + + 21 * + - SUM( + 59 ), ( + 38 ) AS col0
----
16107
38

skipif mysql # not compatible
query II rowsort label-8395
SELECT - MIN ( DISTINCT + + 13 ) * + + 21 * + - SUM ( + 59 ), ( + 38 ) AS col0
----
16107
38

query I rowsort
SELECT - ( ( 86 ) ) * + - 41 + 34 AS col1
----
3560

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

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

query I rowsort
SELECT - 33 - + 35 * 86 + + 32 col2
----
-3011

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

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

query I rowsort
SELECT - - 81 - 2 + - 30
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT + - MIN( 7 ) * - 93 AS col2
----
651

skipif mysql # not compatible
query I rowsort label-8401
SELECT + - MIN ( 7 ) * - 93 AS col2
----
651

query I rowsort
SELECT ALL + NULLIF ( - ( + 28 ), 96 ) AS col1
----
-28

query I rowsort
SELECT ALL - - 71 - - 97 AS col2
----
168

query I rowsort
SELECT DISTINCT - 43 * 24
----
-1032

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

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

query I rowsort
SELECT ALL - + 58 * - 48 AS col0
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT + 22 - CASE + 49 WHEN 62 THEN COUNT( * ) / - MIN( 84 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT + 22 - CASE + 49 WHEN 62 THEN COUNT ( * ) / - MIN ( 84 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT - 66 + - MIN( - - ( 40 ) ) - - - 8 * - 85 AS col0
----
574

skipif mysql # not compatible
query I rowsort label-8408
SELECT - 66 + - MIN ( - - ( 40 ) ) - - - 8 * - 85 AS col0
----
574

query I rowsort
SELECT + 35 - - 74 * + 32 AS col0
----
2403

query I rowsort
SELECT ALL ( + 83 ) - + - 94
----
177

query I rowsort
SELECT + - ( + - ( - 10 ) ) * - 97 AS col0
----
970

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT + - 74 * - 6 + + 66 DIV + - 75
----
444

skipif mysql # not compatible
query I rowsort label-8412
SELECT + - 74 * - 6 + + 66 / + - 75
----
444

onlyif mysql # aggregate syntax: 
query II rowsort label-8413
SELECT + + 5 + + SUM( DISTINCT - 47 ) col1, 74
----
-42
74

skipif mysql # not compatible
query II rowsort label-8413
SELECT + + 5 + + SUM ( DISTINCT - 47 ) col1, 74
----
-42
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT DISTINCT 12 + + COUNT( * ) + + ( + 61 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT 12 + + COUNT ( * ) + + ( + 61 ) AS col1
----
74

query I rowsort
SELECT + 53 + + + 36 + 7 * 8 * + 48 + - - 69 col2
----
2846

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT DISTINCT ( - 27 ) + CASE - 41 WHEN 86 THEN + SUM( - NULLIF ( 78, + 11 ) ) / + 37 WHEN - 43 - - - 57 THEN NULL END + + 76 - 95 * - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT ( - 27 ) + CASE - 41 WHEN 86 THEN + SUM ( - NULLIF ( 78, + 11 ) ) / + 37 WHEN - 43 - - - 57 THEN NULL END + + 76 - 95 * - - 33
----
NULL

query I rowsort
SELECT - NULLIF ( - 38, AVG ( ALL - - 42 ) * - 50 ) AS col1
----
38

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8419
SELECT ALL - ( - 72 ) / + + CAST( NULL AS SIGNED ) * 19 + NULLIF ( + AVG ( 73 ), 2 ) + - SUM( + + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL - ( - 72 ) / + + CAST ( NULL AS INTEGER ) * 19 + NULLIF ( + AVG ( 73 ), 2 ) + - SUM ( + + 44 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8420
SELECT 36 / + 22 + - CAST( NULL AS DECIMAL ) + 44 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT 36 / + 22 + - CAST ( NULL AS REAL ) + 44 col2
----
NULL

query I rowsort
SELECT + 99 + - 36 AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT DISTINCT 34 DIV - - 59 * + 94 * + + 20 * + 31 + 26
----
26

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT 34 / - - 59 * + 94 * + + 20 * + 31 + 26
----
26

query I rowsort
SELECT ALL + 38 / 89 + CASE 23 WHEN + 12 + - 90 THEN - NULLIF ( 86, - 2 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 28 * + + 91 AS col0
----
-2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8425
SELECT DISTINCT - 5 / - 95 + - + 82 + + 8 + CAST( NULL AS SIGNED ) * + ( 82 ) + COALESCE ( - 29, ( + 72 ) + - CAST( NULL AS SIGNED ) * - COALESCE ( - COUNT( * ), - 86 + - 5 * 18 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT - 5 / - 95 + - + 82 + + 8 + CAST ( NULL AS INTEGER ) * + ( 82 ) + COALESCE ( - 29, ( + 72 ) + - CAST ( NULL AS INTEGER ) * - COALESCE ( - COUNT ( * ), - 86 + - 5 * 18 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT - 28 * - CASE + 76 WHEN + 93 THEN + - 0 * - 59 END / - 12 * + 4, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8426
SELECT - 28 * - CASE + 76 WHEN + 93 THEN + - 0 * - 59 END / - 12 * + 4, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8427
SELECT ALL 77 DIV + + CAST( 88 AS SIGNED ) + - 87 + - 13
----
-100

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL 77 / + + CAST ( 88 AS INTEGER ) + - 87 + - 13
----
-100

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8429
SELECT 74 * COUNT( * ) + + 15 AS col2, 8 * + - 30 * - ( - COUNT( * ) ) * - - 58 * 98 - - - 41 AS col0
----
89
-1364201

skipif mysql # not compatible
query II rowsort label-8429
SELECT 74 * COUNT ( * ) + + 15 AS col2, 8 * + - 30 * - ( - COUNT ( * ) ) * - - 58 * 98 - - - 41 AS col0
----
89
-1364201

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT - COUNT( * ) - - + 32 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8430
SELECT - COUNT ( * ) - - + 32 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL 23 * 96 * - COUNT( * ) + + MAX( ALL + 10 ) - - 1 + + - 99 AS col2
----
-2296

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL 23 * 96 * - COUNT ( * ) + + MAX ( ALL + 10 ) - - 1 + + - 99 AS col2
----
-2296

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

query I rowsort
SELECT - 97 * + + 69
----
-6693

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT DISTINCT + - ( SUM( 68 ) ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT + - ( SUM ( 68 ) ) AS col2
----
-68

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

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

query I rowsort
SELECT ALL - 98 * + 33 AS col0
----
-3234

query I rowsort
SELECT ALL 39 * + 31 AS col2
----
1209

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT CASE - 90 WHEN - 3 THEN NULL WHEN - 2 * 74 - - MIN( - + 57 ) * - 42 * COUNT( * ) THEN + 11 * 77 * COUNT( * ) WHEN - 28 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT CASE - 90 WHEN - 3 THEN NULL WHEN - 2 * 74 - - MIN ( - + 57 ) * - 42 * COUNT ( * ) THEN + 11 * 77 * COUNT ( * ) WHEN - 28 THEN NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 46 + + 2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL NULLIF ( - MIN( ALL + + 21 ), 44 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL NULLIF ( - MIN ( ALL + + 21 ), 44 ) AS col1
----
-21

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT DISTINCT 76 + + 91 DIV + COUNT( * ) AS col2
----
167

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT 76 + + 91 / + COUNT ( * ) AS col2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT DISTINCT 11 + - - MAX( 54 ) * + NULLIF ( 72, + COUNT( 33 ) / + + 82 - + + 34 ) + - 69 * 91 + - 81 AS col1
----
-2461

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT 11 + - - MAX ( 54 ) * + NULLIF ( 72, + COUNT ( 33 ) / + + 82 - + + 34 ) + - 69 * 91 + - 81 AS col1
----
-2461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8447
SELECT DISTINCT 40 + 8, COUNT( * ) DIV - COALESCE ( - 21, + - 82 + - 35 - + + 23 + + 33 + + COUNT( * ) * 35 + 86 + + 48 ) + - CAST( - 38 AS SIGNED ) AS col2
----
48
38

skipif mysql # not compatible
query II rowsort label-8447
SELECT DISTINCT 40 + 8, COUNT ( * ) / - COALESCE ( - 21, + - 82 + - 35 - + + 23 + + 33 + + COUNT ( * ) * 35 + 86 + + 48 ) + - CAST ( - 38 AS INTEGER ) AS col2
----
48
38

query I rowsort
SELECT 63 * - + 58 AS col2
----
-3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8449
SELECT DISTINCT 75 + 92 + + CASE - 68 WHEN COUNT( * ) THEN - AVG ( ALL 9 ) + + 69 * + 26 + - 26 * - 88 * + + 53 WHEN 21 THEN 53 * + 79 * + COALESCE ( - 52, - - 66, + ( + COUNT( * ) ) * 93 ) * - - MIN( 57 ) + - CAST( 83 AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) * 66 + 15 THEN NULL ELSE MAX( DISTINCT + CAST( NULL AS SIGNED ) ) / 64 END + + 0 * + MAX( + 77 ) / 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT 75 + 92 + + CASE - 68 WHEN COUNT ( * ) THEN - AVG ( ALL 9 ) + + 69 * + 26 + - 26 * - 88 * + + 53 WHEN 21 THEN 53 * + 79 * + COALESCE ( - 52, - - 66, + ( + COUNT ( * ) ) * 93 ) * - - MIN ( 57 ) + - CAST ( 83 AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) * 66 + 15 THEN NULL ELSE MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) / 64 END + + 0 * + MAX ( + 77 ) / 75 col0
----
NULL

query I rowsort
SELECT ALL 10 * + 30 AS col1
----
300

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT 53 DIV 5 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8451
SELECT 53 / 5 AS col1
----
10

query II rowsort
SELECT DISTINCT 63 - 40 AS col2, - 14
----
23
-14

query II rowsort
SELECT ALL 74 * - 73, + 99 AS col2
----
-5402
99

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

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

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

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL - COALESCE ( - 4, + COUNT ( * ) )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8456
SELECT ALL - 4 * 32 * - + 43 + - + COUNT( * ) + + - COALESCE ( 43, + + 25, + - 84 ) DIV + + 46
----
5503

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL - 4 * 32 * - + 43 + - + COUNT ( * ) + + - COALESCE ( 43, + + 25, + - 84 ) / + + 46
----
5503

query I rowsort
SELECT 67 * 78 * + 90
----
470340

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT - COALESCE ( + + 87, MIN( DISTINCT + 38 ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-8458
SELECT - COALESCE ( + + 87, MIN ( DISTINCT + 38 ) ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT - COALESCE ( - 7, 38 ) * + ( COUNT( * ) ) * - - 25
----
175

skipif mysql # not compatible
query I rowsort label-8459
SELECT - COALESCE ( - 7, 38 ) * + ( COUNT ( * ) ) * - - 25
----
175

onlyif mysql # aggregate syntax: 
query II rowsort label-8460
SELECT ALL - - 29 * 67 + 64 - + 27, + MAX( - NULLIF ( + - 96, 27 * - - 49 ) ) AS col2
----
1980
96

skipif mysql # not compatible
query II rowsort label-8460
SELECT ALL - - 29 * 67 + 64 - + 27, + MAX ( - NULLIF ( + - 96, 27 * - - 49 ) ) AS col2
----
1980
96

query I rowsort
SELECT - ( - 18 ) + - 82 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT ALL - MAX( ALL - 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL - MAX ( ALL - 21 ) AS col1
----
21

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

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

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) + + 65 + 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8465
SELECT ALL - + COUNT( * ) + 13 * - 73 DIV 1 AS col2
----
-950

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL - + COUNT ( * ) + 13 * - 73 / 1 AS col2
----
-950

query I rowsort
SELECT ALL + + 41 + + 27 + + - 51 * + 48 + + 21 col1
----
-2359

query I rowsort
SELECT + 20 - - - 93 + - - 76 + 55
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8468
SELECT + 64 + 27, COUNT( * ) + ( MAX( + + 53 ) ) AS col1
----
91
54

skipif mysql # not compatible
query II rowsort label-8468
SELECT + 64 + 27, COUNT ( * ) + ( MAX ( + + 53 ) ) AS col1
----
91
54

query I rowsort
SELECT DISTINCT - NULLIF ( + 36, - 42 ) AS col1
----
-36

query I rowsort
SELECT ALL - - 11 + + + 24
----
35

query I rowsort
SELECT 31 + - 98
----
-67

query III rowsort
SELECT ALL 45 col1, + 40 + - + 33 AS col1, - 13 * + 14
----
45
7
-182

query I rowsort
SELECT ALL 70 * + 63
----
4410

onlyif mysql # aggregate syntax: 
query II rowsort label-8474
SELECT ALL + MIN( DISTINCT + - 87 ) + - SUM( ALL - 7 ) * + 59 AS col1, + COUNT( * )
----
326
1

skipif mysql # not compatible
query II rowsort label-8474
SELECT ALL + MIN ( DISTINCT + - 87 ) + - SUM ( ALL - 7 ) * + 59 AS col1, + COUNT ( * )
----
326
1

query I rowsort
SELECT 56 * + 69
----
3864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8476
SELECT SUM( ALL - 30 ) DIV 21 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8476
SELECT SUM ( ALL - 30 ) / 21 AS col2
----
-1

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

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

query I rowsort
SELECT ALL - 82 * + + 0
----
0

query I rowsort
SELECT 37 + 73
----
110

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

skipif mysql # not compatible
query I rowsort label-8480
SELECT 46 * COUNT ( * )
----
46

query I rowsort
SELECT 53 + - - ( - 57 ) AS col0
----
-4

query I rowsort
SELECT 56 * - + 80 AS col2
----
-4480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8483
SELECT 10 DIV + + 68 * - ( - COUNT( * ) ) + - COUNT( * ) + + 11 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8483
SELECT 10 / + + 68 * - ( - COUNT ( * ) ) + - COUNT ( * ) + + 11 AS col1
----
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT COUNT( - - ( + - 3 ) ) + + 69
----
70

skipif mysql # not compatible
query I rowsort label-8485
SELECT COUNT ( - - ( + - 3 ) ) + + 69
----
70

query I rowsort
SELECT ( 61 ) * + 63 + 1 * + 82 + + 73 AS col2
----
3998

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT + COUNT( 48 )
----
1

skipif mysql # not compatible
query I rowsort label-8487
SELECT + COUNT ( 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL - MIN( - ( 7 ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - MIN ( - ( 7 ) ) AS col2
----
7

query I rowsort
SELECT + 12 * - + 5 + 77
----
17

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

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

query I rowsort
SELECT - 18 * + 54 AS col1
----
-972

query I rowsort
SELECT + 88 + - 54 * + + 26 AS col2
----
-1316

query I rowsort
SELECT DISTINCT + 31 * 46
----
1426

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT ALL + COUNT( * ) col2, NULLIF ( + + 59, + + 5 ) col1
----
1
59

skipif mysql # not compatible
query II rowsort label-8494
SELECT ALL + COUNT ( * ) col2, NULLIF ( + + 59, + + 5 ) col1
----
1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT - 97 * 80 + - 52 * COUNT( * )
----
-7812

skipif mysql # not compatible
query I rowsort label-8495
SELECT - 97 * 80 + - 52 * COUNT ( * )
----
-7812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8496
SELECT + CASE - COUNT( * ) WHEN - 14 * + 33 + MAX( + 21 ) THEN - + 74 WHEN + ( - 48 ) / COUNT( * ) - - + COUNT( * ) * - CAST( NULL AS SIGNED ) * - 3 / + 50 THEN + 25 - + - 51 + 80 / - CAST( NULL AS SIGNED ) END * + + 90 + 82 + COUNT( * ) + + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT + CASE - COUNT ( * ) WHEN - 14 * + 33 + MAX ( + 21 ) THEN - + 74 WHEN + ( - 48 ) / COUNT ( * ) - - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 3 / + 50 THEN + 25 - + - 51 + 80 / - CAST ( NULL AS INTEGER ) END * + + 90 + 82 + COUNT ( * ) + + + 57
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8497
SELECT DISTINCT 47 * - 9 + + 84 + - - 99 DIV - + 5 AS col2
----
-358

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT 47 * - 9 + + 84 + - - 99 / - + 5 AS col2
----
-358

query I rowsort
SELECT ALL 84 * - 39 * ( + 23 ) + 23
----
-75325

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT DISTINCT - 48 DIV 49 + - - 80
----
80

skipif mysql # not compatible
query I rowsort label-8499
SELECT DISTINCT - 48 / 49 + - - 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT ALL + COUNT( * ) + 26 * - - 86 AS col2
----
2237

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL + COUNT ( * ) + 26 * - - 86 AS col2
----
2237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8501
SELECT DISTINCT + CASE 56 WHEN + 66 THEN - - CASE 21 WHEN + 88 + - - SUM( + - 26 ) THEN + 85 WHEN + - MAX( DISTINCT + + ( + - 83 ) ) THEN - COALESCE ( - 39, - 54 * - 0 ) WHEN + + 28 / 46 THEN + 3 END END / - - CASE - COUNT( * ) WHEN + CAST( 39 AS SIGNED ) THEN NULL WHEN + 97 + - - 82 THEN + 99 END * 43 + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT + CASE 56 WHEN + 66 THEN - - CASE 21 WHEN + 88 + - - SUM ( + - 26 ) THEN + 85 WHEN + - MAX ( DISTINCT + + ( + - 83 ) ) THEN - COALESCE ( - 39, - 54 * - 0 ) WHEN + + 28 / 46 THEN + 3 END END / - - CASE - COUNT ( * ) WHEN + CAST ( 39 AS INTEGER ) THEN NULL WHEN + 97 + - - 82 THEN + 99 END * 43 + - 88
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8502
SELECT + 48 DIV - 69 + + 5
----
5

skipif mysql # not compatible
query I rowsort label-8502
SELECT + 48 / - 69 + + 5
----
5

query I rowsort
SELECT + 57 * + 95
----
5415

query I rowsort
SELECT DISTINCT - 54 * + + 94 AS col0
----
-5076

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT MIN( - + 21 ) * - 80 - 60 + 51 * + 9 + 16 * - COUNT( * ) AS col1
----
2063

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT MIN ( - + 21 ) * - 80 - 60 + 51 * + 9 + 16 * - COUNT ( * ) AS col1
----
2063

query II rowsort
SELECT DISTINCT 92 AS col0, 82 + - 59 + 38
----
92
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ALL COUNT( DISTINCT CASE - 74 WHEN - 92 + + 16 THEN + 59 * - 8 END ) - - 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL COUNT ( DISTINCT CASE - 74 WHEN - 92 + + 16 THEN + 59 * - 8 END ) - - 88 AS col0
----
88

query II rowsort
SELECT 4, 9 col1
----
4
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8509
SELECT DISTINCT NULLIF ( 81, 78 / 49 ) AS col2, 27 + + 81 * + COUNT( * ) + - - 80
----
81
188

skipif mysql # not compatible
query II rowsort label-8509
SELECT DISTINCT NULLIF ( 81, 78 / 49 ) AS col2, 27 + + 81 * + COUNT ( * ) + - - 80
----
81
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8510
SELECT ALL COUNT( * ) AS col0, - CASE + 7 WHEN + 18 + - - 89 THEN - COUNT( * ) ELSE NULL END * + ( + 66 ) * - COUNT( * ) / 88 * - 83 * + CASE + 53 WHEN - 65 THEN 45 * + - 8 + + + COALESCE ( - + 56, + - 24, - - CASE - 25 WHEN - + 60 * - - 2 THEN 66 + + + 81 WHEN 24 THEN NULL WHEN - CAST( 78 AS SIGNED ) THEN + 47 + - COUNT( * ) END + + 80 ) / - 75 ELSE NULL END / - 9 + + 13 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8510
SELECT ALL COUNT ( * ) AS col0, - CASE + 7 WHEN + 18 + - - 89 THEN - COUNT ( * ) ELSE NULL END * + ( + 66 ) * - COUNT ( * ) / 88 * - 83 * + CASE + 53 WHEN - 65 THEN 45 * + - 8 + + + COALESCE ( - + 56, + - 24, - - CASE - 25 WHEN - + 60 * - - 2 THEN 66 + + + 81 WHEN 24 THEN NULL WHEN - CAST ( 78 AS INTEGER ) THEN + 47 + - COUNT ( * ) END + + 80 ) / - 75 ELSE NULL END / - 9 + + 13 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT + 23 + - 60 + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-8511
SELECT + 23 + - 60 + COUNT ( * )
----
-36

query I rowsort
SELECT - ( + NULLIF ( 13, 81 * + + 61 ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT - COUNT( * ) + 91 * - + 52 + 3 + - 98
----
-4828

skipif mysql # not compatible
query I rowsort label-8513
SELECT - COUNT ( * ) + 91 * - + 52 + 3 + - 98
----
-4828

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT - 22 + + COUNT( * ) + 83
----
62

skipif mysql # not compatible
query I rowsort label-8514
SELECT - 22 + + COUNT ( * ) + 83
----
62

query I rowsort
SELECT ALL NULLIF ( - 42, - 61 )
----
-42

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

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

query II rowsort
SELECT 12 AS col2, 19 * 74 AS col1
----
12
1406

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

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8519
SELECT ALL + 24 DIV - + 14 AS col0, + 14 + - 16 + - CAST( NULL AS DECIMAL ) * 90 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8519
SELECT ALL + 24 / - + 14 AS col0, + 14 + - 16 + - CAST ( NULL AS REAL ) * 90 AS col2
----
-1
NULL

query I rowsort
SELECT - ( - 46 ) * + + 11 + 74 AS col1
----
580

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

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

query I rowsort
SELECT DISTINCT + 6 * NULLIF ( - + 86, ( + 85 ) )
----
-516

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8523
SELECT CAST( NULL AS SIGNED ) AS col1, + 29 col0
----
NULL
29

skipif mysql # not compatible
query II rowsort label-8523
SELECT CAST ( NULL AS INTEGER ) AS col1, + 29 col0
----
NULL
29

query I rowsort
SELECT + 33 * - 79 AS col1
----
-2607

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8525
SELECT + 70 DIV + 23 - 76 - + 0 * - 96 DIV - ( - COUNT( * ) ) + + ( 42 ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-8525
SELECT + 70 / + 23 - 76 - + 0 * - 96 / - ( - COUNT ( * ) ) + + ( 42 ) col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT - 16 * SUM( DISTINCT - 50 ) AS col2
----
800

skipif mysql # not compatible
query I rowsort label-8526
SELECT - 16 * SUM ( DISTINCT - 50 ) AS col2
----
800

query I rowsort
SELECT + - NULLIF ( + 17, - 91 ) * 8
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8528
SELECT ALL - - 2 DIV - COUNT( * ) + 64 + + 24, 29 * - 41 - + - 5 AS col0
----
86
-1184

skipif mysql # not compatible
query II rowsort label-8528
SELECT ALL - - 2 / - COUNT ( * ) + 64 + + 24, 29 * - 41 - + - 5 AS col0
----
86
-1184

query II rowsort
SELECT - ( + 21 ) AS col1, 36
----
-21
36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8531
SELECT CAST( - + 79 AS SIGNED ) AS col0, + 51
----
-79
51

skipif mysql # not compatible
query II rowsort label-8531
SELECT CAST ( - + 79 AS INTEGER ) AS col0, + 51
----
-79
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8532
SELECT ALL + 84 AS col1, + 54 * CAST( + 81 AS SIGNED ) AS col0, + - 20 DIV - COUNT( DISTINCT 92 ) AS col0
----
84
4374
20

skipif mysql # not compatible
query III rowsort label-8532
SELECT ALL + 84 AS col1, + 54 * CAST ( + 81 AS INTEGER ) AS col0, + - 20 / - COUNT ( DISTINCT 92 ) AS col0
----
84
4374
20

query I rowsort
SELECT - + 46 * + + 87 AS col1
----
-4002

onlyif mysql # aggregate syntax: 
query III rowsort label-8534
SELECT DISTINCT + + 27 AS col0, - COUNT( * ) AS col0, + 93 - 74
----
27
-1
19

skipif mysql # not compatible
query III rowsort label-8534
SELECT DISTINCT + + 27 AS col0, - COUNT ( * ) AS col0, + 93 - 74
----
27
-1
19

query I rowsort
SELECT ALL + - ( - 39 ) col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8536
SELECT + 61 * - 48 + - + 20 + + 1 DIV + COUNT( * ) + COUNT( * ) AS col1
----
-2946

skipif mysql # not compatible
query I rowsort label-8536
SELECT + 61 * - 48 + - + 20 + + 1 / + COUNT ( * ) + COUNT ( * ) AS col1
----
-2946

query I rowsort
SELECT + ( 83 ) * + 19 AS col0
----
1577

query I rowsort
SELECT 11 * - - 35 + ( - 47 ) + - 46 AS col0
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT + CASE + 12 WHEN - CASE - + 69 WHEN + 68 THEN NULL ELSE + + COUNT( * ) * - + 15 * - + 22 END * - 63 THEN NULL ELSE - + 9 END
----
-9

skipif mysql # not compatible
query I rowsort label-8539
SELECT + CASE + 12 WHEN - CASE - + 69 WHEN + 68 THEN NULL ELSE + + COUNT ( * ) * - + 15 * - + 22 END * - 63 THEN NULL ELSE - + 9 END
----
-9

query I rowsort
SELECT + - 20 + - 76 - + 51 AS col2
----
-147

query I rowsort
SELECT + - 14 * + + 27 AS col1
----
-378

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

query II rowsort
SELECT - ( - 62 ) * 28 + + 88 AS col2, 43
----
1824
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8544
SELECT ALL + + COALESCE ( + - 72, - 15, - + 25 * - 1 ) * + 59 * - 58 + + 21 - - COUNT( * ) DIV + NULLIF ( + - 24, + 65 * - 66 )
----
246405

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL + + COALESCE ( + - 72, - 15, - + 25 * - 1 ) * + 59 * - 58 + + 21 - - COUNT ( * ) / + NULLIF ( + - 24, + 65 * - 66 )
----
246405

query I rowsort
SELECT ALL 18 * + 52 - + 7 AS col0
----
929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8546
SELECT + ( - 42 ) - 63 DIV + COUNT( * ) col2
----
-105

skipif mysql # not compatible
query I rowsort label-8546
SELECT + ( - 42 ) - 63 / + COUNT ( * ) col2
----
-105

query I rowsort
SELECT + 41 * + - 94 * - - 20
----
-77080

onlyif mysql # DIV for integer division: 
query I rowsort label-8548
SELECT DISTINCT 52 DIV NULLIF ( - 39, 95 ) * 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT 52 / NULLIF ( - 39, 95 ) * 53 AS col0
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8549
SELECT + 17 * MIN( DISTINCT + + 31 ) DIV - 45
----
-11

skipif mysql # not compatible
query I rowsort label-8549
SELECT + 17 * MIN ( DISTINCT + + 31 ) / - 45
----
-11

query II rowsort
SELECT + 93 + - - 95 * - 87, 68 AS col1
----
-8172
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL + COUNT( * ) * + ( MIN( - 98 ) ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL + COUNT ( * ) * + ( MIN ( - 98 ) ) col2
----
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ( + + NULLIF ( + MIN( 82 ), + ( - 13 ) - 79 ) ) + - + ( COUNT( DISTINCT + 61 ) )
----
81

skipif mysql # not compatible
query I rowsort label-8553
SELECT ( + + NULLIF ( + MIN ( 82 ), + ( - 13 ) - 79 ) ) + - + ( COUNT ( DISTINCT + 61 ) )
----
81

query I rowsort
SELECT 0 + 55 AS col0
----
55

query I rowsort
SELECT 16 * - 36 AS col2
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT ALL 93 + - 5 * - CASE 77 WHEN ( - 33 ) THEN + 46 * AVG ( - 24 ) + + MIN( 89 ) + 43 END / + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL 93 + - 5 * - CASE 77 WHEN ( - 33 ) THEN + 46 * AVG ( - 24 ) + + MIN ( 89 ) + 43 END / + 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8557
SELECT ALL 6 + 30, + MAX( + - 45 ) * + 76 - 61 AS col2
----
36
-3481

skipif mysql # not compatible
query II rowsort label-8557
SELECT ALL 6 + 30, + MAX ( + - 45 ) * + 76 - 61 AS col2
----
36
-3481

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8558
SELECT ALL + - CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col1, + 73 AS col2
----
NULL
73

skipif mysql # not compatible
query II rowsort label-8558
SELECT ALL + - CAST ( NULL AS REAL ) + + COUNT ( * ) AS col1, + 73 AS col2
----
NULL
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8559
SELECT - 13 DIV 17 * - MIN( ALL - ( 63 ) ) + - ( 20 ) * + - COUNT( * ) * + - 95
----
-1900

skipif mysql # not compatible
query I rowsort label-8559
SELECT - 13 / 17 * - MIN ( ALL - ( 63 ) ) + - ( 20 ) * + - COUNT ( * ) * + - 95
----
-1900

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT 81 + NULLIF ( 52, 41 + COUNT( * ) * + COUNT( * ) ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-8560
SELECT 81 + NULLIF ( 52, 41 + COUNT ( * ) * + COUNT ( * ) ) AS col2
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8561
SELECT ALL + 29 + + 81 AS col2, ( - + 6 ) * + + MIN( ALL + 57 ) * - 82 DIV COUNT( * ) * - ( - 52 ) + - 48
----
110
1458240

skipif mysql # not compatible
query II rowsort label-8561
SELECT ALL + 29 + + 81 AS col2, ( - + 6 ) * + + MIN ( ALL + 57 ) * - 82 / COUNT ( * ) * - ( - 52 ) + - 48
----
110
1458240

query I rowsort
SELECT + 0 + + 7
----
7

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

skipif mysql # not compatible
query I rowsort label-8563
SELECT - 39 / + 77 * COUNT ( * ) AS col0
----
0

query II rowsort
SELECT 58 * 16, 8 AS col0
----
928
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL + 68 - - 68 + + COUNT( DISTINCT 26 ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL + 68 - - 68 + + COUNT ( DISTINCT 26 ) AS col2
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-8566
SELECT ALL - - MIN( DISTINCT + + 6 ) AS col2, COUNT( * ) + - 69 + 86 - + + 23 * + + SUM( - 12 ) AS col2
----
6
294

skipif mysql # not compatible
query II rowsort label-8566
SELECT ALL - - MIN ( DISTINCT + + 6 ) AS col2, COUNT ( * ) + - 69 + 86 - + + 23 * + + SUM ( - 12 ) AS col2
----
6
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 13 * + 91 * - 91 * 70 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 13 * + 91 * - 91 * 70 col0
----
NULL

query II rowsort
SELECT DISTINCT 46, + 10 col2
----
46
10

query I rowsort
SELECT ALL 11 * + 44
----
484

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT CAST( + ( + CASE - + 70 WHEN + 37 THEN - 80 END ) AS SIGNED ) * + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT CAST ( + ( + CASE - + 70 WHEN + 37 THEN - 80 END ) AS INTEGER ) * + + 57
----
NULL

query I rowsort
SELECT DISTINCT 46 * 63
----
2898

query II rowsort
SELECT ALL 6, 1 AS col2
----
6
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8574
SELECT - 7 AS col0, NULLIF ( + 74, 28 * - 16 - SUM( + 94 ) ) AS col1
----
-7
74

skipif mysql # not compatible
query II rowsort label-8574
SELECT - 7 AS col0, NULLIF ( + 74, 28 * - 16 - SUM ( + 94 ) ) AS col1
----
-7
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT ALL 34 DIV - - 62 col0
----
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL 34 / - - 62 col0
----
0

query II rowsort
SELECT 75, + 92 AS col0
----
75
92

query I rowsort
SELECT 97 + - + 75 col0
----
22

query I rowsort
SELECT DISTINCT 63 + + 75 AS col1
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8579
SELECT MAX( DISTINCT 64 ) * + CAST( - + 88 AS SIGNED )
----
-5632

skipif mysql # not compatible
query I rowsort label-8579
SELECT MAX ( DISTINCT 64 ) * + CAST ( - + 88 AS INTEGER )
----
-5632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8580
SELECT ( - 71 ) + - CAST( NULL AS SIGNED ) * - - 20 * - + CAST( NULL AS SIGNED ) + + CASE - 55 WHEN - 7 * + + MAX( ALL - + 40 ) THEN NULL WHEN + 88 THEN - - 45 + - COUNT( * ) + - 18 + + 98 END + 60, - 93 * - 59 * - 24 * - + 39 * - 62 AS col2
----
NULL
-318421584

skipif mysql # not compatible
query II rowsort label-8580
SELECT ( - 71 ) + - CAST ( NULL AS INTEGER ) * - - 20 * - + CAST ( NULL AS INTEGER ) + + CASE - 55 WHEN - 7 * + + MAX ( ALL - + 40 ) THEN NULL WHEN + 88 THEN - - 45 + - COUNT ( * ) + - 18 + + 98 END + 60, - 93 * - 59 * - 24 * - + 39 * - 62 AS col2
----
NULL
-318421584

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL 98 + - 15 + + MAX( - 25 ) * 50
----
-1167

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL 98 + - 15 + + MAX ( - 25 ) * 50
----
-1167

query I rowsort
SELECT 87 * 74 * - 67 * - - 85
----
-36664410

query I rowsort
SELECT DISTINCT 33 * 15
----
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8585
SELECT ( CAST( NULL AS SIGNED ) ) * - + 22 + COUNT( * ) + 31 + - + AVG ( ALL + 8 ) / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT ( CAST ( NULL AS INTEGER ) ) * - + 22 + COUNT ( * ) + 31 + - + AVG ( ALL + 8 ) / COUNT ( * ) AS col1
----
NULL

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

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

query II rowsort
SELECT ALL 40, + 34 * + + 69 - + 75 AS col0
----
40
2271

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

skipif mysql # not compatible
query I rowsort label-8588
SELECT - + MAX ( - - 18 )
----
-18

query I rowsort
SELECT ALL - 24 * + - 5 * - - NULLIF ( + + 84, + 27 )
----
10080

onlyif mysql # aggregate syntax: 
query II rowsort label-8590
SELECT DISTINCT 22 + + 55 + - COUNT( * ), 73 AS col1
----
76
73

skipif mysql # not compatible
query II rowsort label-8590
SELECT DISTINCT 22 + + 55 + - COUNT ( * ), 73 AS col1
----
76
73

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

skipif mysql # not compatible
query II rowsort label-8591
SELECT + 40, + CAST ( - - 49 AS INTEGER ) AS col2
----
40
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT DISTINCT - + SUM( ALL - 5 ) col2
----
5

skipif mysql # not compatible
query I rowsort label-8592
SELECT DISTINCT - + SUM ( ALL - 5 ) col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8593
SELECT ALL - + 2 DIV - - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL - + 2 / - - 28 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8594
SELECT ALL + + 90 - 59 DIV + 87 + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + + 90 - 59 / + 87 + COUNT ( * )
----
91

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

query I rowsort
SELECT ALL - + 10 * 55 * - 29 * + 44 AS col1
----
701800

onlyif mysql # aggregate syntax: 
query II rowsort label-8597
SELECT + 73 - + 85 * SUM( + + 80 ), 47 AS col2
----
-6727
47

skipif mysql # not compatible
query II rowsort label-8597
SELECT + 73 - + 85 * SUM ( + + 80 ), 47 AS col2
----
-6727
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT - CAST( + + CAST( - NULLIF ( + 58, 95 ) AS SIGNED ) AS SIGNED ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8598
SELECT - CAST ( + + CAST ( - NULLIF ( + 58, 95 ) AS INTEGER ) AS INTEGER ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8599
SELECT ALL + - SUM( ALL + + ( 27 ) ) * - 52 AS col1, 48
----
1404
48

skipif mysql # not compatible
query II rowsort label-8599
SELECT ALL + - SUM ( ALL + + ( 27 ) ) * - 52 AS col1, 48
----
1404
48

query I rowsort
SELECT 44 * + NULLIF ( 8, 66 ) AS col1
----
352

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT ALL + 65 DIV 30 col1
----
2

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL + 65 / 30 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT 66 + MAX( ALL - 86 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-8602
SELECT 66 + MAX ( ALL - 86 ) col1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-8603
SELECT ALL + 65 + + - COUNT( * ), NULLIF ( - + COUNT( * ), + NULLIF ( + - NULLIF ( + 64, - - COUNT( * ) ), + + 31 ) ) col0
----
64
-1

skipif mysql # not compatible
query II rowsort label-8603
SELECT ALL + 65 + + - COUNT ( * ), NULLIF ( - + COUNT ( * ), + NULLIF ( + - NULLIF ( + 64, - - COUNT ( * ) ), + + 31 ) ) col0
----
64
-1

query I rowsort
SELECT DISTINCT 93 * - - 47
----
4371

query I rowsort
SELECT DISTINCT - 2 + + 5 * 87 * 57 * 39 + + 85 + - 4 AS col0
----
967084

query I rowsort
SELECT - 10 * + 28 * - 81
----
22680

query I rowsort
SELECT + 16 + - 29 AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT ALL - 93 * CAST( NULL AS SIGNED ) / - - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - 93 * CAST ( NULL AS INTEGER ) / - - 19 AS col2
----
NULL

query II rowsort
SELECT + 33 * - 14 AS col0, 67 + - 84 + - ( 97 ) AS col0
----
-462
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT ALL + NULLIF ( - 87, + COUNT( * ) ) + + 75 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL + NULLIF ( - 87, + COUNT ( * ) ) + + 75 AS col2
----
-12

query I rowsort
SELECT DISTINCT - 75 * + + 10 * - ( ( - 10 ) ) * + 93 AS col2
----
-697500

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL COUNT( * ) + + ( + NULLIF ( - + 3, + 41 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL COUNT ( * ) + + ( + NULLIF ( - + 3, + 41 ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL 92 * + MIN( - CASE 95 WHEN 0 THEN - 51 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL 92 * + MIN ( - CASE 95 WHEN 0 THEN - 51 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8614
SELECT - MAX( DISTINCT + - 49 ) DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-8614
SELECT - MAX ( DISTINCT + - 49 ) / + 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8615
SELECT DISTINCT - 84 + 5 DIV + 13
----
-84

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT - 84 + 5 / + 13
----
-84

query I rowsort
SELECT DISTINCT - 75 * 39 * ( 31 ) col1
----
-90675

query I rowsort
SELECT DISTINCT ( - 89 ) + - 67
----
-156

query I rowsort
SELECT - 72 + - 27
----
-99

query I rowsort
SELECT DISTINCT 11 - + 97
----
-86

query I rowsort
SELECT - 85 * + 64 AS col0
----
-5440

query I rowsort
SELECT + - 82 + 65
----
-17

query I rowsort
SELECT + + 7 + 48
----
55

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

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

query I rowsort
SELECT ALL - 38 * - - 45 AS col1
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT + - 32 + + COUNT( * ) + - 88 * + 90 + 76 AS col1
----
-7875

skipif mysql # not compatible
query I rowsort label-8625
SELECT + - 32 + + COUNT ( * ) + - 88 * + 90 + 76 AS col1
----
-7875

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL + + CASE - 73 WHEN 83 / + 74 * 73 + 79 THEN - COALESCE ( + + 96, COUNT( * ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + + CASE - 73 WHEN 83 / + 74 * 73 + 79 THEN - COALESCE ( + + 96, COUNT ( * ) ) END col2
----
NULL

query I rowsort
SELECT - 67 * - 13 + + 79 col2
----
950

query I rowsort
SELECT DISTINCT 13 * - 53 * - - ( + - 78 )
----
53742

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT DISTINCT + 19 * + 24 * + COUNT( * ) AS col2
----
456

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT + 19 * + 24 * + COUNT ( * ) AS col2
----
456

query I rowsort
SELECT + + 8 * - - 78
----
624

query I rowsort
SELECT + 10 * + - 23 + + - 34 AS col2
----
-264

query I rowsort
SELECT - 84 + + + 16 AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8633
SELECT - NULLIF ( 87, + - ( - CASE + + 35 WHEN + - 50 THEN CASE - 96 WHEN + 38 THEN + ( - 13 ) * + 4 * + - 61 / + + 33 + + 45 WHEN 38 + - 40 + + CAST( - - 14 AS DECIMAL ) * - 13 THEN NULL END ELSE - - 91 / - ( - AVG ( ALL + 86 ) ) END ) + SUM( DISTINCT 53 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-8633
SELECT - NULLIF ( 87, + - ( - CASE + + 35 WHEN + - 50 THEN CASE - 96 WHEN + 38 THEN + ( - 13 ) * + 4 * + - 61 / + + 33 + + 45 WHEN 38 + - 40 + + CAST ( - - 14 AS REAL ) * - 13 THEN NULL END ELSE - - 91 / - ( - AVG ( ALL + 86 ) ) END ) + SUM ( DISTINCT 53 ) )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8634
SELECT ( - - MAX( - 45 ) ) * + ( + 63 ) * + CASE + - CAST( NULL AS SIGNED ) WHEN 6 / + 72 + - + 6 THEN NULL ELSE 40 END / + CASE 3 WHEN + + 76 + - COALESCE ( - 55, 83 ) / COUNT( * ) + CASE 10 WHEN + 1 * CASE + + 53 WHEN + 6 + + - 43 + COALESCE ( + 42, - - CASE + SUM( ALL 85 ) WHEN COALESCE ( - 65, 97 ) THEN + 45 + - 28 END ) + 26 THEN + NULLIF ( CAST( 90 AS SIGNED ), - 59 ) + COUNT( * ) END * - 35 + - COUNT( * ) * + 96 THEN ( COUNT( * ) ) END THEN NULL WHEN - 96 + 22 THEN - MAX( ALL - 0 ) * - 3 ELSE NULL END + + 5 + - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT ( - - MAX ( - 45 ) ) * + ( + 63 ) * + CASE + - CAST ( NULL AS INTEGER ) WHEN 6 / + 72 + - + 6 THEN NULL ELSE 40 END / + CASE 3 WHEN + + 76 + - COALESCE ( - 55, 83 ) / COUNT ( * ) + CASE 10 WHEN + 1 * CASE + + 53 WHEN + 6 + + - 43 + COALESCE ( + 42, - - CASE + SUM ( ALL 85 ) WHEN COALESCE ( - 65, 97 ) THEN + 45 + - 28 END ) + 26 THEN + NULLIF ( CAST ( 90 AS INTEGER ), - 59 ) + COUNT ( * ) END * - 35 + - COUNT ( * ) * + 96 THEN ( COUNT ( * ) ) END THEN NULL WHEN - 96 + 22 THEN - MAX ( ALL - 0 ) * - 3 ELSE NULL END + + 5 + - 70 AS col1
----
NULL

query I rowsort
SELECT + ( NULLIF ( - 35, - 3 / 57 ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT CASE WHEN + COALESCE ( 8, COUNT( * ) + - 62 ) IS NULL THEN NULL ELSE - 64 END AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8636
SELECT CASE WHEN + COALESCE ( 8, COUNT ( * ) + - 62 ) IS NULL THEN NULL ELSE - 64 END AS col2
----
-64

query I rowsort
SELECT ALL + ( + COALESCE ( + 72, - 86 ) ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL SUM( + 79 ) * CASE + - 29 WHEN - 98 + + - ( 29 ) THEN + + 84 * COUNT( * ) * + + 52 END * - 10 + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL SUM ( + 79 ) * CASE + - 29 WHEN - 98 + + - ( 29 ) THEN + + 84 * COUNT ( * ) * + + 52 END * - 10 + - 66
----
NULL

query II rowsort
SELECT COALESCE ( + + 77, - 9 ), COALESCE ( + 74, + 90 * - 22 * - - NULLIF ( - + 40, + 16 ) + - 19 ) AS col0
----
77
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8640
SELECT ALL 70 DIV - - 18
----
3

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL 70 / - - 18
----
3

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

query I rowsort
SELECT ALL + 61 * + 88
----
5368

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8644
SELECT ALL COALESCE ( - + 28, - 40 - + 13 DIV - - ( + - 41 ) ) AS col2, - 31 + - 20
----
-28
-51

skipif mysql # not compatible
query II rowsort label-8644
SELECT ALL COALESCE ( - + 28, - 40 - + 13 / - - ( + - 41 ) ) AS col2, - 31 + - 20
----
-28
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT ALL + 89 * + + 41 + 90 - + 21 * + SUM( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL + 89 * + + 41 + 90 - + 21 * + SUM ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8646
SELECT - ( + - CASE + 20 WHEN + 53 THEN - 10 WHEN + + 24 THEN NULL END ) - - 46 * - COUNT( * ) AS col0, 54 + + 16
----
NULL
70

skipif mysql # not compatible
query II rowsort label-8646
SELECT - ( + - CASE + 20 WHEN + 53 THEN - 10 WHEN + + 24 THEN NULL END ) - - 46 * - COUNT ( * ) AS col0, 54 + + 16
----
NULL
70

query I rowsort
SELECT ALL 86 * + + 19
----
1634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8648
SELECT - CAST( - 29 AS SIGNED ) + + CAST( - AVG ( ALL + 97 ) AS SIGNED ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-8648
SELECT - CAST ( - 29 AS INTEGER ) + + CAST ( - AVG ( ALL + 97 ) AS INTEGER ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL - 98 + - - COUNT( * ) * - 20
----
-118

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL - 98 + - - COUNT ( * ) * - 20
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-8650
SELECT ALL ( + + SUM( ALL - 83 ) ) AS col1, - 53
----
-83
-53

skipif mysql # not compatible
query II rowsort label-8650
SELECT ALL ( + + SUM ( ALL - 83 ) ) AS col1, - 53
----
-83
-53

query I rowsort
SELECT ALL NULLIF ( + + 29, 19 / + 29 + - - 45 )
----
29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT DISTINCT COALESCE ( - + COALESCE ( + + 50, ( + CAST( + - COUNT( * ) AS SIGNED ) ), + SUM( ALL - + 14 ) ), - + 2 )
----
-50

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT COALESCE ( - + COALESCE ( + + 50, ( + CAST ( + - COUNT ( * ) AS INTEGER ) ), + SUM ( ALL - + 14 ) ), - + 2 )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8654
SELECT - 26 + 20 DIV - + 48
----
-26

skipif mysql # not compatible
query I rowsort label-8654
SELECT - 26 + 20 / - + 48
----
-26

query I rowsort
SELECT DISTINCT - - 61 * 39 AS col2
----
2379

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL + 42 * 98 + + ( MAX( ALL - - 95 ) ) * - + 60 AS col2
----
-1584

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL + 42 * 98 + + ( MAX ( ALL - - 95 ) ) * - + 60 AS col2
----
-1584

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

skipif mysql # not compatible
query II rowsort label-8657
SELECT - - COUNT ( * ) AS col2, 8
----
1
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8658
SELECT DISTINCT 45 - + 55 * + - COUNT( * ), COUNT( * ) DIV - 77 + 6 + + 4 + - - 10 * COUNT( * ) * - - 89 * + 58 AS col2
----
100
51630

skipif mysql # not compatible
query II rowsort label-8658
SELECT DISTINCT 45 - + 55 * + - COUNT ( * ), COUNT ( * ) / - 77 + 6 + + 4 + - - 10 * COUNT ( * ) * - - 89 * + 58 AS col2
----
100
51630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8659
SELECT - - 87 * CAST( COALESCE ( 35, - MAX( - - ( + 14 ) ) ) AS SIGNED )
----
3045

skipif mysql # not compatible
query I rowsort label-8659
SELECT - - 87 * CAST ( COALESCE ( 35, - MAX ( - - ( + 14 ) ) ) AS INTEGER )
----
3045

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

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL + + CAST ( NULL AS INTEGER ) * + 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8661
SELECT - ( - CAST( NULL AS SIGNED ) ) * + 96 / + ( + - 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT - ( - CAST ( NULL AS INTEGER ) ) * + 96 / + ( + - 62 ) AS col2
----
NULL

query I rowsort
SELECT + 55 * - 17 AS col0
----
-935

query I rowsort
SELECT ALL + + ( - + 43 ) AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8664
SELECT 35 DIV - 64 - 76 - + 22 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-8664
SELECT 35 / - 64 - 76 - + 22 AS col0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8665
SELECT + + 71 DIV - + 34 col2
----
-2

skipif mysql # not compatible
query I rowsort label-8665
SELECT + + 71 / - + 34 col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8666
SELECT ALL + COUNT( * ) DIV + 13 + - + 84 - + - 2 * ( - MIN( DISTINCT 57 ) )
----
-198

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL + COUNT ( * ) / + 13 + - + 84 - + - 2 * ( - MIN ( DISTINCT 57 ) )
----
-198

query I rowsort
SELECT + + 60 - + 70
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8668
SELECT ALL + COUNT( * ), COALESCE ( + COUNT( * ), - ( - CASE + - 66 WHEN + + 46 THEN + 66 + 66 WHEN - - 87 + + 74 THEN NULL END ) * - - 68 * - + 73 * 20 + - CAST( + 7 AS SIGNED ), 20, 22 ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8668
SELECT ALL + COUNT ( * ), COALESCE ( + COUNT ( * ), - ( - CASE + - 66 WHEN + + 46 THEN + 66 + 66 WHEN - - 87 + + 74 THEN NULL END ) * - - 68 * - + 73 * 20 + - CAST ( + 7 AS INTEGER ), 20, 22 ) col1
----
1
1

query II rowsort
SELECT + ( - + 47 ) AS col2, - 34 * + 24 + + 18
----
-47
-798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8670
SELECT ALL COUNT( * ) DIV 18 + - - 93
----
93

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL COUNT ( * ) / 18 + - - 93
----
93

query I rowsort
SELECT ALL 35 + - + 43 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT MIN( - 99 ) - + 56 AS col1
----
-155

skipif mysql # not compatible
query I rowsort label-8672
SELECT MIN ( - 99 ) - + 56 AS col1
----
-155

query I rowsort
SELECT ALL 46 * + 32 col0
----
1472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8674
SELECT 2 * - 18 + COALESCE ( - 17, - 72 / + 17 * CAST( 21 AS SIGNED ) + + + 9 + - 62 - 28 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8674
SELECT 2 * - 18 + COALESCE ( - 17, - 72 / + 17 * CAST ( 21 AS INTEGER ) + + + 9 + - 62 - 28 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 22 + 40 + - 62 AS col0
----
0

query II rowsort
SELECT DISTINCT - 39 AS col1, - 59 - - + 75 * 36
----
-39
2641

query I rowsort
SELECT ( + - COALESCE ( 27, + 96 ) ) * - 30 * + 63 * - 81 * + 63 + 69
----
-260406021

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT 91 + - 5 + + 29 * - 93 + + - NULLIF ( + COUNT( * ), + + 64 )
----
-2612

skipif mysql # not compatible
query I rowsort label-8678
SELECT 91 + - 5 + + 29 * - 93 + + - NULLIF ( + COUNT ( * ), + + 64 )
----
-2612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8679
SELECT DISTINCT - 29, 34 * - - CAST( - 8 AS SIGNED ) * + ( - ( + COUNT( * ) ) ) + + + COUNT( * ) AS col2
----
-29
273

skipif mysql # not compatible
query II rowsort label-8679
SELECT DISTINCT - 29, 34 * - - CAST ( - 8 AS INTEGER ) * + ( - ( + COUNT ( * ) ) ) + + + COUNT ( * ) AS col2
----
-29
273

onlyif mysql # aggregate syntax: 
query II rowsort label-8680
SELECT 39 * + 50 + + 66 * COUNT( * ) AS col0, CASE - 18 WHEN + + AVG ( - 38 ) * COUNT( * ) * - + COUNT( * ) THEN 14 END AS col1
----
2016
NULL

skipif mysql # not compatible
query II rowsort label-8680
SELECT 39 * + 50 + + 66 * COUNT ( * ) AS col0, CASE - 18 WHEN + + AVG ( - 38 ) * COUNT ( * ) * - + COUNT ( * ) THEN 14 END AS col1
----
2016
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL 39 - - ( + + COUNT( * ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL 39 - - ( + + COUNT ( * ) ) AS col1
----
40

query I rowsort
SELECT DISTINCT + 12 * + + 98
----
1176

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8683
SELECT ALL NULLIF ( + 69, 53 DIV - CAST( - 5 AS SIGNED ) + + 26 ) DIV - 37 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL NULLIF ( + 69, 53 / - CAST ( - 5 AS INTEGER ) + + 26 ) / - 37 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL NULLIF ( - 56, + CASE + COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN + 52 THEN + 34 ELSE + 74 END ) * - 62
----
3472

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL NULLIF ( - 56, + CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN + 52 THEN + 34 ELSE + 74 END ) * - 62
----
3472

query I rowsort
SELECT ( - + 25 ) * 18 - + 12
----
-462

query I rowsort
SELECT 35 + + 10 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT + NULLIF ( - 23, - + NULLIF ( - + COUNT( * ), 51 ) ) * - 88
----
2024

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT + NULLIF ( - 23, - + NULLIF ( - + COUNT ( * ), 51 ) ) * - 88
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ( - SUM( DISTINCT + 38 ) ) * + 24
----
-912

skipif mysql # not compatible
query I rowsort label-8688
SELECT ( - SUM ( DISTINCT + 38 ) ) * + 24
----
-912

query I rowsort
SELECT ALL - 2 * + 74 * 53
----
-7844

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - MIN( ALL 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-8690
SELECT - MIN ( ALL 8 ) AS col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-8691
SELECT ALL - - 95 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL - - 95 / - 98
----
0

query I rowsort
SELECT - 17 * 75 * - 66 AS col2
----
84150

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT + NULLIF ( - + 90, + COUNT( * ) - 11 * 87 ) - + - 79
----
-11

skipif mysql # not compatible
query I rowsort label-8693
SELECT + NULLIF ( - + 90, + COUNT ( * ) - 11 * 87 ) - + - 79
----
-11

query I rowsort
SELECT 60 + 19 * - ( - - 31 ) + ( 51 ) + - 7 * - 77
----
61

query I rowsort
SELECT + 83 * - - 94
----
7802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8696
SELECT ( - 84 ) * CAST( NULL AS SIGNED ) + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8696
SELECT ( - 84 ) * CAST ( NULL AS INTEGER ) + 46 AS col1
----
NULL

query I rowsort
SELECT ALL + + 91 + + + 42
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT - 92 + + CASE ( - 68 ) WHEN + 44 THEN + 77 * - + 37 * + COUNT( 37 ) ELSE + 57 END * - 36
----
-2144

skipif mysql # not compatible
query I rowsort label-8698
SELECT - 92 + + CASE ( - 68 ) WHEN + 44 THEN + 77 * - + 37 * + COUNT ( 37 ) ELSE + 57 END * - 36
----
-2144

query II rowsort
SELECT - + 96 AS col1, + 54
----
-96
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL - 94 + 33 + NULLIF ( + + 12, + + COUNT( * ) ) + + - 98 col1
----
-147

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - 94 + 33 + NULLIF ( + + 12, + + COUNT ( * ) ) + + - 98 col1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT + COUNT( + 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8701
SELECT + COUNT ( + 86 ) AS col0
----
1

query I rowsort
SELECT ALL + - 24 * 84 AS col2
----
-2016

query I rowsort
SELECT ALL 59 + - 45 + 50 AS col0
----
64

query I rowsort
SELECT DISTINCT + 92 * - + 62
----
-5704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT DISTINCT + SUM( - CAST( NULL AS SIGNED ) ) + - + 38 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + SUM ( - CAST ( NULL AS INTEGER ) ) + - + 38 * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 78 + 82 AS col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT ALL NULLIF ( - 61, COUNT( - - 20 ) * - 16 ) + - 39 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL NULLIF ( - 61, COUNT ( - - 20 ) * - 16 ) + - 39 AS col0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8708
SELECT 33 DIV + COUNT( * ) + 38 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8708
SELECT 33 / + COUNT ( * ) + 38 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8709
SELECT 10 + 72 - CASE - + AVG ( DISTINCT - CAST( 27 AS SIGNED ) ) WHEN - 86 + + 25 THEN + 80 * - 64 END * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8709
SELECT 10 + 72 - CASE - + AVG ( DISTINCT - CAST ( 27 AS INTEGER ) ) WHEN - 86 + + 25 THEN + 80 * - 64 END * - 30
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8710
SELECT ALL 99 + + + CAST( NULL AS DECIMAL ) + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL 99 + + + CAST ( NULL AS REAL ) + - 11
----
NULL

query I rowsort
SELECT 81 * 13 col2
----
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT 17 * 53 * COALESCE ( - 40, + - 99 + + 96 + + 59, - + MAX( DISTINCT - + 94 ) )
----
-36040

skipif mysql # not compatible
query I rowsort label-8712
SELECT 17 * 53 * COALESCE ( - 40, + - 99 + + 96 + + 59, - + MAX ( DISTINCT - + 94 ) )
----
-36040

query I rowsort
SELECT - 84 * + + 92 + + 43 AS col0
----
-7685

query II rowsort
SELECT 91 * - 61 AS col0, + 85
----
-5551
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8715
SELECT DISTINCT - NULLIF ( + NULLIF ( + 18, - 95 + + ( + 0 ) ), + CAST( NULL AS SIGNED ) + + + CASE + + 69 WHEN - + 20 + 62 + - ( + 57 ) / - - ( - 31 ) THEN - 93 + + 66 WHEN + 59 + + ( - COUNT( * ) ) THEN NULL WHEN + 75 + + 45 THEN NULL ELSE - CAST( NULL AS SIGNED ) END * + + CAST( + 63 AS SIGNED ) )
----
-18

skipif mysql # not compatible
query I rowsort label-8715
SELECT DISTINCT - NULLIF ( + NULLIF ( + 18, - 95 + + ( + 0 ) ), + CAST ( NULL AS INTEGER ) + + + CASE + + 69 WHEN - + 20 + 62 + - ( + 57 ) / - - ( - 31 ) THEN - 93 + + 66 WHEN + 59 + + ( - COUNT ( * ) ) THEN NULL WHEN + 75 + + 45 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END * + + CAST ( + 63 AS INTEGER ) )
----
-18

query I rowsort
SELECT 7 * + 30 AS col2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT + MAX( + + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-8717
SELECT + MAX ( + + 99 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8718
SELECT NULLIF ( - - 57, - 75 + + - ( 62 ) * - + COUNT( DISTINCT - 25 ) * - 84 * COUNT( * ) - 68 ) * 59 * + 14 AS col1, - 74 AS col0
----
47082
-74

skipif mysql # not compatible
query II rowsort label-8718
SELECT NULLIF ( - - 57, - 75 + + - ( 62 ) * - + COUNT ( DISTINCT - 25 ) * - 84 * COUNT ( * ) - 68 ) * 59 * + 14 AS col1, - 74 AS col0
----
47082
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8719
SELECT CAST( NULL AS SIGNED ) * 10 AS col2, NULLIF ( - 59, + + 73 / + 9 ) * + - 91
----
NULL
5369

skipif mysql # not compatible
query II rowsort label-8719
SELECT CAST ( NULL AS INTEGER ) * 10 AS col2, NULLIF ( - 59, + + 73 / + 9 ) * + - 91
----
NULL
5369

query I rowsort
SELECT - 74 * 5 * - 2 AS col2
----
740

query I rowsort
SELECT 98 + - 84 - - 56 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8722
SELECT DISTINCT 89 + - CASE + - 1 WHEN MIN( + 65 ) THEN - MAX( + 80 ) * - 64 WHEN + 62 * - CAST( NULL AS SIGNED ) THEN 34 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT 89 + - CASE + - 1 WHEN MIN ( + 65 ) THEN - MAX ( + 80 ) * - 64 WHEN + 62 * - CAST ( NULL AS INTEGER ) THEN 34 END AS col0
----
NULL

query I rowsort
SELECT ALL + + 89 + 11
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT DISTINCT - 65 + - 30 + + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT - 65 + - 30 + + COUNT ( * )
----
-94

query I rowsort
SELECT DISTINCT + 96 + + + 0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT ALL + COUNT( * ) + NULLIF ( + + 88, 84 )
----
89

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + COUNT ( * ) + NULLIF ( + + 88, 84 )
----
89

query II rowsort
SELECT DISTINCT - 16 + - + 96 col2, 97 AS col2
----
-112
97

query I rowsort
SELECT ALL + 57 + + 94 + + - 61 * 74 AS col0
----
-4363

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8729
SELECT - - MAX( DISTINCT + - 43 ), - 5 DIV - 94 AS col0
----
-43
0

skipif mysql # not compatible
query II rowsort label-8729
SELECT - - MAX ( DISTINCT + - 43 ), - 5 / - 94 AS col0
----
-43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT - ( - ( + MIN( + - 7 ) ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8730
SELECT - ( - ( + MIN ( + - 7 ) ) ) AS col2
----
-7

query I rowsort
SELECT ALL + NULLIF ( - 28, 17 ) AS col1
----
-28

query I rowsort
SELECT + CASE - 46 WHEN + 44 THEN - + 51 END AS col1
----
NULL

query I rowsort
SELECT - 17 * - 40 * - 13 * - 23 AS col1
----
203320

query I rowsort
SELECT NULLIF ( + + 5, + 50 )
----
5

query II rowsort
SELECT + 46, - 93 AS col1
----
46
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT - COUNT( * ) - + CASE + 95 WHEN + 84 * - 51 THEN - 80 + MIN( - + 42 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8736
SELECT - COUNT ( * ) - + CASE + 95 WHEN + 84 * - 51 THEN - 80 + MIN ( - + 42 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT NULLIF ( + 55, MIN( DISTINCT 30 ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8737
SELECT NULLIF ( + 55, MIN ( DISTINCT 30 ) ) AS col2
----
55

query I rowsort
SELECT - 81 - - + 77
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8739
SELECT ALL 55 * CAST( NULL AS SIGNED ) * + 27 - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL 55 * CAST ( NULL AS INTEGER ) * + 27 - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 39 * + + 52 AS col2
----
-2028

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL - COUNT( * ) * - 70 * - - 35 AS col2
----
2450

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - COUNT ( * ) * - 70 * - - 35 AS col2
----
2450

onlyif mysql # aggregate syntax: 
query II rowsort label-8742
SELECT + 80 * 76 + + + 73 col2, 55 * COUNT( * ) * 13 * + - 21 + + 46 + + 30 * - COUNT( * ) AS col1
----
6153
-14999

skipif mysql # not compatible
query II rowsort label-8742
SELECT + 80 * 76 + + + 73 col2, 55 * COUNT ( * ) * 13 * + - 21 + + 46 + + 30 * - COUNT ( * ) AS col1
----
6153
-14999

query I rowsort
SELECT - 27 - - + 84 AS col2
----
57

query I rowsort
SELECT ALL + CASE - 39 WHEN + - 49 THEN - + 69 WHEN + 44 THEN NULL END
----
NULL

query I rowsort
SELECT 76 * + 61 + + 53 * + 45 AS col1
----
7021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT 40 * - + CAST( - - 87 AS SIGNED ) - 98 AS col2
----
-3578

skipif mysql # not compatible
query I rowsort label-8746
SELECT 40 * - + CAST ( - - 87 AS INTEGER ) - 98 AS col2
----
-3578

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT - 15 DIV - - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8747
SELECT - 15 / - - 51 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT DISTINCT - 94 DIV - 11 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT - 94 / - 11 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8749
SELECT DISTINCT 44 / + + 85 * CAST( - 30 AS SIGNED ) * - CAST( NULL AS DECIMAL ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT 44 / + + 85 * CAST ( - 30 AS INTEGER ) * - CAST ( NULL AS REAL ) * 78
----
NULL

query I rowsort
SELECT + 56 * - 93 AS col2
----
-5208

query I rowsort
SELECT - 68 + 22 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ALL + NULLIF ( SUM( - 11 ), + - 67 + 1 - - 73 + + 95 ) col1
----
-11

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL + NULLIF ( SUM ( - 11 ), + - 67 + 1 - - 73 + + 95 ) col1
----
-11

query I rowsort
SELECT 16 * 81 * + + 5 * + ( + + 24 ) + + + 37 + - + 33 AS col0
----
155524

query I rowsort
SELECT ALL - 50 * - ( - 32 ) + + + 81 + + 55 + - 94 + ( 49 ) AS col0
----
-1509

query I rowsort
SELECT + 8 * 25 * - CASE 35 WHEN + 72 THEN NULL WHEN + 59 * + 38 THEN COALESCE ( 12, - + 17 ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT - 93 AS col0, + 23 - - 53 AS col0
----
-93
76

query I rowsort
SELECT ALL 91 + + 42
----
133

query II rowsort
SELECT ALL 96 + 45 * - + 41, - 38 + + + 16 AS col0
----
-1749
-22

query II rowsort
SELECT + 32 AS col1, + 94
----
32
94

query I rowsort
SELECT + - ( + + 7 ) + 61 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL - 67 + - COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL - 67 + - COUNT ( * ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT ALL - 9 + + COUNT( * ) + - COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL - 9 + + COUNT ( * ) + - COUNT ( * ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT COUNT( - 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT COUNT ( - 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT ALL 41 + - - COUNT( * ) col2
----
42

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL 41 + - - COUNT ( * ) col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8765
SELECT ALL NULLIF ( COUNT( * ), + 61 ) AS col1, - 58
----
1
-58

skipif mysql # not compatible
query II rowsort label-8765
SELECT ALL NULLIF ( COUNT ( * ), + 61 ) AS col1, - 58
----
1
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT + 54 + - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-8766
SELECT + 54 + - COUNT ( * )
----
53

query I rowsort
SELECT + + 48 * + + 40 AS col2
----
1920

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT - ( - COUNT( DISTINCT - - 91 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8768
SELECT - ( - COUNT ( DISTINCT - - 91 ) )
----
1

query I rowsort
SELECT - 70 * + 12 AS col1
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + SUM( ALL + 97 ) + - + 25
----
72

skipif mysql # not compatible
query I rowsort label-8770
SELECT + SUM ( ALL + 97 ) + - + 25
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8771
SELECT DISTINCT COALESCE ( - COUNT( * ), 48 DIV - 40 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT COALESCE ( - COUNT ( * ), 48 / - 40 ) AS col1
----
-1

query I rowsort
SELECT - 76 * - 54 + - + 31
----
4073

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT - 51 DIV 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8773
SELECT - 51 / 76 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8774
SELECT CAST( - + 86 AS SIGNED ) AS col1, 78 - + + 1 DIV 62 AS col1
----
-86
78

skipif mysql # not compatible
query II rowsort label-8774
SELECT CAST ( - + 86 AS INTEGER ) AS col1, 78 - + + 1 / 62 AS col1
----
-86
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL + COUNT( ALL 24 )
----
1

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + COUNT ( ALL 24 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT ( + + MIN( ALL - 72 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-8776
SELECT ( + + MIN ( ALL - 72 ) )
----
-72

query I rowsort
SELECT + 74 * - - 37
----
2738

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT - 99 * + - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT - 99 * + - COUNT ( * )
----
99

query I rowsort
SELECT ALL + ( + NULLIF ( 54, + 85 ) )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT - CAST( NULL AS SIGNED ) * 76 + - + 30 + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT - CAST ( NULL AS INTEGER ) * 76 + - + 30 + - 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8781
SELECT DISTINCT + CASE - 4 WHEN 80 * 52 + 53 THEN SUM( + CAST( NULL AS DECIMAL ) ) WHEN 36 THEN CAST( + - 52 AS SIGNED ) + + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT + CASE - 4 WHEN 80 * 52 + 53 THEN SUM ( + CAST ( NULL AS REAL ) ) WHEN 36 THEN CAST ( + - 52 AS INTEGER ) + + 80 END
----
NULL

query I rowsort
SELECT - 13 - 0 col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT + 46 * + - COUNT( * ) + + 64
----
18

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT + 46 * + - COUNT ( * ) + + 64
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8784
SELECT ALL CAST( NULL AS SIGNED ) * + + COUNT( * ) * - 78 + + - 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * - 78 + + - 86 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8785
SELECT ALL + COUNT( 74 ) DIV - COUNT( * ) + - 79 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + COUNT ( 74 ) / - COUNT ( * ) + - 79 AS col2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT DISTINCT + 49 * COALESCE ( - - 93, + 86 DIV + 26 + - 65 ) col1
----
4557

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + 49 * COALESCE ( - - 93, + 86 / + 26 + - 65 ) col1
----
4557

query I rowsort
SELECT ALL + NULLIF ( - + 85, + + 18 ) + - 91 AS col1
----
-176

onlyif mysql # aggregate syntax: 
query II rowsort label-8788
SELECT ALL COUNT( * ) + 55 AS col0, MAX( + + 25 ) * + + 56 + + 32
----
56
1432

skipif mysql # not compatible
query II rowsort label-8788
SELECT ALL COUNT ( * ) + 55 AS col0, MAX ( + + 25 ) * + + 56 + + 32
----
56
1432

query I rowsort
SELECT ALL + 57 + - - 73
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT DISTINCT + COUNT( * ) * + ( + 79 ) * + - 21 AS col1
----
-1659

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT + COUNT ( * ) * + ( + 79 ) * + - 21 AS col1
----
-1659

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT DISTINCT - 57 * - CAST( + 33 AS SIGNED ) AS col0
----
1881

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT - 57 * - CAST ( + 33 AS INTEGER ) AS col0
----
1881

query I rowsort
SELECT 94 + + 96 * + 90 * 81 AS col1
----
699934

query I rowsort
SELECT 90 + 71 AS col2
----
161

query II rowsort
SELECT - 8, 82 AS col1
----
-8
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8795
SELECT DISTINCT COUNT( ALL - 49 ) * 82 * 9 * + COUNT( * ) - + - 5, MAX( + 83 ) + - - COUNT( * ) * + 59 * + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
743
142

skipif mysql # not compatible
query II rowsort label-8795
SELECT DISTINCT COUNT ( ALL - 49 ) * 82 * 9 * + COUNT ( * ) - + - 5, MAX ( + 83 ) + - - COUNT ( * ) * + 59 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
743
142

onlyif mysql # aggregate syntax: 
query II rowsort label-8796
SELECT DISTINCT CASE - + ( 35 ) WHEN 51 THEN 1 / + 10 + - 63 * + - 23 + - 97 WHEN + + 68 THEN NULL END * COUNT( * ) * + + COALESCE ( + + 18, 11, SUM( - 19 ) / - COUNT( * ) ) * 16 + + - 30 / 86 AS col0, - 11 col1
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-8796
SELECT DISTINCT CASE - + ( 35 ) WHEN 51 THEN 1 / + 10 + - 63 * + - 23 + - 97 WHEN + + 68 THEN NULL END * COUNT ( * ) * + + COALESCE ( + + 18, 11, SUM ( - 19 ) / - COUNT ( * ) ) * 16 + + - 30 / 86 AS col0, - 11 col1
----
NULL
-11

query I rowsort
SELECT 45 * - 2
----
-90

query I rowsort
SELECT COALESCE ( - ( - 14 ), + ( - NULLIF ( 71, - + 96 + - 58 ) ), + - 77 * - 33 - - - 7 ) - - - 64 AS col1
----
-50

query II rowsort
SELECT + 68 AS col2, 40 * - - 20
----
68
800

query I rowsort
SELECT ALL 62 + + 69 AS col1
----
131

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8801
SELECT 76 * - ( + CAST( NULL AS DECIMAL ) ) - 34 + + 88 / - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT 76 * - ( + CAST ( NULL AS REAL ) ) - 34 + + 88 / - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL + COUNT( * ) + + + COUNT( * ) + + MAX( ALL 12 ) - - 17 + + + 19 * 0 + - 1
----
30

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) + + MAX ( ALL 12 ) - - 17 + + + 19 * 0 + - 1
----
30

query I rowsort
SELECT DISTINCT ( - 93 ) + - + 9 * - 79 AS col0
----
618

query I rowsort
SELECT ALL - 77 + + 27
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8805
SELECT DISTINCT + 22 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT + 22 / + 28
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8806
SELECT ALL CAST( NULL AS SIGNED ) + - + 15 + - COALESCE ( + ( 31 ), + COUNT( ALL + - NULLIF ( + 35, - 35 ) ) ) - 65 + + + NULLIF ( CASE - 71 WHEN - - 85 + COUNT( * ) * 28 THEN NULL ELSE + + ( + 8 ) * - 7 / - SUM( ALL + 18 ) + 20 END, - 29 + 0 ) / - AVG ( + 98 ) * + + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL CAST ( NULL AS INTEGER ) + - + 15 + - COALESCE ( + ( 31 ), + COUNT ( ALL + - NULLIF ( + 35, - 35 ) ) ) - 65 + + + NULLIF ( CASE - 71 WHEN - - 85 + COUNT ( * ) * 28 THEN NULL ELSE + + ( + 8 ) * - 7 / - SUM ( ALL + 18 ) + 20 END, - 29 + 0 ) / - AVG ( + 98 ) * + + 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT - 67 - - COUNT( * ) * - + 12 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-8807
SELECT - 67 - - COUNT ( * ) * - + 12 AS col1
----
-79

query I rowsort
SELECT + 74 * + + 27 * + - 45 + + 87
----
-89823

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT + COUNT( + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-8809
SELECT + COUNT ( + 3 )
----
1

query I rowsort
SELECT + 34 + - - 71
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-8811
SELECT + - CASE 58 WHEN 68 + - + 84 + - 71 - + 22 + + + ( + 73 ) THEN - 71 + 7 * + ( + 49 ) * 17 END, 93 - COUNT( ALL + - 37 ) AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-8811
SELECT + - CASE 58 WHEN 68 + - + 84 + - 71 - + 22 + + + ( + 73 ) THEN - 71 + 7 * + ( + 49 ) * 17 END, 93 - COUNT ( ALL + - 37 ) AS col0
----
NULL
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8812
SELECT 72 * + + 90 + + 40 DIV + 94 AS col1
----
6480

skipif mysql # not compatible
query I rowsort label-8812
SELECT 72 * + + 90 + + 40 / + 94 AS col1
----
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT + 9 * - 76 + - 96 * 9 + + + 49 * + + COUNT( * ) + - 31
----
-1530

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT + 9 * - 76 + - 96 * 9 + + + 49 * + + COUNT ( * ) + - 31
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL - MIN( DISTINCT 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - MIN ( DISTINCT 47 ) AS col0
----
-47

query I rowsort
SELECT - 83 * + - 68
----
5644

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT MAX( DISTINCT + 43 ) + 89
----
132

skipif mysql # not compatible
query I rowsort label-8816
SELECT MAX ( DISTINCT + 43 ) + 89
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT DISTINCT + + COUNT( * ) - + - 10 * - 95 + + + 17
----
-932

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT + + COUNT ( * ) - + - 10 * - 95 + + + 17
----
-932

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT ( + + MAX( DISTINCT + 76 ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT ( + + MAX ( DISTINCT + 76 ) ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT NULLIF ( - 36, + 17 * - 78 * + AVG ( + + 23 ) + - ( + 95 ) + + 91 ) * + + COUNT( * ) * - COUNT( * ) * - - 16 + - 38 AS col1
----
538

skipif mysql # not compatible
query I rowsort label-8819
SELECT NULLIF ( - 36, + 17 * - 78 * + AVG ( + + 23 ) + - ( + 95 ) + + 91 ) * + + COUNT ( * ) * - COUNT ( * ) * - - 16 + - 38 AS col1
----
538

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT 52 + + - COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8820
SELECT 52 + + - COUNT ( * ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT - CASE WHEN NOT ( - 89 NOT IN ( - 85 + - - 70 + + ( + 50 ) / + 37 / 23, 32 / 95 * - COUNT( * ) * + 86 + - 70, - 85, SUM( DISTINCT - 85 ) - - CASE COUNT( * ) WHEN ( 9 ) * + - ( + 2 ) THEN 22 / - 44 * + 32 / - 86 WHEN - 70 THEN NULL ELSE - ( + NULLIF ( - 12, + 61 * 40 / 1 - 25 ) ) END ) ) THEN NULL WHEN NULL BETWEEN NULL AND + NULLIF ( - 95, ( 80 ) ) THEN + 84 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8821
SELECT - CASE WHEN NOT ( - 89 NOT IN ( - 85 + - - 70 + + ( + 50 ) / + 37 / 23, 32 / 95 * - COUNT ( * ) * + 86 + - 70, - 85, SUM ( DISTINCT - 85 ) - - CASE COUNT ( * ) WHEN ( 9 ) * + - ( + 2 ) THEN 22 / - 44 * + 32 / - 86 WHEN - 70 THEN NULL ELSE - ( + NULLIF ( - 12, + 61 * 40 / 1 - 25 ) ) END ) ) THEN NULL WHEN NULL BETWEEN NULL AND + NULLIF ( - 95, ( 80 ) ) THEN + 84 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT COUNT( * ) + - 43 - + 53 + + 23 - 72 AS col1
----
-144

skipif mysql # not compatible
query I rowsort label-8822
SELECT COUNT ( * ) + - 43 - + 53 + + 23 - 72 AS col1
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8823
SELECT ALL ( 65 ) * 97 - - + CAST( NULL AS SIGNED ), - 63 AS col2
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-8823
SELECT ALL ( 65 ) * 97 - - + CAST ( NULL AS INTEGER ), - 63 AS col2
----
NULL
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL COUNT( * ) * - 44 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL COUNT ( * ) * - 44 AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - 52 + + - 59 - 30 * - 77 + ( - 23 ) ) / - ( + 57 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - 52 + + - 59 - 30 * - 77 + ( - 23 ) ) / - ( + 57 ) col2
----
NULL

query I rowsort
SELECT 26 + - - 14 AS col2
----
40

query I rowsort
SELECT 0 * + 35 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT COUNT( * ) + + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-8828
SELECT COUNT ( * ) + + - 67
----
-66

query II rowsort
SELECT ALL + 8 * + 92 AS col1, - 0 AS col2
----
736
0

query I rowsort
SELECT 16 + + 8
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-8831
SELECT DISTINCT 13 AS col1, + ( + - 27 ) + - + 44 * 83 DIV 45 + 70
----
13
-38

skipif mysql # not compatible
query II rowsort label-8831
SELECT DISTINCT 13 AS col1, + ( + - 27 ) + - + 44 * 83 / 45 + 70
----
13
-38

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8832
SELECT ALL + NULLIF ( - 6, 95 ) + - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL + NULLIF ( - 6, 95 ) + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT 35 + - + 53 * - 23 * - - COUNT( * ) AS col0
----
1254

skipif mysql # not compatible
query I rowsort label-8833
SELECT 35 + - + 53 * - 23 * - - COUNT ( * ) AS col0
----
1254

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8834
SELECT ALL 48 * + 2 * - 30 * + + CAST( NULL AS DECIMAL ) * - + COUNT( * ) + - NULLIF ( + 87, - + 87 + 67 ) AS col2, - 95 + - 34
----
NULL
-129

skipif mysql # not compatible
query II rowsort label-8834
SELECT ALL 48 * + 2 * - 30 * + + CAST ( NULL AS REAL ) * - + COUNT ( * ) + - NULLIF ( + 87, - + 87 + 67 ) AS col2, - 95 + - 34
----
NULL
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-8835
SELECT MAX( + 26 ) AS col1, 4
----
26
4

skipif mysql # not compatible
query II rowsort label-8835
SELECT MAX ( + 26 ) AS col1, 4
----
26
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8836
SELECT ALL - COUNT( * ) * + - 73 DIV + + 63 + + 29
----
30

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL - COUNT ( * ) * + - 73 / + + 63 + + 29
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8837
SELECT + COUNT( * ) col1, 73 AS col0
----
1
73

skipif mysql # not compatible
query II rowsort label-8837
SELECT + COUNT ( * ) col1, 73 AS col0
----
1
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT DISTINCT + 72 * COUNT( ALL ( + 6 ) ) + - - CASE 8 WHEN - 46 THEN + ( 81 ) + 90 * + + 38 ELSE CAST( - - ( + + 55 ) AS SIGNED ) END
----
127

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT + 72 * COUNT ( ALL ( + 6 ) ) + - - CASE 8 WHEN - 46 THEN + ( 81 ) + 90 * + + 38 ELSE CAST ( - - ( + + 55 ) AS INTEGER ) END
----
127

query I rowsort
SELECT + 65 + + 7 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT ALL 17 * 42 * - COUNT( * ) + - 94
----
-808

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL 17 * 42 * - COUNT ( * ) + - 94
----
-808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT 49 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT 49 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8842
SELECT + 61 AS col0, 90 * - 38 - + COUNT( * )
----
61
-3421

skipif mysql # not compatible
query II rowsort label-8842
SELECT + 61 AS col0, 90 * - 38 - + COUNT ( * )
----
61
-3421

query I rowsort
SELECT ( + ( - 28 ) ) + + + 42
----
14

query II rowsort
SELECT ALL - 98 AS col2, + 14 AS col0
----
-98
14

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT - 32 DIV - + 12
----
2

skipif mysql # not compatible
query I rowsort label-8845
SELECT - 32 / - + 12
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8846
SELECT DISTINCT + NULLIF ( CAST( - 71 AS SIGNED ), - ( + ( + + 28 ) ) ) * 56 * + - 18 - ( 18 )
----
71550

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT + NULLIF ( CAST ( - 71 AS INTEGER ), - ( + ( + + 28 ) ) ) * 56 * + - 18 - ( 18 )
----
71550

query II rowsort
SELECT - 34, 79 AS col0
----
-34
79

query I rowsort
SELECT ALL - 79 * 65 * - 40
----
205400

query I rowsort
SELECT + - 99 * 33 * 12
----
-39204

query I rowsort
SELECT - - 35 * + 40
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL + MIN( - - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL + MIN ( - - 26 )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT - 21 * + 46 + + 8 + - + ( + ( + - 85 ) ) DIV COALESCE ( - 39, + + CASE 45 WHEN + 28 THEN - ( - - 76 ) ELSE - - 98 * + 65 END * - - 12 ) + - 15 + + 23 - - 57 + 38 * - 90 + 48
----
-4267

skipif mysql # not compatible
query I rowsort label-8852
SELECT - 21 * + 46 + + 8 + - + ( + ( + - 85 ) ) / COALESCE ( - 39, + + CASE 45 WHEN + 28 THEN - ( - - 76 ) ELSE - - 98 * + 65 END * - - 12 ) + - 15 + + 23 - - 57 + 38 * - 90 + 48
----
-4267

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL + + COALESCE ( 28, + - SUM( 94 ) ) * + COUNT( * ) * - 30 AS col2
----
-840

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + + COALESCE ( 28, + - SUM ( 94 ) ) * + COUNT ( * ) * - 30 AS col2
----
-840

query I rowsort
SELECT 0 * - 40 - - ( - - 88 ) AS col0
----
88

query II rowsort
SELECT ALL 19 AS col1, - 0
----
19
0

query II rowsort
SELECT - - 67 AS col0, 83 col2
----
67
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT DISTINCT - CASE - 91 WHEN 59 THEN NULL WHEN + COUNT( * ) THEN ( - 13 ) + 33 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT - CASE - 91 WHEN 59 THEN NULL WHEN + COUNT ( * ) THEN ( - 13 ) + 33 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + + 62 * + - 55
----
-3410

onlyif mysql # aggregate syntax: 
query II rowsort label-8859
SELECT - 35 * 77 col2, - COUNT( * )
----
-2695
-1

skipif mysql # not compatible
query II rowsort label-8859
SELECT - 35 * 77 col2, - COUNT ( * )
----
-2695
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8860
SELECT - 29 + + ( - COUNT( * ) ) col1, - 95 AS col2
----
-30
-95

skipif mysql # not compatible
query II rowsort label-8860
SELECT - 29 + + ( - COUNT ( * ) ) col1, - 95 AS col2
----
-30
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT + 99 * + 69 * + MAX( - 4 )
----
-27324

skipif mysql # not compatible
query I rowsort label-8861
SELECT + 99 * + 69 * + MAX ( - 4 )
----
-27324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8862
SELECT ALL - ( + - 46 ) + - COUNT( * ) * 60 DIV + NULLIF ( + - 60, + 11 )
----
47

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL - ( + - 46 ) + - COUNT ( * ) * 60 / + NULLIF ( + - 60, + 11 )
----
47

query II rowsort
SELECT - 69 * + 42 col1, - 69 + - 79 * 88 AS col0
----
-2898
-7021

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8864
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / 0 * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT - CAST ( NULL AS REAL ) / 0 * 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL + 77 + 59 + COUNT( * ) AS col0
----
137

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL + 77 + 59 + COUNT ( * ) AS col0
----
137

query I rowsort
SELECT DISTINCT 74 * - + 64 * 77
----
-364672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8867
SELECT DISTINCT + CAST( ( + 92 ) AS SIGNED ) + - 28 + 71 AS col2
----
135

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT + CAST ( ( + 92 ) AS INTEGER ) + - 28 + 71 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT - NULLIF ( - - 60, + COUNT( * ) ) * - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-8868
SELECT - NULLIF ( - - 60, + COUNT ( * ) ) * - COUNT ( * )
----
60

query I rowsort
SELECT DISTINCT + 59 * - 40
----
-2360

query I rowsort
SELECT + CASE WHEN - 13 IS NOT NULL THEN 48 ELSE NULL END
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT - COUNT( * ) - + MAX( DISTINCT 14 ) * + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-8871
SELECT - COUNT ( * ) - + MAX ( DISTINCT 14 ) * + COUNT ( * )
----
-15

query II rowsort
SELECT ALL + - ( ( - 46 ) ), COALESCE ( 4, - 53, - 73 ) + + 14 AS col0
----
46
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL + + COUNT( DISTINCT + - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL + + COUNT ( DISTINCT + - 82 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + + COUNT( * ) * + + ( + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-8874
SELECT + + COUNT ( * ) * + + ( + 73 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8875
SELECT DISTINCT 78 * 37 * - - NULLIF ( + + 57, - - CAST( NULL AS SIGNED ) ) + - 23
----
164479

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT 78 * 37 * - - NULLIF ( + + 57, - - CAST ( NULL AS INTEGER ) ) + - 23
----
164479

query II rowsort
SELECT - ( + - 50 ) * - 89 + + + ( + 49 ) AS col1, 39 * 34 * - 26
----
-4401
-34476

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT ALL 35 DIV + - 61 col1
----
0

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL 35 / + - 61 col1
----
0

query I rowsort
SELECT - 5 * + + 90 AS col1
----
-450

query I rowsort
SELECT + 75 * + 19
----
1425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT - CAST( NULL AS SIGNED ) * 43 - - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT - CAST ( NULL AS INTEGER ) * 43 - - + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT DISTINCT + NULLIF ( + 18, + 11 + 83 ) * MAX( - 67 ) col0
----
-1206

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT + NULLIF ( + 18, + 11 + 83 ) * MAX ( - 67 ) col0
----
-1206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT ALL + COALESCE ( - NULLIF ( 31, CAST( NULL AS SIGNED ) * - + 13 * - + COUNT( * ) * + 5 ), + + 70 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + COALESCE ( - NULLIF ( 31, CAST ( NULL AS INTEGER ) * - + 13 * - + COUNT ( * ) * + 5 ), + + 70 ) AS col0
----
-31

query I rowsort
SELECT ALL 62 * - 31 * - ( 62 ) AS col1
----
119164

onlyif mysql # DIV for integer division: 
query I rowsort label-8884
SELECT ALL - 98 DIV + ( - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL - 98 / + ( - 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT + - COUNT( DISTINCT + 52 ) * + 71 * + 37 + + - 66
----
-2693

skipif mysql # not compatible
query I rowsort label-8885
SELECT + - COUNT ( DISTINCT + 52 ) * + 71 * + 37 + + - 66
----
-2693

query I rowsort
SELECT + 45 + - 98 AS col0
----
-53

query I rowsort
SELECT ALL + ( + ( + 47 ) ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8888
SELECT CASE + 49 WHEN COALESCE ( + + 53, ( - ( COUNT( * ) ) ) + + - 96 / + + CAST( + 72 AS SIGNED ) * - + COALESCE ( + + NULLIF ( - 39, + 99 ), - 60 ) ) THEN NULL ELSE + 25 END
----
25

skipif mysql # not compatible
query I rowsort label-8888
SELECT CASE + 49 WHEN COALESCE ( + + 53, ( - ( COUNT ( * ) ) ) + + - 96 / + + CAST ( + 72 AS INTEGER ) * - + COALESCE ( + + NULLIF ( - 39, + 99 ), - 60 ) ) THEN NULL ELSE + 25 END
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8889
SELECT + - NULLIF ( COUNT( * ), + 41 ) DIV - 78 * 74 col1
----
0

skipif mysql # not compatible
query I rowsort label-8889
SELECT + - NULLIF ( COUNT ( * ), + 41 ) / - 78 * 74 col1
----
0

query II rowsort
SELECT - ( + 34 ) AS col1, + 4 + + ( + 5 ) AS col1
----
-34
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT + CAST( NULL AS SIGNED ) + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT + CAST ( NULL AS INTEGER ) + 42 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8892
SELECT - CAST( + + 80 AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-8892
SELECT - CAST ( + + 80 AS INTEGER ) AS col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8893
SELECT + 88 + + + ( - NULLIF ( - COUNT( * ), 84 ) ) DIV 37 * + + 2 * - - 87
----
88

skipif mysql # not compatible
query I rowsort label-8893
SELECT + 88 + + + ( - NULLIF ( - COUNT ( * ), 84 ) ) / 37 * + + 2 * - - 87
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8894
SELECT ALL 93 DIV - - ( ( 21 ) ) * COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL 93 / - - ( ( 21 ) ) * COUNT ( * ) AS col2
----
4

query I rowsort
SELECT + 99 + + - 16
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8896
SELECT - CASE + 39 WHEN - 41 THEN NULL WHEN - 97 + 10 THEN NULL ELSE CAST( NULL AS SIGNED ) * + - 42 + 88 * - - COUNT( * ) - ( + - 0 ) * - + 92 * - COUNT( * ) * - 67 END * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT - CASE + 39 WHEN - 41 THEN NULL WHEN - 97 + 10 THEN NULL ELSE CAST ( NULL AS INTEGER ) * + - 42 + 88 * - - COUNT ( * ) - ( + - 0 ) * - + 92 * - COUNT ( * ) * - 67 END * - 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8897
SELECT ALL + COALESCE ( 94, + COALESCE ( + 14, - 35 DIV + 98 + ( - 20 ), + 30 + - MIN( DISTINCT + + 40 ) + + 31 ) ) * - MAX( DISTINCT + 80 ) + - 75 * + + 17 + 4 AS col1
----
-8791

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + COALESCE ( 94, + COALESCE ( + 14, - 35 / + 98 + ( - 20 ), + 30 + - MIN ( DISTINCT + + 40 ) + + 31 ) ) * - MAX ( DISTINCT + 80 ) + - 75 * + + 17 + 4 AS col1
----
-8791

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + 93 + - - COUNT( * ) + - - 77
----
171

skipif mysql # not compatible
query I rowsort label-8898
SELECT + 93 + - - COUNT ( * ) + - - 77
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-8899
SELECT ALL 50 AS col1, COUNT( * ) * 11 AS col0
----
50
11

skipif mysql # not compatible
query II rowsort label-8899
SELECT ALL 50 AS col1, COUNT ( * ) * 11 AS col0
----
50
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8900
SELECT + 69 + - + 7 * + 50 / CAST( NULL AS SIGNED ) * - 79 * - + MAX( - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT + 69 + - + 7 * + 50 / CAST ( NULL AS INTEGER ) * - 79 * - + MAX ( - 26 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL - SUM( + - 4 ) * - - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL - SUM ( + - 4 ) * - - COUNT ( * )
----
4

query I rowsort
SELECT + 45 + - - 22 AS col2
----
67

query I rowsort
SELECT ALL + 81 + - - 77
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT - COUNT( * ) + - 85 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-8904
SELECT - COUNT ( * ) + - 85 AS col0
----
-86

query I rowsort
SELECT - 15 + + 38 AS col2
----
23

query I rowsort
SELECT + 62 * - - 60
----
3720

query I rowsort
SELECT ALL ( - 43 ) AS col2
----
-43

query I rowsort
SELECT 60 + + 35 AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8909
SELECT + 85 AS col1, COUNT( * ) * - + 35 AS col0
----
85
-35

skipif mysql # not compatible
query II rowsort label-8909
SELECT + 85 AS col1, COUNT ( * ) * - + 35 AS col0
----
85
-35

query I rowsort
SELECT DISTINCT - - 96 * 63 + - 92 * + 27 AS col0
----
3564

query I rowsort
SELECT + 3 * 52
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT 25 * - - COALESCE ( + + 78, - 72 + + COUNT( * ) + - - COUNT( * ) )
----
1950

skipif mysql # not compatible
query I rowsort label-8912
SELECT 25 * - - COALESCE ( + + 78, - 72 + + COUNT ( * ) + - - COUNT ( * ) )
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL - + NULLIF ( - 30, + SUM( + - 55 ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL - + NULLIF ( - 30, + SUM ( + - 55 ) ) AS col0
----
30

query II rowsort
SELECT ALL - + 69, 18 AS col2
----
-69
18

query I rowsort
SELECT 4 * 34
----
136

query I rowsort
SELECT DISTINCT - - 54 + - 84
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8917
SELECT ALL - + COALESCE ( + - 78, - - 17 + + 30 + CAST( + - 37 AS SIGNED ) )
----
78

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL - + COALESCE ( + - 78, - - 17 + + 30 + CAST ( + - 37 AS INTEGER ) )
----
78

query I rowsort
SELECT DISTINCT 92 + - + 95 AS col0
----
-3

query I rowsort
SELECT DISTINCT 52 + 68
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8920
SELECT DISTINCT COUNT( * ) * + 30 DIV + + COUNT( 33 )
----
30

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT COUNT ( * ) * + 30 / + + COUNT ( 33 )
----
30

query I rowsort
SELECT DISTINCT - 67 * 65 AS col0
----
-4355

query II rowsort
SELECT 29 - + 3 + - 66 * 11 * 30, 31 + - 66 AS col2
----
-21754
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT ALL + COUNT( * ) + + 47 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL + COUNT ( * ) + + 47 AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8924
SELECT ALL 10 + + COUNT( * ) DIV + + 87 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL 10 + + COUNT ( * ) / + + 87 AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT 15 * CAST( 84 AS SIGNED ) AS col1
----
1260

skipif mysql # not compatible
query I rowsort label-8925
SELECT 15 * CAST ( 84 AS INTEGER ) AS col1
----
1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8926
SELECT 63 - - 9 DIV COUNT( * ) + + - MIN( DISTINCT + 54 )
----
18

skipif mysql # not compatible
query I rowsort label-8926
SELECT 63 - - 9 / COUNT ( * ) + + - MIN ( DISTINCT + 54 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8927
SELECT DISTINCT 39 DIV - 43 DIV - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT 39 / - 43 / - + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT 41 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT 41 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 32 - + + 19 AS col0, 47 * - 63
----
13
-2961

onlyif mysql # aggregate syntax: 
query II rowsort label-8930
SELECT 53 * + 58 AS col2, + 67 * - - COUNT( * ) + - 50 - - 5
----
3074
22

skipif mysql # not compatible
query II rowsort label-8930
SELECT 53 * + 58 AS col2, + 67 * - - COUNT ( * ) + - 50 - - 5
----
3074
22

query II rowsort
SELECT ALL - 14 * + 86, 95 col2
----
-1204
95

query I rowsort
SELECT - 11 * - 89
----
979

query I rowsort
SELECT - 51 + 5 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ALL + 92 * SUM( DISTINCT - 61 ) col1
----
-5612

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL + 92 * SUM ( DISTINCT - 61 ) col1
----
-5612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8935
SELECT - 78 + - ( COALESCE ( 2, - COALESCE ( + 2, + - 72 - - ( - - COUNT( * ) ) + - 60 DIV - 23, + - 10 ) + + 83 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-8935
SELECT - 78 + - ( COALESCE ( 2, - COALESCE ( + 2, + - 72 - - ( - - COUNT ( * ) ) + - 60 / - 23, + - 10 ) + + 83 ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT MIN( 5 ) * 3
----
15

skipif mysql # not compatible
query I rowsort label-8936
SELECT MIN ( 5 ) * 3
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8937
SELECT CAST( - + 81 AS SIGNED ) DIV COUNT( * ) * + COUNT( DISTINCT 48 )
----
-81

skipif mysql # not compatible
query I rowsort label-8937
SELECT CAST ( - + 81 AS INTEGER ) / COUNT ( * ) * + COUNT ( DISTINCT 48 )
----
-81

query I rowsort
SELECT + 0 - 33 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL - + COUNT( DISTINCT + 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL - + COUNT ( DISTINCT + 76 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8940
SELECT ALL + - COUNT( * ) DIV MAX( DISTINCT + 47 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL + - COUNT ( * ) / MAX ( DISTINCT + 47 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8941
SELECT 73 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-8941
SELECT 73 / 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8942
SELECT ALL 97 + + 36, + 68 * + 55 + + CASE - ( CAST( NULL AS SIGNED ) ) WHEN + + 68 THEN - COUNT( - - 65 ) + - 36 * 80 - 43 / - ( + ( ( + - 78 ) ) ) END * + NULLIF ( 39, + ( + - 6 ) ) AS col0
----
133
NULL

skipif mysql # not compatible
query II rowsort label-8942
SELECT ALL 97 + + 36, + 68 * + 55 + + CASE - ( CAST ( NULL AS INTEGER ) ) WHEN + + 68 THEN - COUNT ( - - 65 ) + - 36 * 80 - 43 / - ( + ( ( + - 78 ) ) ) END * + NULLIF ( 39, + ( + - 6 ) ) AS col0
----
133
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8943
SELECT DISTINCT + - 89 DIV 17 AS col1, 17 * + - COUNT( * ) + - + COUNT( * ) + COUNT( * )
----
-5
-17

skipif mysql # not compatible
query II rowsort label-8943
SELECT DISTINCT + - 89 / 17 AS col1, 17 * + - COUNT ( * ) + - + COUNT ( * ) + COUNT ( * )
----
-5
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8944
SELECT + 55 * NULLIF ( + ( - 0 ), - 86 ) DIV - 47 + + + CASE + 34 WHEN + + 48 THEN 22 ELSE + + 56 DIV 45 + - - 24 + + + NULLIF ( COUNT( ALL - 59 ), - 17 * - 67 ) END + 72 - - 78 * + 72 + + 63 + 36 + + 65 DIV + 63
----
5814

skipif mysql # not compatible
query I rowsort label-8944
SELECT + 55 * NULLIF ( + ( - 0 ), - 86 ) / - 47 + + + CASE + 34 WHEN + + 48 THEN 22 ELSE + + 56 / 45 + - - 24 + + + NULLIF ( COUNT ( ALL - 59 ), - 17 * - 67 ) END + 72 - - 78 * + 72 + + 63 + 36 + + 65 / + 63
----
5814

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT 52 DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8945
SELECT 52 / - 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT ( ( + 15 ) ) * - 73 + + + MIN( ALL - - 49 )
----
-1046

skipif mysql # not compatible
query I rowsort label-8946
SELECT ( ( + 15 ) ) * - 73 + + + MIN ( ALL - - 49 )
----
-1046

onlyif mysql # aggregate syntax: 
query II rowsort label-8947
SELECT COUNT( * ) - - 42 AS col2, + ( - 46 ) AS col1
----
43
-46

skipif mysql # not compatible
query II rowsort label-8947
SELECT COUNT ( * ) - - 42 AS col2, + ( - 46 ) AS col1
----
43
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT - + NULLIF ( - 5, 53 * 96 ) * 36 + - + 81 + - - COUNT( * ) col0
----
100

skipif mysql # not compatible
query I rowsort label-8948
SELECT - + NULLIF ( - 5, 53 * 96 ) * 36 + - + 81 + - - COUNT ( * ) col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT + + COUNT( ALL - - 2 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8949
SELECT + + COUNT ( ALL - - 2 ) AS col0
----
1

query I rowsort
SELECT 19 + + 64 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT DISTINCT - CASE - + SUM( ALL + 27 ) WHEN 3 THEN + ( 52 ) ELSE NULL END + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT - CASE - + SUM ( ALL + 27 ) WHEN 3 THEN + ( 52 ) ELSE NULL END + 30 AS col2
----
NULL

query I rowsort
SELECT 15 + - 85 AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8953
SELECT 49, + 99 + - + COALESCE ( 2, - - 12 * - - 48 + + CASE + - 20 WHEN + + CAST( NULL AS SIGNED ) THEN + COUNT( * ) WHEN - - ( + CAST( NULL AS SIGNED ) ) THEN - 0 END, + 99 + 5 - + 80 ) AS col2
----
49
97

skipif mysql # not compatible
query II rowsort label-8953
SELECT 49, + 99 + - + COALESCE ( 2, - - 12 * - - 48 + + CASE + - 20 WHEN + + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) WHEN - - ( + CAST ( NULL AS INTEGER ) ) THEN - 0 END, + 99 + 5 - + 80 ) AS col2
----
49
97

query I rowsort
SELECT 25 + + 70
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT SUM( DISTINCT + ( + 58 ) ) + + - COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8955
SELECT SUM ( DISTINCT + ( + 58 ) ) + + - COUNT ( * ) AS col0
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8956
SELECT 34 * + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8956
SELECT 34 * + + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 18 * + 17 * + + 98 * 8
----
239904

query I rowsort
SELECT 50 + - 31 AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8959
SELECT - COUNT( * ) DIV + ( 94 )
----
0

skipif mysql # not compatible
query I rowsort label-8959
SELECT - COUNT ( * ) / + ( 94 )
----
0

query II rowsort
SELECT ALL + ( + 73 ) * - 77, 17 col0
----
-5621
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8961
SELECT + 32 + 2 + + 60 AS col2, CAST( - + 72 AS SIGNED ) AS col0
----
94
-72

skipif mysql # not compatible
query II rowsort label-8961
SELECT + 32 + 2 + + 60 AS col2, CAST ( - + 72 AS INTEGER ) AS col0
----
94
-72

query I rowsort
SELECT DISTINCT + 1 * 10
----
10

query I rowsort
SELECT DISTINCT - 46 * + 46 * - 39 * + 31
----
2558244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT + CAST( NULL AS SIGNED ) + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT + CAST ( NULL AS INTEGER ) + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT + 9 * - - 68 + COUNT( * ) AS col1
----
613

skipif mysql # not compatible
query I rowsort label-8965
SELECT + 9 * - - 68 + COUNT ( * ) AS col1
----
613

query I rowsort
SELECT + + 52 + + 39
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT + - 77 + MIN( - - ( + 46 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-8967
SELECT + - 77 + MIN ( - - ( + 46 ) )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8968
SELECT ALL - 72 DIV + - 54
----
1

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL - 72 / + - 54
----
1

query I rowsort
SELECT + - 8 * - 37 col0
----
296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8970
SELECT ALL - + 12 + - - 58 + + 96 + + COALESCE ( - ( MAX( - 38 ) ), - + 86 ) DIV + 63
----
142

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - + 12 + - - 58 + + 96 + + COALESCE ( - ( MAX ( - 38 ) ), - + 86 ) / + 63
----
142

query I rowsort
SELECT ALL 29 + 76
----
105

query I rowsort
SELECT ALL 42 + - 2
----
40

query I rowsort
SELECT + NULLIF ( + + 77, + 24 ) * - 60
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT DISTINCT - COUNT( * ) * - 83 * - + 32 + - - 75
----
-2581

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT - COUNT ( * ) * - 83 * - + 32 + - - 75
----
-2581

query I rowsort
SELECT + ( + - 99 ) AS col0
----
-99

query I rowsort
SELECT - 7 * + + 56 + + 18 AS col1
----
-374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8977
SELECT + CAST( 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-8977
SELECT + CAST ( 94 AS INTEGER )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT + - MAX( - ( 10 ) ) * + 73
----
730

skipif mysql # not compatible
query I rowsort label-8978
SELECT + - MAX ( - ( 10 ) ) * + 73
----
730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8979
SELECT - - 90 DIV - COALESCE ( + 99, - 34 ) * + + CASE + - 75 WHEN 40 + - 16 THEN NULL ELSE MIN( ALL - + 42 ) END + + 55 * ( - COUNT( * ) ) * + + 47
----
-2585

skipif mysql # not compatible
query I rowsort label-8979
SELECT - - 90 / - COALESCE ( + 99, - 34 ) * + + CASE + - 75 WHEN 40 + - 16 THEN NULL ELSE MIN ( ALL - + 42 ) END + + 55 * ( - COUNT ( * ) ) * + + 47
----
-2585

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8980
SELECT 4, + CAST( - - 38 AS SIGNED ) + - - 52 - - 45 AS col2
----
4
135

skipif mysql # not compatible
query II rowsort label-8980
SELECT 4, + CAST ( - - 38 AS INTEGER ) + - - 52 - - 45 AS col2
----
4
135

query I rowsort
SELECT - + 1 + - 69 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL + 25 * + COUNT( * ) + + - 60 * + 6 AS col1
----
-335

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL + 25 * + COUNT ( * ) + + - 60 * + 6 AS col1
----
-335

query I rowsort
SELECT + 14 * + 45 AS col2
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT - ( - 40 ) * + 90 + - COUNT( * )
----
3599

skipif mysql # not compatible
query I rowsort label-8984
SELECT - ( - 40 ) * + 90 + - COUNT ( * )
----
3599

query I rowsort
SELECT COALESCE ( - - 28, 37 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL + 95 * + COUNT( - 64 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL + 95 * + COUNT ( - 64 ) AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8987
SELECT ALL CAST( NULL AS SIGNED ) / - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL CAST ( NULL AS INTEGER ) / - 93
----
NULL

query I rowsort
SELECT + ( + + ( + 21 ) ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT 31 * - COUNT( * ) * - 74 - + 4
----
2290

skipif mysql # not compatible
query I rowsort label-8989
SELECT 31 * - COUNT ( * ) * - 74 - + 4
----
2290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8990
SELECT ( - - CAST( NULL AS SIGNED ) ) * - + 61 + + ( - MAX( ALL - ( - - 54 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT ( - - CAST ( NULL AS INTEGER ) ) * - + 61 + + ( - MAX ( ALL - ( - - 54 ) ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 97 * - 50 - 47 - - 82
----
-4815

query I rowsort
SELECT - 63 * - 10
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT 32 * - 16 - - - 87 + + COUNT( * ) + + COUNT( * ) + + 19 * - 78 - - ( + + 97 ) AS col2
----
-1982

skipif mysql # not compatible
query I rowsort label-8993
SELECT 32 * - 16 - - - 87 + + COUNT ( * ) + + COUNT ( * ) + + 19 * - 78 - - ( + + 97 ) AS col2
----
-1982

query II rowsort
SELECT - 15 AS col1, 63 AS col2
----
-15
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - COUNT( * ) - 2 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8995
SELECT - COUNT ( * ) - 2 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8996
SELECT - COALESCE ( + 49, - - 57 * 25, + 25 ) * COUNT( * ), 13 AS col1
----
-49
13

skipif mysql # not compatible
query II rowsort label-8996
SELECT - COALESCE ( + 49, - - 57 * 25, + 25 ) * COUNT ( * ), 13 AS col1
----
-49
13

query II rowsort
SELECT DISTINCT CASE 21 WHEN + + 70 * - 23 THEN - - 10 * 6 ELSE NULL END, - 70 col2
----
NULL
-70

query II rowsort
SELECT - 26 AS col2, 32 AS col0
----
-26
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8999
SELECT + CASE WHEN NOT NULL BETWEEN NULL AND ( NULL ) THEN + + COUNT( * ) END * + CAST( NULL AS SIGNED ) + - CAST( + - 9 AS DECIMAL ), + 53 AS col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-8999
SELECT + CASE WHEN NOT NULL BETWEEN NULL AND ( NULL ) THEN + + COUNT ( * ) END * + CAST ( NULL AS INTEGER ) + - CAST ( + - 9 AS REAL ), + 53 AS col2
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT - COUNT( ALL - 10 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9000
SELECT - COUNT ( ALL - 10 ) AS col1
----
-1

query I rowsort
SELECT - CASE WHEN ( NULL ) IS NULL THEN NULL ELSE 24 END * + - 41 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9002
SELECT - CAST( NULL AS SIGNED ) * AVG ( DISTINCT + 93 ) * + CASE MIN( 33 ) WHEN + COUNT( * ) / + 53 * - 18 * - CASE - 68 WHEN - 20 THEN - - NULLIF ( - 61, - + 68 * - 75 ) + - 63 * + 11 * - + 78 + + 82 ELSE NULL END THEN + + ( - - 46 ) * - 56 + - 6 + + 78 * + COALESCE ( + + 57, 67 * - + CAST( NULL AS SIGNED ) * + 69 * 63 / 96 / 69 ) / + + COUNT( ALL - - 85 ) + + - 56 + + 88 WHEN COALESCE ( - + 62, 38 * - - 38 ) + - 88 THEN 91 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9002
SELECT - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT + 93 ) * + CASE MIN ( 33 ) WHEN + COUNT ( * ) / + 53 * - 18 * - CASE - 68 WHEN - 20 THEN - - NULLIF ( - 61, - + 68 * - 75 ) + - 63 * + 11 * - + 78 + + 82 ELSE NULL END THEN + + ( - - 46 ) * - 56 + - 6 + + 78 * + COALESCE ( + + 57, 67 * - + CAST ( NULL AS INTEGER ) * + 69 * 63 / 96 / 69 ) / + + COUNT ( ALL - - 85 ) + + - 56 + + 88 WHEN COALESCE ( - + 62, 38 * - - 38 ) + - 88 THEN 91 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL ( SUM( ALL 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL ( SUM ( ALL 16 ) )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9004
SELECT - CAST( - + COUNT( * ) AS SIGNED ) - + 86 + + 89 + - 35 * ( + 4 ) col1
----
-136

skipif mysql # not compatible
query I rowsort label-9004
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) - + 86 + + 89 + - 35 * ( + 4 ) col1
----
-136

query II rowsort
SELECT DISTINCT 9 col0, - 45 AS col2
----
9
-45

query I rowsort
SELECT ALL 13 + + 22 * - 92 AS col2
----
-2011

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT - SUM( ALL 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-9007
SELECT - SUM ( ALL 88 ) AS col1
----
-88

query I rowsort
SELECT ALL - - 59 + - 39 col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9009
SELECT ALL + - CAST( + 27 AS SIGNED ) + - COUNT( * ) * + + 23 * 0
----
-27

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL + - CAST ( + 27 AS INTEGER ) + - COUNT ( * ) * + + 23 * 0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9010
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) / 4 * + 49 * - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) / 4 * + 49 * - 16 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9011
SELECT ALL CAST( NULL AS DECIMAL ) + - - AVG ( + 83 ) * - 23 * 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL CAST ( NULL AS REAL ) + - - AVG ( + 83 ) * - 23 * 73 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9012
SELECT + 46 * COUNT( * ) DIV 36 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9012
SELECT + 46 * COUNT ( * ) / 36 AS col0
----
1

query II rowsort
SELECT 38, 93 AS col0
----
38
93

onlyif mysql # aggregate syntax: 
query III rowsort label-9014
SELECT + + COUNT( * ) AS col1, + 58 col0, - COUNT( * ) - - 57 + - + 43 + - COUNT( * ) * + 94 AS col0
----
1
58
-81

skipif mysql # not compatible
query III rowsort label-9014
SELECT + + COUNT ( * ) AS col1, + 58 col0, - COUNT ( * ) - - 57 + - + 43 + - COUNT ( * ) * + 94 AS col0
----
1
58
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT DISTINCT + + NULLIF ( - COUNT( + + 84 ), - COUNT( * ) + - 19 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT + + NULLIF ( - COUNT ( + + 84 ), - COUNT ( * ) + - 19 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9016
SELECT - - 99 * - - 93 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT - - 99 * - - 93 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT + CAST( - 1 AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9017
SELECT + CAST ( - 1 AS INTEGER ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT 35 DIV + + 94 + 57 * - 28 AS col2
----
-1596

skipif mysql # not compatible
query I rowsort label-9018
SELECT 35 / + + 94 + 57 * - 28 AS col2
----
-1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT ALL CAST( 70 AS SIGNED ) * - 9 * - 98
----
61740

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL CAST ( 70 AS INTEGER ) * - 9 * - 98
----
61740

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9020
SELECT + 11 * - COUNT( * ) DIV 34, + 67 AS col0
----
0
67

skipif mysql # not compatible
query II rowsort label-9020
SELECT + 11 * - COUNT ( * ) / 34, + 67 AS col0
----
0
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT 36 * - + COUNT( * ) + COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9021
SELECT 36 * - + COUNT ( * ) + COUNT ( * ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT + 12 * + SUM( - - 52 ) + - COUNT( * )
----
623

skipif mysql # not compatible
query I rowsort label-9022
SELECT + 12 * + SUM ( - - 52 ) + - COUNT ( * )
----
623

onlyif mysql # DIV for integer division: 
query II rowsort label-9023
SELECT + 63 * - 88, + ( + - 1 ) * 14 DIV 64 * + 43 * 88 AS col1
----
-5544
0

skipif mysql # not compatible
query II rowsort label-9023
SELECT + 63 * - 88, + ( + - 1 ) * 14 / 64 * + 43 * 88 AS col1
----
-5544
0

query I rowsort
SELECT DISTINCT 86 * + 56 * - 19 AS col0
----
-91504

query I rowsort
SELECT ALL - NULLIF ( 16, + - 77 * 60 ) AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9026
SELECT CASE 18 WHEN - - 75 - - 5 * + 59 * - COUNT( * ) * - 47 * + 64 - CAST( NULL AS DECIMAL ) THEN - 16 END + + 61 / 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT CASE 18 WHEN - - 75 - - 5 * + 59 * - COUNT ( * ) * - 47 * + 64 - CAST ( NULL AS REAL ) THEN - 16 END + + 61 / 25 AS col1
----
NULL

query I rowsort
SELECT 59 + - 0 + + - 44 + - 70 AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9028
SELECT ALL - 56 + COUNT( * ) + - 28 + - COALESCE ( + ( - 86 ), + 73 * - 76 * + 70 * - CAST( NULL AS SIGNED ), + 27 ) * - COUNT( + ( - - 43 ) )
----
-169

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL - 56 + COUNT ( * ) + - 28 + - COALESCE ( + ( - 86 ), + 73 * - 76 * + 70 * - CAST ( NULL AS INTEGER ), + 27 ) * - COUNT ( + ( - - 43 ) )
----
-169

query I rowsort
SELECT 4 * - 65
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT DISTINCT + - 87 * - + MIN( DISTINCT + 45 ) + - COUNT( ALL - - 49 )
----
3914

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT + - 87 * - + MIN ( DISTINCT + 45 ) + - COUNT ( ALL - - 49 )
----
3914

onlyif mysql # aggregate syntax: 
query II rowsort label-9031
SELECT ALL - + NULLIF ( + 1, + 21 ) + + SUM( DISTINCT 19 ) * - + 55 * 43 AS col0, - 69
----
-44936
-69

skipif mysql # not compatible
query II rowsort label-9031
SELECT ALL - + NULLIF ( + 1, + 21 ) + + SUM ( DISTINCT 19 ) * - + 55 * 43 AS col0, - 69
----
-44936
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9032
SELECT ALL - 44 + - 92 col2, - CAST( NULL AS SIGNED ) * - - 32 AS col0
----
-136
NULL

skipif mysql # not compatible
query II rowsort label-9032
SELECT ALL - 44 + - 92 col2, - CAST ( NULL AS INTEGER ) * - - 32 AS col0
----
-136
NULL

query II rowsort
SELECT ALL + - 11 + - 73, + 90 + + 66 AS col1
----
-84
156

query I rowsort
SELECT DISTINCT + - 95 * - 14 col2
----
1330

query I rowsort
SELECT 27 * + 71
----
1917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9036
SELECT - NULLIF ( - 93, AVG ( DISTINCT - - 27 ) ) + - 53 DIV - - 72 + - COALESCE ( + COUNT( * ), NULLIF ( COUNT( * ), + + 71 * - 93 + - 14 * - ( 62 ) - + COALESCE ( + 61, - CASE - ( + SUM( ALL 10 ) ) WHEN - + 54 THEN + - 99 END * - 0 + - - CAST( + - 57 AS SIGNED ) + - 12 * - 57 * CAST( NULL AS SIGNED ) * + 75 ) * - 11 ) ) + 85 * - 52
----
-4328

skipif mysql # not compatible
query I rowsort label-9036
SELECT - NULLIF ( - 93, AVG ( DISTINCT - - 27 ) ) + - 53 / - - 72 + - COALESCE ( + COUNT ( * ), NULLIF ( COUNT ( * ), + + 71 * - 93 + - 14 * - ( 62 ) - + COALESCE ( + 61, - CASE - ( + SUM ( ALL 10 ) ) WHEN - + 54 THEN + - 99 END * - 0 + - - CAST ( + - 57 AS INTEGER ) + - 12 * - 57 * CAST ( NULL AS INTEGER ) * + 75 ) * - 11 ) ) + 85 * - 52
----
-4328

query II rowsort
SELECT 17 + - 16 AS col2, + 76 + 0
----
1
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT ALL + NULLIF ( + + 44, - - 47 + - 82 ) + 43 - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + NULLIF ( + + 44, - - 47 + - 82 ) + 43 - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 69 * - 24 AS col1
----
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT DISTINCT - 37 * 0 + + + 78 * + + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9040
SELECT DISTINCT - 37 * 0 + + + 78 * + + COUNT ( * ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL + COALESCE ( + - COUNT( * ), + - 81 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL + COALESCE ( + - COUNT ( * ), + - 81 ) col0
----
-1

query I rowsort
SELECT - 5 * - - 35 + - + 85 AS col2
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT DISTINCT - 76 * + 92 * - + COUNT( * )
----
6992

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT - 76 * + 92 * - + COUNT ( * )
----
6992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9044
SELECT 35 * 54 + + 92 * + COALESCE ( - - CASE CAST( - + 39 AS SIGNED ) WHEN + 44 THEN + COALESCE ( SUM( - 53 ), + - COALESCE ( CAST( NULL AS SIGNED ), 99, 61 / + 86 - + 70 * 78 ) ) * - 96 ELSE NULL END, + 64 + + - ( - ( - 6 ) ) + + - 20 + - COALESCE ( NULLIF ( - - 89, - 66 ), COUNT( * ) * ( + 29 ) + - 58 ) * NULLIF ( 35, + COUNT( * ) - - 34 ) ) - 20 * - CASE - + COUNT( * ) WHEN + - 95 THEN 11 * - + 11 + 26 WHEN - 13 THEN + 77 WHEN - 2 - 20 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT 35 * 54 + + 92 * + COALESCE ( - - CASE CAST ( - + 39 AS INTEGER ) WHEN + 44 THEN + COALESCE ( SUM ( - 53 ), + - COALESCE ( CAST ( NULL AS INTEGER ), 99, 61 / + 86 - + 70 * 78 ) ) * - 96 ELSE NULL END, + 64 + + - ( - ( - 6 ) ) + + - 20 + - COALESCE ( NULLIF ( - - 89, - 66 ), COUNT ( * ) * ( + 29 ) + - 58 ) * NULLIF ( 35, + COUNT ( * ) - - 34 ) ) - 20 * - CASE - + COUNT ( * ) WHEN + - 95 THEN 11 * - + 11 + 26 WHEN - 13 THEN + 77 WHEN - 2 - 20 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT ALL - CAST( NULL AS SIGNED ) * + 72 * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL - CAST ( NULL AS INTEGER ) * + 72 * + 51
----
NULL

query I rowsort
SELECT 25 * - 45 AS col0
----
-1125

query I rowsort
SELECT 38 * + 80 AS col2
----
3040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9048
SELECT MIN( - CAST( NULL AS SIGNED ) ) * + - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) * + - 72 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT ALL 75 DIV + - 72 col1
----
-1

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL 75 / + - 72 col1
----
-1

query II rowsort
SELECT 60 AS col0, + 65 AS col2
----
60
65

query I rowsort
SELECT ALL 39 + - 64 AS col1
----
-25

query I rowsort
SELECT 50 * - 96
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT COUNT( + 63 ) + - 31 + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-9053
SELECT COUNT ( + 63 ) + - 31 + + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-9054
SELECT + 66 col0, COUNT( ALL + 94 )
----
66
1

skipif mysql # not compatible
query II rowsort label-9054
SELECT + 66 col0, COUNT ( ALL + 94 )
----
66
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9055
SELECT + 63 * + MAX( - 62 ) + - - CAST( 17 AS SIGNED )
----
-3889

skipif mysql # not compatible
query I rowsort label-9055
SELECT + 63 * + MAX ( - 62 ) + - - CAST ( 17 AS INTEGER )
----
-3889

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL 68 * - COUNT( * ) * - + ( + + 44 ) AS col0
----
2992

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL 68 * - COUNT ( * ) * - + ( + + 44 ) AS col0
----
2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9057
SELECT 60, - 38 + - CASE + COUNT( * ) WHEN 96 THEN NULL WHEN + + 75 THEN - COUNT( * ) + + NULLIF ( 27, + + 27 * + 24 ) END - + - MAX( DISTINCT - - CAST( - - 34 AS SIGNED ) ) AS col0
----
60
NULL

skipif mysql # not compatible
query II rowsort label-9057
SELECT 60, - 38 + - CASE + COUNT ( * ) WHEN 96 THEN NULL WHEN + + 75 THEN - COUNT ( * ) + + NULLIF ( 27, + + 27 * + 24 ) END - + - MAX ( DISTINCT - - CAST ( - - 34 AS INTEGER ) ) AS col0
----
60
NULL

query I rowsort
SELECT DISTINCT 20 + - 27
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9059
SELECT ALL + 15 * 39 DIV + + 24
----
24

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL + 15 * 39 / + + 24
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT - 51 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-9060
SELECT - 51 / 60
----
0

query I rowsort
SELECT DISTINCT - 93 + 80 AS col1
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9062
SELECT 65 * AVG ( ALL + 67 ) * + 98 + + 41 * 30 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9062
SELECT 65 * AVG ( ALL + 67 ) * + 98 + + 41 * 30 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9063
SELECT - 17 DIV 98 - + 68 + - 5 * MAX( + CAST( - 1 AS SIGNED ) ) * - + COUNT( * ) DIV + 76 * + 78 + 30
----
-38

skipif mysql # not compatible
query I rowsort label-9063
SELECT - 17 / 98 - + 68 + - 5 * MAX ( + CAST ( - 1 AS INTEGER ) ) * - + COUNT ( * ) / + 76 * + 78 + 30
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9064
SELECT + 87 DIV 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9064
SELECT + 87 / 53 AS col1
----
1

query I rowsort
SELECT ALL 75 * - 82
----
-6150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT + 44 * - - 99 * - + COALESCE ( CAST( 81 AS SIGNED ), - SUM( ALL 2 ), + 97 ) + + 31 col2
----
-352805

skipif mysql # not compatible
query I rowsort label-9066
SELECT + 44 * - - 99 * - + COALESCE ( CAST ( 81 AS INTEGER ), - SUM ( ALL 2 ), + 97 ) + + 31 col2
----
-352805

query I rowsort
SELECT ALL 37 - 56
----
-19

query I rowsort
SELECT ALL 64 * 26
----
1664

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT - COUNT( * ) * + CASE - - COUNT( * ) WHEN - 73 / 79 - 44 + 33 THEN + + 72 WHEN + COALESCE ( - COALESCE ( + COALESCE ( - 43, 30 * 48 ), - 9 ), - + ( + - 60 ), 91 + - + COUNT( * ) + - 27 * - + 16 - - 27 * 43 + + - ( + 38 ) ) THEN NULL END / 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT - COUNT ( * ) * + CASE - - COUNT ( * ) WHEN - 73 / 79 - 44 + 33 THEN + + 72 WHEN + COALESCE ( - COALESCE ( + COALESCE ( - 43, 30 * 48 ), - 9 ), - + ( + - 60 ), 91 + - + COUNT ( * ) + - 27 * - + 16 - - 27 * 43 + + - ( + 38 ) ) THEN NULL END / 3 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT + COUNT( * ) - - 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9070
SELECT + COUNT ( * ) - - 51 AS col2
----
52

query I rowsort
SELECT 70 * - - 9
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT + 3 * + SUM( + 6 ) + + 44
----
62

skipif mysql # not compatible
query I rowsort label-9072
SELECT + 3 * + SUM ( + 6 ) + + 44
----
62

query II rowsort
SELECT ALL 53 * + 67 + + - 87 + 61, 62 col1
----
3525
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9074
SELECT ALL CAST( NULL AS DECIMAL ) * + - 7 + - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL CAST ( NULL AS REAL ) * + - 7 + - 15 AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + 70, 54 ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9076
SELECT - COUNT( * ) DIV - 20 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9076
SELECT - COUNT ( * ) / - 20 * - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT DISTINCT 97 * + 21 + - 41 * + 20
----
1217

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT ALL 9 * COUNT( * ) + + 58 - 14 + + CASE - 74 WHEN - + 81 THEN + 96 * + CASE - 51 WHEN 24 + 95 THEN COUNT( * ) END * 31 END + - 21 * + MIN( + 30 ) * 37 / 33 * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL 9 * COUNT ( * ) + + 58 - 14 + + CASE - 74 WHEN - + 81 THEN + 96 * + CASE - 51 WHEN 24 + 95 THEN COUNT ( * ) END * 31 END + - 21 * + MIN ( + 30 ) * 37 / 33 * 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9079
SELECT - 67 * 90, + 30 - 46 - - 55 + COUNT( * ) AS col1
----
-6030
40

skipif mysql # not compatible
query II rowsort label-9079
SELECT - 67 * 90, + 30 - 46 - - 55 + COUNT ( * ) AS col1
----
-6030
40

query I rowsort
SELECT - ( 51 ) + + 31 + 66 - - 82
----
128

query I rowsort
SELECT ALL + ( + + 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT SUM( ALL 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9082
SELECT SUM ( ALL 18 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9083
SELECT - + 72 + + + COUNT( * ), ( COALESCE ( + + 91, - 21 * COUNT( * ) + + - MAX( 52 ) ) ) / - CASE - AVG ( DISTINCT - + 34 ) WHEN 14 * + COUNT( * ) * - + 95 THEN 33 WHEN + 60 THEN NULL ELSE NULL END * COUNT( * ) * - 71 AS col1
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-9083
SELECT - + 72 + + + COUNT ( * ), ( COALESCE ( + + 91, - 21 * COUNT ( * ) + + - MAX ( 52 ) ) ) / - CASE - AVG ( DISTINCT - + 34 ) WHEN 14 * + COUNT ( * ) * - + 95 THEN 33 WHEN + 60 THEN NULL ELSE NULL END * COUNT ( * ) * - 71 AS col1
----
-71
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9084
SELECT - COALESCE ( ( 54 ), + 50, + + COUNT( * ) ) * + 31 * + - 15 - - 56 - + - COALESCE ( + 90, - + 84, + + 67 + CASE 95 WHEN - + 96 THEN NULL WHEN + 98 THEN + 22 END - 54 + - ( - 61 ) ) DIV - - 62
----
25167

skipif mysql # not compatible
query I rowsort label-9084
SELECT - COALESCE ( ( 54 ), + 50, + + COUNT ( * ) ) * + 31 * + - 15 - - 56 - + - COALESCE ( + 90, - + 84, + + 67 + CASE 95 WHEN - + 96 THEN NULL WHEN + 98 THEN + 22 END - 54 + - ( - 61 ) ) / - - 62
----
25167

query I rowsort
SELECT DISTINCT - 61 - 50 AS col2
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9086
SELECT ( + CASE - - ( - CAST( NULL AS SIGNED ) ) WHEN - 65 * + 26 THEN + 21 WHEN + + 40 THEN NULL ELSE 45 + COUNT( * ) - 16 END )
----
30

skipif mysql # not compatible
query I rowsort label-9086
SELECT ( + CASE - - ( - CAST ( NULL AS INTEGER ) ) WHEN - 65 * + 26 THEN + 21 WHEN + + 40 THEN NULL ELSE 45 + COUNT ( * ) - 16 END )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT + + ( - - COUNT( * ) ) + - CASE + 14 WHEN NULLIF ( 25, - 30 ) + + 22 * - 18 / 20 THEN - - 72 / 75 * + ( + 84 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT + + ( - - COUNT ( * ) ) + - CASE + 14 WHEN NULLIF ( 25, - 30 ) + + 22 * - 18 / 20 THEN - - 72 / 75 * + ( + 84 ) ELSE NULL END
----
NULL

query II rowsort
SELECT + 38 + - + 20 AS col2, + 57 AS col0
----
18
57

query I rowsort
SELECT + - 48 * - 56 + 77 * + + 94
----
9926

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT DISTINCT + COALESCE ( + - 84, - - 24 * + 2 * + 44 + - 4 + COUNT( * ), + COUNT( * ) - + ( + 65 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-9090
SELECT DISTINCT + COALESCE ( + - 84, - - 24 * + 2 * + 44 + - 4 + COUNT ( * ), + COUNT ( * ) - + ( + 65 ) )
----
-84

query I rowsort
SELECT DISTINCT - 9 * + 34
----
-306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9092
SELECT ALL COALESCE ( + 59, - 46, - MAX( 60 ) ) DIV + + 67
----
0

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL COALESCE ( + 59, - 46, - MAX ( 60 ) ) / + + 67
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9093
SELECT + 78 + + - 1 DIV - 42 + + 39 DIV + 28 + 74 * ( ( - - 13 ) ) + NULLIF ( - 56, - 49 ) + - 5 * - 98
----
1475

skipif mysql # not compatible
query I rowsort label-9093
SELECT + 78 + + - 1 / - 42 + + 39 / + 28 + 74 * ( ( - - 13 ) ) + NULLIF ( - 56, - 49 ) + - 5 * - 98
----
1475

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL MIN( DISTINCT + + 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL MIN ( DISTINCT + + 23 ) AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT ALL + NULLIF ( - 48, + - 39 ) DIV - 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL + NULLIF ( - 48, + - 39 ) / - 41 AS col2
----
1

query I rowsort
SELECT + + 21 * 34 col1
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT - + 16 + 58 * COUNT( * ) * - 46
----
-2684

skipif mysql # not compatible
query I rowsort label-9097
SELECT - + 16 + 58 * COUNT ( * ) * - 46
----
-2684

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT - ( - - CASE + 28 WHEN - 32 THEN NULL WHEN + + 97 * - SUM( DISTINCT - 54 ) - + SUM( ALL + 15 ) - - 48 + COUNT( * ) * - 70 THEN + + 35 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT - ( - - CASE + 28 WHEN - 32 THEN NULL WHEN + + 97 * - SUM ( DISTINCT - 54 ) - + SUM ( ALL + 15 ) - - 48 + COUNT ( * ) * - 70 THEN + + 35 END )
----
NULL

query I rowsort
SELECT - - 41 + 51
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9100
SELECT DISTINCT ( - 99 ) DIV - + 19 + + + ( + 52 ) DIV 95
----
5

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT ( - 99 ) / - + 19 + + + ( + 52 ) / 95
----
5

query I rowsort
SELECT ALL ( - 72 ) + - 47 AS col2
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-9102
SELECT - 62 DIV + 21 - + + 50 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-9102
SELECT - 62 / + 21 - + + 50 AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9103
SELECT CAST( + ( COUNT( * ) ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9103
SELECT CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9104
SELECT DISTINCT CAST( NULL AS SIGNED ) / 88 + - SUM( - 49 ) + CAST( + 87 AS SIGNED ) * - MIN( ALL + - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 88 + - SUM ( - 49 ) + CAST ( + 87 AS INTEGER ) * - MIN ( ALL + - 24 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT ALL 5 / 24 + + 72 * - CASE + - 5 WHEN + 90 THEN + + 30 WHEN + 31 THEN + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) END / + - 73 * + 81 * - 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL 5 / 24 + + 72 * - CASE + - 5 WHEN + 90 THEN + + 30 WHEN + 31 THEN + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) END / + - 73 * + 81 * - 44 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT DISTINCT + 83 DIV - 45 + 12 + - 85 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT + 83 / - 45 + 12 + - 85 AS col1
----
-74

query II rowsort
SELECT DISTINCT + 30 col0, 65 * 74 AS col2
----
30
4810

query I rowsort
SELECT ( + 15 ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT DISTINCT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9110
SELECT - 21 * + COUNT( * ) / - + 2 * + - 29 + COUNT( * ) * ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT - 21 * + COUNT ( * ) / - + 2 * + - 29 + COUNT ( * ) * ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ( - - 63 ) * - COUNT( * ) + + 17 * - 9 AS col2
----
-216

skipif mysql # not compatible
query I rowsort label-9111
SELECT ( - - 63 ) * - COUNT ( * ) + + 17 * - 9 AS col2
----
-216

query II rowsort
SELECT ALL + 13 AS col1, + 75 AS col0
----
13
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9113
SELECT ALL - + 8 * + + 43 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL - + 8 * + + 43 - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + + 1, - ( + 14 ) AS col0
----
1
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9115
SELECT - 67 * + CASE WHEN NOT NULL NOT IN ( - 87, - 15 + - + 64 + - + COUNT( * ) - + NULLIF ( + 50, + CAST( NULL AS DECIMAL ) ) ) THEN 60 + 48 + + COUNT( DISTINCT - + 89 ) + 24 - + - 53 ELSE NULL END * + 13 * - + 94 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT - 67 * + CASE WHEN NOT NULL NOT IN ( - 87, - 15 + - + 64 + - + COUNT ( * ) - + NULLIF ( + 50, + CAST ( NULL AS REAL ) ) ) THEN 60 + 48 + + COUNT ( DISTINCT - + 89 ) + 24 - + - 53 ELSE NULL END * + 13 * - + 94 + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9116
SELECT - - 0 - NULLIF ( - + CAST( - COUNT( ALL 35 ) AS SIGNED ), + COALESCE ( + CAST( NULL AS SIGNED ), + - COUNT( ALL - 28 ) / - CAST( + + 33 AS SIGNED ) - - - 11 ) ) + - ( + + SUM( ALL + + 97 ) )
----
-98

skipif mysql # not compatible
query I rowsort label-9116
SELECT - - 0 - NULLIF ( - + CAST ( - COUNT ( ALL 35 ) AS INTEGER ), + COALESCE ( + CAST ( NULL AS INTEGER ), + - COUNT ( ALL - 28 ) / - CAST ( + + 33 AS INTEGER ) - - - 11 ) ) + - ( + + SUM ( ALL + + 97 ) )
----
-98

query I rowsort
SELECT DISTINCT - + 92 * 65 * - 3 + 2 * - + 40 + + 28 * + 98 AS col2
----
20604

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT 20 * + 70 + - + 59 + COUNT( * ) AS col2
----
1342

skipif mysql # not compatible
query I rowsort label-9118
SELECT 20 * + 70 + - + 59 + COUNT ( * ) AS col2
----
1342

query I rowsort
SELECT 51 - + 57 col2
----
-6

query I rowsort
SELECT ALL + 53 * - 86
----
-4558

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT ALL - - 78 + - + MAX( DISTINCT + + 82 )
----
-4

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL - - 78 + - + MAX ( DISTINCT + + 82 )
----
-4

query I rowsort
SELECT DISTINCT + - 16 + - 40 + - 52
----
-108

query I rowsort
SELECT ALL 11 + 24 AS col1
----
35

query I rowsort
SELECT ( 70 ) * + 1 AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT - 98 AS col0, + 12 * + COUNT( - - 70 ) * + COUNT( * )
----
-98
12

skipif mysql # not compatible
query II rowsort label-9125
SELECT - 98 AS col0, + 12 * + COUNT ( - - 70 ) * + COUNT ( * )
----
-98
12

query II rowsort
SELECT - 53 AS col1, 5 * + - 37
----
-53
-185

query I rowsort
SELECT 72 + 60 AS col0
----
132

query I rowsort
SELECT ALL 45 + - + 43 AS col2
----
2

query I rowsort
SELECT DISTINCT 74 - 65 AS col1
----
9

query II rowsort
SELECT 89 AS col0, 26 + + 52 + - - 70
----
89
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT 68 * - - 5 * - COUNT( * )
----
-340

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT 68 * - - 5 * - COUNT ( * )
----
-340

query II rowsort
SELECT 23 + 80 col0, - 5 * + - 81 * 82 AS col2
----
103
33210

onlyif mysql # aggregate syntax: 
query II rowsort label-9133
SELECT 44 AS col1, COUNT( * ) + - + 13 AS col1
----
44
-12

skipif mysql # not compatible
query II rowsort label-9133
SELECT 44 AS col1, COUNT ( * ) + - + 13 AS col1
----
44
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT DISTINCT + 53 * - 67 * - 60 + + NULLIF ( - 38, + - ( - - 34 ) + - COUNT( * ) ) * 16 + NULLIF ( ( + - 86 ), - 59 ) - 72 AS col1
----
212294

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT + 53 * - 67 * - 60 + + NULLIF ( - 38, + - ( - - 34 ) + - COUNT ( * ) ) * 16 + NULLIF ( ( + - 86 ), - 59 ) - 72 AS col1
----
212294

query II rowsort
SELECT DISTINCT - 99 AS col0, 50
----
-99
50

query II rowsort
SELECT DISTINCT - + 90 col2, 16 + - - 80 AS col2
----
-90
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL + NULLIF ( + 36, - - COUNT( * ) ) * - - 48 * + 35 AS col2
----
60480

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL + NULLIF ( + 36, - - COUNT ( * ) ) * - - 48 * + 35 AS col2
----
60480

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT 17 * NULLIF ( - COUNT( * ), - 37 - - 96 )
----
-17

skipif mysql # not compatible
query I rowsort label-9138
SELECT 17 * NULLIF ( - COUNT ( * ), - 37 - - 96 )
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9139
SELECT ALL - 9 DIV + 59 - - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL - 9 / + 59 - - - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9140
SELECT DISTINCT - + 68 * + 58 + - + 56 + + COUNT( * ) * - + ( - - 7 ) + + CAST( NULL AS SIGNED ), + ( - NULLIF ( + 58, 82 ) ) - + 1 AS col1
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-9140
SELECT DISTINCT - + 68 * + 58 + - + 56 + + COUNT ( * ) * - + ( - - 7 ) + + CAST ( NULL AS INTEGER ), + ( - NULLIF ( + 58, 82 ) ) - + 1 AS col1
----
NULL
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT - + COUNT( * ) * + 22 + + - COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9141
SELECT - + COUNT ( * ) * + 22 + + - COUNT ( * ) AS col0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9142
SELECT 9 DIV + + 77
----
0

skipif mysql # not compatible
query I rowsort label-9142
SELECT 9 / + + 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9143
SELECT ALL - 60 * + ( - - COALESCE ( + + 28, + + 12 ) ) + CASE 38 WHEN + - 50 * + 35 THEN NULL ELSE - - CAST( + ( CAST( - ( - CAST( - COUNT( * ) AS DECIMAL ) ) AS SIGNED ) ) AS SIGNED ) END AS col1
----
-1681

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL - 60 * + ( - - COALESCE ( + + 28, + + 12 ) ) + CASE 38 WHEN + - 50 * + 35 THEN NULL ELSE - - CAST ( + ( CAST ( - ( - CAST ( - COUNT ( * ) AS REAL ) ) AS INTEGER ) ) AS INTEGER ) END AS col1
----
-1681

query I rowsort
SELECT 96 + + 0 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9145
SELECT - COUNT( * ) * 29 - + 14 * - 59 + CAST( NULL AS SIGNED ) + + - COUNT( * ) / - MAX( - 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT - COUNT ( * ) * 29 - + 14 * - 59 + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) / - MAX ( - 50 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 27 + 96
----
69

query I rowsort
SELECT ALL + 68 + - 49
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9148
SELECT - 48 AS col1, - COUNT( * )
----
-48
-1

skipif mysql # not compatible
query II rowsort label-9148
SELECT - 48 AS col1, - COUNT ( * )
----
-48
-1

query I rowsort
SELECT ( - NULLIF ( - 74, 50 + 51 + + + 88 ) ) + - 44 * - + 21 col0
----
998

query II rowsort
SELECT 42 AS col0, - 76
----
42
-76

query I rowsort
SELECT ALL + 8 + + 80 + 0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT + 63 + - 88 + NULLIF ( ( 97 ), - CAST( 51 AS SIGNED ) ) * + 61 col2
----
5892

skipif mysql # not compatible
query I rowsort label-9152
SELECT + 63 + - 88 + NULLIF ( ( 97 ), - CAST ( 51 AS INTEGER ) ) * + 61 col2
----
5892

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL - + 26 + + MIN( + 88 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL - + 26 + + MIN ( + 88 ) AS col1
----
62

query I rowsort
SELECT 44 * 77
----
3388

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT CASE 36 WHEN MIN( ALL 7 ) THEN 12 + - 38 WHEN AVG ( + 12 ) * 81 * - 79 THEN NULLIF ( + 29, - 44 ) ELSE NULL END + - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT CASE 36 WHEN MIN ( ALL 7 ) THEN 12 + - 38 WHEN AVG ( + 12 ) * 81 * - 79 THEN NULLIF ( + 29, - 44 ) ELSE NULL END + - + 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9156
SELECT 89 + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) - - + 68 + + 77 - - COUNT( * ) + - 49 * + 45 / - COUNT( * ) * - 27 col0, 72 AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-9156
SELECT 89 + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) - - + 68 + + 77 - - COUNT ( * ) + - 49 * + 45 / - COUNT ( * ) * - 27 col0, 72 AS col0
----
NULL
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ( - MIN( + - 58 ) ) + 76 * 56 + + 71 AS col1
----
4385

skipif mysql # not compatible
query I rowsort label-9157
SELECT ( - MIN ( + - 58 ) ) + 76 * 56 + + 71 AS col1
----
4385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9158
SELECT ALL - 51 * + 20 * + 20, - COUNT( * ) + + CAST( NULL AS SIGNED ) + - - 82 col1
----
-20400
NULL

skipif mysql # not compatible
query II rowsort label-9158
SELECT ALL - 51 * + 20 * + 20, - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - - 82 col1
----
-20400
NULL

query I rowsort
SELECT ALL - 42 - - 3
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT ALL + 79 - + + 67 * - + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL + 79 - + + 67 * - + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9161
SELECT 84 * + COUNT( * ) AS col2, + 40 AS col1
----
84
40

skipif mysql # not compatible
query II rowsort label-9161
SELECT 84 * + COUNT ( * ) AS col2, + 40 AS col1
----
84
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9162
SELECT + MAX( DISTINCT + 86 ) AS col2, + 59 AS col1
----
86
59

skipif mysql # not compatible
query II rowsort label-9162
SELECT + MAX ( DISTINCT + 86 ) AS col2, + 59 AS col1
----
86
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT SUM( DISTINCT + + 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9163
SELECT SUM ( DISTINCT + + 44 ) AS col2
----
44

query II rowsort
SELECT ALL 55 * + - 82 AS col0, NULLIF ( - 81, + 34 ) AS col2
----
-4510
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT 4 DIV - - 52 * + 9
----
0

skipif mysql # not compatible
query I rowsort label-9165
SELECT 4 / - - 52 * + 9
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9166
SELECT COALESCE ( - 35, + COUNT( * ) + + 59, - NULLIF ( + 60, 62 * + COUNT( * ) ) ) * - 77 + 20 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9166
SELECT COALESCE ( - 35, + COUNT ( * ) + + 59, - NULLIF ( + 60, 62 * + COUNT ( * ) ) ) * - 77 + 20 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9167
SELECT + ( - 33 ) AS col2, COUNT( * ) AS col0
----
-33
1

skipif mysql # not compatible
query II rowsort label-9167
SELECT + ( - 33 ) AS col2, COUNT ( * ) AS col0
----
-33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT - 50 * - CASE 26 WHEN + - 28 * AVG ( 83 ) THEN + 21 END + + CASE - 88 WHEN + 35 THEN NULL WHEN + 83 THEN - 70 - + 15 * + 53 ELSE NULL END / + 96 * - - MAX( + 54 ) - + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT - 50 * - CASE 26 WHEN + - 28 * AVG ( 83 ) THEN + 21 END + + CASE - 88 WHEN + 35 THEN NULL WHEN + 83 THEN - 70 - + 15 * + 53 ELSE NULL END / + 96 * - - MAX ( + 54 ) - + 27 AS col1
----
NULL

query I rowsort
SELECT 86 / CASE - - 80 WHEN + 55 THEN + ( - 76 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9170
SELECT ALL - COUNT( ALL + 2 ) * + 0 * - MIN( DISTINCT + 39 ) DIV - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL - COUNT ( ALL + 2 ) * + 0 * - MIN ( DISTINCT + 39 ) / - 77 AS col0
----
0

query I rowsort
SELECT - 89 + 85
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9172
SELECT 20 * + NULLIF ( COALESCE ( + 44, - 75 + - 55 ), - CAST( NULL AS SIGNED ) ) - 70 - + 88 AS col0
----
722

skipif mysql # not compatible
query I rowsort label-9172
SELECT 20 * + NULLIF ( COALESCE ( + 44, - 75 + - 55 ), - CAST ( NULL AS INTEGER ) ) - 70 - + 88 AS col0
----
722

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ALL + SUM( + ( - 20 ) ) + 34
----
14

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL + SUM ( + ( - 20 ) ) + 34
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT ALL + NULLIF ( 8, - CAST( NULL AS SIGNED ) )
----
8

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL + NULLIF ( 8, - CAST ( NULL AS INTEGER ) )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9175
SELECT ALL - 28 + 36 + MIN( + 44 ) * MIN( 24 ) + + 25 AS col0, 50 col0
----
1089
50

skipif mysql # not compatible
query II rowsort label-9175
SELECT ALL - 28 + 36 + MIN ( + 44 ) * MIN ( 24 ) + + 25 AS col0, 50 col0
----
1089
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT DISTINCT 85 + COUNT( DISTINCT - + 6 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT 85 + COUNT ( DISTINCT - + 6 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT + COUNT( * ) * + 9 + + 65
----
74

skipif mysql # not compatible
query I rowsort label-9177
SELECT + COUNT ( * ) * + 9 + + 65
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT ALL CAST( NULL AS SIGNED ) + - 30 * + 90 * ( + 8 ) / + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL CAST ( NULL AS INTEGER ) + - 30 * + 90 * ( + 8 ) / + 63 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - + 63, + + COALESCE ( 25, + 7 ) / - + 48 ) + - 32 + + - 74
----
-43

query I rowsort
SELECT ALL - 87 * + - 60
----
5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT + 0 - 79 / - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT + 0 - 79 / - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - 11 * + 30 * + 9 AS col2
----
-2970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9183
SELECT - CASE + 31 WHEN - 53 THEN NULL WHEN - - 90 * - NULLIF ( - 48, - 91 / - 84 ) THEN - 67 + - + CAST( - 96 AS SIGNED ) WHEN - - COUNT( * ) / - 17 + - 67 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT - CASE + 31 WHEN - 53 THEN NULL WHEN - - 90 * - NULLIF ( - 48, - 91 / - 84 ) THEN - 67 + - + CAST ( - 96 AS INTEGER ) WHEN - - COUNT ( * ) / - 17 + - 67 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9184
SELECT 28 col0, + NULLIF ( + COUNT( * ), 53 * + + ( + 37 ) ) col1
----
28
1

skipif mysql # not compatible
query II rowsort label-9184
SELECT 28 col0, + NULLIF ( + COUNT ( * ), 53 * + + ( + 37 ) ) col1
----
28
1

query II rowsort
SELECT 1, 13 AS col2
----
1
13

query I rowsort
SELECT ALL - 10 - + 96
----
-106

query I rowsort
SELECT - 75 * + - 40
----
3000

onlyif mysql # aggregate syntax: 
query II rowsort label-9188
SELECT 9 AS col0, COUNT( * )
----
9
1

skipif mysql # not compatible
query II rowsort label-9188
SELECT 9 AS col0, COUNT ( * )
----
9
1

query I rowsort
SELECT ALL 40 * + 84 AS col2
----
3360

query I rowsort
SELECT DISTINCT 98 - - + 1 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT CASE + MAX( + 54 ) WHEN ( - + COUNT( * ) ) THEN - - 12 - + + COUNT( * ) ELSE - 18 * MIN( DISTINCT - 93 ) END
----
1674

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT CASE + MAX ( + 54 ) WHEN ( - + COUNT ( * ) ) THEN - - 12 - + + COUNT ( * ) ELSE - 18 * MIN ( DISTINCT - 93 ) END
----
1674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9192
SELECT ALL - 83 DIV - - NULLIF ( + MAX( - + CASE + + 63 WHEN - - 66 THEN NULL WHEN + 82 THEN + 36 + 28 ELSE - 40 END ), + 38 * - 4 - - - CAST( + - 10 AS SIGNED ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL - 83 / - - NULLIF ( + MAX ( - + CASE + + 63 WHEN - - 66 THEN NULL WHEN + 82 THEN + 36 + 28 ELSE - 40 END ), + 38 * - 4 - - - CAST ( + - 10 AS INTEGER ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL + 11 - - - COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL + 11 - - - COUNT ( * ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9194
SELECT - 3 AS col0, + COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-9194
SELECT - 3 AS col0, + COUNT ( * )
----
-3
1

query I rowsort
SELECT ALL 15 - ( + 76 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9196
SELECT - 21 * - - CAST( + 14 AS SIGNED ) * - - 56
----
-16464

skipif mysql # not compatible
query I rowsort label-9196
SELECT - 21 * - - CAST ( + 14 AS INTEGER ) * - - 56
----
-16464

onlyif mysql # aggregate syntax: 
query II rowsort label-9197
SELECT DISTINCT NULLIF ( + 33, - COUNT( * ) ) col2, 89
----
33
89

skipif mysql # not compatible
query II rowsort label-9197
SELECT DISTINCT NULLIF ( + 33, - COUNT ( * ) ) col2, 89
----
33
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ALL CASE 20 WHEN + 64 + - 25 * - 43 THEN NULL ELSE + + COUNT( * ) + NULLIF ( + 35, NULLIF ( - + 84, + 53 ) ) - + 51 END col0
----
-15

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL CASE 20 WHEN + 64 + - 25 * - 43 THEN NULL ELSE + + COUNT ( * ) + NULLIF ( + 35, NULLIF ( - + 84, + 53 ) ) - + 51 END col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9199
SELECT 44 AS col0, COUNT( * ) col1
----
44
1

skipif mysql # not compatible
query II rowsort label-9199
SELECT 44 AS col0, COUNT ( * ) col1
----
44
1

query I rowsort
SELECT - 68 + - 4 * 51 AS col2
----
-272

query I rowsort
SELECT DISTINCT - 93 * - 67
----
6231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9202
SELECT ALL - COALESCE ( 84, - ( - + 28 ) / 20 - + - 6, COUNT( * ) / - - COALESCE ( + ( + + 24 ), - CAST( NULL AS SIGNED ) * + ( 41 ) + - 44 ) + - 46 ) / - + CAST( NULL AS SIGNED ) + + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL - COALESCE ( 84, - ( - + 28 ) / 20 - + - 6, COUNT ( * ) / - - COALESCE ( + ( + + 24 ), - CAST ( NULL AS INTEGER ) * + ( 41 ) + - 44 ) + - 46 ) / - + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9203
SELECT - CAST( NULL AS DECIMAL ) * + 12 * 28 / - CASE - + 52 WHEN - 7 * + 67 + + 95 - 18 * + 31 THEN COUNT( * ) END + 88 + + COUNT( * ) + + - 37 * - 9 + + 93 + CAST( NULL AS DECIMAL ) + - 58 AS col1, 69 + + COUNT( * )
----
NULL
70

skipif mysql # not compatible
query II rowsort label-9203
SELECT - CAST ( NULL AS REAL ) * + 12 * 28 / - CASE - + 52 WHEN - 7 * + 67 + + 95 - 18 * + 31 THEN COUNT ( * ) END + 88 + + COUNT ( * ) + + - 37 * - 9 + + 93 + CAST ( NULL AS REAL ) + - 58 AS col1, 69 + + COUNT ( * )
----
NULL
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9204
SELECT + 60 DIV + - 70 + COUNT( - 89 ) + - + 64 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9204
SELECT + 60 / + - 70 + COUNT ( - 89 ) + - + 64 AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9205
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1, 91 + 18 AS col0
----
NULL
109

skipif mysql # not compatible
query II rowsort label-9205
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1, 91 + 18 AS col0
----
NULL
109

query I rowsort
SELECT ALL - + 24 * + + 38 + 68
----
-844

query I rowsort
SELECT ALL + - 58 * + - 86 + - 37 * + + 48 * + - 5 + + 76 * - 8
----
13260

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT MAX( - ( + 54 ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-9208
SELECT MAX ( - ( + 54 ) ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT - MIN( DISTINCT - - 59 ) * + + MAX( ALL - - 41 ) + - COUNT( * ) - - - ( + + 21 ) AS col2
----
-2441

skipif mysql # not compatible
query I rowsort label-9209
SELECT - MIN ( DISTINCT - - 59 ) * + + MAX ( ALL - - 41 ) + - COUNT ( * ) - - - ( + + 21 ) AS col2
----
-2441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9210
SELECT 74 * + 86 + - ( CAST( NULL AS SIGNED ) ) + + CAST( - COUNT( * ) AS DECIMAL ) * 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT 74 * + 86 + - ( CAST ( NULL AS INTEGER ) ) + + CAST ( - COUNT ( * ) AS REAL ) * 13 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT + CASE + 20 WHEN ( - MIN( DISTINCT + - 96 ) ) THEN + 77 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT + CASE + 20 WHEN ( - MIN ( DISTINCT + - 96 ) ) THEN + 77 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9212
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 81 * 72 + + + COALESCE ( - 32, - - 87 + + - 66 * - COALESCE ( NULLIF ( - 50, + 90 ), COUNT( * ) * - COUNT( * ) * - + ( - + 55 ) / + 63 * 86 * - + 37 + + 93 + + - 29 - + COALESCE ( + - 87, 74 ) ), + - 56 ) * + + ( 43 ) AS col1, 38 * - 82
----
NULL
-3116

skipif mysql # not compatible
query II rowsort label-9212
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 81 * 72 + + + COALESCE ( - 32, - - 87 + + - 66 * - COALESCE ( NULLIF ( - 50, + 90 ), COUNT ( * ) * - COUNT ( * ) * - + ( - + 55 ) / + 63 * 86 * - + 37 + + 93 + + - 29 - + COALESCE ( + - 87, 74 ) ), + - 56 ) * + + ( 43 ) AS col1, 38 * - 82
----
NULL
-3116

onlyif mysql # aggregate syntax: 
query II rowsort label-9213
SELECT DISTINCT + - 73 * MIN( 54 ) + 31 * + 85 + + 20 AS col0, + 24 + + MIN( + 68 )
----
-1287
92

skipif mysql # not compatible
query II rowsort label-9213
SELECT DISTINCT + - 73 * MIN ( 54 ) + 31 * + 85 + + 20 AS col0, + 24 + + MIN ( + 68 )
----
-1287
92

query I rowsort
SELECT + 18 + + + 87 AS col2
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9215
SELECT ALL - + 74 * 52 * - COUNT( * ) * 24 + 48 DIV ( 1 ) col2
----
92400

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL - + 74 * 52 * - COUNT ( * ) * 24 + 48 / ( 1 ) col2
----
92400

query I rowsort
SELECT DISTINCT - 75 * - 8 AS col2
----
600

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9217
SELECT - + 69 * + - 44 + + ( - - 56 ) + CAST( NULL AS DECIMAL ) + + 13 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT - + 69 * + - 44 + + ( - - 56 ) + CAST ( NULL AS REAL ) + + 13 - - COUNT ( * )
----
NULL

query I rowsort
SELECT COALESCE ( - 76, - 62, ( + 84 ) + 46 * + 82 ) * 46 * + 12 + - + ( - 57 )
----
-41895

query I rowsort
SELECT - ( ( - 68 ) ) AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9220
SELECT MAX( DISTINCT - + 38 ) * + CAST( ( - + 9 ) AS SIGNED ) + + 97 AS col2
----
439

skipif mysql # not compatible
query I rowsort label-9220
SELECT MAX ( DISTINCT - + 38 ) * + CAST ( ( - + 9 ) AS INTEGER ) + + 97 AS col2
----
439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9221
SELECT + CAST( NULL AS SIGNED ) + 64 - - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT + CAST ( NULL AS INTEGER ) + 64 - - 71
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9222
SELECT DISTINCT MAX( DISTINCT 37 ) AS col1, COUNT( * )
----
37
1

skipif mysql # not compatible
query II rowsort label-9222
SELECT DISTINCT MAX ( DISTINCT 37 ) AS col1, COUNT ( * )
----
37
1

query I rowsort
SELECT ALL - 79 * + 47 AS col2
----
-3713

onlyif mysql # aggregate syntax: 
query II rowsort label-9224
SELECT - 21 * - 99 * - SUM( DISTINCT - 11 ) AS col1, + 76 * + 8 AS col2
----
22869
608

skipif mysql # not compatible
query II rowsort label-9224
SELECT - 21 * - 99 * - SUM ( DISTINCT - 11 ) AS col1, + 76 * + 8 AS col2
----
22869
608

query I rowsort
SELECT DISTINCT 45 * - + 71 * + 80 AS col2
----
-255600

query I rowsort
SELECT - 56 * - 13 AS col0
----
728

query I rowsort
SELECT DISTINCT COALESCE ( - + 57, + 42 + - 16 )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT + ( - 35 ) DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-9228
SELECT + ( - 35 ) / - 68
----
0

query I rowsort
SELECT - 50 + 51 * - 45
----
-2345

onlyif mysql # DIV for integer division: 
query I rowsort label-9230
SELECT - 20 DIV 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT - 20 / 21 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL COUNT( * ) + + 9
----
10

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL COUNT ( * ) + + 9
----
10

query I rowsort
SELECT DISTINCT 85 * 44
----
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL COUNT( * ) * - + 8
----
-8

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL COUNT ( * ) * - + 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT ALL - 89 + SUM( ALL + + 88 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL - 89 + SUM ( ALL + + 88 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9235
SELECT DISTINCT + ( + MAX( - + 28 ) ) DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT + ( + MAX ( - + 28 ) ) / + 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9236
SELECT DISTINCT CASE - 96 WHEN ( - 82 ) THEN - + CAST( + + 87 AS SIGNED ) ELSE + NULLIF ( - CAST( - 61 AS SIGNED ), 46 + 91 + CASE - + ( + 93 ) WHEN - COUNT( * ) + ( 64 ) THEN + 71 * - COALESCE ( - + 45, - + ( CAST( NULL AS DECIMAL ) ) / - CASE 17 WHEN CAST( NULL AS SIGNED ) * + COUNT( * ) - - CAST( 60 AS DECIMAL ) THEN NULL WHEN + 48 THEN + + 27 / - 34 * - 58 WHEN + - 35 THEN - + 95 / - 34 + - 47 * - 47 + - 30 ELSE - MIN( 57 ) * + 20 + + - COUNT( * ) END + + 44 + - 77 / - - ( + ( ( + + COUNT( * ) ) ) ) ) ELSE - 96 END * 3 ) END
----
61

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT CASE - 96 WHEN ( - 82 ) THEN - + CAST ( + + 87 AS INTEGER ) ELSE + NULLIF ( - CAST ( - 61 AS INTEGER ), 46 + 91 + CASE - + ( + 93 ) WHEN - COUNT ( * ) + ( 64 ) THEN + 71 * - COALESCE ( - + 45, - + ( CAST ( NULL AS REAL ) ) / - CASE 17 WHEN CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - CAST ( 60 AS REAL ) THEN NULL WHEN + 48 THEN + + 27 / - 34 * - 58 WHEN + - 35 THEN - + 95 / - 34 + - 47 * - 47 + - 30 ELSE - MIN ( 57 ) * + 20 + + - COUNT ( * ) END + + 44 + - 77 / - - ( + ( ( + + COUNT ( * ) ) ) ) ) ELSE - 96 END * 3 ) END
----
61

query I rowsort
SELECT ALL + 33 * 69
----
2277

query I rowsort
SELECT ALL + - 87 + 68
----
-19

query I rowsort
SELECT - 53 * ( 56 ) * 95 + - 25 AS col1
----
-281985

query I rowsort
SELECT + 57 - - 4 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT + + MAX( ALL 13 )
----
13

skipif mysql # not compatible
query I rowsort label-9241
SELECT + + MAX ( ALL 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL - COALESCE ( ( + 73 ), - 21 + + SUM( ALL - 56 ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL - COALESCE ( ( + 73 ), - 21 + + SUM ( ALL - 56 ) ) AS col1
----
-73

query II rowsort
SELECT ( 89 ) AS col2, - 88 AS col0
----
89
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL - SUM( 12 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - SUM ( 12 ) AS col2
----
-12

query I rowsort
SELECT DISTINCT 37 + + - 92 + 60
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT - 7 - + COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9246
SELECT - 7 - + COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT ALL + 37 * 92 * - 1 AS col2
----
-3404

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL + + 7 * + MIN( ALL - 62 ) + - - 27
----
-407

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL + + 7 * + MIN ( ALL - 62 ) + - - 27
----
-407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9249
SELECT + COALESCE ( + 71, - 84, CASE WHEN NOT - COUNT( * ) IS NULL THEN NULL WHEN ( NULL ) IS NULL THEN + COALESCE ( + ( COUNT( * ) ), - - MIN( - 42 ) + 7 ) END ) AS col2, - NULLIF ( - + CAST( 86 AS SIGNED ), - MAX( - 0 ) * AVG ( DISTINCT - ( + CAST( NULL AS SIGNED ) ) ) + - 23 * - 37 )
----
71
86

skipif mysql # not compatible
query II rowsort label-9249
SELECT + COALESCE ( + 71, - 84, CASE WHEN NOT - COUNT ( * ) IS NULL THEN NULL WHEN ( NULL ) IS NULL THEN + COALESCE ( + ( COUNT ( * ) ), - - MIN ( - 42 ) + 7 ) END ) AS col2, - NULLIF ( - + CAST ( 86 AS INTEGER ), - MAX ( - 0 ) * AVG ( DISTINCT - ( + CAST ( NULL AS INTEGER ) ) ) + - 23 * - 37 )
----
71
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT + 43 * - - NULLIF ( - - NULLIF ( COUNT( DISTINCT 54 ), - 35 ), 32 + + COUNT( * ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9250
SELECT + 43 * - - NULLIF ( - - NULLIF ( COUNT ( DISTINCT 54 ), - 35 ), 32 + + COUNT ( * ) ) AS col0
----
43

query I rowsort
SELECT 41 + - 12 + - 17 * - - 14 AS col2
----
-209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9252
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + 51 * + MAX( ALL - - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + 51 * + MAX ( ALL - - 85 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9253
SELECT ALL COUNT( * ) * - COALESCE ( 80, - + 7 * + 8 * + 63 DIV - COUNT( * ) + - 56 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL COUNT ( * ) * - COALESCE ( 80, - + 7 * + 8 * + 63 / - COUNT ( * ) + - 56 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT DISTINCT + 10 - + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + 10 - + COUNT ( * ) AS col0
----
9

query I rowsort
SELECT DISTINCT 40 * - 48 * - 66 * + 31
----
3928320

query I rowsort
SELECT ( + 8 ) * + 25
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT 72 * + + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-9257
SELECT 72 * + + COUNT ( * )
----
72

query I rowsort
SELECT ALL 86 * + 55 AS col1
----
4730

query I rowsort
SELECT DISTINCT 4 * - 58 AS col0
----
-232

query I rowsort
SELECT 88 + + 8
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9261
SELECT ALL 55 AS col2, + COUNT( * ) * 57
----
55
57

skipif mysql # not compatible
query II rowsort label-9261
SELECT ALL 55 AS col2, + COUNT ( * ) * 57
----
55
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT MIN( ALL - + 84 ) * + 22 AS col1
----
-1848

skipif mysql # not compatible
query I rowsort label-9262
SELECT MIN ( ALL - + 84 ) * + 22 AS col1
----
-1848

query I rowsort
SELECT ALL 32 + + 12 col1
----
44

query I rowsort
SELECT 13 - + - 13
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9265
SELECT ALL 66 AS col1, 54 * + 81 - - + COUNT( * )
----
66
4375

skipif mysql # not compatible
query II rowsort label-9265
SELECT ALL 66 AS col1, 54 * + 81 - - + COUNT ( * )
----
66
4375

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT ( + SUM( DISTINCT - 96 ) ) + - + 36 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-9266
SELECT ( + SUM ( DISTINCT - 96 ) ) + - + 36 AS col0
----
-132

query I rowsort
SELECT ALL + 48 * - + 66
----
-3168

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT DISTINCT COALESCE ( - SUM( ALL - + 60 ), 70 ) + 41 * + 89 AS col1
----
3709

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT COALESCE ( - SUM ( ALL - + 60 ), 70 ) + 41 * + 89 AS col1
----
3709

query I rowsort
SELECT ALL 96 + + 18
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT 42 DIV + - 70 * + 85
----
0

skipif mysql # not compatible
query I rowsort label-9270
SELECT 42 / + - 70 * + 85
----
0

query I rowsort
SELECT ALL ( + 3 ) + + 49 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL ( + 71 ) * COUNT( - 24 )
----
71

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL ( + 71 ) * COUNT ( - 24 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT 58 - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9273
SELECT 58 - COUNT ( * )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT DISTINCT + 31 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT + 31 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9275
SELECT CAST( NULL AS SIGNED ) + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT CAST ( NULL AS INTEGER ) + 1
----
NULL

query I rowsort
SELECT ALL - 59 + - COALESCE ( + 74, - 70 )
----
-133

query I rowsort
SELECT 48 + - 46 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT DISTINCT - COUNT( ( 77 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT - COUNT ( ( 77 ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT ALL - 86 DIV + 61 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL - 86 / + 61 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9280
SELECT + CAST( 1 AS SIGNED ) / COUNT( * ) + - 72 * - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT + CAST ( 1 AS INTEGER ) / COUNT ( * ) + - 72 * - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 59 - ( ( - 76 ) + + 23 * 95 ) AS col2
----
-2050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9282
SELECT MIN( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT MIN ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT ALL - 87 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL - 87 / 97
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9284
SELECT 53 + + CAST( - COUNT( - 72 ) AS SIGNED ) * - 62
----
115

skipif mysql # not compatible
query I rowsort label-9284
SELECT 53 + + CAST ( - COUNT ( - 72 ) AS INTEGER ) * - 62
----
115

query I rowsort
SELECT + 13 * - 13 + 43
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL - COALESCE ( 24, + 77 * 1, - CASE - 29 WHEN + 51 * 13 + - COUNT( * ) * + 1 THEN COUNT( * ) * - COUNT( * ) WHEN 72 * - 60 THEN NULL ELSE NULL END + COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL - COALESCE ( 24, + 77 * 1, - CASE - 29 WHEN + 51 * 13 + - COUNT ( * ) * + 1 THEN COUNT ( * ) * - COUNT ( * ) WHEN 72 * - 60 THEN NULL ELSE NULL END + COUNT ( * ) )
----
-24

query I rowsort
SELECT ALL + 14 * - 9 AS col2
----
-126

query I rowsort
SELECT 88 + - 53 AS col1
----
35

query I rowsort
SELECT DISTINCT + 6 * 95
----
570

onlyif mysql # DIV for integer division: 
query I rowsort label-9290
SELECT 72 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9290
SELECT 72 / + 83 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9291
SELECT 78 + CAST( NULL AS SIGNED ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT 78 + CAST ( NULL AS INTEGER ) * 68
----
NULL

query I rowsort
SELECT 52 * 66 + + 9
----
3441

onlyif mysql # DIV for integer division: 
query I rowsort label-9293
SELECT 97 DIV 37
----
2

skipif mysql # not compatible
query I rowsort label-9293
SELECT 97 / 37
----
2

query I rowsort
SELECT 33 + + 59 * + 78 AS col0
----
4635

query I rowsort
SELECT ALL 56 + + 12
----
68

query I rowsort
SELECT 4 + + 27
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL COALESCE ( COUNT( * ), - NULLIF ( - 56, 94 ) * + 2 ) + - 48
----
-47

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL COALESCE ( COUNT ( * ), - NULLIF ( - 56, 94 ) * + 2 ) + - 48
----
-47

query I rowsort
SELECT - 80 * 52 + 16 AS col2
----
-4144

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL MIN( 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL MIN ( 23 ) AS col1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9300
SELECT ALL - 62 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - 62 / - 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT DISTINCT + COUNT( * ) + - 8 col0
----
-7

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT + COUNT ( * ) + - 8 col0
----
-7

query I rowsort
SELECT ALL 26 * 17 AS col0
----
442

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL ( - COUNT( * ) ) * + 66 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL ( - COUNT ( * ) ) * + 66 AS col1
----
-66

query I rowsort
SELECT ALL + ( - 90 ) + - 24 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT DISTINCT 55 * COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT 55 * COUNT ( * )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9306
SELECT 13 DIV + 9
----
1

skipif mysql # not compatible
query I rowsort label-9306
SELECT 13 / + 9
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT + 85 + NULLIF ( - COUNT( - 13 ), + 63 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9307
SELECT + 85 + NULLIF ( - COUNT ( - 13 ), + 63 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL ( - COUNT( * ) ) * - 34 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL ( - COUNT ( * ) ) * - 34 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT - 26 * COALESCE ( 72 * COALESCE ( 25 * 38, - 76 ), MIN( + 77 ), + 99 )
----
-1778400

skipif mysql # not compatible
query I rowsort label-9309
SELECT - 26 * COALESCE ( 72 * COALESCE ( 25 * 38, - 76 ), MIN ( + 77 ), + 99 )
----
-1778400

query I rowsort
SELECT + 9 + 75 AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9311
SELECT ALL - ( CAST( MAX( + 63 ) AS SIGNED ) ) + - 35 DIV - 66 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - ( CAST ( MAX ( + 63 ) AS INTEGER ) ) + - 35 / - 66 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL + MIN( DISTINCT + 0 ) - ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL + MIN ( DISTINCT + 0 ) - ( + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + - 82 * + 38
----
-3116

query I rowsort
SELECT + 28 - + 40 AS col0
----
-12

query I rowsort
SELECT + 98 * 55 AS col1
----
5390

query I rowsort
SELECT + 42 - + 92 col2
----
-50

query I rowsort
SELECT + 55 + 46 * ( + 44 * 25 + 67 * - 17 ) col2
----
-1739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9318
SELECT 43 DIV 95 + - COALESCE ( + 25, - COUNT( * ) DIV + 1, + NULLIF ( - 36, 82 * - COUNT( * ) ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-9318
SELECT 43 / 95 + - COALESCE ( + 25, - COUNT ( * ) / + 1, + NULLIF ( - 36, 82 * - COUNT ( * ) ) ) AS col0
----
-25

query I rowsort
SELECT DISTINCT + 38 * 62 AS col1
----
2356

query I rowsort
SELECT ALL + + ( - ( + 0 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT ( + 2 ) DIV 71 - + 16 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9321
SELECT ( + 2 ) / 71 - + 16 AS col2
----
-16

query I rowsort
SELECT ALL - 94 * - 12 AS col0
----
1128

query I rowsort
SELECT - 0 * + 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT DISTINCT + - SUM( 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT + - SUM ( 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT COALESCE ( 6, 73 + 84, COUNT( * ) - + COUNT( ALL + 26 ) )
----
6

skipif mysql # not compatible
query I rowsort label-9325
SELECT COALESCE ( 6, 73 + 84, COUNT ( * ) - + COUNT ( ALL + 26 ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + COALESCE ( - COUNT( * ), SUM( - ( 51 ) ) + + 24 * - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9326
SELECT + COALESCE ( - COUNT ( * ), SUM ( - ( 51 ) ) + + 24 * - COUNT ( * ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9327
SELECT - 81 DIV - + 43 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9327
SELECT - 81 / - + 43 AS col0
----
1

query I rowsort
SELECT + 93 * + 59 * NULLIF ( + 43, - 40 )
----
235941

onlyif mysql # DIV for integer division: 
query I rowsort label-9329
SELECT DISTINCT - 47 DIV - + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT - 47 / - + 60 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9330
SELECT + CAST( - 41 AS SIGNED ) * ( 4 ) col1
----
-164

skipif mysql # not compatible
query I rowsort label-9330
SELECT + CAST ( - 41 AS INTEGER ) * ( 4 ) col1
----
-164

query I rowsort
SELECT DISTINCT - NULLIF ( - + 44, - ( 11 ) ) * 67 AS col2
----
2948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9332
SELECT ALL - 38 * SUM( CAST( NULL AS SIGNED ) ) + - CAST( CASE 98 WHEN - 93 * 92 THEN + 73 + CAST( - 25 AS SIGNED ) * - 2 END AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - 38 * SUM ( CAST ( NULL AS INTEGER ) ) + - CAST ( CASE 98 WHEN - 93 * 92 THEN + 73 + CAST ( - 25 AS INTEGER ) * - 2 END AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT DISTINCT COUNT( 21 ) * 33 + 71 col0
----
104

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT COUNT ( 21 ) * 33 + 71 col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT DISTINCT + 5 * + COUNT( * ) + 51 * 98 AS col0
----
5003

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT + 5 * + COUNT ( * ) + 51 * 98 AS col0
----
5003

query I rowsort
SELECT DISTINCT - 49 * - 40
----
1960

query I rowsort
SELECT ALL ( + + 97 ) AS col0
----
97

query I rowsort
SELECT 94 * - 50 + 10 AS col1
----
-4690

query I rowsort
SELECT + 61 * + 30 * 70 AS col0
----
128100

query I rowsort
SELECT - 73 * + + 40
----
-2920

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT - CASE - + 51 WHEN COUNT( * ) * 88 THEN 20 + - AVG ( DISTINCT - 34 + 78 * + 82 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT - CASE - + 51 WHEN COUNT ( * ) * 88 THEN 20 + - AVG ( DISTINCT - 34 + 78 * + 82 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL + + NULLIF ( COUNT( ( + 47 ) ), + 74 ) - 21
----
-20

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL + + NULLIF ( COUNT ( ( + 47 ) ), + 74 ) - 21
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT - 32 - - 48 DIV + 99
----
-32

skipif mysql # not compatible
query I rowsort label-9342
SELECT - 32 - - 48 / + 99
----
-32

query I rowsort
SELECT - - 21 * 92
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT - 46 - - COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9344
SELECT - 46 - - COUNT ( * ) AS col0
----
-45

query I rowsort
SELECT ALL 85 * + + 67 + 57 col0
----
5752

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT DISTINCT - - 75 DIV 6 col2
----
12

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT - - 75 / 6 col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9347
SELECT ALL + - 13 - - + ( + 2 ) + CASE + 18 + COUNT( * ) WHEN CAST( 69 AS SIGNED ) + 35 DIV 65 THEN 70 * - 65 WHEN 96 + COUNT( * ) * COUNT( * ) THEN NULL ELSE ( + 84 ) END DIV - 89 col0
----
-11

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + - 13 - - + ( + 2 ) + CASE + 18 + COUNT ( * ) WHEN CAST ( 69 AS INTEGER ) + 35 / 65 THEN 70 * - 65 WHEN 96 + COUNT ( * ) * COUNT ( * ) THEN NULL ELSE ( + 84 ) END / - 89 col0
----
-11

query I rowsort
SELECT - NULLIF ( + + 68, - 41 * - 7 )
----
-68

query I rowsort
SELECT + 73 + 51 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT ALL - COUNT( * ) * 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL - COUNT ( * ) * 30 AS col0
----
-30

query I rowsort
SELECT - 12 + 80 - 53
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT + + ( - - 59 ) DIV 34
----
1

skipif mysql # not compatible
query I rowsort label-9352
SELECT + + ( - - 59 ) / 34
----
1

query I rowsort
SELECT ALL - - 0 * - ( - 19 )
----
0

query I rowsort
SELECT + - 64 - + 95 + 80 AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9355
SELECT ALL - AVG ( + - 11 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL - AVG ( + - 11 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - + 94 + - 93 AS col2
----
-187

query I rowsort
SELECT + + 89 - + 50
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT + - COUNT( * ) + - + 86
----
-87

skipif mysql # not compatible
query I rowsort label-9358
SELECT + - COUNT ( * ) + - + 86
----
-87

query I rowsort
SELECT + - ( - + 53 ) * 55
----
2915

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT ALL - - COUNT( * ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL - - COUNT ( * ) * - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT + MAX( + 84 ) + NULLIF ( - 92, 92 * 84 )
----
-8

skipif mysql # not compatible
query I rowsort label-9361
SELECT + MAX ( + 84 ) + NULLIF ( - 92, 92 * 84 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9362
SELECT CAST( ( 54 ) AS SIGNED ) * 16 + + 30 DIV - 64
----
864

skipif mysql # not compatible
query I rowsort label-9362
SELECT CAST ( ( 54 ) AS INTEGER ) * 16 + + 30 / - 64
----
864

query I rowsort
SELECT + 98 * 24 col1
----
2352

onlyif mysql # DIV for integer division: 
query I rowsort label-9364
SELECT ALL 67 DIV - ( - 26 ) + 85 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL 67 / - ( - 26 ) + 85 AS col0
----
87

query I rowsort
SELECT ( - ( 17 ) ) * + 81 + COALESCE ( 91, 93 )
----
-1286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT + 75 * + ( - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT + 75 * + ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT DISTINCT + 21 DIV - - 42 + + 1 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT + 21 / - - 42 + + 1 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT ALL + 71 DIV - 67 + 87
----
86

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL + 71 / - 67 + 87
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9369
SELECT ALL - MIN( 65 ) DIV - 13 - + 21 * 7 + + 68 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL - MIN ( 65 ) / - 13 - + 21 * 7 + + 68 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT DISTINCT + CASE WHEN NOT ( NULL ) <> + 74 THEN + 43 * - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT + CASE WHEN NOT ( NULL ) <> + 74 THEN + 43 * - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( + 35 ) col0
----
35

query I rowsort
SELECT ALL + ( - ( + ( - 80 ) ) ) AS col2
----
80

query I rowsort
SELECT + 15 + + + 77
----
92

query I rowsort
SELECT - ( - - 10 ) * + - 57 * 38 + - 21 AS col1
----
21639

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9375
SELECT - 72 * - - 73 + + - AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT - 72 * - - 73 + + - AVG ( DISTINCT CAST ( NULL AS REAL ) ) * 79
----
NULL

query II rowsort
SELECT + 8, + 65 * + 30 * + 26 col0
----
8
50700

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT 13 + - NULLIF ( + 37, - CASE COUNT( * ) WHEN - SUM( 27 ) THEN 9 + 0 WHEN - 24 THEN NULL END + SUM( 69 ) ) + - 37 * 49 AS col1
----
-1837

skipif mysql # not compatible
query I rowsort label-9377
SELECT 13 + - NULLIF ( + 37, - CASE COUNT ( * ) WHEN - SUM ( 27 ) THEN 9 + 0 WHEN - 24 THEN NULL END + SUM ( 69 ) ) + - 37 * 49 AS col1
----
-1837

onlyif mysql # aggregate syntax: 
query II rowsort label-9378
SELECT 87 AS col1, 58 * + 21 * NULLIF ( CASE 15 WHEN - SUM( DISTINCT 77 ) THEN ( - 5 ) - 36 ELSE NULL END, - 37 ) AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-9378
SELECT 87 AS col1, 58 * + 21 * NULLIF ( CASE 15 WHEN - SUM ( DISTINCT 77 ) THEN ( - 5 ) - 36 ELSE NULL END, - 37 ) AS col2
----
87
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9379
SELECT 58 + + CASE + - 69 WHEN - NULLIF ( 0, 52 * - 18 ) * + 45 + - MIN( DISTINCT 48 + 68 ) THEN + 21 * - CAST( NULL AS SIGNED ) WHEN CAST( NULL AS SIGNED ) * 16 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT 58 + + CASE + - 69 WHEN - NULLIF ( 0, 52 * - 18 ) * + 45 + - MIN ( DISTINCT 48 + 68 ) THEN + 21 * - CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) * 16 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9380
SELECT ALL + ( + 94 ) - - 84 + SUM( ALL 58 ) DIV COUNT( * )
----
236

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL + ( + 94 ) - - 84 + SUM ( ALL 58 ) / COUNT ( * )
----
236

query I rowsort
SELECT ALL - 27 * + 86 AS col2
----
-2322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9382
SELECT 38 + - 79 * 6 DIV NULLIF ( - 14 * COUNT( * ), COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-9382
SELECT 38 + - 79 * 6 / NULLIF ( - 14 * COUNT ( * ), COUNT ( * ) )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9383
SELECT DISTINCT 26 AS col2, 16 DIV 39 * COALESCE ( - 2 * COUNT( * ), + 10 * CASE + SUM( 9 ) WHEN ( - ( 31 ) ) DIV COALESCE ( NULLIF ( - SUM( DISTINCT + 2 ), ( 81 ) ), 65 * 58 + - ( 93 ) ) THEN NULL WHEN + 68 THEN 70 END )
----
26
0

skipif mysql # not compatible
query II rowsort label-9383
SELECT DISTINCT 26 AS col2, 16 / 39 * COALESCE ( - 2 * COUNT ( * ), + 10 * CASE + SUM ( 9 ) WHEN ( - ( 31 ) ) / COALESCE ( NULLIF ( - SUM ( DISTINCT + 2 ), ( 81 ) ), 65 * 58 + - ( 93 ) ) THEN NULL WHEN + 68 THEN 70 END )
----
26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT - 44 + COALESCE ( - 25, + COUNT( - 24 ) * 48 ) - 85 * + 38 AS col0
----
-3299

skipif mysql # not compatible
query I rowsort label-9384
SELECT - 44 + COALESCE ( - 25, + COUNT ( - 24 ) * 48 ) - 85 * + 38 AS col0
----
-3299

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT ALL - - 73 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - - 73 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 95 col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT SUM( - + 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9387
SELECT SUM ( - + 39 ) AS col0
----
-39

query I rowsort
SELECT - ( - - ( ( 8 ) ) ) * CASE 7 / 42 WHEN 60 + 35 THEN - 61 WHEN - 54 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 93 + - + CASE 99 WHEN ( - 2 ) THEN NULL ELSE - 40 * - 2 END
----
13

query I rowsort
SELECT ( 48 ) * - ( 14 )
----
-672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9391
SELECT ALL + - MAX( ALL 14 ) DIV + + COUNT( * ) + - 55 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL + - MAX ( ALL 14 ) / + + COUNT ( * ) + - 55 AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9392
SELECT ALL + COALESCE ( - - COALESCE ( + - 4, + 92 * + 28 ), 70 ) DIV COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL + COALESCE ( - - COALESCE ( + - 4, + 92 * + 28 ), 70 ) / COUNT ( * )
----
-4

query II rowsort
SELECT - 48, - 24 - + - 45 AS col0
----
-48
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT + MIN( DISTINCT 26 ) + 62 * + 45
----
2816

skipif mysql # not compatible
query I rowsort label-9394
SELECT + MIN ( DISTINCT 26 ) + 62 * + 45
----
2816

query I rowsort
SELECT DISTINCT - + 68 + + 57 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT DISTINCT - 30 + - ( 2 ) * ( COALESCE ( + COUNT( * ), + COUNT( DISTINCT - NULLIF ( + 8, + 92 ) ) ) * + 17 + ( 41 ) )
----
-146

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT - 30 + - ( 2 ) * ( COALESCE ( + COUNT ( * ), + COUNT ( DISTINCT - NULLIF ( + 8, + 92 ) ) ) * + 17 + ( 41 ) )
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9397
SELECT + 82 DIV + - 88 + - + ( SUM( - 19 ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9397
SELECT + 82 / + - 88 + - + ( SUM ( - 19 ) ) AS col0
----
19

query II rowsort
SELECT - - 2 AS col1, - 32 + - - 67 + - 44 * 79 AS col1
----
2
-3441

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT + ( - 15 ) - + COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9399
SELECT + ( - 15 ) - + COUNT ( * ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL - + CASE COUNT( * ) WHEN + 19 THEN NULL ELSE SUM( ALL ( - 79 ) ) END + + 88 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL - + CASE COUNT ( * ) WHEN + 19 THEN NULL ELSE SUM ( ALL ( - 79 ) ) END + + 88 AS col1
----
167

query I rowsort
SELECT - 35 * + + 15 AS col2
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT 35 - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-9402
SELECT 35 - COUNT ( * )
----
34

query I rowsort
SELECT + 9 * 2 AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9404
SELECT DISTINCT 22 + + - 2 + - + 32 + - 56 + COUNT( * ) DIV + 23 * + COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT 22 + + - 2 + - + 32 + - 56 + COUNT ( * ) / + 23 * + COUNT ( * ) AS col1
----
-68

query I rowsort
SELECT 38 * + 64 + - 39
----
2393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9406
SELECT 93 DIV 12 + CAST( + + COUNT( * ) AS SIGNED ) * + 62
----
69

skipif mysql # not compatible
query I rowsort label-9406
SELECT 93 / 12 + CAST ( + + COUNT ( * ) AS INTEGER ) * + 62
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL ( - 46 ) + - COALESCE ( 47, - COUNT( * ) * 32 + + 78 ) + - CASE 78 WHEN 1 + + 68 THEN + 17 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL ( - 46 ) + - COALESCE ( 47, - COUNT ( * ) * 32 + + 78 ) + - CASE 78 WHEN 1 + + 68 THEN + 17 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 21 + - 27 AS col1
----
-6

query I rowsort
SELECT ( - - 90 ) - - 21
----
111

query I rowsort
SELECT 6 * - 56 * - + 66 AS col2
----
22176

query I rowsort
SELECT 16 + + 41
----
57

query I rowsort
SELECT ALL 67 - 91
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT ALL ( CAST( + - ( - 77 ) AS SIGNED ) ) * 40 AS col0
----
3080

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL ( CAST ( + - ( - 77 ) AS INTEGER ) ) * 40 AS col0
----
3080

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT ALL NULLIF ( - 34, + 37 * + 16 DIV + 27 ) DIV + 66 col2
----
0

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL NULLIF ( - 34, + 37 * + 16 / + 27 ) / + 66 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT NULLIF ( MAX( ALL + CASE - - 92 WHEN + 68 THEN + 15 ELSE NULL END ), - 12 ) / 30 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT NULLIF ( MAX ( ALL + CASE - - 92 WHEN + 68 THEN + 15 ELSE NULL END ), - 12 ) / 30 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9416
SELECT ALL 31 - + COUNT( * ) * + 11 DIV - - 96 * - 70 col1
----
31

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL 31 - + COUNT ( * ) * + 11 / - - 96 * - 70 col1
----
31

query II rowsort
SELECT ALL + 77 - 53, - 63 AS col2
----
24
-63

query I rowsort
SELECT - 51 * - 28
----
1428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT CAST( NULL AS SIGNED ) * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT CAST ( NULL AS INTEGER ) * - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT 9 + - + ( + COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-9420
SELECT 9 + - + ( + COUNT ( * ) )
----
8

query I rowsort
SELECT ALL 91 + + 47 * - 36 AS col2
----
-1601

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT 78 + 51 + - 96 * - COUNT( * ) * - ( - 2 )
----
321

skipif mysql # not compatible
query I rowsort label-9422
SELECT 78 + 51 + - 96 * - COUNT ( * ) * - ( - 2 )
----
321

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9423
SELECT ALL - CAST( NULL AS DECIMAL ) + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL - CAST ( NULL AS REAL ) + - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT + 58 + CASE + + 52 WHEN + 76 THEN NULL WHEN COUNT( * ) * - 65 THEN + 74 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9424
SELECT + 58 + CASE + + 52 WHEN + 76 THEN NULL WHEN COUNT ( * ) * - 65 THEN + 74 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT DISTINCT - + COUNT( * ) + + ( - 26 ) + - 51 * - 24 col0
----
1197

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT - + COUNT ( * ) + + ( - 26 ) + - 51 * - 24 col0
----
1197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT 58 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT 58 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL - + MAX( ALL + - 14 ) + - - 12 + - 3
----
23

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL - + MAX ( ALL + - 14 ) + - - 12 + - 3
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT - 24 + - COUNT( * ) * COUNT( * ) + - - COUNT( * ) + - COUNT( * ) * - CASE + 76 * + SUM( 71 ) WHEN + 74 * 72 THEN NULL WHEN + 4 THEN NULL ELSE COUNT( * ) - 17 END AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-9428
SELECT - 24 + - COUNT ( * ) * COUNT ( * ) + - - COUNT ( * ) + - COUNT ( * ) * - CASE + 76 * + SUM ( 71 ) WHEN + 74 * 72 THEN NULL WHEN + 4 THEN NULL ELSE COUNT ( * ) - 17 END AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT 48 - + - 36 * - 14 + + 27 DIV + 12 AS col0
----
-454

skipif mysql # not compatible
query I rowsort label-9429
SELECT 48 - + - 36 * - 14 + + 27 / + 12 AS col0
----
-454

query I rowsort
SELECT 50 + + + COALESCE ( + ( - 93 ), - 1 * - 57, + 28 - - 35, - 66 * + 43 + 44, 0 + - 93 * 1 ) AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9431
SELECT - COUNT( * ) + + 45 + + 66 + + + 8 DIV 62 * COUNT( + 42 - 42 ) AS col2
----
110

skipif mysql # not compatible
query I rowsort label-9431
SELECT - COUNT ( * ) + + 45 + + 66 + + + 8 / 62 * COUNT ( + 42 - 42 ) AS col2
----
110

query I rowsort
SELECT ALL 11 + - + 25 col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT DISTINCT + NULLIF ( + 2, - 49 ) DIV 15
----
0

skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT + NULLIF ( + 2, - 49 ) / 15
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT ALL + CAST( NULL AS SIGNED ) + + AVG ( ALL 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL + CAST ( NULL AS INTEGER ) + + AVG ( ALL 21 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9435
SELECT 17 + + 21 DIV + + 86
----
17

skipif mysql # not compatible
query I rowsort label-9435
SELECT 17 + + 21 / + + 86
----
17

query I rowsort
SELECT COALESCE ( 80, - 10 ) AS col2
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9437
SELECT 7 DIV - + 30 + 91 * - + 2 + 0 AS col1
----
-182

skipif mysql # not compatible
query I rowsort label-9437
SELECT 7 / - + 30 + 91 * - + 2 + 0 AS col1
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT DISTINCT + 17 DIV - 48 * - 78 * 5
----
0

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT + 17 / - 48 * - 78 * 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT ALL + COUNT( ALL 25 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL + COUNT ( ALL 25 ) AS col0
----
1

query I rowsort
SELECT - 62 * + 72
----
-4464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9441
SELECT - MAX( - - CASE + - CAST( NULL AS SIGNED ) WHEN - + 53 + + - 74 + + 38 THEN NULL ELSE - 30 END ) * 55
----
1650

skipif mysql # not compatible
query I rowsort label-9441
SELECT - MAX ( - - CASE + - CAST ( NULL AS INTEGER ) WHEN - + 53 + + - 74 + + 38 THEN NULL ELSE - 30 END ) * 55
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT - 80 + - ( - 65 ) + COUNT( * ) * - 30 + 80
----
35

skipif mysql # not compatible
query I rowsort label-9442
SELECT - 80 + - ( - 65 ) + COUNT ( * ) * - 30 + 80
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9443
SELECT - 39 * COUNT( * ) * - CASE + 95 WHEN + 73 THEN NULL WHEN 69 * + 10 THEN 47 ELSE COUNT( * ) DIV NULLIF ( - 73 * - 2, - 71 ) + 46 END AS col2
----
1794

skipif mysql # not compatible
query I rowsort label-9443
SELECT - 39 * COUNT ( * ) * - CASE + 95 WHEN + 73 THEN NULL WHEN 69 * + 10 THEN 47 ELSE COUNT ( * ) / NULLIF ( - 73 * - 2, - 71 ) + 46 END AS col2
----
1794

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT CASE 28 WHEN + - 16 * - 69 / 75 - 1 THEN NULL WHEN - 91 - 89 THEN COUNT( DISTINCT - 72 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT CASE 28 WHEN + - 16 * - 69 / 75 - 1 THEN NULL WHEN - 91 - 89 THEN COUNT ( DISTINCT - 72 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9445
SELECT CASE 10 WHEN 7 THEN NULL WHEN CAST( NULL AS SIGNED ) * + + MAX( DISTINCT 66 ) + - 38 * + 28 THEN - 15 * 50 ELSE + 62 + 75 * 28 END
----
2162

skipif mysql # not compatible
query I rowsort label-9445
SELECT CASE 10 WHEN 7 THEN NULL WHEN CAST ( NULL AS INTEGER ) * + + MAX ( DISTINCT 66 ) + - 38 * + 28 THEN - 15 * 50 ELSE + 62 + 75 * 28 END
----
2162

query I rowsort
SELECT ALL + ( - 56 ) * + + 41
----
-2296

query I rowsort
SELECT - 9 * + 86 AS col0
----
-774

query II rowsort
SELECT ALL + 12, - 21 * - 64 AS col1
----
12
1344

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9449
SELECT ALL + 27 * + 42 * 69 AS col2, + CAST( NULL AS DECIMAL ) + - COUNT( * ) - 4 * - COUNT( * ) AS col2
----
78246
NULL

skipif mysql # not compatible
query II rowsort label-9449
SELECT ALL + 27 * + 42 * 69 AS col2, + CAST ( NULL AS REAL ) + - COUNT ( * ) - 4 * - COUNT ( * ) AS col2
----
78246
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9450
SELECT + 2 + + + ( - 9 ) AS col0, 6 DIV CAST( 42 AS SIGNED ) col2
----
-7
0

skipif mysql # not compatible
query II rowsort label-9450
SELECT + 2 + + + ( - 9 ) AS col0, 6 / CAST ( 42 AS INTEGER ) col2
----
-7
0

query I rowsort
SELECT ALL + ( + + 54 ) AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9452
SELECT + COUNT( * ) * + CASE + 8 WHEN - 20 * + CAST( NULL AS SIGNED ) * COUNT( * ) THEN NULL WHEN + 10 - - CASE 88 WHEN + 20 THEN - ( - ( + COALESCE ( 36, 93 ) ) ) / - 73 WHEN 68 THEN NULL WHEN + 97 THEN + COUNT( * ) ELSE 40 * + 49 END THEN - 32 WHEN + 79 THEN NULL ELSE - COUNT( ALL - 94 ) + ( + NULLIF ( + COUNT( * ), 33 + 91 ) ) * 35 END + - 8
----
26

skipif mysql # not compatible
query I rowsort label-9452
SELECT + COUNT ( * ) * + CASE + 8 WHEN - 20 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) THEN NULL WHEN + 10 - - CASE 88 WHEN + 20 THEN - ( - ( + COALESCE ( 36, 93 ) ) ) / - 73 WHEN 68 THEN NULL WHEN + 97 THEN + COUNT ( * ) ELSE 40 * + 49 END THEN - 32 WHEN + 79 THEN NULL ELSE - COUNT ( ALL - 94 ) + ( + NULLIF ( + COUNT ( * ), 33 + 91 ) ) * 35 END + - 8
----
26

query II rowsort
SELECT + 74, + 51 AS col2
----
74
51

query I rowsort
SELECT DISTINCT + 4 * + 68 * 27
----
7344

query I rowsort
SELECT + 92 * - - 44
----
4048

query I rowsort
SELECT ALL - 71 * - 2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT + SUM( - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9457
SELECT + SUM ( - 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT DISTINCT + 43 + - COUNT( * ) + + 66 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT + 43 + - COUNT ( * ) + + 66 AS col1
----
108

query I rowsort
SELECT ALL - 21 + 72
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL - ( - - COALESCE ( + SUM( 40 ), 26 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL - ( - - COALESCE ( + SUM ( 40 ), 26 ) ) AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9461
SELECT ALL ( 49 ) + + 28 + + - COUNT( * ) DIV - + 99 * 54
----
77

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL ( 49 ) + + 28 + + - COUNT ( * ) / - + 99 * 54
----
77

query I rowsort
SELECT DISTINCT - 27 + - 49 * + ( - - 5 ) col1
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL + MIN( ALL 87 )
----
87

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + MIN ( ALL 87 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9464
SELECT + 22 DIV COUNT( DISTINCT + 95 )
----
22

skipif mysql # not compatible
query I rowsort label-9464
SELECT + 22 / COUNT ( DISTINCT + 95 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT - ( + COUNT( * ) ) + - CASE - 25 WHEN AVG ( 10 ) THEN 95 / - 35 WHEN 79 + 95 THEN NULL END + 93 * 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9465
SELECT - ( + COUNT ( * ) ) + - CASE - 25 WHEN AVG ( 10 ) THEN 95 / - 35 WHEN 79 + 95 THEN NULL END + 93 * 1 AS col2
----
NULL

query I rowsort
SELECT ALL - 94 + - 33 AS col2
----
-127

query II rowsort
SELECT DISTINCT - 78 * + 4 * + + 28, - 84 col0
----
-8736
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9468
SELECT DISTINCT 10 + + ( - - COUNT( * ) ) + + 1 + ( - 17 ) DIV 6 * NULLIF ( - 62, - NULLIF ( - 40, + 42 ) DIV + 70 ) AS col0
----
136

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT 10 + + ( - - COUNT ( * ) ) + + 1 + ( - 17 ) / 6 * NULLIF ( - 62, - NULLIF ( - 40, + 42 ) / + 70 ) AS col0
----
136

query II rowsort
SELECT ALL + 30 * 40 AS col1, + 88 AS col1
----
1200
88

query I rowsort
SELECT ALL COALESCE ( - + 93, 63 )
----
-93

query I rowsort
SELECT - 16 + + 83 AS col0
----
67

query II rowsort
SELECT 4 AS col2, 94 + - 20
----
4
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ALL ( - 3 ) * - - ( COUNT( - COALESCE ( + + 40, 29 * + 6 ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL ( - 3 ) * - - ( COUNT ( - COALESCE ( + + 40, 29 * + 6 ) ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + 63 - COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9474
SELECT + 63 - COUNT ( * ) AS col0
----
62

query I rowsort
SELECT + 39 + + + 30 AS col2
----
69

query I rowsort
SELECT - NULLIF ( - + 80, 75 ) * - ( - 53 ) AS col2
----
4240

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT + 56 * + 41 * COUNT( * ) AS col1
----
2296

skipif mysql # not compatible
query I rowsort label-9477
SELECT + 56 * + 41 * COUNT ( * ) AS col1
----
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL + MAX( + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL + MAX ( + 58 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9479
SELECT ALL + COUNT( * ), CASE 79 WHEN - - COUNT( * ) THEN 40 END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9479
SELECT ALL + COUNT ( * ), CASE 79 WHEN - - COUNT ( * ) THEN 40 END AS col1
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9480
SELECT DISTINCT + 19 DIV - 32 - 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT + 19 / - 32 - 81 AS col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9481
SELECT ALL - 68 DIV + 42
----
-1

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL - 68 / + 42
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9482
SELECT + ( - 48 ) DIV - + ( - ( - 16 ) ) - 88 * 48 AS col0
----
-4221

skipif mysql # not compatible
query I rowsort label-9482
SELECT + ( - 48 ) / - + ( - ( - 16 ) ) - 88 * 48 AS col0
----
-4221

onlyif mysql # aggregate syntax: 
query II rowsort label-9483
SELECT ALL + COUNT( - + 83 ) AS col2, - 1 + + COALESCE ( + 1, 80 )
----
1
0

skipif mysql # not compatible
query II rowsort label-9483
SELECT ALL + COUNT ( - + 83 ) AS col2, - 1 + + COALESCE ( + 1, 80 )
----
1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9484
SELECT DISTINCT + 90 col0, COUNT( * ) * ( + - 88 )
----
90
-88

skipif mysql # not compatible
query II rowsort label-9484
SELECT DISTINCT + 90 col0, COUNT ( * ) * ( + - 88 )
----
90
-88

query II rowsort
SELECT DISTINCT + ( - 42 ), - 35 AS col1
----
-42
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT + 73 DIV + 7
----
10

skipif mysql # not compatible
query I rowsort label-9486
SELECT + 73 / + 7
----
10

query II rowsort
SELECT - 79 * + 75, 61 AS col2
----
-5925
61

query I rowsort
SELECT - 90 * + 10
----
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT ( - ( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT ( - ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT DISTINCT + - 54 * + 59
----
-3186

query I rowsort
SELECT ALL - - 91 * + 86 AS col2
----
7826

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9492
SELECT - + CAST( NULL AS DECIMAL ) / - - 2 + + ( 92 ) col2, - 36 AS col0
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-9492
SELECT - + CAST ( NULL AS REAL ) / - - 2 + + ( 92 ) col2, - 36 AS col0
----
NULL
-36

query I rowsort
SELECT + + 5 * - + NULLIF ( 53, - 49 ) + - - 46
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT - - COUNT( * ) * + 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9494
SELECT - - COUNT ( * ) * + 15 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT ALL 79 * + COUNT( * ) + + 0 + CAST( + 54 AS SIGNED )
----
133

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL 79 * + COUNT ( * ) + + 0 + CAST ( + 54 AS INTEGER )
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT DISTINCT + 28 * + - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + + 0 - + + 16 + + COALESCE ( + CAST( 6 AS SIGNED ), - 45 * 23 ) + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT + 28 * + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 0 - + + 16 + + COALESCE ( + CAST ( 6 AS INTEGER ), - 45 * 23 ) + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT DISTINCT + 78 * - 82 + + COUNT( * ) + + + 90 + CASE + 81 WHEN 13 * 51 THEN NULL WHEN 38 THEN - 2 - + 7 * 33 ELSE NULL END * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT + 78 * - 82 + + COUNT ( * ) + + + 90 + CASE + 81 WHEN 13 * 51 THEN NULL WHEN 38 THEN - 2 - + 7 * 33 ELSE NULL END * 44
----
NULL

query I rowsort
SELECT ALL - + ( 91 ) * + - 65 + - 17 - - ( NULLIF ( 99, - 45 ) ) * - 43 col0
----
1641

onlyif mysql # aggregate syntax: 
query II rowsort label-9499
SELECT - + COUNT( * ) + - MIN( 18 ) + + 20 AS col0, - 73 - 61 col2
----
1
-134

skipif mysql # not compatible
query II rowsort label-9499
SELECT - + COUNT ( * ) + - MIN ( 18 ) + + 20 AS col0, - 73 - 61 col2
----
1
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT + - COALESCE ( CAST( - 7 AS SIGNED ), - 46 ) * + COUNT( * ) * - - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9500
SELECT + - COALESCE ( CAST ( - 7 AS INTEGER ), - 46 ) * + COUNT ( * ) * - - COUNT ( * ) AS col0
----
7

query I rowsort
SELECT - - 35 + 92 AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT + + 60 + - MIN( + - 21 )
----
81

skipif mysql # not compatible
query I rowsort label-9502
SELECT + + 60 + - MIN ( + - 21 )
----
81

query I rowsort
SELECT ALL - 38 * - + 87 + + 8 AS col1
----
3314

query I rowsort
SELECT + 42 + - 66 - 56 col2
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-9505
SELECT ALL 95 AS col2, ( COUNT( * ) ) * - 75 + + + 90 + + + 49 * - 38
----
95
-1847

skipif mysql # not compatible
query II rowsort label-9505
SELECT ALL 95 AS col2, ( COUNT ( * ) ) * - 75 + + + 90 + + + 49 * - 38
----
95
-1847

query I rowsort
SELECT 97 * + + 37 * + 63 AS col0
----
226107

query I rowsort
SELECT 33 * - + ( - 31 ) * - 60 AS col0
----
-61380

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT COUNT( * ) + + 27 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-9508
SELECT COUNT ( * ) + + 27 AS col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9509
SELECT 16 + - COUNT( * ), 54 AS col1
----
15
54

skipif mysql # not compatible
query II rowsort label-9509
SELECT 16 + - COUNT ( * ), 54 AS col1
----
15
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL SUM( DISTINCT + + 60 ) / CASE WHEN NULL IS NOT NULL THEN 50 END * + 94 * - 18 + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL SUM ( DISTINCT + + 60 ) / CASE WHEN NULL IS NOT NULL THEN 50 END * + 94 * - 18 + 99
----
NULL

query I rowsort
SELECT 23 * - 53
----
-1219

query I rowsort
SELECT 61 + - + 95
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9513
SELECT ( - CAST( + 7 AS SIGNED ) ) * - - 32 + - + 78 + COUNT( DISTINCT - + 96 ) DIV COUNT( * )
----
-301

skipif mysql # not compatible
query I rowsort label-9513
SELECT ( - CAST ( + 7 AS INTEGER ) ) * - - 32 + - + 78 + COUNT ( DISTINCT - + 96 ) / COUNT ( * )
----
-301

query II rowsort
SELECT ALL 3 * - 76, 23 * - 60 * - 86 * - 85 AS col0
----
-228
-10087800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9515
SELECT ALL COUNT( * ) DIV - NULLIF ( ( + 47 ), + 99 ), 26 * + + 21 + COALESCE ( - 70, + 98, 15 * COALESCE ( 49 * 52, 88, - 30 + 58, 49 ) + 96 ) AS col1
----
0
476

skipif mysql # not compatible
query II rowsort label-9515
SELECT ALL COUNT ( * ) / - NULLIF ( ( + 47 ), + 99 ), 26 * + + 21 + COALESCE ( - 70, + 98, 15 * COALESCE ( 49 * 52, 88, - 30 + 58, 49 ) + 96 ) AS col1
----
0
476

query I rowsort
SELECT ALL - 81 * - - 60 * 64
----
-311040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9517
SELECT 51 + - 28 - - - CAST( NULL AS SIGNED ) + - 43 + - 30 * + 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT 51 + - 28 - - - CAST ( NULL AS INTEGER ) + - 43 + - 30 * + 40 col0
----
NULL

query I rowsort
SELECT ALL - 72 * 82
----
-5904

query I rowsort
SELECT 57 * + 23
----
1311

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9520
SELECT + COALESCE ( + 67, ( 24 ), - 86 DIV CAST( 35 AS SIGNED ) ) DIV + 82 + + 78 * 57 AS col0
----
4446

skipif mysql # not compatible
query I rowsort label-9520
SELECT + COALESCE ( + 67, ( 24 ), - 86 / CAST ( 35 AS INTEGER ) ) / + 82 + + 78 * 57 AS col0
----
4446

query I rowsort
SELECT ALL 85 + 63 AS col2
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9522
SELECT - 80 DIV - CAST( + - 12 AS SIGNED ) + + 54 - + - 58 AS col1, ( + ( + COUNT( * ) ) ) col2
----
106
1

skipif mysql # not compatible
query II rowsort label-9522
SELECT - 80 / - CAST ( + - 12 AS INTEGER ) + + 54 - + - 58 AS col1, ( + ( + COUNT ( * ) ) ) col2
----
106
1

query I rowsort
SELECT 47 + + 79
----
126

query I rowsort
SELECT 82 * + + 98 * 79 + 78
----
634922

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT COUNT( ALL + 39 ) + + SUM( ALL + 99 )
----
100

skipif mysql # not compatible
query I rowsort label-9525
SELECT COUNT ( ALL + 39 ) + + SUM ( ALL + 99 )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL - COUNT( * ) * - - 8 + + MIN( - 93 )
----
-101

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL - COUNT ( * ) * - - 8 + + MIN ( - 93 )
----
-101

query I rowsort
SELECT - 10 + + 17 * - 68 * + 94
----
-108674

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL - ( + 6 ) + - SUM( + 75 )
----
-81

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL - ( + 6 ) + - SUM ( + 75 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT ALL + - 59 + + 64 * - 31 - + 88 - + 65 * + + ( - COUNT( * ) ) * 13 + - 25
----
-1311

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL + - 59 + + 64 * - 31 - + 88 - + 65 * + + ( - COUNT ( * ) ) * 13 + - 25
----
-1311

query I rowsort
SELECT + 55 * - 30 + - 89 AS col1
----
-1739

query I rowsort
SELECT ALL + + 47 * 32
----
1504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9532
SELECT ALL - - 84 * + 86 - - 52 + - - 95 + COUNT( * ) DIV - + 98 AS col0
----
7371

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL - - 84 * + 86 - - 52 + - - 95 + COUNT ( * ) / - + 98 AS col0
----
7371

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9533
SELECT DISTINCT + 11 * 70 DIV - - MIN( DISTINCT - + 80 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT + 11 * 70 / - - MIN ( DISTINCT - + 80 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT + 0 - - + SUM( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT + 0 - - + SUM ( 35 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT 33 DIV 91 + - - 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9535
SELECT 33 / 91 + - - 97 AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9536
SELECT DISTINCT - COUNT( * ) - + + COALESCE ( - NULLIF ( 83, - - CASE + COUNT( * ) WHEN + NULLIF ( 31, 91 + 56 ) * - 69 + 72 * - 85 THEN NULL WHEN + 44 + 64 THEN - NULLIF ( - 11, 29 + + 30 ) WHEN MAX( ( 67 ) ) THEN NULL ELSE NULL END ), + 25 DIV - 91 )
----
82

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT - COUNT ( * ) - + + COALESCE ( - NULLIF ( 83, - - CASE + COUNT ( * ) WHEN + NULLIF ( 31, 91 + 56 ) * - 69 + 72 * - 85 THEN NULL WHEN + 44 + 64 THEN - NULLIF ( - 11, 29 + + 30 ) WHEN MAX ( ( 67 ) ) THEN NULL ELSE NULL END ), + 25 / - 91 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL + CASE COUNT( * ) WHEN - + 32 THEN NULL WHEN + ( + + 61 ) * - 81 * - 55 + - 75 * + 85 + 51 THEN 17 * 89 WHEN 67 + 51 THEN - 56 + 66 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + CASE COUNT ( * ) WHEN - + 32 THEN NULL WHEN + ( + + 61 ) * - 81 * - 55 + - 75 * + 85 + 51 THEN 17 * 89 WHEN 67 + 51 THEN - 56 + 66 END AS col2
----
NULL

query II rowsort
SELECT - 25, 83 + 59 - 89 AS col1
----
-25
53

query I rowsort
SELECT 42 * - 96 AS col1
----
-4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9540
SELECT ALL 27 AS col0, COALESCE ( COUNT( * ), ( + + ( ( 49 ) ) ) ) DIV + 44 * 59 + ( 41 ) AS col2
----
27
41

skipif mysql # not compatible
query II rowsort label-9540
SELECT ALL 27 AS col0, COALESCE ( COUNT ( * ), ( + + ( ( 49 ) ) ) ) / + 44 * 59 + ( 41 ) AS col2
----
27
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT DISTINCT COUNT( * ) * + 97 * - + COUNT( DISTINCT + 50 ) * 12 col1
----
-1164

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT COUNT ( * ) * + 97 * - + COUNT ( DISTINCT + 50 ) * 12 col1
----
-1164

query II rowsort
SELECT 58, - 64 + 29 + + + 45 AS col1
----
58
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9543
SELECT ALL 48, CAST( + - ( + + 4 ) AS SIGNED ) * - COUNT( * ) + CAST( NULL AS SIGNED ) + - - 92 + 73 + COALESCE ( - 89, 8 ) * 14 AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-9543
SELECT ALL 48, CAST ( + - ( + + 4 ) AS INTEGER ) * - COUNT ( * ) + CAST ( NULL AS INTEGER ) + - - 92 + 73 + COALESCE ( - 89, 8 ) * 14 AS col1
----
48
NULL

query II rowsort
SELECT 72, 59 + + 83 AS col1
----
72
142

query I rowsort
SELECT ALL 44 + - 87 + 66 AS col0
----
23

query I rowsort
SELECT 51 + + + 71 + - - 9
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT ALL COUNT( * ) * 15 * - + 99 + - 62 AS col1
----
-1547

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL COUNT ( * ) * 15 * - + 99 + - 62 AS col1
----
-1547

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT SUM( ALL - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9548
SELECT SUM ( ALL - 81 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL 50 * + 53 * COUNT( * ) + - 11 * + 99 col0
----
1561

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL 50 * + 53 * COUNT ( * ) + - 11 * + 99 col0
----
1561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9550
SELECT DISTINCT + 67 * + - COUNT( ALL 60 ), 96 + - 11 + ( + - 41 ) + ( CAST( SUM( DISTINCT 67 ) AS SIGNED ) ) AS col2
----
-67
111

skipif mysql # not compatible
query II rowsort label-9550
SELECT DISTINCT + 67 * + - COUNT ( ALL 60 ), 96 + - 11 + ( + - 41 ) + ( CAST ( SUM ( DISTINCT 67 ) AS INTEGER ) ) AS col2
----
-67
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT DISTINCT - MIN( DISTINCT + 30 ) * - 60 + - 2
----
1798

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT - MIN ( DISTINCT + 30 ) * - 60 + - 2
----
1798

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT - MIN( 43 ) - 47 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-9552
SELECT - MIN ( 43 ) - 47 AS col1
----
-90

query I rowsort
SELECT + - ( + 89 )
----
-89

query I rowsort
SELECT ALL 7 * 46 + + - ( + 77 ) + + 34 AS col2
----
279

query I rowsort
SELECT - 34 - + 15
----
-49

query I rowsort
SELECT CASE + 30 WHEN + AVG ( DISTINCT + + 33 ) THEN 78 * - 40 ELSE NULL END
----
NULL

query I rowsort
SELECT 32 * + 85 * - + 1
----
-2720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9558
SELECT - NULLIF ( + + ( 21 ), + CAST( NULL AS SIGNED ) + CASE WHEN - CAST( + ( COUNT( * ) ) AS SIGNED ) NOT BETWEEN CAST( + 61 AS SIGNED ) AND 53 * 72 THEN - 45 + 30 END + - 59 * - 20 ) * COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-9558
SELECT - NULLIF ( + + ( 21 ), + CAST ( NULL AS INTEGER ) + CASE WHEN - CAST ( + ( COUNT ( * ) ) AS INTEGER ) NOT BETWEEN CAST ( + 61 AS INTEGER ) AND 53 * 72 THEN - 45 + 30 END + - 59 * - 20 ) * COUNT ( * ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT DISTINCT 87 * COUNT( * ) + + - MAX( 29 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT 87 * COUNT ( * ) + + - MAX ( 29 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL - + SUM( - 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL - + SUM ( - 41 ) AS col2
----
41

query II rowsort
SELECT - 51, 46 AS col0
----
-51
46

query II rowsort
SELECT + 62 AS col0, - 17 col0
----
62
-17

query I rowsort
SELECT ALL - - 19 - + 0 + + + 35
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT + CASE - 51 WHEN + 24 THEN 63 + + ( + COUNT( * ) ) END * 51 + + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT + CASE - 51 WHEN + 24 THEN 63 + + ( + COUNT ( * ) ) END * 51 + + + 20 AS col1
----
NULL

query I rowsort
SELECT 1 - - 99 + - 34 + 61 * 77
----
4763

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT + MIN( + - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-9566
SELECT + MIN ( + - 26 )
----
-26

query I rowsort
SELECT ALL + 16 * + 52 AS col0
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT + COUNT( DISTINCT - - 75 ) * - SUM( DISTINCT + 15 ) - + - 43 * + 71 * + COUNT( * ) - + 19 * + COUNT( * ) AS col2
----
3019

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT + COUNT ( DISTINCT - - 75 ) * - SUM ( DISTINCT + 15 ) - + - 43 * + 71 * + COUNT ( * ) - + 19 * + COUNT ( * ) AS col2
----
3019

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + + ( SUM( - 25 ) ) * - - 83 col2
----
-2075

skipif mysql # not compatible
query I rowsort label-9569
SELECT + + ( SUM ( - 25 ) ) * - - 83 col2
----
-2075

query I rowsort
SELECT - + 77 * + + 93 * - 76
----
544236

query I rowsort
SELECT + 77 + 13
----
90

query I rowsort
SELECT - 47 - - 3 AS col2
----
-44

query I rowsort
SELECT ALL + 55 * + 71 AS col0
----
3905

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT ALL COUNT( 56 )
----
1

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL COUNT ( 56 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9575
SELECT ALL COALESCE ( 44, - CASE + 67 WHEN - + 49 * + 71 * - CAST( 11 AS SIGNED ) / 98 - + ( 85 ) + 86 THEN 75 WHEN - 18 THEN + ( - MIN( 66 ) ) * CASE + 91 WHEN + 92 THEN 34 * + 58 WHEN + 23 * + 2 - 1 THEN 88 END + 0 WHEN + 64 + + MIN( 69 ) * - 13 THEN - 48 END, + 59 * + 48 ) * + 43
----
1892

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL COALESCE ( 44, - CASE + 67 WHEN - + 49 * + 71 * - CAST ( 11 AS INTEGER ) / 98 - + ( 85 ) + 86 THEN 75 WHEN - 18 THEN + ( - MIN ( 66 ) ) * CASE + 91 WHEN + 92 THEN 34 * + 58 WHEN + 23 * + 2 - 1 THEN 88 END + 0 WHEN + 64 + + MIN ( 69 ) * - 13 THEN - 48 END, + 59 * + 48 ) * + 43
----
1892

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT ALL NULLIF ( - COALESCE ( - 16, 9, + 43 ), + - COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL NULLIF ( - COALESCE ( - 16, 9, + 43 ), + - COUNT ( * ) )
----
16

query I rowsort
SELECT - 10 + + 55 AS col1
----
45

query I rowsort
SELECT ALL NULLIF ( - CASE - - 78 WHEN - ( + + 99 ) * + - 68 + 47 THEN NULL WHEN + 88 THEN 78 * - 16 + - ( - 29 ) END, + 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT DISTINCT - 99 + - + COALESCE ( 64, - 90 * - + 7 * + 37 + - + COALESCE ( + + ( - 85 ), COUNT( * ) ) ) AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT - 99 + - + COALESCE ( 64, - 90 * - + 7 * + 37 + - + COALESCE ( + + ( - 85 ), COUNT ( * ) ) ) AS col1
----
-163

query I rowsort
SELECT ALL ( - - 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT ALL 56 + - + 54 - + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL 56 + - + 54 - + - COUNT ( * )
----
3

query I rowsort
SELECT - 62 + + 60 + - 61 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9583
SELECT ALL - ( + + CAST( NULL AS DECIMAL ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL - ( + + CAST ( NULL AS REAL ) ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT + 64 + 31 * + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT + 64 + 31 * + COUNT ( * ) AS col0
----
95

query I rowsort
SELECT ALL NULLIF ( - 18, - 54 * - + 19 ) AS col1
----
-18

query I rowsort
SELECT - 26 * 83 AS col2
----
-2158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9587
SELECT DISTINCT + 37 + - + MIN( + CAST( - - CAST( - 67 AS SIGNED ) AS SIGNED ) ) * + + 97 AS col1
----
6536

skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT + 37 + - + MIN ( + CAST ( - - CAST ( - 67 AS INTEGER ) AS INTEGER ) ) * + + 97 AS col1
----
6536

query I rowsort
SELECT ALL NULLIF ( 92, + ( + ( + + COALESCE ( + 84, - 4 + + 72 + - ( - 31 ) + + 13 * - 50 ) ) ) * 62 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL 90 + + SUM( - + 36 ) + 94 + - 74 + 54 * - COUNT( DISTINCT + 42 )
----
20

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL 90 + + SUM ( - + 36 ) + 94 + - 74 + 54 * - COUNT ( DISTINCT + 42 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9590
SELECT ALL NULLIF ( + + 42, - - COALESCE ( 1, - - COUNT( * ) * + 35 + + + 61 * - - 79, 6 ) * - 85 ) * MIN( DISTINCT 60 + CAST( + 69 AS SIGNED ) DIV 95 ) - + 98 AS col0
----
2422

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL NULLIF ( + + 42, - - COALESCE ( 1, - - COUNT ( * ) * + 35 + + + 61 * - - 79, 6 ) * - 85 ) * MIN ( DISTINCT 60 + CAST ( + 69 AS INTEGER ) / 95 ) - + 98 AS col0
----
2422

query I rowsort
SELECT - + 88 * + + COALESCE ( - 19, - 57 ) * - 77 + 84
----
-128660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT - 32 + + 73 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT - 32 + + 73 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9593
SELECT - 45 + 50 DIV + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-9593
SELECT - 45 + 50 / + COUNT ( * )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9594
SELECT + 76 DIV + - 89 + + 8 - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9594
SELECT + 76 / + - 89 + + 8 - COUNT ( * ) AS col0
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9595
SELECT + 20 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT + 20 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9596
SELECT ALL - CAST( NULL AS DECIMAL ) / - - COALESCE ( + 41, - - 20 + - CASE - 22 WHEN - NULLIF ( + - 22, ( CASE - 60 WHEN - CASE - 97 WHEN CAST( NULL AS SIGNED ) THEN + 53 WHEN - COUNT( * ) + - COUNT( * ) / 35 THEN NULL ELSE NULL END THEN 94 END ) / + 83 ) * - 67 - - 44 THEN - 19 ELSE NULL END, + 54 ) * 51 + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL - CAST ( NULL AS REAL ) / - - COALESCE ( + 41, - - 20 + - CASE - 22 WHEN - NULLIF ( + - 22, ( CASE - 60 WHEN - CASE - 97 WHEN CAST ( NULL AS INTEGER ) THEN + 53 WHEN - COUNT ( * ) + - COUNT ( * ) / 35 THEN NULL ELSE NULL END THEN 94 END ) / + 83 ) * - 67 - - 44 THEN - 19 ELSE NULL END, + 54 ) * 51 + 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9597
SELECT ALL + CASE - 30 WHEN - 99 + - 78 / - - 44 THEN + 44 WHEN 52 THEN 35 / + CAST( - COUNT( * ) AS SIGNED ) * 48 - + 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL + CASE - 30 WHEN - 99 + - 78 / - - 44 THEN + 44 WHEN 52 THEN 35 / + CAST ( - COUNT ( * ) AS INTEGER ) * 48 - + 29 ELSE NULL END
----
NULL

query I rowsort
SELECT + 84 * - 36 + 55 AS col1
----
-2969

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9599
SELECT + - CAST( + - ( 15 ) AS SIGNED ) DIV 61 * + + 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9599
SELECT + - CAST ( + - ( 15 ) AS INTEGER ) / 61 * + + 9 AS col2
----
0

query I rowsort
SELECT + - 56 + - 64 + - 94 AS col2
----
-214

query I rowsort
SELECT + ( 47 ) + + - 20 AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9602
SELECT DISTINCT - SUM( ALL + 88 ) * - 4 DIV + COUNT( * )
----
352

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT - SUM ( ALL + 88 ) * - 4 / + COUNT ( * )
----
352

query II rowsort
SELECT ALL 5 * + 1 AS col0, + 23 AS col1
----
5
23

query I rowsort
SELECT + - 21 * 21 + ( 66 ) AS col1
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT + COUNT( ALL 2 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9605
SELECT + COUNT ( ALL 2 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9606
SELECT - CAST( - - 98 AS SIGNED ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9606
SELECT - CAST ( - - 98 AS INTEGER ) AS col1
----
-98

query I rowsort
SELECT ALL CASE 47 WHEN - 67 THEN - 40 * - 60 - + 96 WHEN ( + - 10 ) * + 49 + + 8 THEN 83 * 44 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL ( 3 ) * + + 59 + + - COUNT( * ) * + - 92 + - 56 AS col2
----
213

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL ( 3 ) * + + 59 + + - COUNT ( * ) * + - 92 + - 56 AS col2
----
213

query I rowsort
SELECT ALL + 10 * + + 83 + 55 AS col0
----
885

query I rowsort
SELECT ALL 87 * 84 + + + 75
----
7383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9611
SELECT ALL 86 DIV - MAX( ALL - 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL 86 / - MAX ( ALL - 74 ) AS col0
----
1

query I rowsort
SELECT + 50 - 63 - 99 - - 46
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL NULLIF ( - 76, + COUNT( * ) + + COUNT( * ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL NULLIF ( - 76, + COUNT ( * ) + + COUNT ( * ) ) AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9614
SELECT + COALESCE ( - 13, + 51, - CAST( NULL AS SIGNED ) ) / - CASE + 51 WHEN - - COUNT( * ) THEN + - 77 + + + 98 WHEN - + ( 33 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT + COALESCE ( - 13, + 51, - CAST ( NULL AS INTEGER ) ) / - CASE + 51 WHEN - - COUNT ( * ) THEN + - 77 + + + 98 WHEN - + ( 33 ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT + COUNT( * ) * + 32
----
32

skipif mysql # not compatible
query I rowsort label-9615
SELECT + COUNT ( * ) * + 32
----
32

query I rowsort
SELECT ALL + 50 + + + 95
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT DISTINCT ( + ( COALESCE ( + 8, - 40, + - COUNT( * ) * + 29 ) ) ) col2
----
8

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT ( + ( COALESCE ( + 8, - 40, + - COUNT ( * ) * + 29 ) ) ) col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT ALL 85 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL 85 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9619
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - COALESCE ( 3, + + CASE - 67 WHEN + + MIN( 87 ) / + 76 * + 8 + 4 + 4 THEN 92 ELSE NULL END, - 86, + 59 ) + 18 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-9619
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - COALESCE ( 3, + + CASE - 67 WHEN + + MIN ( 87 ) / + 76 * + 8 + 4 + 4 THEN 92 ELSE NULL END, - 86, + 59 ) + 18 AS col1
----
NULL
15

query I rowsort
SELECT DISTINCT - 5 - 78
----
-83

query I rowsort
SELECT ALL + 51 * + 21
----
1071

query I rowsort
SELECT DISTINCT ( - 32 ) AS col1
----
-32

query I rowsort
SELECT - ( - + 58 ) + - 83
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-9624
SELECT DISTINCT 18 AS col2, ( SUM( 29 ) )
----
18
29

skipif mysql # not compatible
query II rowsort label-9624
SELECT DISTINCT 18 AS col2, ( SUM ( 29 ) )
----
18
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT - 34 + - 9 - + 89 * - COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9625
SELECT - 34 + - 9 - + 89 * - COUNT ( * ) AS col2
----
46

query I rowsort
SELECT - - 76 * - 97 * + - 16 col1
----
117952

query II rowsort
SELECT ALL + 41, 64 * 0 AS col1
----
41
0

query I rowsort
SELECT ALL + 21 * + ( + ( 39 ) ) * ( - ( - - 27 ) ) AS col2
----
-22113

onlyif mysql # aggregate syntax: 
query II rowsort label-9629
SELECT DISTINCT - - ( - COUNT( * ) ) * - 81 AS col0, 3
----
81
3

skipif mysql # not compatible
query II rowsort label-9629
SELECT DISTINCT - - ( - COUNT ( * ) ) * - 81 AS col0, 3
----
81
3

query II rowsort
SELECT ALL - 21 AS col2, 19
----
-21
19

query II rowsort
SELECT - - 31 * - + 62 - - 26, 53 + 27 AS col1
----
-1896
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT COALESCE ( + - SUM( DISTINCT - 54 ), + CASE - - 87 WHEN - COALESCE ( - 54, + - COUNT( * ) - + - 0, + - COALESCE ( 29, 8 ) * 19 ) THEN - 51 * SUM( DISTINCT 95 ) + - COUNT( * ) END ) * 69
----
3726

skipif mysql # not compatible
query I rowsort label-9632
SELECT COALESCE ( + - SUM ( DISTINCT - 54 ), + CASE - - 87 WHEN - COALESCE ( - 54, + - COUNT ( * ) - + - 0, + - COALESCE ( 29, 8 ) * 19 ) THEN - 51 * SUM ( DISTINCT 95 ) + - COUNT ( * ) END ) * 69
----
3726

query I rowsort
SELECT + NULLIF ( - + 63, - 43 ) * - 72 AS col0
----
4536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT ALL - CAST( - 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL - CAST ( - 66 AS INTEGER )
----
66

query I rowsort
SELECT ALL - 64 + + - 53
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9636
SELECT DISTINCT ( - CAST( + 93 AS SIGNED ) ) + + 14 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT ( - CAST ( + 93 AS INTEGER ) ) + + 14 AS col2
----
-79

query I rowsort
SELECT DISTINCT 22 * + 92 AS col0
----
2024

query II rowsort
SELECT + 77 AS col0, 16 AS col2
----
77
16

query I rowsort
SELECT ALL ( - - 70 ) + - 99 AS col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT DISTINCT 51 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT 51 / 70
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9641
SELECT 32 + 67 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT 32 + 67 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 45 + - 19 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT 55 * - - 72 + CASE - 95 WHEN - 72 * - MAX( ALL - 56 ) - - 98 * - 65 THEN - 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9643
SELECT 55 * - - 72 + CASE - 95 WHEN - 72 * - MAX ( ALL - 56 ) - - 98 * - 65 THEN - 20 END
----
NULL

query II rowsort
SELECT DISTINCT 46 AS col0, 59 * + 88 + - - 49 + - 2 AS col2
----
46
5239

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9645
SELECT CAST( 58 AS DECIMAL ) * - + 54 * CAST( NULL AS SIGNED ) AS col2, + 18 + - 43 - - ( ( + 58 ) ) - + 79 DIV + 40
----
NULL
32

skipif mysql # not compatible
query II rowsort label-9645
SELECT CAST ( 58 AS REAL ) * - + 54 * CAST ( NULL AS INTEGER ) AS col2, + 18 + - 43 - - ( ( + 58 ) ) - + 79 / + 40
----
NULL
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT DISTINCT 44 - + 75 + - 58 * + MIN( ALL + 74 ) + + 17 + + + 12 AS col1
----
-4294

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT 44 - + 75 + - 58 * + MIN ( ALL + 74 ) + + 17 + + + 12 AS col1
----
-4294

query I rowsort
SELECT 86 + - 7 * - - 52
----
-278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT ALL 79 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT ALL 79 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9649
SELECT ( 84 ) + - - CASE MIN( ALL + - 79 ) WHEN + - COALESCE ( + 68, + + ( - 17 ) * - + 21 * - + 46 ) THEN 20 WHEN COALESCE ( - 93, 4, - COUNT( * ) * 57 ) THEN NULL END + + AVG ( + 61 + 19 ) / CAST( + 14 AS SIGNED ) * - NULLIF ( + 34 + - 92, 45 * - MIN( 76 ) - 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT ( 84 ) + - - CASE MIN ( ALL + - 79 ) WHEN + - COALESCE ( + 68, + + ( - 17 ) * - + 21 * - + 46 ) THEN 20 WHEN COALESCE ( - 93, 4, - COUNT ( * ) * 57 ) THEN NULL END + + AVG ( + 61 + 19 ) / CAST ( + 14 AS INTEGER ) * - NULLIF ( + 34 + - 92, 45 * - MIN ( 76 ) - 48 ) AS col2
----
NULL

query II rowsort
SELECT 68 AS col0, - 72 * - 7
----
68
504

query II rowsort
SELECT - 66, 57 AS col2
----
-66
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9652
SELECT ALL 67, + CAST( - 46 AS SIGNED ) AS col0
----
67
-46

skipif mysql # not compatible
query II rowsort label-9652
SELECT ALL 67, + CAST ( - 46 AS INTEGER ) AS col0
----
67
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-9653
SELECT ALL 31 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL 31 / - 96 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9654
SELECT 11 DIV 31 * CAST( 90 AS SIGNED ) * 45 * + COALESCE ( - ( - 56 ), + 86 ) AS col1, - CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9654
SELECT 11 / 31 * CAST ( 90 AS INTEGER ) * 45 * + COALESCE ( - ( - 56 ), + 86 ) AS col1, - CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9655
SELECT ( AVG ( 24 ) ) * - - 14 + + - CASE - 12 WHEN 54 THEN - CAST( + CAST( - CASE + 76 WHEN COALESCE ( + 76, - 41 + + CASE 21 WHEN + 96 THEN 3 + - 14 * 77 WHEN - 88 THEN + 99 END ) THEN - 70 / ( - 36 ) - 46 / 22 ELSE + ( CAST( NULL AS DECIMAL ) ) + + 16 END AS SIGNED ) AS SIGNED ) WHEN 57 + + 0 THEN NULL ELSE NULL END + - 69 * 4 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT ( AVG ( 24 ) ) * - - 14 + + - CASE - 12 WHEN 54 THEN - CAST ( + CAST ( - CASE + 76 WHEN COALESCE ( + 76, - 41 + + CASE 21 WHEN + 96 THEN 3 + - 14 * 77 WHEN - 88 THEN + 99 END ) THEN - 70 / ( - 36 ) - 46 / 22 ELSE + ( CAST ( NULL AS REAL ) ) + + 16 END AS INTEGER ) AS INTEGER ) WHEN 57 + + 0 THEN NULL ELSE NULL END + - 69 * 4 * + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT - + 88 * - + 53 * + CASE - - 63 WHEN 64 THEN NULL WHEN COUNT( * ) * - - 99 THEN - 56 * - 63 + COUNT( * ) WHEN + 35 * + ( ( 96 ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT - + 88 * - + 53 * + CASE - - 63 WHEN 64 THEN NULL WHEN COUNT ( * ) * - - 99 THEN - 56 * - 63 + COUNT ( * ) WHEN + 35 * + ( ( 96 ) ) THEN NULL END AS col0
----
NULL

query II rowsort
SELECT ALL - - 38 * 71 col0, + 33 AS col2
----
2698
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9658
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1, + 64 col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-9658
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, + 64 col2
----
NULL
64

query I rowsort
SELECT DISTINCT - 83 * + 59 * 96 AS col1
----
-470112

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT + - SUM( DISTINCT - 45 ) * - 51
----
-2295

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT + - SUM ( DISTINCT - 45 ) * - 51
----
-2295

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT COUNT( * ) * + 29 + + 39 col0
----
68

skipif mysql # not compatible
query I rowsort label-9661
SELECT COUNT ( * ) * + 29 + + 39 col0
----
68

query I rowsort
SELECT ( - + 89 ) + - - 30 AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9663
SELECT CAST( NULL AS SIGNED ) * ( - - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT CAST ( NULL AS INTEGER ) * ( - - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT MAX( DISTINCT + NULLIF ( 45, - 45 ) ) * + + 1 * + 81 + 82 AS col1
----
3727

skipif mysql # not compatible
query I rowsort label-9664
SELECT MAX ( DISTINCT + NULLIF ( 45, - 45 ) ) * + + 1 * + 81 + 82 AS col1
----
3727

query I rowsort
SELECT NULLIF ( 72, + + 97 )
----
72

query I rowsort
SELECT ALL + 18 + + NULLIF ( + - 44, - - 64 * + 63 * + 64 ) + 95 + 57 * 76 + - 72 + - 76 AS col0
----
4253

onlyif mysql # DIV for integer division: 
query I rowsort label-9667
SELECT - 37 DIV + 27 + 44
----
43

skipif mysql # not compatible
query I rowsort label-9667
SELECT - 37 / + 27 + 44
----
43

query II rowsort
SELECT ALL + - 28 + ( - 93 ) + + ( + 16 ) + - + 76 AS col0, - 27
----
-181
-27

query I rowsort
SELECT ALL 23 + + 53 + 73 * 88
----
6500

query I rowsort
SELECT ALL - 22 * - 29 * 83 AS col0
----
52954

query I rowsort
SELECT 41 * + + 82
----
3362

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT CASE - 16 WHEN 28 THEN NULL WHEN COUNT( * ) + 33 * - COUNT( * ) * - COALESCE ( + + 35, - - 90 ) * + 86 + - 8 - - 56 THEN - 61 * + 34 END * 36 + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-9672
SELECT CASE - 16 WHEN 28 THEN NULL WHEN COUNT ( * ) + 33 * - COUNT ( * ) * - COALESCE ( + + 35, - - 90 ) * + 86 + - 8 - - 56 THEN - 61 * + 34 END * 36 + - 37
----
NULL

query II rowsort
SELECT ALL 39 + 86 AS col0, - 16
----
125
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-9674
SELECT 67 * + 1 * - CASE + ( + 19 ) WHEN - + 24 THEN NULL ELSE - MIN( ALL + 82 ) END AS col0, 83 * + - 92 * + COUNT( * ) * 43 * 54 + + 61
----
5494
-17730731

skipif mysql # not compatible
query II rowsort label-9674
SELECT 67 * + 1 * - CASE + ( + 19 ) WHEN - + 24 THEN NULL ELSE - MIN ( ALL + 82 ) END AS col0, 83 * + - 92 * + COUNT ( * ) * 43 * 54 + + 61
----
5494
-17730731

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9675
SELECT DISTINCT 32 DIV + COALESCE ( ( 99 ), CAST( NULL AS SIGNED ) ) AS col1, 46 AS col0
----
0
46

skipif mysql # not compatible
query II rowsort label-9675
SELECT DISTINCT 32 / + COALESCE ( ( 99 ), CAST ( NULL AS INTEGER ) ) AS col1, 46 AS col0
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT DISTINCT - 5 - 33 - + + COUNT( * ) * - ( - + 86 ) + + 16
----
-108

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT - 5 - 33 - + + COUNT ( * ) * - ( - + 86 ) + + 16
----
-108

query I rowsort
SELECT ALL 67 * - 33 * 64 * - 56
----
7924224

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT COUNT( + - 85 ) * 45 + ( - + 75 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9678
SELECT COUNT ( + - 85 ) * 45 + ( - + 75 ) AS col1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT DISTINCT 96 DIV + 69 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT 96 / + 69 AS col1
----
1

query I rowsort
SELECT 2 * + + ( + 72 )
----
144

query I rowsort
SELECT ALL 25 * - + ( - + 11 )
----
275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9682
SELECT 92 * - COUNT( DISTINCT - 37 ) DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9682
SELECT 92 * - COUNT ( DISTINCT - 37 ) / 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ALL - - 69 * + 34 * - MAX( - 38 )
----
89148

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - - 69 * + 34 * - MAX ( - 38 )
----
89148

query I rowsort
SELECT ALL + 54 * + 1 AS col2
----
54

query I rowsort
SELECT + - 43 + - 72 * + 4 * 91
----
-26251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9686
SELECT + 52 - + SUM( DISTINCT 34 ) + + 3 DIV + 51 + 5
----
23

skipif mysql # not compatible
query I rowsort label-9686
SELECT + 52 - + SUM ( DISTINCT 34 ) + + 3 / + 51 + 5
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9687
SELECT ALL + 63 + + - 38 DIV - 25 + + 56
----
120

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL + 63 + + - 38 / - 25 + + 56
----
120

query I rowsort
SELECT + 14 * + 29 AS col0
----
406

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT - 2 - CASE - 2 WHEN - + COUNT( * ) * + - 59 THEN NULL ELSE + COUNT( * ) END
----
-3

skipif mysql # not compatible
query I rowsort label-9689
SELECT - 2 - CASE - 2 WHEN - + COUNT ( * ) * + - 59 THEN NULL ELSE + COUNT ( * ) END
----
-3

query I rowsort
SELECT ALL 72 * 14 AS col0
----
1008

query I rowsort
SELECT DISTINCT + + 67 * 61 + - ( - 48 ) AS col1
----
4135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT DISTINCT + - 68 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + - 68 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT + COUNT( + 89 ) * - CASE + - 11 WHEN - 16 + + - COUNT( ALL - 81 ) * - + AVG ( DISTINCT + 96 ) - - COUNT( * ) * + 80 * - MAX( DISTINCT NULLIF ( 98, - 24 ) ) * 97 THEN + COALESCE ( + ( 59 ), - 45 + 68 ) ELSE NULL END * 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT + COUNT ( + 89 ) * - CASE + - 11 WHEN - 16 + + - COUNT ( ALL - 81 ) * - + AVG ( DISTINCT + 96 ) - - COUNT ( * ) * + 80 * - MAX ( DISTINCT NULLIF ( 98, - 24 ) ) * 97 THEN + COALESCE ( + ( 59 ), - 45 + 68 ) ELSE NULL END * 45 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT - + 67 DIV 14 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9694
SELECT - + 67 / 14 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT DISTINCT 93 * - 4 + 48 / - 24 + - + 31 * - 99 + 10 * + CASE + - COALESCE ( + 98, + + 60 ) WHEN - + 39 + 55 THEN + MIN( DISTINCT 11 ) END * 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT 93 * - 4 + 48 / - 24 + - + 31 * - 99 + 10 * + CASE + - COALESCE ( + 98, + + 60 ) WHEN - + 39 + 55 THEN + MIN ( DISTINCT 11 ) END * 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT + 75 - COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-9696
SELECT + 75 - COUNT ( * ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9697
SELECT + CASE 27 WHEN 91 * + - 48 THEN NULL WHEN 85 THEN - - 86 * + 4 WHEN + ( 23 ) + - COUNT( * ) * 4 THEN + CAST( NULL AS DECIMAL ) / 9 / 34 WHEN ( 99 ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT + CASE 27 WHEN 91 * + - 48 THEN NULL WHEN 85 THEN - - 86 * + 4 WHEN + ( 23 ) + - COUNT ( * ) * 4 THEN + CAST ( NULL AS REAL ) / 9 / 34 WHEN ( 99 ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - 32, + 77 )
----
-32

query I rowsort
SELECT - 12 * + + 54 + 98 - + + 45 + 95
----
-500

query I rowsort
SELECT COALESCE ( - 15, ( + 63 ), 87 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9701
SELECT DISTINCT + COALESCE ( - SUM( ALL + 9 ), - 64 * - 77 + - 96 * - - ( - 7 ) ) AS col1, - 51 AS col1
----
-9
-51

skipif mysql # not compatible
query II rowsort label-9701
SELECT DISTINCT + COALESCE ( - SUM ( ALL + 9 ), - 64 * - 77 + - 96 * - - ( - 7 ) ) AS col1, - 51 AS col1
----
-9
-51

query I rowsort
SELECT - 33 * - 32
----
1056

query I rowsort
SELECT ALL + ( - 42 ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9704
SELECT COALESCE ( + - 20, CAST( NULL AS SIGNED ), + 71 - 58 + + COUNT( DISTINCT - 51 ) * 94 )
----
-20

skipif mysql # not compatible
query I rowsort label-9704
SELECT COALESCE ( + - 20, CAST ( NULL AS INTEGER ), + 71 - 58 + + COUNT ( DISTINCT - 51 ) * 94 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT + 18 * NULLIF ( - + CASE - 1 WHEN 3 + 99 THEN - + 12 ELSE NULL END, - 26 * - 26 / COUNT( * ) - 92 + 82 * + + 65 ) * + 10 - - 36 * + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT + 18 * NULLIF ( - + CASE - 1 WHEN 3 + 99 THEN - + 12 ELSE NULL END, - 26 * - 26 / COUNT ( * ) - 92 + 82 * + + 65 ) * + 10 - - 36 * + 71
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 64, + 54 * 5 ) col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT - COUNT( * ) * + - 17 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9707
SELECT - COUNT ( * ) * + - 17 AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9708
SELECT COUNT( * ) AS col0, - ( 96 ) * 54
----
1
-5184

skipif mysql # not compatible
query II rowsort label-9708
SELECT COUNT ( * ) AS col0, - ( 96 ) * 54
----
1
-5184

query I rowsort
SELECT ALL + 92 * + 77 col0
----
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT - MIN( - 18 ) + MAX( + 68 )
----
86

skipif mysql # not compatible
query I rowsort label-9710
SELECT - MIN ( - 18 ) + MAX ( + 68 )
----
86

query I rowsort
SELECT - 67 * - 84
----
5628

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT - 38 + COUNT( * ) - 72
----
-109

skipif mysql # not compatible
query I rowsort label-9712
SELECT - 38 + COUNT ( * ) - 72
----
-109

query I rowsort
SELECT + 43 - - 44 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9714
SELECT COUNT( * ), CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9714
SELECT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9715
SELECT - ( - + 39 ) / + NULLIF ( + + 52, 38 ) + + 53 - - 43 + + MAX( - - 64 ) * COUNT( * ) * 64 + + CAST( NULL AS SIGNED ) + NULLIF ( 52, ( - 14 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9715
SELECT - ( - + 39 ) / + NULLIF ( + + 52, 38 ) + + 53 - - 43 + + MAX ( - - 64 ) * COUNT ( * ) * 64 + + CAST ( NULL AS INTEGER ) + NULLIF ( 52, ( - 14 ) )
----
NULL

query I rowsort
SELECT - 90 + 63
----
-27

query I rowsort
SELECT ALL NULLIF ( + - 85, + 64 + + 39 + - ( 64 ) * + - 44 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL - 94 + COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL - 94 + COUNT ( * ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT + ( + CASE 83 WHEN + 50 THEN NULL ELSE - + 60 - + 52 END ) / + CASE - + MIN( + - 5 ) WHEN + + ( + CASE - + 21 WHEN - 88 THEN NULL WHEN 71 THEN + COUNT( * ) END ) * 59 THEN NULL WHEN - 22 THEN - 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT + ( + CASE 83 WHEN + 50 THEN NULL ELSE - + 60 - + 52 END ) / + CASE - + MIN ( + - 5 ) WHEN + + ( + CASE - + 21 WHEN - 88 THEN NULL WHEN 71 THEN + COUNT ( * ) END ) * 59 THEN NULL WHEN - 22 THEN - 13 END AS col2
----
NULL

query I rowsort
SELECT + + 14 + 73 + - 44 * - 43 * - - 87 AS col2
----
164691

query II rowsort
SELECT - + 93 AS col1, - 98 AS col2
----
-93
-98

query I rowsort
SELECT ALL - 92 + - + 46 AS col1
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9723
SELECT COALESCE ( + COUNT( * ), - MIN( - - ( - - 58 ) ) * - + 42 * + ( + - 12 ) * + 12 ) AS col0, 69 * CAST( + + 21 AS SIGNED )
----
1
1449

skipif mysql # not compatible
query II rowsort label-9723
SELECT COALESCE ( + COUNT ( * ), - MIN ( - - ( - - 58 ) ) * - + 42 * + ( + - 12 ) * + 12 ) AS col0, 69 * CAST ( + + 21 AS INTEGER )
----
1
1449

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT - ( + + 19 ) + + - 86 DIV + 75
----
-20

skipif mysql # not compatible
query I rowsort label-9724
SELECT - ( + + 19 ) + + - 86 / + 75
----
-20

query I rowsort
SELECT DISTINCT - 1 + 64
----
63

query I rowsort
SELECT ALL 42 * NULLIF ( 54, + - AVG ( 21 ) ) AS col1
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT - 12 * 50 + SUM( DISTINCT 39 ) + + COUNT( * ) + + 34
----
-526

skipif mysql # not compatible
query I rowsort label-9727
SELECT - 12 * 50 + SUM ( DISTINCT 39 ) + + COUNT ( * ) + + 34
----
-526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9728
SELECT + - NULLIF ( - NULLIF ( + + 99, - NULLIF ( + - 98, - 78 * + + 33 * + 15 + + 33 - - - 83 * + AVG ( - 21 ) ) * - - 59 + - 93 + 50 ), 10 ) * - MIN( DISTINCT + 68 DIV + 90 + + 23 )
----
-2277

skipif mysql # not compatible
query I rowsort label-9728
SELECT + - NULLIF ( - NULLIF ( + + 99, - NULLIF ( + - 98, - 78 * + + 33 * + 15 + + 33 - - - 83 * + AVG ( - 21 ) ) * - - 59 + - 93 + 50 ), 10 ) * - MIN ( DISTINCT + 68 / + 90 + + 23 )
----
-2277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9729
SELECT DISTINCT AVG ( + 70 ) * + CASE + NULLIF ( - 51, - COUNT( * ) * + 68 + + 25 ) WHEN - - COUNT( * ) THEN NULL WHEN 20 + 69 THEN - ( - COUNT( * ) ) WHEN + CAST( NULL AS DECIMAL ) THEN - ( COALESCE ( CAST( NULL AS SIGNED ), 36 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT AVG ( + 70 ) * + CASE + NULLIF ( - 51, - COUNT ( * ) * + 68 + + 25 ) WHEN - - COUNT ( * ) THEN NULL WHEN 20 + 69 THEN - ( - COUNT ( * ) ) WHEN + CAST ( NULL AS REAL ) THEN - ( COALESCE ( CAST ( NULL AS INTEGER ), 36 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL - MIN( 95 ) + + COUNT( DISTINCT 39 ) + + ( + - COUNT( * ) ) + ( - 89 ) + - 41 + - + 18 + + 15
----
-228

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL - MIN ( 95 ) + + COUNT ( DISTINCT 39 ) + + ( + - COUNT ( * ) ) + ( - 89 ) + - 41 + - + 18 + + 15
----
-228

query II rowsort
SELECT 65 AS col0, + 89 AS col2
----
65
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9732
SELECT + 62 + + + 50 DIV - SUM( + - 26 )
----
63

skipif mysql # not compatible
query I rowsort label-9732
SELECT + 62 + + + 50 / - SUM ( + - 26 )
----
63

query I rowsort
SELECT - + ( 77 ) AS col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9734
SELECT - 65 DIV 97 * 14 + - 64 + - 15 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-9734
SELECT - 65 / 97 * 14 + - 64 + - 15 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + COUNT( * ) + 27 + - + 67 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-9735
SELECT + COUNT ( * ) + 27 + - + 67 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT + ( SUM( ALL + - 9 ) ) * + 26
----
-234

skipif mysql # not compatible
query I rowsort label-9736
SELECT + ( SUM ( ALL + - 9 ) ) * + 26
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT ALL 22 DIV - ( 73 ) * 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL 22 / - ( 73 ) * 8 AS col2
----
0

query I rowsort
SELECT + 46 * - - 92 + + 68
----
4300

query I rowsort
SELECT + ( - + 93 ) * + 7 * + 90
----
-58590

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9740
SELECT DISTINCT 21 * - 89 * - CASE MIN( - 78 ) WHEN 18 THEN NULL ELSE 11 END AS col2, + COALESCE ( COUNT( * ), + 16 DIV CASE + ( 36 ) WHEN + ( - 54 ) * COUNT( * ) THEN + 21 + - 29 WHEN 58 * + COUNT( * ) + + 63 DIV 99 THEN 98 + MIN( ALL 94 ) ELSE NULL END * 68 )
----
20559
1

skipif mysql # not compatible
query II rowsort label-9740
SELECT DISTINCT 21 * - 89 * - CASE MIN ( - 78 ) WHEN 18 THEN NULL ELSE 11 END AS col2, + COALESCE ( COUNT ( * ), + 16 / CASE + ( 36 ) WHEN + ( - 54 ) * COUNT ( * ) THEN + 21 + - 29 WHEN 58 * + COUNT ( * ) + + 63 / 99 THEN 98 + MIN ( ALL 94 ) ELSE NULL END * 68 )
----
20559
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT + 85 * - - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-9741
SELECT + 85 * - - COUNT ( * )
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9742
SELECT + NULLIF ( - 58, - + 10 / - CAST( NULL AS DECIMAL ) + - COUNT( * ) * ( + 89 ) + - NULLIF ( + 42, - - 57 ) * + + 44 + + 37 ) * 50 + - + 76 - - 23
----
-2953

skipif mysql # not compatible
query I rowsort label-9742
SELECT + NULLIF ( - 58, - + 10 / - CAST ( NULL AS REAL ) + - COUNT ( * ) * ( + 89 ) + - NULLIF ( + 42, - - 57 ) * + + 44 + + 37 ) * 50 + - + 76 - - 23
----
-2953

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT - 67 DIV - + 28 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9743
SELECT - 67 / - + 28 AS col2
----
2

query I rowsort
SELECT - 26 * - 64
----
1664

query I rowsort
SELECT - 51 * - 46 + + 33
----
2379

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT - CASE + + 64 WHEN - + 79 * - 48 + + 76 THEN - 0 - + - COUNT( * ) END * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT - CASE + + 64 WHEN - + 79 * - 48 + + 76 THEN - 0 - + - COUNT ( * ) END * 83 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT DISTINCT - 96 + + ( - 59 ) DIV 18
----
-99

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT - 96 + + ( - 59 ) / 18
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9748
SELECT ALL - + 39 + - 35 AS col0, CASE COUNT( * ) WHEN - 26 + - 83 THEN - - 46 WHEN + + ( COALESCE ( + - 20, - 56 ) ) THEN - 53 ELSE NULL END
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-9748
SELECT ALL - + 39 + - 35 AS col0, CASE COUNT ( * ) WHEN - 26 + - 83 THEN - - 46 WHEN + + ( COALESCE ( + - 20, - 56 ) ) THEN - 53 ELSE NULL END
----
-74
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9749
SELECT + ( COUNT( * ) ) * + ( + - 40 ), 72 AS col2
----
-40
72

skipif mysql # not compatible
query II rowsort label-9749
SELECT + ( COUNT ( * ) ) * + ( + - 40 ), 72 AS col2
----
-40
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT DISTINCT + MAX( - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT + MAX ( - 41 ) AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT - NULLIF ( 37, 0 + - ( - + 79 ) + + CAST( + 87 AS SIGNED ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9751
SELECT - NULLIF ( 37, 0 + - ( - + 79 ) + + CAST ( + 87 AS INTEGER ) ) AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT + CAST( NULL AS SIGNED ) * + NULLIF ( 96, - ( - - 94 ) + - - 35 ) * 60 * - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT + CAST ( NULL AS INTEGER ) * + NULLIF ( 96, - ( - - 94 ) + - - 35 ) * 60 * - 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT - 90 * + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9753
SELECT - 90 * + - COUNT ( * )
----
90

query II rowsort
SELECT 49 + - - 78 col2, + 42 * 31 + ( - 82 ) AS col2
----
127
1220

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT DISTINCT MAX( DISTINCT + 68 ) * + 37
----
2516

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT MAX ( DISTINCT + 68 ) * + 37
----
2516

query I rowsort
SELECT ALL 75 - 37 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9757
SELECT CASE + + 81 WHEN + CAST( NULL AS DECIMAL ) THEN NULL ELSE + + COUNT( * ) END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT CASE + + 81 WHEN + CAST ( NULL AS REAL ) THEN NULL ELSE + + COUNT ( * ) END * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT COUNT( DISTINCT + + 72 ) - + ( 34 ) + + 21 + 82 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9758
SELECT COUNT ( DISTINCT + + 72 ) - + ( 34 ) + + 21 + 82 AS col1
----
70

query II rowsort
SELECT 89 AS col2, 81 + - 64 AS col1
----
89
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT AVG ( DISTINCT 98 ) + CAST( NULL AS SIGNED ) + - ( + 71 ) * + + 13 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT AVG ( DISTINCT 98 ) + CAST ( NULL AS INTEGER ) + - ( + 71 ) * + + 13 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9761
SELECT 95 DIV - COUNT( + 69 )
----
-95

skipif mysql # not compatible
query I rowsort label-9761
SELECT 95 / - COUNT ( + 69 )
----
-95

query I rowsort
SELECT ALL 2 + - - 4 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT 1 - SUM( DISTINCT + 43 ) + - 92 + CASE + 48 WHEN - 4 THEN - - 41 END + MIN( ALL + ( + 54 ) ) * 84 * NULLIF ( + 66, COUNT( * ) + 69 * - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT 1 - SUM ( DISTINCT + 43 ) + - 92 + CASE + 48 WHEN - 4 THEN - - 41 END + MIN ( ALL + ( + 54 ) ) * 84 * NULLIF ( + 66, COUNT ( * ) + 69 * - 44 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT ALL 14 DIV - - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL 14 / - - 64 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT ALL - COUNT( ALL + 44 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL - COUNT ( ALL + 44 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL - NULLIF ( + MAX( DISTINCT - 8 ), + COUNT( * ) ) + - 75 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL - NULLIF ( + MAX ( DISTINCT - 8 ), + COUNT ( * ) ) + - 75 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT 66 * + COUNT( * ) + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-9767
SELECT 66 * + COUNT ( * ) + + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT ALL 66 + - COALESCE ( - + 22, + - 15 ) + + 36 * + 88 * - + 70 + CASE CASE - 65 WHEN 56 THEN - - 70 * + 25 END WHEN + 82 THEN NULL WHEN - 13 * 3 THEN + MAX( ALL - 4 ) ELSE + 66 END + + 6 DIV + 70 AS col0
----
-221606

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL 66 + - COALESCE ( - + 22, + - 15 ) + + 36 * + 88 * - + 70 + CASE CASE - 65 WHEN 56 THEN - - 70 * + 25 END WHEN + 82 THEN NULL WHEN - 13 * 3 THEN + MAX ( ALL - 4 ) ELSE + 66 END + + 6 / + 70 AS col0
----
-221606

query II rowsort
SELECT 61, - 65 AS col2
----
61
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT MIN( DISTINCT 26 ) + 71
----
97

skipif mysql # not compatible
query I rowsort label-9770
SELECT MIN ( DISTINCT 26 ) + 71
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT + + NULLIF ( - + 39, + COUNT( * ) ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-9771
SELECT + + NULLIF ( - + 39, + COUNT ( * ) ) col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT 12 * + COUNT( * ) + + - ( - - NULLIF ( 13, - 97 ) ) - 25 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9772
SELECT 12 * + COUNT ( * ) + + - ( - - NULLIF ( 13, - 97 ) ) - 25 AS col1
----
-26

query I rowsort
SELECT 66 - + 75 AS col2
----
-9

query I rowsort
SELECT - + 18 * 75 + - 80 col1
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL + 31 + + MIN( - 22 )
----
9

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL + 31 + + MIN ( - 22 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9776
SELECT DISTINCT - COALESCE ( 14, - + 0 * - COUNT( * ) - - 43 DIV - SUM( ALL - 65 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT - COALESCE ( 14, - + 0 * - COUNT ( * ) - - 43 / - SUM ( ALL - 65 ) )
----
-14

query I rowsort
SELECT DISTINCT - 49 * - 90
----
4410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9778
SELECT - + CASE - + CAST( COUNT( * ) AS SIGNED ) WHEN 70 THEN - 0 - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT - + CASE - + CAST ( COUNT ( * ) AS INTEGER ) WHEN 70 THEN - 0 - 82 END
----
NULL

query I rowsort
SELECT 15 * - 22 * - 91 AS col0
----
30030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9780
SELECT + 97 + - + COALESCE ( - COUNT( * ), 68, + 42 DIV 15 * - + 67 ) DIV ( + 80 ) * - - 92 + 63 * 56 + + NULLIF ( - 55, - + CAST( NULL AS SIGNED ) * - 57 + - 98 ) * + 37
----
1590

skipif mysql # not compatible
query I rowsort label-9780
SELECT + 97 + - + COALESCE ( - COUNT ( * ), 68, + 42 / 15 * - + 67 ) / ( + 80 ) * - - 92 + 63 * 56 + + NULLIF ( - 55, - + CAST ( NULL AS INTEGER ) * - 57 + - 98 ) * + 37
----
1590

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL - 55 * COUNT( * ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL - 55 * COUNT ( * ) col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9782
SELECT DISTINCT - 50 DIV - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT - 50 / - COUNT ( * )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9783
SELECT ALL 69 * - 45 DIV + 1
----
-3105

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL 69 * - 45 / + 1
----
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT 86 + 86 + - 34 / + 7 * 95 / - CASE - ( - 61 ) WHEN + COUNT( * ) THEN + MAX( 20 ) WHEN + 57 THEN NULL ELSE NULL END + 58 + 73 * + NULLIF ( - - 80, 38 ) * 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT 86 + 86 + - 34 / + 7 * 95 / - CASE - ( - 61 ) WHEN + COUNT ( * ) THEN + MAX ( 20 ) WHEN + 57 THEN NULL ELSE NULL END + 58 + 73 * + NULLIF ( - - 80, 38 ) * 21 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9785
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 60 * 80
----
4800

query II rowsort
SELECT - 81 AS col1, 46 AS col2
----
-81
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9788
SELECT + SUM( ALL + 11 ) DIV 38 * 55 + - ( + 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9788
SELECT + SUM ( ALL + 11 ) / 38 * 55 + - ( + 16 ) AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9789
SELECT 5 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-9789
SELECT 5 / - 15
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9790
SELECT 76 + - + CASE COUNT( * ) WHEN - 61 + - ( + + 15 ) * ( + - 85 ) * + 8 * - 22 THEN + COALESCE ( - MAX( ALL + NULLIF ( - 9, 90 + + 20 * + 35 ) ), NULLIF ( 6, 53 * + 54 - - 48 ) * - 18 ) * MIN( - 35 ) + AVG ( DISTINCT + 9 ) WHEN 78 THEN CAST( NULL AS SIGNED ) * NULLIF ( - 92 * + NULLIF ( + 40, 82 ), + 2 * - 55 ) ELSE NULL END * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9790
SELECT 76 + - + CASE COUNT ( * ) WHEN - 61 + - ( + + 15 ) * ( + - 85 ) * + 8 * - 22 THEN + COALESCE ( - MAX ( ALL + NULLIF ( - 9, 90 + + 20 * + 35 ) ), NULLIF ( 6, 53 * + 54 - - 48 ) * - 18 ) * MIN ( - 35 ) + AVG ( DISTINCT + 9 ) WHEN 78 THEN CAST ( NULL AS INTEGER ) * NULLIF ( - 92 * + NULLIF ( + 40, 82 ), + 2 * - 55 ) ELSE NULL END * 15
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9791
SELECT 60 DIV COUNT( * ) + + COUNT( * ) + - + 99 * + - 58 + - 34 - - 71 * - NULLIF ( - 89, - - 48 ) + - + 19 + - 53
----
12016

skipif mysql # not compatible
query I rowsort label-9791
SELECT 60 / COUNT ( * ) + + COUNT ( * ) + - + 99 * + - 58 + - 34 - - 71 * - NULLIF ( - 89, - - 48 ) + - + 19 + - 53
----
12016

query I rowsort
SELECT ALL - 87 * + 93 + 50
----
-8041

query I rowsort
SELECT 61 * 66 + 17
----
4043

query II rowsort
SELECT DISTINCT + 72, 59 AS col0
----
72
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT SUM( + + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9795
SELECT SUM ( + + 34 )
----
34

query I rowsort
SELECT + 54 * + 80 AS col0
----
4320

query II rowsort
SELECT ALL + 72 AS col1, 34
----
72
34

query II rowsort
SELECT 92 col1, - 83
----
92
-83

query I rowsort
SELECT DISTINCT + 85 * + 93 * - 18 + + 36 + 28
----
-142226

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT ALL - COUNT( * ) * + COUNT( * ) * - 74 * + + COUNT( * ) + - COALESCE ( + 32, 51 ) + + - 11 + - + 73 + 81 - - 71 - + 80 * + 57 * - + 13
----
59390

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * - 74 * + + COUNT ( * ) + - COALESCE ( + 32, 51 ) + + - 11 + - + 73 + 81 - - 71 - + 80 * + 57 * - + 13
----
59390

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT + MIN( DISTINCT - + 68 ) * + - ( - - 13 ) + - COUNT( * ) AS col0
----
883

skipif mysql # not compatible
query I rowsort label-9801
SELECT + MIN ( DISTINCT - + 68 ) * + - ( - - 13 ) + - COUNT ( * ) AS col0
----
883

query I rowsort
SELECT DISTINCT - 22 * 9 AS col1
----
-198

query II rowsort
SELECT ALL + 1, - 40 AS col1
----
1
-40

query I rowsort
SELECT + 51 * 53 + + 82 AS col1
----
2785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9805
SELECT ALL - COALESCE ( + - 73, - COUNT( * ) / 29 + ( - + 1 ) ) - - MIN( + 48 ) * + NULLIF ( + 47, + + MAX( DISTINCT - COALESCE ( + 39, 95 ) ) ) + + - 45 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL - COALESCE ( + - 73, - COUNT ( * ) / 29 + ( - + 1 ) ) - - MIN ( + 48 ) * + NULLIF ( + 47, + + MAX ( DISTINCT - COALESCE ( + 39, 95 ) ) ) + + - 45 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - + 94 AS col1, + 94 * + 70 + + - 76 - 36 + - 57 - + - 76 col1
----
-94
6487

query I rowsort
SELECT + 81 * 30 * + + 39 + + - 59 - - 97
----
94808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9808
SELECT + - CAST( - - COUNT( * ) AS SIGNED ) - - COALESCE ( + CASE + CAST( NULL AS SIGNED ) WHEN + 40 THEN NULL ELSE + 13 + + 53 + - 46 + - COUNT( ALL 90 ) * + 58 END, COUNT( * ) * + COUNT( * ) * - 22 + ( 61 ), 98 + + 72 DIV 27 )
----
-39

skipif mysql # not compatible
query I rowsort label-9808
SELECT + - CAST ( - - COUNT ( * ) AS INTEGER ) - - COALESCE ( + CASE + CAST ( NULL AS INTEGER ) WHEN + 40 THEN NULL ELSE + 13 + + 53 + - 46 + - COUNT ( ALL 90 ) * + 58 END, COUNT ( * ) * + COUNT ( * ) * - 22 + ( 61 ), 98 + + 72 / 27 )
----
-39

query I rowsort
SELECT DISTINCT CASE AVG ( ( + 64 ) ) WHEN ( + 98 ) + - 94 THEN NULL WHEN + ( + 53 ) THEN + - 16 * - 70 ELSE + ( - 41 ) END AS col1
----
-41

query III rowsort
SELECT ALL - 19, 49 * ( + - 75 ) AS col2, + 16 AS col1
----
-19
-3675
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9811
SELECT - 13 AS col2, COUNT( DISTINCT - 0 )
----
-13
1

skipif mysql # not compatible
query II rowsort label-9811
SELECT - 13 AS col2, COUNT ( DISTINCT - 0 )
----
-13
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9812
SELECT ALL COUNT( * ), COALESCE ( - 58, + 86 ) * 18 AS col2
----
1
-1044

skipif mysql # not compatible
query II rowsort label-9812
SELECT ALL COUNT ( * ), COALESCE ( - 58, + 86 ) * 18 AS col2
----
1
-1044

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9813
SELECT - - CAST( NULL AS SIGNED ) AS col2, - 72
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-9813
SELECT - - CAST ( NULL AS INTEGER ) AS col2, - 72
----
NULL
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT - COALESCE ( - - 88, + SUM( ALL - 30 ) * - 47 )
----
-88

skipif mysql # not compatible
query I rowsort label-9814
SELECT - COALESCE ( - - 88, + SUM ( ALL - 30 ) * - 47 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT + 63 * NULLIF ( - COUNT( * ), 36 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9815
SELECT + 63 * NULLIF ( - COUNT ( * ), 36 ) AS col2
----
-63

query I rowsort
SELECT ALL + 1 + 54
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9817
SELECT + 97 + + 5 col2, ( + + CAST( NULL AS SIGNED ) ) * ( - 0 ) / - - 83 * MIN( + 15 ) / - - 6 + + + 18 AS col1
----
102
NULL

skipif mysql # not compatible
query II rowsort label-9817
SELECT + 97 + + 5 col2, ( + + CAST ( NULL AS INTEGER ) ) * ( - 0 ) / - - 83 * MIN ( + 15 ) / - - 6 + + + 18 AS col1
----
102
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9818
SELECT - COUNT( * ) DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-9818
SELECT - COUNT ( * ) / - 38
----
0

query I rowsort
SELECT ALL - 29 + + 44 + - 67 * 97
----
-6484

query I rowsort
SELECT ALL 97 + - 60 AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9821
SELECT DISTINCT + CAST( + + 81 AS SIGNED ) col0, + 17
----
81
17

skipif mysql # not compatible
query II rowsort label-9821
SELECT DISTINCT + CAST ( + + 81 AS INTEGER ) col0, + 17
----
81
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9822
SELECT ALL + 44 DIV + + 41 + + 73
----
74

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL + 44 / + + 41 + + 73
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT - 85 * + NULLIF ( + 77, ( + COALESCE ( + 4, + SUM( 60 ) / + 12 + - 86, ( + 55 ) ) ) )
----
-6545

skipif mysql # not compatible
query I rowsort label-9823
SELECT - 85 * + NULLIF ( + 77, ( + COALESCE ( + 4, + SUM ( 60 ) / + 12 + - 86, ( + 55 ) ) ) )
----
-6545

query I rowsort
SELECT ALL 88 / + 90 / + CASE NULLIF ( + - AVG ( + 71 ), NULLIF ( + 93, + + ( - 78 ) ) ) WHEN + + 58 THEN - 7 + + 34 / - + 42 END + 59 AS col0
----
NULL

query I rowsort
SELECT - 61 * CASE + 44 WHEN + 76 / - 99 + + - 34 THEN - 43 + + 18 END * 62 + - 18 + + - 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT - 73 - ( + MIN( DISTINCT - - 53 ) )
----
-126

skipif mysql # not compatible
query I rowsort label-9826
SELECT - 73 - ( + MIN ( DISTINCT - - 53 ) )
----
-126

query I rowsort
SELECT ( + CASE 3 WHEN ( + 49 ) + + - 42 THEN + ( + 7 ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT - 55 * + COUNT( * ) * + 74
----
-4070

skipif mysql # not compatible
query I rowsort label-9828
SELECT - 55 * + COUNT ( * ) * + 74
----
-4070

query I rowsort
SELECT 3 * 94 + - 66 AS col2
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9830
SELECT - 1 + - 54 + 12 - + 19 - 72 DIV - COALESCE ( + NULLIF ( + + MAX( + - 88 ), - CAST( + + 96 AS SIGNED ) ), - 78 ) * + NULLIF ( - 23, + 4 * 98 * - 94 ) + 84 + - COUNT( * ) * + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9830
SELECT - 1 + - 54 + 12 - + 19 - 72 / - COALESCE ( + NULLIF ( + + MAX ( + - 88 ), - CAST ( + + 96 AS INTEGER ) ), - 78 ) * + NULLIF ( - 23, + 4 * 98 * - 94 ) + 84 + - COUNT ( * ) * + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL - + 47 * 97 - - COUNT( * ) AS col2
----
-4558

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL - + 47 * 97 - - COUNT ( * ) AS col2
----
-4558

query I rowsort
SELECT DISTINCT - 26 * + + 75 * + ( + - 35 )
----
68250

query II rowsort
SELECT ( + 89 ), - 50 * - 70 AS col0
----
89
3500

query I rowsort
SELECT - + ( + + 5 ) - + 45 AS col1
----
-50

query I rowsort
SELECT ALL + - 28 * + + 10 - - - 4 + - - 24 AS col1
----
-260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9836
SELECT + 48 * - COUNT( CAST( + - 83 AS SIGNED ) ) * - 5 * 31 + - NULLIF ( + COUNT( * ), AVG ( DISTINCT - 38 ) ), - 56 AS col0
----
7439
-56

skipif mysql # not compatible
query II rowsort label-9836
SELECT + 48 * - COUNT ( CAST ( + - 83 AS INTEGER ) ) * - 5 * 31 + - NULLIF ( + COUNT ( * ), AVG ( DISTINCT - 38 ) ), - 56 AS col0
----
7439
-56

query I rowsort
SELECT + - 79 + + 80 AS col2
----
1

query I rowsort
SELECT - - ( + ( + 18 ) ) * + 3 * + ( - ( + 54 ) ) + - 45
----
-2961

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT - MAX( ALL ( + 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-9839
SELECT - MAX ( ALL ( + 38 ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL + SUM( + + 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL + SUM ( + + 73 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL - COUNT( * ) * COUNT( DISTINCT 34 ) + + - 27 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL - COUNT ( * ) * COUNT ( DISTINCT 34 ) + + - 27 AS col1
----
-28

query II rowsort
SELECT ALL - ( - 47 ) AS col0, + 4
----
47
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9843
SELECT + - 78 + + NULLIF ( - CAST( - + ( - ( COUNT( * ) ) ) AS SIGNED ), + 36 ) / CAST( NULL AS SIGNED ) * + - COUNT( * ) + - + 60 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT + - 78 + + NULLIF ( - CAST ( - + ( - ( COUNT ( * ) ) ) AS INTEGER ), + 36 ) / CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + - + 60 col1
----
NULL

query I rowsort
SELECT DISTINCT 98 * + 40
----
3920

query I rowsort
SELECT ALL 57 + - 4 AS col2
----
53

query I rowsort
SELECT + 39 + - 57
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT + ( - 57 ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT + ( - 57 ) * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( 99 ) + + + 70 + + + 44 col2
----
213

query II rowsort
SELECT ALL 34, - 14 + 65 col1
----
34
51

query II rowsort
SELECT 86 AS col1, 3 + 33 AS col1
----
86
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9851
SELECT CAST( NULL AS SIGNED ) + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9851
SELECT CAST ( NULL AS INTEGER ) + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL CASE - MAX( ALL 17 ) WHEN - NULLIF ( + 90, - 40 ) / 51 * + - 40 + 74 THEN - 47 WHEN 63 * + NULLIF ( + COUNT( * ), + 43 + 87 ) / + COUNT( * ) + + - COUNT( * ) * - 89 + + 20 THEN NULL ELSE ( + 58 ) END + - 81 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL CASE - MAX ( ALL 17 ) WHEN - NULLIF ( + 90, - 40 ) / 51 * + - 40 + 74 THEN - 47 WHEN 63 * + NULLIF ( + COUNT ( * ), + 43 + 87 ) / + COUNT ( * ) + + - COUNT ( * ) * - 89 + + 20 THEN NULL ELSE ( + 58 ) END + - 81 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT COALESCE ( + - COUNT( * ), - 68 ) + 73
----
72

skipif mysql # not compatible
query I rowsort label-9853
SELECT COALESCE ( + - COUNT ( * ), - 68 ) + 73
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9854
SELECT 86 AS col2, + 20 - 69 + - 21 * - - COUNT( * )
----
86
-70

skipif mysql # not compatible
query II rowsort label-9854
SELECT 86 AS col2, + 20 - 69 + - 21 * - - COUNT ( * )
----
86
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL + SUM( - + 52 ) - - - 90 * COUNT( * )
----
-142

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + SUM ( - + 52 ) - - - 90 * COUNT ( * )
----
-142

onlyif mysql # DIV for integer division: 
query II rowsort label-9856
SELECT ALL - 55, 36 DIV 94 AS col0
----
-55
0

skipif mysql # not compatible
query II rowsort label-9856
SELECT ALL - 55, 36 / 94 AS col0
----
-55
0

query I rowsort
SELECT 29 * - 93 col0
----
-2697

query I rowsort
SELECT - ( + 21 ) + 49 AS col2
----
28

query I rowsort
SELECT ALL - - 88 - + + 46 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL - + COALESCE ( - + 44, 30, SUM( ALL - - 51 ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - + COALESCE ( - + 44, 30, SUM ( ALL - - 51 ) ) AS col2
----
44

query I rowsort
SELECT 0 * 96
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9862
SELECT 31 DIV + 87 - 49
----
-49

skipif mysql # not compatible
query I rowsort label-9862
SELECT 31 / + 87 - 49
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9863
SELECT DISTINCT + - MAX( + 45 ) DIV 10 AS col0, 84 col1
----
-4
84

skipif mysql # not compatible
query II rowsort label-9863
SELECT DISTINCT + - MAX ( + 45 ) / 10 AS col0, 84 col1
----
-4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + SUM( - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-9864
SELECT + SUM ( - 65 ) AS col2
----
-65

query I rowsort
SELECT 23 * - + 28
----
-644

query I rowsort
SELECT ALL + - 0 * + 89
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9867
SELECT DISTINCT - 20 + - 52 * - - 12, COUNT( * ) + - 55 AS col1
----
-644
-54

skipif mysql # not compatible
query II rowsort label-9867
SELECT DISTINCT - 20 + - 52 * - - 12, COUNT ( * ) + - 55 AS col1
----
-644
-54

query I rowsort
SELECT DISTINCT - + 71 * 31 AS col1
----
-2201

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT + 4 * + + CASE + + 72 WHEN - - 38 THEN NULL WHEN - + 6 * + 60 * 99 + + ( - 38 ) / 53 + + 25 THEN + 73 ELSE - MIN( DISTINCT + 89 ) + + 72 END + 40 col2
----
-28

skipif mysql # not compatible
query I rowsort label-9869
SELECT + 4 * + + CASE + + 72 WHEN - - 38 THEN NULL WHEN - + 6 * + 60 * 99 + + ( - 38 ) / 53 + + 25 THEN + 73 ELSE - MIN ( DISTINCT + 89 ) + + 72 END + 40 col2
----
-28

query II rowsort
SELECT + 10 AS col0, 96
----
10
96

query I rowsort
SELECT ALL - 85 + - + 4
----
-89

query I rowsort
SELECT ALL + 27 + 72 AS col2
----
99

query I rowsort
SELECT 76 * - 61 AS col2
----
-4636

query I rowsort
SELECT 79 + 14 + - 21 + 57 * - + 73 * + 50
----
-207978

query I rowsort
SELECT ALL + 47 + + - 86 * + 28
----
-2361

query I rowsort
SELECT DISTINCT + 29 + + - NULLIF ( + NULLIF ( + 12, + 35 * + 80 * 54 ), - 23 / - 8 * 23 + - 26 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL + 11 * + COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL + 11 * + COUNT ( * ) AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9878
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) - - 58 + + + 40 AS col0, - ( + - 51 )
----
NULL
51

skipif mysql # not compatible
query II rowsort label-9878
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) - - 58 + + + 40 AS col0, - ( + - 51 )
----
NULL
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9879
SELECT CAST( NULL AS SIGNED ) * - 37 AS col1, + 86
----
NULL
86

skipif mysql # not compatible
query II rowsort label-9879
SELECT CAST ( NULL AS INTEGER ) * - 37 AS col1, + 86
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT 69 + + + COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9880
SELECT 69 + + + COUNT ( * ) AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9881
SELECT ( - + CASE + 63 WHEN - + CAST( NULL AS SIGNED ) + 32 + + + 6 THEN NULL WHEN - 69 / + 38 * + 39 THEN - 41 END ) + + 99 * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT ( - + CASE + 63 WHEN - + CAST ( NULL AS INTEGER ) + 32 + + + 6 THEN NULL WHEN - 69 / + 38 * + 39 THEN - 41 END ) + + 99 * 13
----
NULL

query I rowsort
SELECT 15 * 22 + - 66 col2
----
264

query I rowsort
SELECT ALL - 32 * - - 86
----
-2752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9884
SELECT - 65 * + CASE + 21 WHEN - 31 THEN + - 46 ELSE + 24 * - - 99 + COUNT( * ) - + 4 * - - 19 END + - CAST( NULL AS SIGNED ) + - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT - 65 * + CASE + 21 WHEN - 31 THEN + - 46 ELSE + 24 * - - 99 + COUNT ( * ) - + 4 * - - 19 END + - CAST ( NULL AS INTEGER ) + - 43 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9885
SELECT COUNT( * ) + - 75 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9885
SELECT COUNT ( * ) + - 75 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9886
SELECT ALL NULLIF ( + NULLIF ( + 41, 57 ), + ( CASE + - 21 WHEN CASE - 53 WHEN + - 52 + - COALESCE ( - - 55, - - 51 ) THEN + CASE - - 77 WHEN + - 51 * + 10 * - ( + - 33 ) + 92 THEN + COUNT( * ) ELSE NULL END * 65 + - 84 WHEN - 68 THEN NULL WHEN 19 THEN + 33 * + ( 47 ) ELSE NULL END * - 27 THEN NULL WHEN 86 THEN + ( + ( + COUNT( * ) ) ) / 47 END ) ) + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL NULLIF ( + NULLIF ( + 41, 57 ), + ( CASE + - 21 WHEN CASE - 53 WHEN + - 52 + - COALESCE ( - - 55, - - 51 ) THEN + CASE - - 77 WHEN + - 51 * + 10 * - ( + - 33 ) + 92 THEN + COUNT ( * ) ELSE NULL END * 65 + - 84 WHEN - 68 THEN NULL WHEN 19 THEN + 33 * + ( 47 ) ELSE NULL END * - 27 THEN NULL WHEN 86 THEN + ( + ( + COUNT ( * ) ) ) / 47 END ) ) + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT + + 85 * + 32 * 17 + - CASE - + 17 WHEN 1 THEN - + COUNT( * ) * - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT + + 85 * + 32 * 17 + - CASE - + 17 WHEN 1 THEN - + COUNT ( * ) * - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT DISTINCT - 89 + + CAST( - + 65 AS SIGNED ) AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT - 89 + + CAST ( - + 65 AS INTEGER ) AS col0
----
-154

query I rowsort
SELECT + 37 - - + ( + 58 ) col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT ALL - CAST( - 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL - CAST ( - 4 AS INTEGER ) AS col1
----
4

query I rowsort
SELECT ALL 80 + 79 + - 17 + + 2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9892
SELECT - 92 * + CAST( + 55 AS SIGNED ) * - 49
----
247940

skipif mysql # not compatible
query I rowsort label-9892
SELECT - 92 * + CAST ( + 55 AS INTEGER ) * - 49
----
247940

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL COALESCE ( COUNT( * ), MIN( ALL - 36 ) * + - 15 - + - CASE - + 11 WHEN - MIN( DISTINCT 96 ) + + MIN( - CASE 77 WHEN + 19 THEN 59 WHEN 83 + - 2 * COALESCE ( + + ( - - 77 ), + - 71 ) + - 72 THEN NULL ELSE NULL END ) THEN + 91 WHEN 18 - + 87 THEN NULL END ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL COALESCE ( COUNT ( * ), MIN ( ALL - 36 ) * + - 15 - + - CASE - + 11 WHEN - MIN ( DISTINCT 96 ) + + MIN ( - CASE 77 WHEN + 19 THEN 59 WHEN 83 + - 2 * COALESCE ( + + ( - - 77 ), + - 71 ) + - 72 THEN NULL ELSE NULL END ) THEN + 91 WHEN 18 - + 87 THEN NULL END ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT ALL + NULLIF ( 86, 82 ) + - CASE + + 49 WHEN - 9 THEN + 84 / - 75 + - ( - - COUNT( * ) ) WHEN - + 80 THEN NULL END + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL + NULLIF ( 86, 82 ) + - CASE + + 49 WHEN - 9 THEN + 84 / - 75 + - ( - - COUNT ( * ) ) WHEN - + 80 THEN NULL END + - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT - 68 * - CASE + + 12 WHEN 75 + 83 + - 37 * - COUNT( * ) THEN NULL WHEN + - 1 THEN - COUNT( * ) * + ( - 43 ) * - 73 * 18 - + 68 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT - 68 * - CASE + + 12 WHEN 75 + 83 + - 37 * - COUNT ( * ) THEN NULL WHEN + - 1 THEN - COUNT ( * ) * + ( - 43 ) * - 73 * 18 - + 68 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9896
SELECT DISTINCT + 25 * NULLIF ( CASE COUNT( * ) WHEN - 56 * 3 - - 40 THEN 62 WHEN + + ( 29 ) THEN + CASE + 82 WHEN - + 1 * + 45 THEN 39 / 21 + - ( 8 ) + - CAST( NULL AS SIGNED ) + + + 15 / 91 END WHEN - 35 THEN NULL END, + 18 ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT + 25 * NULLIF ( CASE COUNT ( * ) WHEN - 56 * 3 - - 40 THEN 62 WHEN + + ( 29 ) THEN + CASE + 82 WHEN - + 1 * + 45 THEN 39 / 21 + - ( 8 ) + - CAST ( NULL AS INTEGER ) + + + 15 / 91 END WHEN - 35 THEN NULL END, + 18 ) * - 59
----
NULL

query I rowsort
SELECT - 21 + - + 24 AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT - CAST( NULL AS SIGNED ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT - CAST ( NULL AS INTEGER ) * 12
----
NULL

query I rowsort
SELECT - 26 + + + 4 + + + ( 80 ) AS col0
----
58

query I rowsort
SELECT - 2 + 73
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL MIN( DISTINCT - 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL MIN ( DISTINCT - 5 ) AS col0
----
-5

query I rowsort
SELECT DISTINCT COALESCE ( + - 59, - + 77 )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9903
SELECT - 96 + COUNT( * ) * - 17 * 66 + - 79, COALESCE ( 68, - + 15 * - + ( + + 56 ) + NULLIF ( COUNT( * ), + 58 * ( 13 ) ), + 54, - + 12 + - 17 ) * - 85 AS col0
----
-1297
-5780

skipif mysql # not compatible
query II rowsort label-9903
SELECT - 96 + COUNT ( * ) * - 17 * 66 + - 79, COALESCE ( 68, - + 15 * - + ( + + 56 ) + NULLIF ( COUNT ( * ), + 58 * ( 13 ) ), + 54, - + 12 + - 17 ) * - 85 AS col0
----
-1297
-5780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9904
SELECT DISTINCT - CAST( - - COUNT( * ) AS SIGNED ) * + - 75 DIV - COUNT( * ) + - CAST( + - 82 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT - CAST ( - - COUNT ( * ) AS INTEGER ) * + - 75 / - COUNT ( * ) + - CAST ( + - 82 AS INTEGER )
----
7

query I rowsort
SELECT - + CASE - + 60 WHEN - 74 * - 28 THEN 47 * + 49 + 26 ELSE 24 END AS col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9906
SELECT - + 72 DIV - + 40 * - COUNT( * ), MIN( DISTINCT - 49 ) * + + 56 - + 5 col1
----
-1
-2749

skipif mysql # not compatible
query II rowsort label-9906
SELECT - + 72 / - + 40 * - COUNT ( * ), MIN ( DISTINCT - 49 ) * + + 56 - + 5 col1
----
-1
-2749

query II rowsort
SELECT + + 67 + ( - - 3 ), - ( + 60 ) AS col2
----
70
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-9908
SELECT ALL 45 * + NULLIF ( + 31, 92 * + 66 ) + + 31 DIV 65 AS col1
----
1395

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL 45 * + NULLIF ( + 31, 92 * + 66 ) + + 31 / 65 AS col1
----
1395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9909
SELECT DISTINCT - 9 * CAST( NULL AS SIGNED ) + + 8 AS col1, MIN( + 6 )
----
NULL
6

skipif mysql # not compatible
query II rowsort label-9909
SELECT DISTINCT - 9 * CAST ( NULL AS INTEGER ) + + 8 AS col1, MIN ( + 6 )
----
NULL
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT DISTINCT 16 * ( - - MIN( COALESCE ( + + CAST( NULL AS SIGNED ), + + 38 * + 2 + - 60 + - - 73 ) ) ) + + - 8 - 6
----
1410

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT 16 * ( - - MIN ( COALESCE ( + + CAST ( NULL AS INTEGER ), + + 38 * + 2 + - 60 + - - 73 ) ) ) + + - 8 - 6
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL SUM( + - 24 ) * - 0 + - + ( + 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL SUM ( + - 24 ) * - 0 + - + ( + 20 ) AS col2
----
-20

query II rowsort
SELECT + 38, - 11 * - ( + 32 ) AS col2
----
38
352

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT - CASE - 79 WHEN 97 + - MAX( DISTINCT - 5 ) THEN NULL WHEN - - 78 * + 73 THEN + COUNT( * ) / - 42 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT - CASE - 79 WHEN 97 + - MAX ( DISTINCT - 5 ) THEN NULL WHEN - - 78 * + 73 THEN + COUNT ( * ) / - 42 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT ALL + - CAST( + - 83 AS SIGNED ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + - CAST ( + - 83 AS INTEGER ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + - COUNT( * ) * + 59
----
-59

skipif mysql # not compatible
query I rowsort label-9915
SELECT + - COUNT ( * ) * + 59
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9916
SELECT 99 * - + CAST( + 62 AS SIGNED ) + - - 79
----
-6059

skipif mysql # not compatible
query I rowsort label-9916
SELECT 99 * - + CAST ( + 62 AS INTEGER ) + - - 79
----
-6059

onlyif mysql # aggregate syntax: 
query II rowsort label-9917
SELECT DISTINCT + + MAX( ALL - NULLIF ( + 45, - + NULLIF ( 26, + - 40 + - - 57 + + 34 ) ) ) AS col1, + ( 60 ) * - 88
----
-45
-5280

skipif mysql # not compatible
query II rowsort label-9917
SELECT DISTINCT + + MAX ( ALL - NULLIF ( + 45, - + NULLIF ( 26, + - 40 + - - 57 + + 34 ) ) ) AS col1, + ( 60 ) * - 88
----
-45
-5280

query I rowsort
SELECT DISTINCT + 66 * 5 + - 74 AS col1
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL + COUNT( * ) * 99 * + - 17 - + 46 + + 73 col0
----
-1656

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL + COUNT ( * ) * 99 * + - 17 - + 46 + + 73 col0
----
-1656

onlyif mysql # DIV for integer division: 
query I rowsort label-9920
SELECT + 69 * 72 DIV 46 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-9920
SELECT + 69 * 72 / 46 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT ALL 74 * MAX( + 36 )
----
2664

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL 74 * MAX ( + 36 )
----
2664

query II rowsort
SELECT DISTINCT + 46 AS col2, 70 + - 9
----
46
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT SUM( DISTINCT + - 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-9923
SELECT SUM ( DISTINCT + - 45 ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9924
SELECT COUNT( * ) AS col2, - CAST( + COALESCE ( - - 64, + + COUNT( * ) + + COUNT( * ) + 97, + 61 ) AS SIGNED )
----
1
-64

skipif mysql # not compatible
query II rowsort label-9924
SELECT COUNT ( * ) AS col2, - CAST ( + COALESCE ( - - 64, + + COUNT ( * ) + + COUNT ( * ) + 97, + 61 ) AS INTEGER )
----
1
-64

query I rowsort
SELECT - 38 * + 70
----
-2660

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9926
SELECT + 9 - - + 48 + + - CAST( - 13 AS SIGNED ) * 22 * 84 * 17 DIV 60 - - 11 col0
----
6874

skipif mysql # not compatible
query I rowsort label-9926
SELECT + 9 - - + 48 + + - CAST ( - 13 AS INTEGER ) * 22 * 84 * 17 / 60 - - 11 col0
----
6874

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT - COUNT( * ) + + 49 + + - 97 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9927
SELECT - COUNT ( * ) + + 49 + + - 97 AS col1
----
-49

query I rowsort
SELECT ALL 91 - + + 20
----
71

query I rowsort
SELECT ALL - 39 * - - 38 AS col0
----
-1482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9930
SELECT DISTINCT COUNT( * ) DIV + ( 76 ) * 89 * - 43 col1
----
0

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT COUNT ( * ) / + ( 76 ) * 89 * - 43 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ALL SUM( ALL - + 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL SUM ( ALL - + 53 ) AS col0
----
-53

query II rowsort
SELECT - 51, + 42 AS col1
----
-51
42

query I rowsort
SELECT + 43 * + 58 col0
----
2494

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT - 60 - - SUM( DISTINCT + 70 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9934
SELECT - 60 - - SUM ( DISTINCT + 70 ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-9935
SELECT 39 AS col1, COALESCE ( - + 27, 91, - - 94 DIV + 35 + - + NULLIF ( + - 99, - 14 * + 89 ) - - + 2 )
----
39
-27

skipif mysql # not compatible
query II rowsort label-9935
SELECT 39 AS col1, COALESCE ( - + 27, 91, - - 94 / + 35 + - + NULLIF ( + - 99, - 14 * + 89 ) - - + 2 )
----
39
-27

query II rowsort
SELECT - 64, + 46 - 79 col1
----
-64
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-9937
SELECT DISTINCT 81 AS col2, 67 + - 56 DIV - - 85 + - - 45
----
81
112

skipif mysql # not compatible
query II rowsort label-9937
SELECT DISTINCT 81 AS col2, 67 + - 56 / - - 85 + - - 45
----
81
112

query I rowsort
SELECT - 7 * 22 - - + 57 AS col2
----
-97

query I rowsort
SELECT + 76 * - 39 AS col2
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT ALL + + 93 + - + ( + MIN( - NULLIF ( - - 86, + 83 / - 26 ) ) ) * - COUNT( * ) * ( - MIN( - 16 ) )
----
-1283

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + + 93 + - + ( + MIN ( - NULLIF ( - - 86, + 83 / - 26 ) ) ) * - COUNT ( * ) * ( - MIN ( - 16 ) )
----
-1283

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9941
SELECT - + 19 - ( 10 ) + + - 84 DIV 17 * 15 AS col1, + COUNT( * ) + 69 col0
----
-89
70

skipif mysql # not compatible
query II rowsort label-9941
SELECT - + 19 - ( 10 ) + + - 84 / 17 * 15 AS col1, + COUNT ( * ) + 69 col0
----
-89
70

query I rowsort
SELECT ALL - 55 + - 7 AS col1
----
-62

query I rowsort
SELECT - - 44 * + 40 * - 29 + - - 89
----
-50951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT DISTINCT 64 / - - CAST( NULL AS SIGNED ) + - + COALESCE ( - + 8, - 57 ) + + + 96 + - - 58 * + ( - CAST( + + 22 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT 64 / - - CAST ( NULL AS INTEGER ) + - + COALESCE ( - + 8, - 57 ) + + + 96 + - - 58 * + ( - CAST ( + + 22 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT ALL 1 / ( + ( 95 ) ) / - + 9 + + 30 + + CAST( + 65 AS SIGNED ) * - 98 + - CASE - + 47 WHEN + + 71 THEN NULL WHEN + + ( + 56 ) THEN + 76 END * - + 68 * + 25 + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL 1 / ( + ( 95 ) ) / - + 9 + + 30 + + CAST ( + 65 AS INTEGER ) * - 98 + - CASE - + 47 WHEN + + 71 THEN NULL WHEN + + ( + 56 ) THEN + 76 END * - + 68 * + 25 + 71
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9946
SELECT + - MAX( DISTINCT + 8 ) DIV - 11 * - - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9946
SELECT + - MAX ( DISTINCT + 8 ) / - 11 * - - 93 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT - 9 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT - 9 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + ( + 75 ) * 50
----
3750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9949
SELECT + - 36 AS col1, CAST( NULL AS SIGNED ) * - NULLIF ( 92, + - 95 * - 47 - - + COUNT( * ) + 92 * + + AVG ( 12 ) )
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-9949
SELECT + - 36 AS col1, CAST ( NULL AS INTEGER ) * - NULLIF ( 92, + - 95 * - 47 - - + COUNT ( * ) + 92 * + + AVG ( 12 ) )
----
-36
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9950
SELECT + 30 / + 45 + - - CAST( NULL AS SIGNED ) + + SUM( + 1 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT + 30 / + 45 + - - CAST ( NULL AS INTEGER ) + + SUM ( + 1 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9951
SELECT ALL + + 22 - 71 * COALESCE ( NULLIF ( - 19, + 84 ), + + 63 ) + - NULLIF ( + 39, + + ( + COUNT( * ) ) * + + 1 - - 14 + - CAST( NULL AS SIGNED ) * + - 64 * - 73 * - COALESCE ( SUM( 34 ), - 21 * NULLIF ( + CASE 87 WHEN NULLIF ( 75, - 15 + 94 * - 13 ) THEN NULL ELSE - 53 END, + ( - 48 ) * - 36 ) ) )
----
1332

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL + + 22 - 71 * COALESCE ( NULLIF ( - 19, + 84 ), + + 63 ) + - NULLIF ( + 39, + + ( + COUNT ( * ) ) * + + 1 - - 14 + - CAST ( NULL AS INTEGER ) * + - 64 * - 73 * - COALESCE ( SUM ( 34 ), - 21 * NULLIF ( + CASE 87 WHEN NULLIF ( 75, - 15 + 94 * - 13 ) THEN NULL ELSE - 53 END, + ( - 48 ) * - 36 ) ) )
----
1332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9952
SELECT DISTINCT - + 59 * + COUNT( * ) - - 21 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT - + 59 * + COUNT ( * ) - - 21 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 17, - + 52 * - + 61 * 83 + + 76 ) - - 23
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9954
SELECT ALL - - 9 * - COUNT( ALL CAST( 79 AS SIGNED ) ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL - - 9 * - COUNT ( ALL CAST ( 79 AS INTEGER ) ) AS col2
----
-9

query I rowsort
SELECT 47 + - ( + 94 ) * 28
----
-2585

query I rowsort
SELECT ALL 51 - - + 27 + 67
----
145

query I rowsort
SELECT ( 32 ) + + - 88
----
-56

query II rowsort
SELECT 11 * - 82 col0, 40
----
-902
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9959
SELECT - CAST( NULL AS SIGNED ) * + - 93 + ( + 51 ) * + + 39 * - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9959
SELECT - CAST ( NULL AS INTEGER ) * + - 93 + ( + 51 ) * + + 39 * - 78 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9960
SELECT COUNT( * ) / - CAST( NULL AS DECIMAL ) / ( + 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT COUNT ( * ) / - CAST ( NULL AS REAL ) / ( + 68 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT ALL 85 * + + ( - MAX( DISTINCT + + 38 ) ) * - 60 * - ( - ( + 68 ) )
----
13178400

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL 85 * + + ( - MAX ( DISTINCT + + 38 ) ) * - 60 * - ( - ( + 68 ) )
----
13178400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9962
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) * - 21 + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 21 + 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9963
SELECT NULLIF ( COUNT( * ), 73 / + - 25 ) + - ( - 2 ) - + 23 AS col1, + 34 + + - 20 AS col0
----
-20
14

skipif mysql # not compatible
query II rowsort label-9963
SELECT NULLIF ( COUNT ( * ), 73 / + - 25 ) + - ( - 2 ) - + 23 AS col1, + 34 + + - 20 AS col0
----
-20
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9964
SELECT COUNT( * ) DIV - 64, ( 14 ) * + - SUM( + 29 ) + COUNT( ALL 22 ) AS col2
----
0
-405

skipif mysql # not compatible
query II rowsort label-9964
SELECT COUNT ( * ) / - 64, ( 14 ) * + - SUM ( + 29 ) + COUNT ( ALL 22 ) AS col2
----
0
-405

query I rowsort
SELECT 55 * 45 AS col2
----
2475

query II rowsort
SELECT ALL 31 + - 52, 6 col2
----
-21
6

query I rowsort
SELECT 35 + 43
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9968
SELECT ALL + 18 DIV + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + 18 / + COUNT ( * )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9969
SELECT DISTINCT 70 DIV - 25
----
-2

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT 70 / - 25
----
-2

query II rowsort
SELECT ALL - 53 + + 36 + - ( - + 35 ) - + 46 + - 56 * 21 * - ( - - NULLIF ( 49, 72 / + - 58 ) ) AS col1, 79 * + 34
----
57596
2686

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT + COUNT( - ( ( + 8 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9971
SELECT + COUNT ( - ( ( + 8 ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT DISTINCT CASE + 54 WHEN 33 * - ( + + 36 ) THEN NULL WHEN 91 * 29 THEN + 90 * + 5 * + MAX( - ( - 88 ) ) END + ( - 6 ) + - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT CASE + 54 WHEN 33 * - ( + + 36 ) THEN NULL WHEN 91 * 29 THEN + 90 * + 5 * + MAX ( - ( - 88 ) ) END + ( - 6 ) + - + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL - - 62 + + COUNT( * ) * + 14 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL - - 62 + + COUNT ( * ) * + 14 AS col2
----
76

query II rowsort
SELECT 13 + - + 45 AS col1, + 41 * 61 + + 32 col0
----
-32
2533

query II rowsort
SELECT DISTINCT - 60 + + 61, - 25 AS col2
----
1
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT DISTINCT + MAX( + 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT + MAX ( + 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT 69 * + ( + 75 ) + - 57 - + COUNT( * ) AS col0
----
5117

skipif mysql # not compatible
query I rowsort label-9977
SELECT 69 * + ( + 75 ) + - 57 - + COUNT ( * ) AS col0
----
5117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9978
SELECT ALL + 27 * 44 * + 90 + CAST( ( + + 20 ) AS SIGNED ) * - 98 * 83 AS col1
----
-55760

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL + 27 * 44 * + 90 + CAST ( ( + + 20 ) AS INTEGER ) * - 98 * 83 AS col1
----
-55760

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL + 16 - + - NULLIF ( - ( 29 ), 74 ) * COUNT( DISTINCT - 55 )
----
-13

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL + 16 - + - NULLIF ( - ( 29 ), 74 ) * COUNT ( DISTINCT - 55 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT COUNT( * ) * + + 87 * - 26 * + COUNT( * ) AS col0
----
-2262

skipif mysql # not compatible
query I rowsort label-9980
SELECT COUNT ( * ) * + + 87 * - 26 * + COUNT ( * ) AS col0
----
-2262

query I rowsort
SELECT DISTINCT + 66 * + 79 AS col2
----
5214

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT ALL - 12 * - MIN( - 72 )
----
-864

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL - 12 * - MIN ( - 72 )
----
-864

query I rowsort
SELECT DISTINCT - ( + + 34 ) + - + 32 + + - 84 + - ( - ( + 27 ) ) * - - 61 * 22 AS col0
----
36084

query I rowsort
SELECT 35 * - 55
----
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT 39 + 48 + COALESCE ( - 3, + + 53 ) * + - MIN( - 82 ) + + 53 col2
----
-106

skipif mysql # not compatible
query I rowsort label-9985
SELECT 39 + 48 + COALESCE ( - 3, + + 53 ) * + - MIN ( - 82 ) + + 53 col2
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9986
SELECT COUNT( * ) + + 38 DIV + 82, + 20 + + MIN( - 82 ) + 1 * 89 AS col2
----
1
27

skipif mysql # not compatible
query II rowsort label-9986
SELECT COUNT ( * ) + + 38 / + 82, + 20 + + MIN ( - 82 ) + 1 * 89 AS col2
----
1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL + ( ( COUNT( * ) ) ) + + ( + 27 ) * - SUM( ALL + 73 )
----
-1970

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL + ( ( COUNT ( * ) ) ) + + ( + 27 ) * - SUM ( ALL + 73 )
----
-1970

query II rowsort
SELECT 64 AS col2, 21 col2
----
64
21

query I rowsort
SELECT ALL 60 + + 17 * + 11 * 74
----
13898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9990
SELECT DISTINCT + 55 + + 17 * - 42 * + - CAST( - - 59 AS SIGNED )
----
42181

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT + 55 + + 17 * - 42 * + - CAST ( - - 59 AS INTEGER )
----
42181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT ALL - CAST( NULL AS SIGNED ) + + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9992
SELECT ALL 33 col1, - CAST( 30 AS SIGNED )
----
33
-30

skipif mysql # not compatible
query II rowsort label-9992
SELECT ALL 33 col1, - CAST ( 30 AS INTEGER )
----
33
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9993
SELECT - 44, - MIN( ALL - 87 ) AS col0
----
-44
87

skipif mysql # not compatible
query II rowsort label-9993
SELECT - 44, - MIN ( ALL - 87 ) AS col0
----
-44
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT - COUNT( - - 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-9994
SELECT - COUNT ( - - 33 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9995
SELECT - CAST( + COALESCE ( - ( + COUNT( * ) ), + 36 ) AS SIGNED ) * 32 * + 14 * - SUM( 55 ) col0
----
-24640

skipif mysql # not compatible
query I rowsort label-9995
SELECT - CAST ( + COALESCE ( - ( + COUNT ( * ) ), + 36 ) AS INTEGER ) * 32 * + 14 * - SUM ( 55 ) col0
----
-24640

query I rowsort
SELECT 28 * + 94 col0
----
2632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT ALL - 81 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - 81 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9998
SELECT DISTINCT 23, 57 + 35 + - COUNT( * ) AS col2
----
23
91

skipif mysql # not compatible
query II rowsort label-9998
SELECT DISTINCT 23, 57 + 35 + - COUNT ( * ) AS col2
----
23
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT + MAX( DISTINCT - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-9999
SELECT + MAX ( DISTINCT - 78 )
----
-78

