sqllogictest
Artifact Content
Not logged in

Artifact 24cd5cc5a495d67116c2fb674d9a441540d13b56:


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: 
query I rowsort label-0
SELECT ALL - 58 + - + 65 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL - 58 + - + 65 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 94 * - - 32 AS col1
----
3008

query II rowsort
SELECT ALL 62 * - + 54 * - 47 * - 24 AS col1, - 37
----
-3776544
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT DISTINCT MIN( DISTINCT - 16 ) - - 2
----
-14

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT MIN ( DISTINCT - 16 ) - - 2
----
-14

query I rowsort
SELECT + 44 * + - 64 - 60 AS col2
----
-2876

query I rowsort
SELECT ( - 25 ) * - - 15 AS col1
----
-375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6
SELECT ALL COUNT( * ) DIV + 79 AS col2, - 64 DIV + COUNT( * ) + - - MIN( + NULLIF ( - + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) * - ( + 37 ) ) ) + + 43 * COUNT( * ) - 43 + 18 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6
SELECT ALL COUNT ( * ) / + 79 AS col2, - 64 / + COUNT ( * ) + - - MIN ( + NULLIF ( - + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - ( + 37 ) ) ) + + 43 * COUNT ( * ) - 43 + 18 AS col0
----
0
NULL

query I rowsort
SELECT 82 - - 38 * - + 8 AS col0
----
-222

onlyif mysql # aggregate syntax: 
query II rowsort label-8
SELECT COUNT( * ) * - 65, + 95 AS col1
----
-65
95

skipif mysql # not compatible
query II rowsort label-8
SELECT COUNT ( * ) * - 65, + 95 AS col1
----
-65
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9
SELECT ALL - - COUNT( * ) * - 92 AS col1, NULLIF ( ( COUNT( * ) ), 16 )
----
-92
1

skipif mysql # not compatible
query II rowsort label-9
SELECT ALL - - COUNT ( * ) * - 92 AS col1, NULLIF ( ( COUNT ( * ) ), 16 )
----
-92
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT - 32 - + 27 * - SUM( CASE + CAST( NULL AS SIGNED ) WHEN - - 78 / + 90 + 4 THEN + - 95 WHEN + 12 THEN + 84 WHEN - 62 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT - 32 - + 27 * - SUM ( CASE + CAST ( NULL AS INTEGER ) WHEN - - 78 / + 90 + 4 THEN + - 95 WHEN + 12 THEN + 84 WHEN - 62 THEN NULL END ) AS col0
----
NULL

query II rowsort
SELECT 41 * - - 30 AS col0, 59 + - 93 AS col1
----
1230
-34

query I rowsort
SELECT - ( - 39 ) * + + 49
----
1911

query I rowsort
SELECT ALL + 0 * 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT DISTINCT + SUM( ALL - - 16 ) + + - COALESCE ( - 45, - 64 ) + + 40 + + + 55
----
156

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT + SUM ( ALL - - 16 ) + + - COALESCE ( - 45, - 64 ) + + 40 + + + 55
----
156

query I rowsort
SELECT + ( 58 ) * 3 AS col1
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-16
SELECT ALL + COUNT( * ) + - + COUNT( * ) AS col0, + 92 * + - 29 col0
----
0
-2668

skipif mysql # not compatible
query II rowsort label-16
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) AS col0, + 92 * + - 29 col0
----
0
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT DISTINCT + ( - COUNT( * ) ) + - 86 + 38 - + - NULLIF ( + 62, + 2 * + + 89 + - 93 - - COALESCE ( - - 66, + 96, ( - - ( + 28 ) ) * - + 12 * - 93 + + 6 - - 70 ) / + COUNT( 82 * - 54 ) ) * ( 99 ) * - 73 AS col1
----
-448123

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT + ( - COUNT ( * ) ) + - 86 + 38 - + - NULLIF ( + 62, + 2 * + + 89 + - 93 - - COALESCE ( - - 66, + 96, ( - - ( + 28 ) ) * - + 12 * - 93 + + 6 - - 70 ) / + COUNT ( 82 * - 54 ) ) * ( 99 ) * - 73 AS col1
----
-448123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-18
SELECT DISTINCT + 6 + MAX( + 65 ) + + COUNT( * ) DIV - + CAST( ( - 16 ) AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT + 6 + MAX ( + 65 ) + + COUNT ( * ) / - + CAST ( ( - 16 ) AS INTEGER ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT ALL + MIN( DISTINCT - + 40 ) + - 95
----
-135

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + MIN ( DISTINCT - + 40 ) + - 95
----
-135

onlyif mysql # aggregate syntax: 
query II rowsort label-20
SELECT - 57 * - 69 AS col0, SUM( ALL 74 ) + + + 80
----
3933
154

skipif mysql # not compatible
query II rowsort label-20
SELECT - 57 * - 69 AS col0, SUM ( ALL 74 ) + + + 80
----
3933
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-21
SELECT ALL 27 + + + COUNT( - 44 ) + - 45 + COUNT( * ) DIV - + 97 + 39 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL 27 + + + COUNT ( - 44 ) + - 45 + COUNT ( * ) / - + 97 + 39 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT - MAX( ALL + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-22
SELECT - MAX ( ALL + 35 )
----
-35

query I rowsort
SELECT ALL + 23 + - 8 * + 31 + 20 AS col1
----
-205

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT COALESCE ( - 92, + 7 + - COUNT( * ), - - 71 * - 38 * 39 * - 36 ) * - 51 + + 11
----
4703

skipif mysql # not compatible
query I rowsort label-25
SELECT COALESCE ( - 92, + 7 + - COUNT ( * ), - - 71 * - 38 * 39 * - 36 ) * - 51 + + 11
----
4703

query I rowsort
SELECT ALL - 25 * + - ( + + 68 ) * 70
----
119000

onlyif mysql # aggregate syntax: 
query II rowsort label-27
SELECT 89 * - COUNT( * ) + - 57 * - 48 + + + 27 AS col2, - 48 AS col0
----
2674
-48

skipif mysql # not compatible
query II rowsort label-27
SELECT 89 * - COUNT ( * ) + - 57 * - 48 + + + 27 AS col2, - 48 AS col0
----
2674
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT CASE WHEN NOT 55 IS NULL THEN - 12 END DIV 77 + - + COALESCE ( 60, - - 77 DIV + - 91 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-28
SELECT CASE WHEN NOT 55 IS NULL THEN - 12 END / 77 + - + COALESCE ( 60, - - 77 / + - 91 ) AS col0
----
-60

query I rowsort
SELECT DISTINCT - 71 - - 52 AS col2
----
-19

query I rowsort
SELECT 63 * 89 AS col2
----
5607

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-31
SELECT ALL - ( + CAST( 97 AS SIGNED ) ) col2, 35 AS col1
----
-97
35

skipif mysql # not compatible
query II rowsort label-31
SELECT ALL - ( + CAST ( 97 AS INTEGER ) ) col2, 35 AS col1
----
-97
35

query I rowsort
SELECT 72 + - + 42
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-33
SELECT 88 * - 87 * + - ( NULLIF ( 7, + + 8 * - - AVG ( - - 67 ) * + 14 DIV 29 - ( - + 55 ) DIV 22 + + COUNT( * ) * - MIN( 23 ) ) ) DIV - 1 + 12 + + 90 * + - 59 * 25
----
-186330

skipif mysql # not compatible
query I rowsort label-33
SELECT 88 * - 87 * + - ( NULLIF ( 7, + + 8 * - - AVG ( - - 67 ) * + 14 / 29 - ( - + 55 ) / 22 + + COUNT ( * ) * - MIN ( 23 ) ) ) / - 1 + 12 + + 90 * + - 59 * 25
----
-186330

query I rowsort
SELECT ( - 22 ) * - - NULLIF ( - 18, - 98 ) + + + ( + 17 )
----
413

query II rowsort
SELECT 27 - - - 34 + 33 + + - 34 - - - 48, 59 AS col2
----
-56
59

query I rowsort
SELECT ALL + 64 * 2 AS col2
----
128

onlyif mysql # DIV for integer division: 
query II rowsort label-37
SELECT COALESCE ( + 14, 74 - + 19 DIV + 44 + + + 47, + 22 * 3 ) * - ( 1 ) AS col2, - 40 + + 69
----
-14
29

skipif mysql # not compatible
query II rowsort label-37
SELECT COALESCE ( + 14, 74 - + 19 / + 44 + + + 47, + 22 * 3 ) * - ( 1 ) AS col2, - 40 + + 69
----
-14
29

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT DISTINCT + COALESCE ( - 97, - 29 + 91, - 22 * COUNT( * ) ) * + 17
----
-1649

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT + COALESCE ( - 97, - 29 + 91, - 22 * COUNT ( * ) ) * + 17
----
-1649

query I rowsort
SELECT DISTINCT - COALESCE ( + 67, - - 46 )
----
-67

query I rowsort
SELECT - 30 + + - 95
----
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT + 39 DIV 36 col1
----
1

skipif mysql # not compatible
query I rowsort label-41
SELECT + 39 / 36 col1
----
1

query II rowsort
SELECT ALL - 29 + 73 * + 39 AS col1, 21
----
2818
21

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

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL COUNT ( * ) / - ( ( + - 16 ) )
----
0

query I rowsort
SELECT - 5 + - 55 + + 98 + - 41 + - ( 15 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT 77 * + - MAX( ALL - 24 ) AS col0
----
1848

skipif mysql # not compatible
query I rowsort label-45
SELECT 77 * + - MAX ( ALL - 24 ) AS col0
----
1848

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-46
SELECT DISTINCT - 46 + - CAST( 23 AS SIGNED ) * 96 DIV - + 66
----
-13

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT - 46 + - CAST ( 23 AS INTEGER ) * 96 / - + 66
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-47
SELECT + 28 + - + 65 + MIN( + 47 ) * - 74 + + 96 * - 10 DIV - COUNT( * )
----
-2555

skipif mysql # not compatible
query I rowsort label-47
SELECT + 28 + - + 65 + MIN ( + 47 ) * - 74 + + 96 * - 10 / - COUNT ( * )
----
-2555

query I rowsort
SELECT ALL + 13 + - - 46
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-49
SELECT + CASE - + COUNT( * ) WHEN - - COUNT( * ) THEN + 49 WHEN + COALESCE ( 99, + CAST( 64 AS SIGNED ) / + + ( - 63 ) ) THEN + - 79 END + - + NULLIF ( CASE - - 99 WHEN + 82 THEN - ( + - ( + AVG ( - CAST( NULL AS DECIMAL ) ) ) ) END, 99 * 37 ) / 11
----
NULL

skipif mysql # not compatible
query I rowsort label-49
SELECT + CASE - + COUNT ( * ) WHEN - - COUNT ( * ) THEN + 49 WHEN + COALESCE ( 99, + CAST ( 64 AS INTEGER ) / + + ( - 63 ) ) THEN + - 79 END + - + NULLIF ( CASE - - 99 WHEN + 82 THEN - ( + - ( + AVG ( - CAST ( NULL AS REAL ) ) ) ) END, 99 * 37 ) / 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT + 8 + + - NULLIF ( - 3, - MIN( ALL + + 78 ) + - - 89 + + COUNT( * ) * 95 * 86 )
----
11

skipif mysql # not compatible
query I rowsort label-50
SELECT + 8 + + - NULLIF ( - 3, - MIN ( ALL + + 78 ) + - - 89 + + COUNT ( * ) * 95 * 86 )
----
11

query I rowsort
SELECT - 77 + 6 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT - 91 + + - MIN( DISTINCT ( + 51 ) ) AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-52
SELECT - 91 + + - MIN ( DISTINCT ( + 51 ) ) AS col0
----
-142

query II rowsort
SELECT 84, - 88 * + - 6 col2
----
84
528

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-54
SELECT - MIN( + ( - + 64 ) ) + - COUNT( * ) * + CASE 41 WHEN - COUNT( * ) THEN + 44 + + 73 ELSE NULL END / CAST( + 3 AS DECIMAL ) + + NULLIF ( - - 52, + + COUNT( * ) ) + + - COUNT( - + 19 ) + - 77 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT - MIN ( + ( - + 64 ) ) + - COUNT ( * ) * + CASE 41 WHEN - COUNT ( * ) THEN + 44 + + 73 ELSE NULL END / CAST ( + 3 AS REAL ) + + NULLIF ( - - 52, + + COUNT ( * ) ) + + - COUNT ( - + 19 ) + - 77 * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-55
SELECT ALL + MIN( DISTINCT + + 11 ) DIV + 78 + - + 28 + - 97
----
-125

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL + MIN ( DISTINCT + + 11 ) / + 78 + - + 28 + - 97
----
-125

query I rowsort
SELECT + 55 * - CASE 63 WHEN 72 / - 66 THEN + 17 WHEN 82 + 63 + 90 THEN 4 ELSE NULL END + + - 57 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT - 33 + + + SUM( ( 28 ) ) * 88 AS col0
----
2431

skipif mysql # not compatible
query I rowsort label-58
SELECT - 33 + + + SUM ( ( 28 ) ) * 88 AS col0
----
2431

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT + 45 DIV 19 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-59
SELECT + 45 / 19 AS col0
----
2

query I rowsort
SELECT DISTINCT - 49 * 33 AS col1
----
-1617

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-61
SELECT ALL + COUNT( * ), - 69 + + - 51 - - COUNT( * ) * + - ( - 17 ) DIV - + 31 - - - 93 col2
----
1
-213

skipif mysql # not compatible
query II rowsort label-61
SELECT ALL + COUNT ( * ), - 69 + + - 51 - - COUNT ( * ) * + - ( - 17 ) / - + 31 - - - 93 col2
----
1
-213

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

query I rowsort
SELECT 59 * 73 + - 91 AS col1
----
4216

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

skipif mysql # not compatible
query I rowsort label-64
SELECT - 15 * - - CAST ( NULL AS INTEGER ) * - - 44 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-65
SELECT - CAST( + 7 AS SIGNED ) * - 59 col0
----
413

skipif mysql # not compatible
query I rowsort label-65
SELECT - CAST ( + 7 AS INTEGER ) * - 59 col0
----
413

query I rowsort
SELECT DISTINCT + ( - 45 ) AS col2
----
-45

query II rowsort
SELECT + 29, 98 - 83 AS col2
----
29
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-68
SELECT ALL + CAST( - 36 AS SIGNED ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL + CAST ( - 36 AS INTEGER ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT + 43 * + 46 * 51 + - 61 + SUM( + 87 ) + + + 53
----
100957

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT + 43 * + 46 * 51 + - 61 + SUM ( + 87 ) + + + 53
----
100957

query II rowsort
SELECT 4 AS col1, 0 AS col0
----
4
0

query I rowsort
SELECT ALL - + COALESCE ( + CASE + + 66 WHEN - + 16 * + - 13 / - 35 THEN NULL WHEN - 11 THEN NULL ELSE 43 + + 30 END, 24, + + 10 - + 99 ) * - 61 + 91 + - + 9 * + - 32 + - 26
----
4806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-72
SELECT ALL - - CASE CAST( + + NULLIF ( 72, - COUNT( * ) * - 54 * CASE + 14 WHEN + - 60 THEN + - 30 WHEN - CASE + 3 WHEN 75 / + - 18 THEN 22 ELSE 87 END / 45 + + 34 + + 46 THEN 88 + - - COALESCE ( - 48, ( + 38 ) - 34, 77 ) - 16 * + 66 ELSE + 30 END ) AS SIGNED ) WHEN 31 + 19 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 10 END * 90 + - 29
----
871

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL - - CASE CAST ( + + NULLIF ( 72, - COUNT ( * ) * - 54 * CASE + 14 WHEN + - 60 THEN + - 30 WHEN - CASE + 3 WHEN 75 / + - 18 THEN 22 ELSE 87 END / 45 + + 34 + + 46 THEN 88 + - - COALESCE ( - 48, ( + 38 ) - 34, 77 ) - 16 * + 66 ELSE + 30 END ) AS INTEGER ) WHEN 31 + 19 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 10 END * 90 + - 29
----
871

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT - SUM( ALL + 2 ) * 32 + - 50
----
-114

skipif mysql # not compatible
query I rowsort label-73
SELECT - SUM ( ALL + 2 ) * 32 + - 50
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT + ( 77 ) + - MIN( DISTINCT ( 42 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-74
SELECT + ( 77 ) + - MIN ( DISTINCT ( 42 ) ) AS col0
----
35

query I rowsort
SELECT DISTINCT + - 36 + - - 78 AS col0
----
42

query I rowsort
SELECT DISTINCT - 50 + - ( - 9 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT ALL - COUNT( * ) + - - 31 + - COUNT( DISTINCT - + 69 ) * + 77
----
-47

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL - COUNT ( * ) + - - 31 + - COUNT ( DISTINCT - + 69 ) * + 77
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-78
SELECT ALL + 17 + + - ( 40 ) - - 80 - - 24 * + 49 * - + COUNT( * ) + + MAX( + 98 ) + + 38 * COUNT( * ) DIV - + 47 * + 23 + - COALESCE ( + - 52, - + 27 * - 96 ) AS col0
----
-969

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL + 17 + + - ( 40 ) - - 80 - - 24 * + 49 * - + COUNT ( * ) + + MAX ( + 98 ) + + 38 * COUNT ( * ) / - + 47 * + 23 + - COALESCE ( + - 52, - + 27 * - 96 ) AS col0
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT DISTINCT - 6 + + 89 * COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT - 6 + + 89 * COUNT ( * ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT - 78 * + - MAX( - 57 )
----
-4446

skipif mysql # not compatible
query I rowsort label-80
SELECT - 78 * + - MAX ( - 57 )
----
-4446

query II rowsort
SELECT 90, 77 AS col1
----
90
77

query I rowsort
SELECT DISTINCT + 23 - 25 + - 88 * + 66 + + + 87
----
-5723

query I rowsort
SELECT - + 18 * + 62
----
-1116

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

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

query II rowsort
SELECT - 13 AS col2, 96 * - 93 + 82 + + + 40
----
-13
-8806

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-87
SELECT ALL 75 * ( - COUNT( * ) ) AS col0, - MAX( DISTINCT ( - 76 ) ) + 23 + + - 50 * + 8 + 4 * + COUNT( * ) * + 82
----
-75
27

skipif mysql # not compatible
query II rowsort label-87
SELECT ALL 75 * ( - COUNT ( * ) ) AS col0, - MAX ( DISTINCT ( - 76 ) ) + 23 + + - 50 * + 8 + 4 * + COUNT ( * ) * + 82
----
-75
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-88
SELECT + COUNT( ALL - 27 ) DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-88
SELECT + COUNT ( ALL - 27 ) / - 42
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT ALL 87 DIV + + 7 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL 87 / + + 7 AS col1
----
12

query I rowsort
SELECT DISTINCT 80 * - + 82
----
-6560

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

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

query I rowsort
SELECT + 4 * 75 AS col2
----
300

query I rowsort
SELECT ALL 15 * - 12 AS col2
----
-180

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-97
SELECT ( - - 58 ) DIV + 65 + 26 + - - COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-97
SELECT ( - - 58 ) / + 65 + 26 + - - COUNT ( * ) AS col1
----
27

query I rowsort
SELECT ALL 79 * + 55 AS col1
----
4345

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

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

query I rowsort
SELECT + 67 - - 58 + 78
----
203

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-101
SELECT DISTINCT 63 DIV + 70 * - - ( COUNT( * ) ) * 97 * + 54 + + 94 + 28 + + - ( - 50 ) * - + ( + 4 ) AS col0, - 60 * + + 43 AS col1
----
-78
-2580

skipif mysql # not compatible
query II rowsort label-101
SELECT DISTINCT 63 / + 70 * - - ( COUNT ( * ) ) * 97 * + 54 + + 94 + 28 + + - ( - 50 ) * - + ( + 4 ) AS col0, - 60 * + + 43 AS col1
----
-78
-2580

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT 64 * + - 60 + MAX( ALL + 57 ) col0
----
-3783

skipif mysql # not compatible
query I rowsort label-102
SELECT 64 * + - 60 + MAX ( ALL + 57 ) col0
----
-3783

query I rowsort
SELECT - 61 * - - 19 * + 36
----
-41724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-104
SELECT DISTINCT + 99 DIV + - COALESCE ( 59, + 25, - + 8 DIV - 80 ) + - 83 + + 46 + + - MAX( DISTINCT ( - 4 ) ) DIV - SUM( 84 ) * + CAST( + + 58 AS SIGNED ) AS col0, - 4 AS col2
----
-38
-4

skipif mysql # not compatible
query II rowsort label-104
SELECT DISTINCT + 99 / + - COALESCE ( 59, + 25, - + 8 / - 80 ) + - 83 + + 46 + + - MAX ( DISTINCT ( - 4 ) ) / - SUM ( 84 ) * + CAST ( + + 58 AS INTEGER ) AS col0, - 4 AS col2
----
-38
-4

query I rowsort
SELECT ALL - 16 * 13 + - 40
----
-248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-106
SELECT + - 7 DIV 21 * + ( + COUNT( * ) ) + - COUNT( * ) DIV + CAST( 36 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-106
SELECT + - 7 / 21 * + ( + COUNT ( * ) ) + - COUNT ( * ) / + CAST ( 36 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT - MAX( ALL ( - 16 ) ) * - - NULLIF ( - 11, 77 - COUNT( * ) * - - 38 ) + ( + ( 4 ) ) AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-107
SELECT - MAX ( ALL ( - 16 ) ) * - - NULLIF ( - 11, 77 - COUNT ( * ) * - - 38 ) + ( + ( 4 ) ) AS col2
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - COUNT( * ) - + - 47 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-108
SELECT - COUNT ( * ) - + - 47 AS col1
----
46

query I rowsort
SELECT DISTINCT 52 * 9 + - 25 AS col0
----
443

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT ALL 21 * - COUNT( * ) + + 20 + 41 * + 92 AS col2
----
3771

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL 21 * - COUNT ( * ) + + 20 + 41 * + 92 AS col2
----
3771

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

skipif mysql # not compatible
query I rowsort label-111
SELECT SUM ( ALL - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT DISTINCT CASE + COUNT( * ) WHEN + - 20 THEN NULL WHEN + 74 THEN - 49 * - - 67 * 12 * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT CASE + COUNT ( * ) WHEN + - 20 THEN NULL WHEN + 74 THEN - 49 * - - 67 * 12 * - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL + + 23 * + 2 + + - 84 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT NULLIF ( + - COUNT( * ), - 15 / + 78 + + 76 + - 82 ) * 66 * - - 86 * 4 + + 14
----
-22690

skipif mysql # not compatible
query I rowsort label-114
SELECT NULLIF ( + - COUNT ( * ), - 15 / + 78 + + 76 + - 82 ) * 66 * - - 86 * 4 + + 14
----
-22690

query II rowsort
SELECT + 90 + 41, + 61 AS col1
----
131
61

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT SUM( DISTINCT + + 7 ) * - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-116
SELECT SUM ( DISTINCT + + 7 ) * - COUNT ( * )
----
-7

query II rowsort
SELECT ALL - 61 * + + 19, + 58 AS col1
----
-1159
58

query I rowsort
SELECT ALL - 45 * 65 col2
----
-2925

query I rowsort
SELECT DISTINCT - - 25 * 3 * 68 + + 58
----
5158

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

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

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL - 0 * + 54 * + COUNT ( * ) AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-123
SELECT ALL 93 AS col0, - 22 - - 53 - - - 24 * COUNT( * )
----
93
7

skipif mysql # not compatible
query II rowsort label-123
SELECT ALL 93 AS col0, - 22 - - 53 - - - 24 * COUNT ( * )
----
93
7

query II rowsort
SELECT ALL 95, + ( - + 3 ) AS col2
----
95
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT COUNT( * ) + + + 51 col0
----
52

skipif mysql # not compatible
query I rowsort label-125
SELECT COUNT ( * ) + + + 51 col0
----
52

query I rowsort
SELECT 88 * 40
----
3520

query I rowsort
SELECT 92 * + + 66 AS col2
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT ALL COUNT( DISTINCT 95 ) * 39
----
39

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL COUNT ( DISTINCT 95 ) * 39
----
39

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

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + COUNT ( * ) / + 74 AS col2
----
0

query I rowsort
SELECT ALL 62 + 64 - + 4
----
122

query I rowsort
SELECT ALL 79 * + 7 AS col1
----
553

query I rowsort
SELECT DISTINCT 91 + + 12 AS col1
----
103

query I rowsort
SELECT 27 * - 38 AS col2
----
-1026

query I rowsort
SELECT ALL 26 + + 16
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT MIN( ALL - 36 ) * 88 - - + 34
----
-3134

skipif mysql # not compatible
query I rowsort label-135
SELECT MIN ( ALL - 36 ) * 88 - - + 34
----
-3134

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT DISTINCT 61 + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT 61 + COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT - 89 * + - 53 + COUNT( * )
----
4718

skipif mysql # not compatible
query I rowsort label-137
SELECT - 89 * + - 53 + COUNT ( * )
----
4718

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT ALL + 92 + + 2 + COALESCE ( + 44, 33 ) + + ( - - NULLIF ( - COUNT( * ), 8 ) ) + ( - 8 ) AS col0, 37 AS col1
----
129
37

skipif mysql # not compatible
query II rowsort label-138
SELECT ALL + 92 + + 2 + COALESCE ( + 44, 33 ) + + ( - - NULLIF ( - COUNT ( * ), 8 ) ) + ( - 8 ) AS col0, 37 AS col1
----
129
37

query I rowsort
SELECT ALL - 17 + + 51
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-140
SELECT 31 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT 31 * - - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-141
SELECT - + CAST ( NULL AS INTEGER ) * - 14 + - ( - - CAST ( NULL AS INTEGER ) ) + - 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT DISTINCT + 89 - - 25 * + 30 - - - MIN( DISTINCT - 21 ) AS col1
----
860

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT + 89 - - 25 * + 30 - - - MIN ( DISTINCT - 21 ) AS col1
----
860

query I rowsort
SELECT ALL - - ( - - 5 ) AS col0
----
5

query I rowsort
SELECT ALL 82 - - 33 col0
----
115

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

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

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

query I rowsort
SELECT 31 + - - ( - + 16 ) AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-148
SELECT + 48 DIV - 69 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-148
SELECT + 48 / - 69 + - - COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT 66 * + - 46 + 37 AS col0
----
-2999

query I rowsort
SELECT ALL 71 * + 60
----
4260

onlyif mysql # DIV for integer division: 
query II rowsort label-151
SELECT - 15 DIV 73 * 31 DIV 39 AS col1, + 10
----
0
10

skipif mysql # not compatible
query II rowsort label-151
SELECT - 15 / 73 * 31 / 39 AS col1, + 10
----
0
10

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT ALL + - 27 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL + - 27 / - 74
----
0

query I rowsort
SELECT - 24 * 52 AS col0
----
-1248

query I rowsort
SELECT 59 * - - 43
----
2537

query I rowsort
SELECT - CASE 83 WHEN - + ( + 36 ) * + 45 * - 12 THEN + 10 + AVG ( DISTINCT - 79 ) * + 99 WHEN - + 34 * + + 99 - - + 27 THEN + NULLIF ( - + 40, - 7 * 55 - ( 51 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT MIN( 98 ) - 3
----
95

skipif mysql # not compatible
query I rowsort label-156
SELECT MIN ( 98 ) - 3
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-157
SELECT - SUM( + - 93 ), + 60 + - COUNT( * ) AS col1
----
93
59

skipif mysql # not compatible
query II rowsort label-157
SELECT - SUM ( + - 93 ), + 60 + - COUNT ( * ) AS col1
----
93
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-158
SELECT 82 * - - COALESCE ( - - 81, - 94 * + MAX( COALESCE ( 31, + 34 ) ) + 59 + 34 DIV + CASE + COUNT( * ) WHEN 77 THEN NULL WHEN - + ( + 79 ) THEN + - COUNT( * ) ELSE 96 END - - 3 * + COUNT( * ) + + MAX( + 73 ) )
----
6642

skipif mysql # not compatible
query I rowsort label-158
SELECT 82 * - - COALESCE ( - - 81, - 94 * + MAX ( COALESCE ( 31, + 34 ) ) + 59 + 34 / + CASE + COUNT ( * ) WHEN 77 THEN NULL WHEN - + ( + 79 ) THEN + - COUNT ( * ) ELSE 96 END - - 3 * + COUNT ( * ) + + MAX ( + 73 ) )
----
6642

query I rowsort
SELECT DISTINCT + 18 + 9 AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-160
SELECT DISTINCT + COUNT( * ) * + 99, + 32 + - 85 + + - COUNT( * ) * - ( - ( - COUNT( * ) ) ) AS col2
----
99
-52

skipif mysql # not compatible
query II rowsort label-160
SELECT DISTINCT + COUNT ( * ) * + 99, + 32 + - 85 + + - COUNT ( * ) * - ( - ( - COUNT ( * ) ) ) AS col2
----
99
-52

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

query I rowsort
SELECT ALL + 36 + - 67
----
-31

query I rowsort
SELECT ALL 38 + - + 47 + 98 * ( + 58 )
----
5675

query I rowsort
SELECT 91 + - ( + 80 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT COUNT( * ) * + MIN( ALL + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-165
SELECT COUNT ( * ) * + MIN ( ALL + 78 )
----
78

query II rowsort
SELECT DISTINCT - ( - 82 ) AS col0, 4 + + 67 AS col2
----
82
71

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT 1 * + - 2 * - + 42 + + COUNT( DISTINCT 23 )
----
85

skipif mysql # not compatible
query I rowsort label-167
SELECT 1 * + - 2 * - + 42 + + COUNT ( DISTINCT 23 )
----
85

query I rowsort
SELECT 42 - - + ( - 85 ) - - 0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-169
SELECT ALL - CAST( - - 31 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - CAST ( - - 31 AS INTEGER )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT CASE + + 83 WHEN - SUM( - 6 ) * + - 56 * - 31 * + 55 THEN + MAX( ALL + 12 ) WHEN 78 THEN + 7 WHEN - 27 THEN NULL ELSE NULL END * - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT CASE + + 83 WHEN - SUM ( - 6 ) * + - 56 * - 31 * + 55 THEN + MAX ( ALL + 12 ) WHEN 78 THEN + 7 WHEN - 27 THEN NULL ELSE NULL END * - - 10
----
NULL

query I rowsort
SELECT 26 + 77 * - - CASE - + 36 WHEN - - 53 + + + 1 THEN NULL ELSE + + 0 END * ( + 29 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT DISTINCT 31 * - COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT 31 * - COUNT ( * ) AS col1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT ALL + - 88 DIV - 48
----
1

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL + - 88 / - 48
----
1

query II rowsort
SELECT DISTINCT - + ( - 89 ) col0, 51 col1
----
89
51

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT COUNT( 31 ) * - 66 * - - 8 + + 63
----
-465

skipif mysql # not compatible
query I rowsort label-175
SELECT COUNT ( 31 ) * - 66 * - - 8 + + 63
----
-465

query II rowsort
SELECT ALL - + ( 14 ) * + 19 - - - 48 AS col2, + 38 AS col0
----
-314
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-177
SELECT - + SUM( 73 ) DIV + 33
----
-2

skipif mysql # not compatible
query I rowsort label-177
SELECT - + SUM ( 73 ) / + 33
----
-2

query I rowsort
SELECT + NULLIF ( + 34, - + NULLIF ( 53, 31 ) ) AS col2
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-179
SELECT - - 5 + + 68 - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-179
SELECT - - 5 + + 68 - CAST ( NULL AS REAL ) AS col1
----
NULL

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

query I rowsort
SELECT + - 25 + 7 * + 16 AS col2
----
87

query I rowsort
SELECT DISTINCT + 67 * - NULLIF ( + 91, + - 94 ) AS col1
----
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-183
SELECT ALL + - NULLIF ( 91, + CAST( NULL AS SIGNED ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL + - NULLIF ( 91, + CAST ( NULL AS INTEGER ) ) AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-184
SELECT ALL + - CAST( + 63 AS SIGNED ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL + - CAST ( + 63 AS INTEGER ) AS col0
----
-63

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

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

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

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

query II rowsort
SELECT + - 78 * + - 92 AS col1, - 50
----
7176
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT + - 73 * - + MIN( + + 17 )
----
1241

skipif mysql # not compatible
query I rowsort label-188
SELECT + - 73 * - + MIN ( + + 17 )
----
1241

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-190
SELECT ALL + 93 + 34 + - COUNT( * ) * - 10 col1, 78
----
137
78

skipif mysql # not compatible
query II rowsort label-190
SELECT ALL + 93 + 34 + - COUNT ( * ) * - 10 col1, 78
----
137
78

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT - ( - - 96 ) * - - COUNT( * ) * + 19 * - 2 + + MAX( + 92 )
----
3740

skipif mysql # not compatible
query I rowsort label-191
SELECT - ( - - 96 ) * - - COUNT ( * ) * + 19 * - 2 + + MAX ( + 92 )
----
3740

query I rowsort
SELECT - 28 - - + 30 + 38
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-193
SELECT + CAST( 39 AS SIGNED ) + 69 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-193
SELECT + CAST ( 39 AS INTEGER ) + 69 AS col1
----
108

query I rowsort
SELECT - 4 * 79 * - 16 AS col2
----
5056

query I rowsort
SELECT ALL COALESCE ( + 9, + + 78 ) * - - 31
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL - NULLIF ( + 65, - + COUNT( * ) ) + - 68 AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL - NULLIF ( + 65, - + COUNT ( * ) ) + - 68 AS col2
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT SUM( + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT SUM ( + 68 ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-198
SELECT DISTINCT 15 + - 69 - + CAST( + - 38 AS SIGNED ) + 42 - 76 + + 99 + - 68 DIV - COALESCE ( + 35, - - MIN( - 17 ) ) * COUNT( * ) * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT 15 + - 69 - + CAST ( + - 38 AS INTEGER ) + 42 - 76 + + 99 + - 68 / - COALESCE ( + 35, - - MIN ( - 17 ) ) * COUNT ( * ) * COUNT ( * )
----
50

query I rowsort
SELECT - 44 + ( + - 53 ) * 78 + - 12 - - 46 AS col1
----
-4144

query I rowsort
SELECT - COALESCE ( - - 60, + 36 )
----
-60

query I rowsort
SELECT - 21 + + - 78 + + ( - 85 ) * - + 53 - - 85
----
4491

query I rowsort
SELECT - 38 * - - 85 * + 85 col0
----
-274550

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-204
SELECT - 21, COUNT( * ) DIV + 51 + + COUNT( * ) + 44 + - 87 AS col2
----
-21
-42

skipif mysql # not compatible
query II rowsort label-204
SELECT - 21, COUNT ( * ) / + 51 + + COUNT ( * ) + 44 + - 87 AS col2
----
-21
-42

query I rowsort
SELECT - 78 * 33 col0
----
-2574

query I rowsort
SELECT DISTINCT + 61 * - - 82 AS col0
----
5002

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-209
SELECT ALL - COUNT( * ) DIV 57 + 22 - MIN( ALL 87 ) - - 80 - + 14
----
1

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - COUNT ( * ) / 57 + 22 - MIN ( ALL 87 ) - - 80 - + 14
----
1

query I rowsort
SELECT - - 84 * - 66
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT - 76 * - MIN( DISTINCT - 52 ) * - 0 * - + 1
----
0

skipif mysql # not compatible
query I rowsort label-211
SELECT - 76 * - MIN ( DISTINCT - 52 ) * - 0 * - + 1
----
0

query I rowsort
SELECT - 43 * + 38
----
-1634

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-213
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) AS col2, 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-213
SELECT DISTINCT + + CAST ( NULL AS REAL ) AS col2, 72
----
NULL
72

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT ALL 0 DIV + - 47
----
0

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL 0 / + - 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT - - 68 DIV + ( 26 ) + - 52 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-215
SELECT - - 68 / + ( 26 ) + - 52 AS col0
----
-50

query I rowsort
SELECT ALL + 57 * 40
----
2280

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT DISTINCT - + 18 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - + 18 / 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-218
SELECT ALL - 82 * 45 DIV 25 DIV - + 45 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - 82 * 45 / 25 / - + 45 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT + + MIN( ALL - 64 ) * - + COALESCE ( 88, + 3 ) + + - 6 AS col0
----
5626

skipif mysql # not compatible
query I rowsort label-219
SELECT + + MIN ( ALL - 64 ) * - + COALESCE ( 88, + 3 ) + + - 6 AS col0
----
5626

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT DISTINCT COUNT( * ) * - 0 / + ( + CASE + - 88 WHEN - 80 / - 57 + 52 * + 58 * + + COUNT( * ) + + + 53 + 32 * + 14 THEN - 91 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT COUNT ( * ) * - 0 / + ( + CASE + - 88 WHEN - 80 / - 57 + 52 * + 58 * + + COUNT ( * ) + + + 53 + 32 * + 14 THEN - 91 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-221
SELECT - + COUNT( * ) DIV - 20 + 98 AS col0
----
98

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

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

skipif mysql # not compatible
query I rowsort label-222
SELECT + COUNT ( * ) / 24 + 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT + 19 * 84 * + MAX( + 94 ) + - COALESCE ( - - 34, + - 16 ) AS col2
----
149990

skipif mysql # not compatible
query I rowsort label-223
SELECT + 19 * 84 * + MAX ( + 94 ) + - COALESCE ( - - 34, + - 16 ) AS col2
----
149990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-224
SELECT ALL 55 * 33 + + CASE + COUNT( * ) WHEN - 85 THEN NULL WHEN - 50 THEN - 36 * + 80 ELSE NULL END AS col2, ( - - CAST( + + ( + MAX( ALL 99 ) ) AS SIGNED ) ) * 15
----
NULL
1485

skipif mysql # not compatible
query II rowsort label-224
SELECT ALL 55 * 33 + + CASE + COUNT ( * ) WHEN - 85 THEN NULL WHEN - 50 THEN - 36 * + 80 ELSE NULL END AS col2, ( - - CAST ( + + ( + MAX ( ALL 99 ) ) AS INTEGER ) ) * 15
----
NULL
1485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-225
SELECT DISTINCT ( CAST( + - 53 AS SIGNED ) ) * + 40 + + COUNT( * ) + + + 14 * - COUNT( * ) DIV + + ( COUNT( * ) )
----
-2133

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT ( CAST ( + - 53 AS INTEGER ) ) * + 40 + + COUNT ( * ) + + + 14 * - COUNT ( * ) / + + ( COUNT ( * ) )
----
-2133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-226
SELECT + MAX( DISTINCT + ( + 87 ) ) * + 88 + + 67 + CAST( + + 46 AS SIGNED ) + + 60, 4 AS col0
----
7829
4

skipif mysql # not compatible
query II rowsort label-226
SELECT + MAX ( DISTINCT + ( + 87 ) ) * + 88 + + 67 + CAST ( + + 46 AS INTEGER ) + + 60, 4 AS col0
----
7829
4

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT DISTINCT - COUNT( * ) * 13 + - 65
----
-78

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT - COUNT ( * ) * 13 + - 65
----
-78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-229
SELECT ALL MIN( + - 77 ) * - 10 * 81 + + - CASE COALESCE ( - ( - 45 ), - 13, 64 + + 45, + + 8 ) WHEN NULLIF ( - - CAST( 29 AS SIGNED ), - + 94 - + 64 ) / + AVG ( - + 15 ) + + ( CASE + - ( - - 29 ) WHEN + - 10 + 39 THEN + COALESCE ( + 74, + 73, COUNT( * ) ) - + SUM( ALL 16 ) ELSE - 2 END ) THEN NULL ELSE 6 END
----
62364

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL MIN ( + - 77 ) * - 10 * 81 + + - CASE COALESCE ( - ( - 45 ), - 13, 64 + + 45, + + 8 ) WHEN NULLIF ( - - CAST ( 29 AS INTEGER ), - + 94 - + 64 ) / + AVG ( - + 15 ) + + ( CASE + - ( - - 29 ) WHEN + - 10 + 39 THEN + COALESCE ( + 74, + 73, COUNT ( * ) ) - + SUM ( ALL 16 ) ELSE - 2 END ) THEN NULL ELSE 6 END
----
62364

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

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + COUNT ( * ) * - 55 + + + COUNT ( * ) AS col1
----
-54

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

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

query I rowsort
SELECT ALL 39 * + - 55 AS col0
----
-2145

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

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

query I rowsort
SELECT + ( - 58 ) - + 43 AS col2
----
-101

query II rowsort
SELECT + 9 / COALESCE ( ( 77 ), + 82 ) * - + CASE - + CASE + 79 WHEN - - 85 + + ( + - 33 ) THEN - 85 END WHEN + COALESCE ( 64, - - 9 ) THEN + + 79 END col2, 11
----
NULL
11

query II rowsort
SELECT 6 AS col1, 29 + + + ( + 43 ) AS col1
----
6
72

query I rowsort
SELECT ALL ( + 27 ) - 53 AS col2
----
-26

query I rowsort
SELECT ALL 55 * - ( - 10 )
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT + 79 - COUNT( ALL 79 )
----
78

skipif mysql # not compatible
query I rowsort label-239
SELECT + 79 - COUNT ( ALL 79 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-240
SELECT 87 AS col1, + SUM( - + 40 )
----
87
-40

skipif mysql # not compatible
query II rowsort label-240
SELECT 87 AS col1, + SUM ( - + 40 )
----
87
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-241
SELECT ALL CASE 46 WHEN 54 + - - 33 THEN + + 2 + 88 WHEN + COUNT( * ) + - + COUNT( * ) + + 92 THEN + ( CAST( NULL AS SIGNED ) ) WHEN + + 69 THEN + 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL CASE 46 WHEN 54 + - - 33 THEN + + 2 + 88 WHEN + COUNT ( * ) + - + COUNT ( * ) + + 92 THEN + ( CAST ( NULL AS INTEGER ) ) WHEN + + 69 THEN + 40 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-242
SELECT + MAX( DISTINCT + 11 ) - + 11 * + 16 AS col0, - CAST( NULL AS SIGNED ) * 17 AS col1
----
-165
NULL

skipif mysql # not compatible
query II rowsort label-242
SELECT + MAX ( DISTINCT + 11 ) - + 11 * + 16 AS col0, - CAST ( NULL AS INTEGER ) * 17 AS col1
----
-165
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT ALL ( COUNT( * ) ) * - 97 + + 67 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL ( COUNT ( * ) ) * - 97 + + 67 AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-244
SELECT ALL - 11 DIV - + 89 AS col2, + AVG ( CASE + CAST( NULL AS SIGNED ) WHEN 73 DIV - ( - 93 ) + 38 * + 28 THEN + 24 + - 64 END ) * + + 0 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-244
SELECT ALL - 11 / - + 89 AS col2, + AVG ( CASE + CAST ( NULL AS INTEGER ) WHEN 73 / - ( - 93 ) + 38 * + 28 THEN + 24 + - 64 END ) * + + 0 AS col2
----
0
NULL

query II rowsort
SELECT - 33 AS col2, 0 * - 79 AS col2
----
-33
0

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

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

query I rowsort
SELECT 16 + 32
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-248
SELECT 75 * + + NULLIF ( - CASE 99 WHEN 91 THEN + - 59 * + 74 END, - + CAST( NULL AS DECIMAL ) + - 56 ) * - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT 75 * + + NULLIF ( - CASE 99 WHEN 91 THEN + - 59 * + 74 END, - + CAST ( NULL AS REAL ) + - 56 ) * - 40 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-249
SELECT ALL - 69 DIV + CAST( - 83 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL - 69 / + CAST ( - 83 AS INTEGER ) AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT COUNT( * ) - 92 * 19
----
-1747

skipif mysql # not compatible
query I rowsort label-251
SELECT COUNT ( * ) - 92 * 19
----
-1747

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

skipif mysql # not compatible
query I rowsort label-252
SELECT COUNT ( * ) * + 86 - + + 84 AS col2
----
2

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

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

query II rowsort
SELECT ALL - - 93 col2, 11
----
93
11

query I rowsort
SELECT + 67 + 47
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT + + 96 * 92 + + + SUM( DISTINCT + - 0 )
----
8832

skipif mysql # not compatible
query I rowsort label-256
SELECT + + 96 * 92 + + + SUM ( DISTINCT + - 0 )
----
8832

onlyif mysql # aggregate syntax: 
query II rowsort label-257
SELECT + 16 AS col0, + MAX( DISTINCT + - 16 ) AS col2
----
16
-16

skipif mysql # not compatible
query II rowsort label-257
SELECT + 16 AS col0, + MAX ( DISTINCT + - 16 ) AS col2
----
16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ALL + COUNT( * ) + - - 70
----
71

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL + COUNT ( * ) + - - 70
----
71

query II rowsort
SELECT + 16 AS col1, 28 AS col0
----
16
28

query II rowsort
SELECT + - 34 AS col2, - 31
----
-34
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ALL - MAX( 13 ) + - 96 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL - MAX ( 13 ) + - 96 AS col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT ALL + COUNT( * ) + COUNT( * ) * + 52 * - - 16
----
833

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL + COUNT ( * ) + COUNT ( * ) * + 52 * - - 16
----
833

query I rowsort
SELECT ALL ( 19 ) + - - ( + 65 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-264
SELECT DISTINCT + COUNT( * ) + + - 72 AS col2, - 11 * - 76 + - COUNT( * )
----
-71
835

skipif mysql # not compatible
query II rowsort label-264
SELECT DISTINCT + COUNT ( * ) + + - 72 AS col2, - 11 * - 76 + - COUNT ( * )
----
-71
835

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT ALL - 77 DIV - 16 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL - 77 / - 16 AS col0
----
4

query I rowsort
SELECT 98 + - 51 + + 30
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-267
SELECT 1 * - + 30, 8 * - COUNT( * ) * + + 61 * 56 + - NULLIF ( + 52, + COALESCE ( + 54, + 44 ) / - 72 ) + 85 - + + 2 * - 89 AS col2
----
-30
-27117

skipif mysql # not compatible
query II rowsort label-267
SELECT 1 * - + 30, 8 * - COUNT ( * ) * + + 61 * 56 + - NULLIF ( + 52, + COALESCE ( + 54, + 44 ) / - 72 ) + 85 - + + 2 * - 89 AS col2
----
-30
-27117

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

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

query II rowsort
SELECT 7 + + - 80, + 75 AS col1
----
-73
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-270
SELECT 17 + + 42 + - NULLIF ( - 39, - ( + COUNT( * ) ) ) - + - CAST( - - COUNT( * ) AS SIGNED ) * + ( + + MAX( - 80 ) )
----
18

skipif mysql # not compatible
query I rowsort label-270
SELECT 17 + + 42 + - NULLIF ( - 39, - ( + COUNT ( * ) ) ) - + - CAST ( - - COUNT ( * ) AS INTEGER ) * + ( + + MAX ( - 80 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT 42 + + MIN( - ( 54 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-271
SELECT 42 + + MIN ( - ( 54 ) ) AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-272
SELECT CASE + AVG ( ALL ( - 21 ) ) WHEN + + 94 * - 58 * 46 THEN + 15 * - - CAST( NULL AS SIGNED ) WHEN - - 18 THEN NULL END + + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT CASE + AVG ( ALL ( - 21 ) ) WHEN + + 94 * - 58 * 46 THEN + 15 * - - CAST ( NULL AS INTEGER ) WHEN - - 18 THEN NULL END + + + 46
----
NULL

query I rowsort
SELECT 26 * + 92 AS col0
----
2392

query I rowsort
SELECT 61 + + 81 + + + 84 + - 75 AS col0
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-275
SELECT MAX( DISTINCT - NULLIF ( + 20, + 5 * 13 * + 59 * 85 ) ) DIV + 54 + - + 27
----
-27

skipif mysql # not compatible
query I rowsort label-275
SELECT MAX ( DISTINCT - NULLIF ( + 20, + 5 * 13 * + 59 * 85 ) ) / + 54 + - + 27
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT ALL ( - COALESCE ( - 14, + COUNT( * ), - + 46 * + 18 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL ( - COALESCE ( - 14, + COUNT ( * ), - + 46 * + 18 ) ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT + NULLIF ( + + COUNT( ALL + + NULLIF ( - - 34, + 92 ) ), - - 60 + + 15 ) * - 97
----
-97

skipif mysql # not compatible
query I rowsort label-277
SELECT + NULLIF ( + + COUNT ( ALL + + NULLIF ( - - 34, + 92 ) ), - - 60 + + 15 ) * - 97
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-278
SELECT - 25 DIV CAST( 12 AS SIGNED ) + - 59 + + 65 DIV - 55 + + + 66, + COALESCE ( - + 91, + COUNT( * ), 87 ) + 31 AS col0
----
4
-60

skipif mysql # not compatible
query II rowsort label-278
SELECT - 25 / CAST ( 12 AS INTEGER ) + - 59 + + 65 / - 55 + + + 66, + COALESCE ( - + 91, + COUNT ( * ), 87 ) + 31 AS col0
----
4
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT DISTINCT 64 + 70 * + COUNT( * ) AS col1
----
134

skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT 64 + 70 * + COUNT ( * ) AS col1
----
134

query I rowsort
SELECT ALL 21 * 68 - - 40 + - + 65
----
1403

query I rowsort
SELECT DISTINCT - 88 * 93 AS col1
----
-8184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-282
SELECT + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-282
SELECT + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 55 + + 3 AS col0
----
58

query I rowsort
SELECT ALL 48 + - - 38 AS col1
----
86

query I rowsort
SELECT + + NULLIF ( 54, + - 96 )
----
54

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

skipif mysql # not compatible
query I rowsort label-286
SELECT + - ( + SUM ( + - 2 ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-287
SELECT ALL + + 75 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL + + 75 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT - 14 * + + ( - 88 ) - + - MAX( + - 17 ) * - 18 AS col0
----
1538

skipif mysql # not compatible
query I rowsort label-288
SELECT - 14 * + + ( - 88 ) - + - MAX ( + - 17 ) * - 18 AS col0
----
1538

query I rowsort
SELECT DISTINCT 92 * + 35
----
3220

query I rowsort
SELECT 20 * - 85 AS col0
----
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT CASE - 93 WHEN + 40 * + 25 + + ( + - 35 ) THEN + + COUNT( * ) + + 46 END * + + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT CASE - 93 WHEN + 40 * + 25 + + ( + - 35 ) THEN + + COUNT ( * ) + + 46 END * + + 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT + CASE 60 WHEN COUNT( * ) * - 70 THEN NULL WHEN ( - 54 ) THEN - 89 * + + 9 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-292
SELECT + CASE 60 WHEN COUNT ( * ) * - 70 THEN NULL WHEN ( - 54 ) THEN - 89 * + + 9 END AS col0
----
NULL

query I rowsort
SELECT 43 + + 27 AS col0
----
70

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-295
SELECT 52 + - - 18 DIV + - NULLIF ( - - 3, - + COUNT( + 66 ) ), + 55 DIV + 60 * - + 50 AS col1
----
46
0

skipif mysql # not compatible
query II rowsort label-295
SELECT 52 + - - 18 / + - NULLIF ( - - 3, - + COUNT ( + 66 ) ), + 55 / + 60 * - + 50 AS col1
----
46
0

query II rowsort
SELECT 31 AS col2, 96 AS col1
----
31
96

query I rowsort
SELECT DISTINCT 67 * 80 AS col0
----
5360

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT - 2 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-298
SELECT - 2 / - 65 AS col2
----
0

query I rowsort
SELECT - NULLIF ( 57, - 90 ) * - + 8 + + 13
----
469

query I rowsort
SELECT ALL + 11 * - + 48
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT - 20 - + - MAX( ALL + - 33 ) * - 43
----
1399

skipif mysql # not compatible
query I rowsort label-301
SELECT - 20 - + - MAX ( ALL + - 33 ) * - 43
----
1399

query I rowsort
SELECT + 84 * + 36 AS col1
----
3024

query I rowsort
SELECT - 96 - - + 41
----
-55

query II rowsort
SELECT ALL CASE + + 53 WHEN 35 + - 27 THEN 8 WHEN 61 THEN NULL END AS col2, 96 - - ( + 12 )
----
NULL
108

query I rowsort
SELECT ALL + ( + 68 ) + 80 * + 54
----
4388

query I rowsort
SELECT - + 72 * + 26 - - + 22 * - - NULLIF ( + 18, + ( 55 ) )
----
-1476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT ALL CAST( - 24 AS SIGNED ) + NULLIF ( + 31, - 69 + - 70 / 47 ) + - + 21 * 42 AS col0
----
-875

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL CAST ( - 24 AS INTEGER ) + NULLIF ( + 31, - 69 + - 70 / 47 ) + - + 21 * 42 AS col0
----
-875

query I rowsort
SELECT ALL - ( + 7 ) * + + 27 + 68 col0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT + COUNT( * ) - - 3 * - + COUNT( * ) * COALESCE ( - 75, 24 ) + + 62
----
288

skipif mysql # not compatible
query I rowsort label-309
SELECT + COUNT ( * ) - - 3 * - + COUNT ( * ) * COALESCE ( - 75, 24 ) + + 62
----
288

query I rowsort
SELECT DISTINCT - 59 + + 31
----
-28

query II rowsort
SELECT - NULLIF ( + 7, - - 47 ) AS col2, + 56 AS col1
----
-7
56

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

skipif mysql # not compatible
query I rowsort label-312
SELECT - + SUM ( + 27 )
----
-27

query I rowsort
SELECT ALL + 26 + 30 col1
----
56

query I rowsort
SELECT - + 20 + 94 * + + 86 AS col1
----
8064

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-316
SELECT + - MAX( CAST( NULL AS SIGNED ) ) * + 97 + + NULLIF ( COUNT( * ), + + SUM( - 26 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-316
SELECT + - MAX ( CAST ( NULL AS INTEGER ) ) * + 97 + + NULLIF ( COUNT ( * ), + + SUM ( - 26 ) )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT DISTINCT + CASE - + 78 WHEN 42 THEN 35 + - CAST( + 25 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT + CASE - + 78 WHEN 42 THEN 35 + - CAST ( + 25 AS INTEGER ) END
----
NULL

query II rowsort
SELECT DISTINCT + 58 AS col1, 79 + - 70 AS col1
----
58
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-320
SELECT ALL - + 16 * + + COUNT( * ) * - 77 / CAST( NULL AS DECIMAL ) + + 49 + - + 86 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL - + 16 * + + COUNT ( * ) * - 77 / CAST ( NULL AS REAL ) + + 49 + - + 86 * + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT DISTINCT 40 * - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT 40 * - COUNT ( * ) AS col1
----
-40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-323
SELECT + 22 * + + COUNT( * ), - COUNT( * ) * + 52 AS col0
----
22
-52

skipif mysql # not compatible
query II rowsort label-323
SELECT + 22 * + + COUNT ( * ), - COUNT ( * ) * + 52 AS col0
----
22
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-324
SELECT ALL + ( + - 96 ) * + 74 * MIN( - 50 ) - 76 - - 96 + - + NULLIF ( + 21, + + 57 ) + COUNT( * ) * + + COUNT( + 51 ) + + 55 DIV - + 44 * - 96 DIV + 66 AS col1
----
355201

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL + ( + - 96 ) * + 74 * MIN ( - 50 ) - 76 - - 96 + - + NULLIF ( + 21, + + 57 ) + COUNT ( * ) * + + COUNT ( + 51 ) + + 55 / - + 44 * - 96 / + 66 AS col1
----
355201

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-325
SELECT ALL CAST( + 85 AS SIGNED ) DIV + - 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL CAST ( + 85 AS INTEGER ) / + - 71 AS col2
----
-1

query I rowsort
SELECT + 62 * + CASE 89 WHEN + 67 THEN NULL ELSE 72 * - 57 END * 62 AS col1
----
-15775776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-327
SELECT CASE - SUM( - 39 ) WHEN + - 84 THEN + - 32 WHEN 93 THEN 6 ELSE NULL END AS col2, + 18 - 43 + - CAST( NULL AS SIGNED ) * + 77 + - 22 + + 82 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-327
SELECT CASE - SUM ( - 39 ) WHEN + - 84 THEN + - 32 WHEN 93 THEN 6 ELSE NULL END AS col2, + 18 - 43 + - CAST ( NULL AS INTEGER ) * + 77 + - 22 + + 82 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-328
SELECT 42 * + 59 * + 8 + - - 5 - + SUM( DISTINCT + 10 ) * + 75 + 3 DIV MAX( ALL + 49 ) * + ( + 78 ) + CASE - 26 WHEN ( - 57 ) + CASE + COALESCE ( + 41, + + 69 - 78 ) WHEN + AVG ( + ( + - 75 ) ) * + COUNT( * ) * + + 57 THEN NULL ELSE NULLIF ( + 33, - 18 ) END + 21 THEN NULL WHEN + 30 THEN - CASE MAX( DISTINCT + COALESCE ( - 41, + 89 ) ) WHEN + 73 * 27 THEN COUNT( * ) END ELSE - ( + COUNT( * ) ) END + 14 col2
----
19092

skipif mysql # not compatible
query I rowsort label-328
SELECT 42 * + 59 * + 8 + - - 5 - + SUM ( DISTINCT + 10 ) * + 75 + 3 / MAX ( ALL + 49 ) * + ( + 78 ) + CASE - 26 WHEN ( - 57 ) + CASE + COALESCE ( + 41, + + 69 - 78 ) WHEN + AVG ( + ( + - 75 ) ) * + COUNT ( * ) * + + 57 THEN NULL ELSE NULLIF ( + 33, - 18 ) END + 21 THEN NULL WHEN + 30 THEN - CASE MAX ( DISTINCT + COALESCE ( - 41, + 89 ) ) WHEN + 73 * 27 THEN COUNT ( * ) END ELSE - ( + COUNT ( * ) ) END + 14 col2
----
19092

query II rowsort
SELECT ALL + 15 * + 88 col2, - 24
----
1320
-24

query I rowsort
SELECT 43 * - 64 + + 15
----
-2737

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT SUM( + - 52 ), - NULLIF ( - COALESCE ( 42, - ( - COUNT( * ) ) ), - 50 ) * COUNT( * ) AS col0
----
-52
42

skipif mysql # not compatible
query II rowsort label-331
SELECT SUM ( + - 52 ), - NULLIF ( - COALESCE ( 42, - ( - COUNT ( * ) ) ), - 50 ) * COUNT ( * ) AS col0
----
-52
42

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT + SUM( 93 ) + 29 + + COALESCE ( 2, + 15 ) * - 18 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-332
SELECT + SUM ( 93 ) + 29 + + COALESCE ( 2, + 15 ) * - 18 AS col2
----
86

query I rowsort
SELECT - ( 66 ) - ( 66 ) AS col0
----
-132

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

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

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 59
----
NULL

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

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

query I rowsort
SELECT - + 85 + 43 * - + 9 AS col0
----
-472

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-338
SELECT ALL - COALESCE ( - COALESCE ( - + CAST( + 1 AS SIGNED ), + - 74 * 13 * + 97 DIV 65 DIV - - 15 * + CAST( NULL AS SIGNED ) ), + - 19 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - COALESCE ( - COALESCE ( - + CAST ( + 1 AS INTEGER ), + - 74 * 13 * + 97 / 65 / - - 15 * + CAST ( NULL AS INTEGER ) ), + - 19 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT - - 10 + + 15 + - CASE 71 WHEN - - 2 * + 30 - + 33 THEN NULL WHEN 65 THEN NULL ELSE 75 + - COUNT( * ) END col1
----
-49

skipif mysql # not compatible
query I rowsort label-339
SELECT - - 10 + + 15 + - CASE 71 WHEN - - 2 * + 30 - + 33 THEN NULL WHEN 65 THEN NULL ELSE 75 + - COUNT ( * ) END col1
----
-49

query I rowsort
SELECT - - 60 + + + 13 + + - 84 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT DISTINCT - 97 + MAX( + 25 ) + - 23
----
-95

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT - 97 + MAX ( + 25 ) + - 23
----
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-342
SELECT + 70 + 27 + 60 + - 17 DIV 93 * 37 + - 82 AS col0, 73 AS col1
----
75
73

skipif mysql # not compatible
query II rowsort label-342
SELECT + 70 + 27 + 60 + - 17 / 93 * 37 + - 82 AS col0, 73 AS col1
----
75
73

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT ALL + COUNT( * ) * - 62 * - 26 + + + COUNT( * ) AS col0
----
1613

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL + COUNT ( * ) * - 62 * - 26 + + + COUNT ( * ) AS col0
----
1613

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT DISTINCT - COUNT( * ) + + MIN( DISTINCT NULLIF ( - - 31, + 0 * 9 ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT - COUNT ( * ) + + MIN ( DISTINCT NULLIF ( - - 31, + 0 * 9 ) ) AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-345
SELECT ALL + 45 * - + SUM( DISTINCT + + 39 ) + - ( - 90 ) * CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * - - CASE + + ( - COALESCE ( + COUNT( 48 ), - CAST( NULL AS SIGNED ) ) ) WHEN 79 THEN NULL WHEN MAX( + + 56 ) THEN - + 32 ELSE NULL END + + + 84 * - - 72 + + NULLIF ( + + 34, - - NULLIF ( 12, - + 96 ) / + ( 87 ) ) * - 18, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-345
SELECT ALL + 45 * - + SUM ( DISTINCT + + 39 ) + - ( - 90 ) * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * - - CASE + + ( - COALESCE ( + COUNT ( 48 ), - CAST ( NULL AS INTEGER ) ) ) WHEN 79 THEN NULL WHEN MAX ( + + 56 ) THEN - + 32 ELSE NULL END + + + 84 * - - 72 + + NULLIF ( + + 34, - - NULLIF ( 12, - + 96 ) / + ( 87 ) ) * - 18, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT - + 34 * + 50, 37 + + + 0 AS col0
----
-1700
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-347
SELECT - + 40 DIV - - 39 + - + 66 + - COUNT( * ) DIV - 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-347
SELECT - + 40 / - - 39 + - + 66 + - COUNT ( * ) / - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT + + COALESCE ( 67, + 31 * - - NULLIF ( - 17, + + 62 ) * 61 - + MIN( DISTINCT 91 ) + - 69 + - + 99 * 26 * 0 * - 50 )
----
67

skipif mysql # not compatible
query I rowsort label-348
SELECT + + COALESCE ( 67, + 31 * - - NULLIF ( - 17, + + 62 ) * 61 - + MIN ( DISTINCT 91 ) + - 69 + - + 99 * 26 * 0 * - 50 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT + NULLIF ( + COUNT( * ), - 68 * - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-349
SELECT + NULLIF ( + COUNT ( * ), - 68 * - 80 )
----
1

query I rowsort
SELECT ALL - CASE 17 WHEN + + 27 THEN + 31 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 3 * + 48 col1
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-352
SELECT 56 * - - 89 * + + MIN( DISTINCT + - ( - 18 ) ) * + 43 - COALESCE ( - NULLIF ( + + 37, 59 ), + 38 + - 74, + 87 * - 92 + - 99 * + 31 + + 27 - CAST( 15 AS SIGNED ) ) AS col1
----
3857653

skipif mysql # not compatible
query I rowsort label-352
SELECT 56 * - - 89 * + + MIN ( DISTINCT + - ( - 18 ) ) * + 43 - COALESCE ( - NULLIF ( + + 37, 59 ), + 38 + - 74, + 87 * - 92 + - 99 * + 31 + + 27 - CAST ( 15 AS INTEGER ) ) AS col1
----
3857653

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT 52 * 85 * - CASE - + 86 WHEN + COUNT( * ) * COUNT( * ) THEN NULL WHEN + 44 + - 50 * 94 THEN COUNT( * ) + 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-353
SELECT 52 * 85 * - CASE - + 86 WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL WHEN + 44 + - 50 * 94 THEN COUNT ( * ) + 14 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-354
SELECT 93, + CASE - CAST( 46 AS SIGNED ) WHEN + - 71 * - 43 + - CAST( - 17 AS SIGNED ) THEN ( + 9 ) ELSE + - 17 + + 10 + - + 54 + - 26 + + + 28 * 37 END AS col0
----
93
949

skipif mysql # not compatible
query II rowsort label-354
SELECT 93, + CASE - CAST ( 46 AS INTEGER ) WHEN + - 71 * - 43 + - CAST ( - 17 AS INTEGER ) THEN ( + 9 ) ELSE + - 17 + + 10 + - + 54 + - 26 + + + 28 * 37 END AS col0
----
93
949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-355
SELECT ALL 91 + + 6 - - 39 + ( COUNT( * ) ) + - 33 DIV + - COUNT( - 27 ) + COUNT( 50 ) AS col0, + 58 DIV CAST( 84 AS SIGNED ) AS col1
----
171
0

skipif mysql # not compatible
query II rowsort label-355
SELECT ALL 91 + + 6 - - 39 + ( COUNT ( * ) ) + - 33 / + - COUNT ( - 27 ) + COUNT ( 50 ) AS col0, + 58 / CAST ( 84 AS INTEGER ) AS col1
----
171
0

query I rowsort
SELECT 42 * - + 28
----
-1176

query I rowsort
SELECT 77 + + 70
----
147

query II rowsort
SELECT ALL 84 + + ( 77 ) AS col1, 32 col1
----
161
32

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT DISTINCT + 94 + CASE - + 78 WHEN - COUNT( * ) * - + 43 * + CASE 31 WHEN - 27 / 58 / 54 - 56 + + 0 / - - 52 + - + 19 THEN NULL WHEN + 77 * 68 THEN 39 + + 8 * + 6 * - COUNT( * ) * - 91 ELSE 92 END THEN 26 WHEN 63 THEN NULL WHEN - 82 THEN NULL END AS col0, + 76 * 55 col0
----
NULL
4180

skipif mysql # not compatible
query II rowsort label-359
SELECT DISTINCT + 94 + CASE - + 78 WHEN - COUNT ( * ) * - + 43 * + CASE 31 WHEN - 27 / 58 / 54 - 56 + + 0 / - - 52 + - + 19 THEN NULL WHEN + 77 * 68 THEN 39 + + 8 * + 6 * - COUNT ( * ) * - 91 ELSE 92 END THEN 26 WHEN 63 THEN NULL WHEN - 82 THEN NULL END AS col0, + 76 * 55 col0
----
NULL
4180

query I rowsort
SELECT DISTINCT 70 + + 8 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-361
SELECT ALL 88 + 35 * - + 53 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL 88 + 35 * - + 53 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-362
SELECT + CASE 22 WHEN + NULLIF ( COUNT( * ), + - CAST( - + 89 AS SIGNED ) ) THEN NULL WHEN + COUNT( * ) * + 26 THEN NULL ELSE - 14 END col2
----
-14

skipif mysql # not compatible
query I rowsort label-362
SELECT + CASE 22 WHEN + NULLIF ( COUNT ( * ), + - CAST ( - + 89 AS INTEGER ) ) THEN NULL WHEN + COUNT ( * ) * + 26 THEN NULL ELSE - 14 END col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT SUM( DISTINCT - 92 ) - - 16 * 95 AS col1
----
1428

skipif mysql # not compatible
query I rowsort label-363
SELECT SUM ( DISTINCT - 92 ) - - 16 * 95 AS col1
----
1428

query I rowsort
SELECT - 84 + + 68
----
-16

query I rowsort
SELECT ALL - 18 - - 74 + + 12 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT + COUNT( * ) - + + COUNT( * ) + 88 - 77 + - 71
----
-60

skipif mysql # not compatible
query I rowsort label-366
SELECT + COUNT ( * ) - + + COUNT ( * ) + 88 - 77 + - 71
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-367
SELECT ALL COUNT( * ), + 3 + + SUM( + - 86 ) AS col2
----
1
-83

skipif mysql # not compatible
query II rowsort label-367
SELECT ALL COUNT ( * ), + 3 + + SUM ( + - 86 ) AS col2
----
1
-83

query I rowsort
SELECT + 78 + 92 AS col1
----
170

query I rowsort
SELECT 47 + - 1 * - 42 AS col1
----
89

query I rowsort
SELECT - 61 * ( - 83 )
----
5063

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT - 70 DIV + + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-371
SELECT - 70 / + + 89 AS col2
----
0

query I rowsort
SELECT ALL + + 27 * - + 71 col1
----
-1917

query I rowsort
SELECT + 84 - - 74 AS col2
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT 60 DIV 51 + - 33 * + - 93 AS col2
----
3070

skipif mysql # not compatible
query I rowsort label-374
SELECT 60 / 51 + - 33 * + - 93 AS col2
----
3070

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

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

query II rowsort
SELECT + 40, 39 AS col1
----
40
39

query II rowsort
SELECT 33 AS col2, - 86
----
33
-86

query II rowsort
SELECT DISTINCT + NULLIF ( 5, - + 85 ) * + 30 AS col1, + ( 7 ) AS col2
----
150
7

onlyif mysql # aggregate syntax: 
query II rowsort label-379
SELECT ALL - 90 AS col1, 60 + + 88 - + 96 * + COUNT( * )
----
-90
52

skipif mysql # not compatible
query II rowsort label-379
SELECT ALL - 90 AS col1, 60 + + 88 - + 96 * + COUNT ( * )
----
-90
52

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT DISTINCT - CASE - 72 WHEN + CASE COUNT( * ) WHEN 87 THEN - - MIN( ALL - 95 ) WHEN - 64 * CASE 43 WHEN - 91 THEN + 36 * - - 19 + - AVG ( + 98 ) WHEN 7 THEN + 46 END THEN NULL END * 32 * + + 84 + - - COUNT( * ) + + 87 THEN NULL ELSE COALESCE ( - 94, 47 ) END AS col1
----
94

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT - CASE - 72 WHEN + CASE COUNT ( * ) WHEN 87 THEN - - MIN ( ALL - 95 ) WHEN - 64 * CASE 43 WHEN - 91 THEN + 36 * - - 19 + - AVG ( + 98 ) WHEN 7 THEN + 46 END THEN NULL END * 32 * + + 84 + - - COUNT ( * ) + + 87 THEN NULL ELSE COALESCE ( - 94, 47 ) END AS col1
----
94

query II rowsort
SELECT ALL + 52 + + 71 AS col2, 52
----
123
52

query I rowsort
SELECT 42 + - 30
----
12

query I rowsort
SELECT ALL - ( 15 )
----
-15

query I rowsort
SELECT DISTINCT + 35 + + 8 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT ALL - 80 + 66 + + COUNT( * ) - - 44
----
31

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL - 80 + 66 + + COUNT ( * ) - - 44
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-386
SELECT + 82 AS col0, + 83 + + COALESCE ( + 93, + 84 * + MAX( + - ( + + 44 ) ) ) * - 40 * - + 4
----
82
14963

skipif mysql # not compatible
query II rowsort label-386
SELECT + 82 AS col0, + 83 + + COALESCE ( + 93, + 84 * + MAX ( + - ( + + 44 ) ) ) * - 40 * - + 4
----
82
14963

query I rowsort
SELECT ( 21 ) + + 23
----
44

query I rowsort
SELECT 23 * - 36
----
-828

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL + CASE CASE + 12 WHEN + - 84 * - 36 THEN 73 * + 91 + + - 74 ELSE NULL END WHEN - 95 * - + 55 THEN NULL WHEN 65 * - COUNT( * ) + - - NULLIF ( - - 45, 20 ) THEN 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL + CASE CASE + 12 WHEN + - 84 * - 36 THEN 73 * + 91 + + - 74 ELSE NULL END WHEN - 95 * - + 55 THEN NULL WHEN 65 * - COUNT ( * ) + - - NULLIF ( - - 45, 20 ) THEN 48 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT 44 - + SUM( DISTINCT 45 ) + - 24 + - + 58
----
-83

skipif mysql # not compatible
query I rowsort label-391
SELECT 44 - + SUM ( DISTINCT 45 ) + - 24 + - + 58
----
-83

query I rowsort
SELECT - 43 * + - 26
----
1118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-393
SELECT DISTINCT 41 AS col0, MAX( - NULLIF ( 29, - 84 + - CAST( NULL AS SIGNED ) + - 93 * 25 * - + 9 * - 10 * - 68 + - + 29 * 97 + - + 19 ) ) AS col0
----
41
-29

skipif mysql # not compatible
query II rowsort label-393
SELECT DISTINCT 41 AS col0, MAX ( - NULLIF ( 29, - 84 + - CAST ( NULL AS INTEGER ) + - 93 * 25 * - + 9 * - 10 * - 68 + - + 29 * 97 + - + 19 ) ) AS col0
----
41
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT - ( + - 2 ) DIV + + 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-394
SELECT - ( + - 2 ) / + + 56 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-395
SELECT DISTINCT 61 DIV + 11
----
5

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT 61 / + 11
----
5

query I rowsort
SELECT 23 + 75 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-397
SELECT DISTINCT 44 * - 94 + - CAST( - + NULLIF ( - + 54, - 60 * - ( - 81 ) - + 14 ) AS SIGNED ) col0
----
-4190

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT 44 * - 94 + - CAST ( - + NULLIF ( - + 54, - 60 * - ( - 81 ) - + 14 ) AS INTEGER ) col0
----
-4190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-398
SELECT ALL 88 - + 85 + + 50 + + - 73 * + - 92 / - + CASE WHEN NOT 88 IS NULL THEN NULL ELSE + ( 32 ) - - ( + 93 ) END / - ( + + 13 ) + - + MIN( DISTINCT 16 ) * - ( + CAST( 25 AS SIGNED ) ) + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL 88 - + 85 + + 50 + + - 73 * + - 92 / - + CASE WHEN NOT 88 IS NULL THEN NULL ELSE + ( 32 ) - - ( + 93 ) END / - ( + + 13 ) + - + MIN ( DISTINCT 16 ) * - ( + CAST ( 25 AS INTEGER ) ) + 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-399
SELECT - COUNT( * ) AS col1, 98 DIV - 33 * + + COUNT( * ) AS col2
----
-1
-2

skipif mysql # not compatible
query II rowsort label-399
SELECT - COUNT ( * ) AS col1, 98 / - 33 * + + COUNT ( * ) AS col2
----
-1
-2

query I rowsort
SELECT - 32 + + - 36
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT COUNT( * ) * - + COUNT( * ) * + + 58 * 85 + - 81
----
-5011

skipif mysql # not compatible
query I rowsort label-401
SELECT COUNT ( * ) * - + COUNT ( * ) * + + 58 * 85 + - 81
----
-5011

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT + COUNT( * ) * NULLIF ( + COUNT( * ), + 52 ) * - 94 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-402
SELECT + COUNT ( * ) * NULLIF ( + COUNT ( * ), + 52 ) * - 94 AS col1
----
-94

query I rowsort
SELECT DISTINCT + 95 * 13
----
1235

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-404
SELECT 73, ( + 31 ) DIV + + 21 * + COUNT( * ) AS col0
----
73
1

skipif mysql # not compatible
query II rowsort label-404
SELECT 73, ( + 31 ) / + + 21 * + COUNT ( * ) AS col0
----
73
1

query I rowsort
SELECT ALL - 62 * - 5 + - 89 AS col2
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-406
SELECT DISTINCT 82 col0, + CAST( NULL AS SIGNED ) - - + 28 AS col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-406
SELECT DISTINCT 82 col0, + CAST ( NULL AS INTEGER ) - - + 28 AS col0
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT ( + ( - 41 ) ) * + NULLIF ( 81, + + 71 + COUNT( * ) ) * COALESCE ( 63, - COUNT( * ), 14 ) AS col0
----
-209223

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT ( + ( - 41 ) ) * + NULLIF ( 81, + + 71 + COUNT ( * ) ) * COALESCE ( 63, - COUNT ( * ), 14 ) AS col0
----
-209223

query I rowsort
SELECT ALL 28 + - 51
----
-23

query I rowsort
SELECT ALL 10 * 69 + - + 46
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT COALESCE ( - NULLIF ( - ( COUNT( * ) ), 85 ), - 16 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-410
SELECT COALESCE ( - NULLIF ( - ( COUNT ( * ) ), 85 ), - 16 ) AS col0
----
1

query I rowsort
SELECT ALL - ( + ( 63 ) ) * 37 * + - 9 + - 72 + 45
----
20952

query I rowsort
SELECT NULLIF ( + + 97, - 6 )
----
97

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

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

query II rowsort
SELECT - 56 - 15 AS col0, - 87
----
-71
-87

query I rowsort
SELECT COALESCE ( + 71, + 91 ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-416
SELECT ALL + 56 * - - 30 + - 83, 95 * - CAST( - 8 AS SIGNED ) col1
----
1597
760

skipif mysql # not compatible
query II rowsort label-416
SELECT ALL + 56 * - - 30 + - 83, 95 * - CAST ( - 8 AS INTEGER ) col1
----
1597
760

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT NULLIF ( + + 66, + COUNT( * ) * 78 * 26 * + - 10 / - 27 )
----
66

skipif mysql # not compatible
query I rowsort label-417
SELECT NULLIF ( + + 66, + COUNT ( * ) * 78 * 26 * + - 10 / - 27 )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-418
SELECT ALL - NULLIF ( CAST( - COALESCE ( - - COUNT( * ), - 38 * + 74 - - 34 * 70 * + 39 ) AS SIGNED ), - 79 ) * 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL - NULLIF ( CAST ( - COALESCE ( - - COUNT ( * ), - 38 * + 74 - - 34 * 70 * + 39 ) AS INTEGER ), - 79 ) * 71 AS col1
----
71

query I rowsort
SELECT ALL + ( - 41 ) col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT + SUM( + - 24 ) * + 25 + + 96 AS col1
----
-504

skipif mysql # not compatible
query I rowsort label-420
SELECT + SUM ( + - 24 ) * + 25 + + 96 AS col1
----
-504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT DISTINCT 65 * + ( 65 ) + - CAST( - 54 AS SIGNED ) AS col2
----
4279

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT 65 * + ( 65 ) + - CAST ( - 54 AS INTEGER ) AS col2
----
4279

query I rowsort
SELECT - - 78 * - 2 * - + 57 * - + 91
----
-809172

query II rowsort
SELECT + - 73 * 49, 53 AS col0
----
-3577
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-424
SELECT + 23 + 30 * + 22 / + CASE COUNT( * ) WHEN + MIN( DISTINCT + 86 ) THEN NULL ELSE 70 * CASE - COUNT( * ) WHEN 4 + 26 THEN CASE - 17 WHEN 97 THEN - 64 * + ( + 5 ) / + 25 WHEN + 0 * - NULLIF ( NULLIF ( + 45, + - 30 * - 7 * - + 77 * ( 50 ) + COUNT( * ) ), + - 78 + ( + COALESCE ( COUNT( * ), 38, + 62 ) ) ) * + CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END + MIN( ALL - ( + 18 ) ) / 22 END END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT + 23 + 30 * + 22 / + CASE COUNT ( * ) WHEN + MIN ( DISTINCT + 86 ) THEN NULL ELSE 70 * CASE - COUNT ( * ) WHEN 4 + 26 THEN CASE - 17 WHEN 97 THEN - 64 * + ( + 5 ) / + 25 WHEN + 0 * - NULLIF ( NULLIF ( + 45, + - 30 * - 7 * - + 77 * ( 50 ) + COUNT ( * ) ), + - 78 + ( + COALESCE ( COUNT ( * ), 38, + 62 ) ) ) * + CAST ( NULL AS REAL ) THEN NULL ELSE NULL END + MIN ( ALL - ( + 18 ) ) / 22 END END * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT DISTINCT + NULLIF ( + 46, - SUM( DISTINCT 3 ) ) * + + 1 + - + COALESCE ( + 0, + 42 ) + - NULLIF ( 83, - + 21 ) - + + 35 - + 56
----
-128

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT + NULLIF ( + 46, - SUM ( DISTINCT 3 ) ) * + + 1 + - + COALESCE ( + 0, + 42 ) + - NULLIF ( 83, - + 21 ) - + + 35 - + 56
----
-128

query I rowsort
SELECT ALL - 18 * 19 + - 37
----
-379

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

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL - - 23 / - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( 20, 44, 12 )
----
20

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT + + 46 * 24 + ( + 61 ) + + - 25 * + + COUNT( * ) col0
----
1140

skipif mysql # not compatible
query I rowsort label-431
SELECT + + 46 * 24 + ( + 61 ) + + - 25 * + + COUNT ( * ) col0
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - - COUNT( * ) - + ( + 62 )
----
-61

skipif mysql # not compatible
query I rowsort label-432
SELECT - - COUNT ( * ) - + ( + 62 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-433
SELECT CAST( 85 AS SIGNED ), 41 * 38 col1
----
85
1558

skipif mysql # not compatible
query II rowsort label-433
SELECT CAST ( 85 AS INTEGER ), 41 * 38 col1
----
85
1558

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT ALL 22 DIV - - 11 + + + 19 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL 22 / - - 11 + + + 19 AS col2
----
21

query I rowsort
SELECT ALL - + 43 + 95 * - 75 col2
----
-7168

query I rowsort
SELECT DISTINCT + 41 * + 52 + + - 26
----
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-437
SELECT + 10 DIV 84 + + 35 + + - 28 + - 37 * - 56 * - 50 AS col2
----
-103593

skipif mysql # not compatible
query I rowsort label-437
SELECT + 10 / 84 + + 35 + + - 28 + - 37 * - 56 * - 50 AS col2
----
-103593

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL 79 + - 31 + + COUNT( * ) * + 10 + + + COUNT( * ) * - ( - 16 ) + + 66
----
140

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL 79 + - 31 + + COUNT ( * ) * + 10 + + + COUNT ( * ) * - ( - 16 ) + + 66
----
140

query II rowsort
SELECT DISTINCT - 72 + 37, 92 AS col0
----
-35
92

query I rowsort
SELECT ALL 10 + + 23 + + 13 * - 0 + + 77 * + ( + 8 )
----
649

query I rowsort
SELECT + 16 - - 8
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT ALL COUNT( * ) + - 8 col2
----
-7

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL COUNT ( * ) + - 8 col2
----
-7

query I rowsort
SELECT + 33 * + 21 AS col1
----
693

query II rowsort
SELECT 58 AS col0, - 70 AS col0
----
58
-70

query II rowsort
SELECT ALL 94 AS col0, + 30
----
94
30

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT ALL 74 + 57 + - + 49 DIV + 21 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL 74 + 57 + - + 49 / + 21 AS col1
----
129

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT 98 * + - 66 + - COUNT( * ) * + 67 + 87 AS col2
----
-6448

skipif mysql # not compatible
query I rowsort label-448
SELECT 98 * + - 66 + - COUNT ( * ) * + 67 + 87 AS col2
----
-6448

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT DISTINCT NULLIF ( 4, + 49 * SUM( - - 99 ) + + COUNT( * ) - - COUNT( ALL + + 35 ) / + - 62 + - AVG ( ALL - - 30 ) ) * - COUNT( * ) + + 72 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT NULLIF ( 4, + 49 * SUM ( - - 99 ) + + COUNT ( * ) - - COUNT ( ALL + + 35 ) / + - 62 + - AVG ( ALL - - 30 ) ) * - COUNT ( * ) + + 72 AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-450
SELECT + 99 DIV - ( - - 11 ) + - - 11 + + 2 * 70
----
142

skipif mysql # not compatible
query I rowsort label-450
SELECT + 99 / - ( - - 11 ) + - - 11 + + 2 * 70
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT ALL - 79 DIV - 61 + - 17 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL - 79 / - 61 + - 17 AS col0
----
-16

query II rowsort
SELECT ALL + 15, - 19 AS col2
----
15
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-453
SELECT + COUNT( * ) * + ( - - CASE 96 WHEN + + SUM( + - 33 ) - 55 - + + 14 * + 93 / - 72 / MAX( - 45 ) THEN - 68 WHEN + CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT + COUNT ( * ) * + ( - - CASE 96 WHEN + + SUM ( + - 33 ) - 55 - + + 14 * + 93 / - 72 / MAX ( - 45 ) THEN - 68 WHEN + CAST ( NULL AS REAL ) THEN NULL ELSE NULL END ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ( + NULLIF ( - MIN( + 52 ), 68 * + 23 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-454
SELECT ( + NULLIF ( - MIN ( + 52 ), 68 * + 23 ) )
----
-52

query I rowsort
SELECT ( + - 61 ) * - 6 + + - 62 AS col1
----
304

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

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT 53 DIV + 87 + ( + 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-457
SELECT 53 / + 87 + ( + 70 ) AS col0
----
70

query I rowsort
SELECT + ( 12 ) + + 13 AS col2
----
25

query II rowsort
SELECT + 82, - 10 * 28 AS col0
----
82
-280

query II rowsort
SELECT ALL + + 4, 45 * + 67 AS col2
----
4
3015

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT 58 * 63 - SUM( + - 4 ) * 23 AS col2
----
3746

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT 58 * 63 - SUM ( + - 4 ) * 23 AS col2
----
3746

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL - - AVG ( + 41 ) * + CASE - 36 WHEN 36 * - + 40 + - - SUM( - - 94 ) - + 58 / 51 THEN NULL WHEN COUNT( * ) THEN + - 66 * + 38 ELSE NULL END - - COUNT( ALL 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL - - AVG ( + 41 ) * + CASE - 36 WHEN 36 * - + 40 + - - SUM ( - - 94 ) - + 58 / 51 THEN NULL WHEN COUNT ( * ) THEN + - 66 * + 38 ELSE NULL END - - COUNT ( ALL 68 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-463
SELECT - 40 + + - 48 * - 1, - 23 * COUNT( * ) AS col2
----
8
-23

skipif mysql # not compatible
query II rowsort label-463
SELECT - 40 + + - 48 * - 1, - 23 * COUNT ( * ) AS col2
----
8
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT - + 6 * MIN( ALL 27 ) * + - COUNT( * )
----
162

skipif mysql # not compatible
query I rowsort label-464
SELECT - + 6 * MIN ( ALL 27 ) * + - COUNT ( * )
----
162

onlyif mysql # aggregate syntax: 
query III rowsort label-465
SELECT - + 0 * + COUNT( * ) * - - 19 AS col1, 45 AS col2, - 68
----
0
45
-68

skipif mysql # not compatible
query III rowsort label-465
SELECT - + 0 * + COUNT ( * ) * - - 19 AS col1, 45 AS col2, - 68
----
0
45
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-466
SELECT - 23 - + 95 - + 44 * - - CASE - 27 WHEN + CAST( NULL AS SIGNED ) * 59 * - + ( 51 ) THEN NULL ELSE 43 END
----
-2010

skipif mysql # not compatible
query I rowsort label-466
SELECT - 23 - + 95 - + 44 * - - CASE - 27 WHEN + CAST ( NULL AS INTEGER ) * 59 * - + ( 51 ) THEN NULL ELSE 43 END
----
-2010

query I rowsort
SELECT - 67 + - - 31 AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-468
SELECT + 91 * COUNT( DISTINCT 15 ) + - 7 * + 63 + + CAST( + CASE - + CAST( NULL AS DECIMAL ) WHEN + 32 THEN + 43 END AS SIGNED ) + - NULLIF ( - 73, + ( + 16 ) / 24 + - 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-468
SELECT + 91 * COUNT ( DISTINCT 15 ) + - 7 * + 63 + + CAST ( + CASE - + CAST ( NULL AS REAL ) WHEN + 32 THEN + 43 END AS INTEGER ) + - NULLIF ( - 73, + ( + 16 ) / 24 + - 58 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 45 * 67 col1
----
3015

query I rowsort
SELECT - 80 * 26 col1
----
-2080

query II rowsort
SELECT - 66, ( + + 34 ) AS col2
----
-66
34

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT ALL + 54 + - SUM( - - ( 42 ) ) + 11
----
23

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL + 54 + - SUM ( - - ( 42 ) ) + 11
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT ALL COALESCE ( - - ( - 51 ), COUNT( ALL + 39 ) * + 93 + + 19 )
----
-51

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL COALESCE ( - - ( - 51 ), COUNT ( ALL + 39 ) * + 93 + + 19 )
----
-51

query I rowsort
SELECT ALL + 85 + + + 45 AS col2
----
130

query II rowsort
SELECT 2 AS col1, - 71 * - 4
----
2
284

query II rowsort
SELECT ALL 74 + - + 80 AS col1, 14 AS col0
----
-6
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-477
SELECT COUNT( * ) * - 11 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-477
SELECT COUNT ( * ) * - 11 / 53 AS col0
----
0

query I rowsort
SELECT ( 17 ) * 96 col0
----
1632

query I rowsort
SELECT 61 * + 22
----
1342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-480
SELECT DISTINCT 62 * 32 * - CASE CAST( - + 35 AS SIGNED ) WHEN + - 39 / + SUM( - + 81 ) THEN NULL WHEN + COUNT( * ) + + CAST( + 34 AS SIGNED ) THEN CAST( NULL AS DECIMAL ) END * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT 62 * 32 * - CASE CAST ( - + 35 AS INTEGER ) WHEN + - 39 / + SUM ( - + 81 ) THEN NULL WHEN + COUNT ( * ) + + CAST ( + 34 AS INTEGER ) THEN CAST ( NULL AS REAL ) END * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT MAX( - 91 ) * - 43
----
3913

skipif mysql # not compatible
query I rowsort label-481
SELECT MAX ( - 91 ) * - 43
----
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT COUNT( - 10 ) * + 79
----
79

skipif mysql # not compatible
query I rowsort label-482
SELECT COUNT ( - 10 ) * + 79
----
79

query I rowsort
SELECT ( + - ( + CASE + - 19 WHEN 34 THEN NULL WHEN - 97 THEN NULL WHEN - + 9 THEN - + 49 END ) ) * + - 49 + 99
----
NULL

query I rowsort
SELECT 12 + + + 67 + + - 10
----
69

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

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

query I rowsort
SELECT DISTINCT 14 * + 3 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT - SUM( + 10 ) * 86 AS col1
----
-860

skipif mysql # not compatible
query I rowsort label-487
SELECT - SUM ( + 10 ) * 86 AS col1
----
-860

query I rowsort
SELECT CASE ( 43 ) WHEN + 13 THEN + 6 WHEN 60 + - 92 THEN NULL END - 6 col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT 67 DIV - - 15 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-490
SELECT 67 / - - 15 AS col2
----
4

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

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

query I rowsort
SELECT CASE 40 WHEN + 52 THEN NULL WHEN + ( + 55 ) THEN 98 ELSE 47 END + 56 + - 2 * - 59 * - 59 AS col1
----
-6859

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-493
SELECT DISTINCT - - 30 * - CAST( NULL AS SIGNED ), 40 AS col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-493
SELECT DISTINCT - - 30 * - CAST ( NULL AS INTEGER ), 40 AS col2
----
NULL
40

query I rowsort
SELECT ALL - 38 + 15
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-495
SELECT ALL - - CAST( ( CASE + 19 WHEN NULLIF ( 56, - + 74 * + 19 ) + CAST( NULL AS SIGNED ) THEN - 22 / - + 2 END ) AS SIGNED ) * 91 / + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL - - CAST ( ( CASE + 19 WHEN NULLIF ( 56, - + 74 * + 19 ) + CAST ( NULL AS INTEGER ) THEN - 22 / - + 2 END ) AS INTEGER ) * 91 / + 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-496
SELECT COUNT( * ) DIV + 86 - + - 43 + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-496
SELECT COUNT ( * ) / + 86 - + - 43 + - COUNT ( * )
----
42

query I rowsort
SELECT DISTINCT 39 + + 25 AS col0
----
64

query I rowsort
SELECT DISTINCT 43 * 82 AS col0
----
3526

query I rowsort
SELECT - - COALESCE ( - + 94, - 1, - 53 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT DISTINCT + ( + 83 ) + + + COALESCE ( + COALESCE ( - - 40, + 49 + - 55 DIV + - ( - + 21 ) + + 67, + 67 - + 52 ), + 50 )
----
123

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT + ( + 83 ) + + + COALESCE ( + COALESCE ( - - 40, + 49 + - 55 / + - ( - + 21 ) + + 67, + 67 - + 52 ), + 50 )
----
123

query I rowsort
SELECT 16 * + 37
----
592

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

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

query I rowsort
SELECT 45 + - ( + - 25 ) - NULLIF ( + 60, - 42 ) AS col0
----
10

query II rowsort
SELECT 55 + - 53 + + 88, 4 AS col2
----
90
4

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

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL + 34 * - COUNT ( * ) AS col0
----
-34

query I rowsort
SELECT 70 - - - 79
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-507
SELECT DISTINCT - 53 * 81 DIV + - 77 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT - 53 * 81 / + - 77 AS col0
----
55

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

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

query I rowsort
SELECT ALL - 35 * 7
----
-245

query I rowsort
SELECT 96 * + 16
----
1536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-511
SELECT 70 + COALESCE ( + 14, 78 * 55 * - 17 * 4 * - 61 + 1 + - CAST( + 89 AS SIGNED ) + - CAST( NULL AS SIGNED ) * + - 43 * - 85, 49 DIV 49 * + + CAST( NULL AS SIGNED ) DIV + + MIN( DISTINCT - 31 ) + + + 90, + - 54 ) + + 53 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-511
SELECT 70 + COALESCE ( + 14, 78 * 55 * - 17 * 4 * - 61 + 1 + - CAST ( + 89 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + - 43 * - 85, 49 / 49 * + + CAST ( NULL AS INTEGER ) / + + MIN ( DISTINCT - 31 ) + + + 90, + - 54 ) + + 53 AS col1
----
137

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

skipif mysql # not compatible
query II rowsort label-512
SELECT 64 AS col2, COUNT ( * ) AS col2
----
64
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT + 90 * - COUNT( * ) * + 10
----
-900

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT + 90 * - COUNT ( * ) * + 10
----
-900

query I rowsort
SELECT 86 * + - ( - + 34 ) col1
----
2924

query II rowsort
SELECT DISTINCT - 28 AS col0, + 65 AS col1
----
-28
65

query I rowsort
SELECT ALL 7 * + 24 AS col1
----
168

query I rowsort
SELECT ( + 95 ) + + + 0 + + 59 AS col0
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-519
SELECT DISTINCT - CAST( - 97 AS SIGNED ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT - CAST ( - 97 AS INTEGER ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-520
SELECT 46 * - + NULLIF ( - - 0, - COUNT( - - 5 ) * + 57 ), + 23 AS col2
----
0
23

skipif mysql # not compatible
query II rowsort label-520
SELECT 46 * - + NULLIF ( - - 0, - COUNT ( - - 5 ) * + 57 ), + 23 AS col2
----
0
23

query I rowsort
SELECT ALL - 22 * + - 46 + + 74
----
1086

query I rowsort
SELECT ALL 11 * - 50 + - 19 AS col1
----
-569

query I rowsort
SELECT ALL 49 * + - 92 + - ( - 93 )
----
-4415

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

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

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

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

query I rowsort
SELECT ALL 32 * 26
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT ( + + 61 ) * - + ( - 94 ) + + 32 + + 57 * 39 * 35 * - + 0 * 17 + COUNT( * ) * + + 96 * - + 55 * - + 78
----
417606

skipif mysql # not compatible
query I rowsort label-527
SELECT ( + + 61 ) * - + ( - 94 ) + + 32 + + 57 * 39 * 35 * - + 0 * 17 + COUNT ( * ) * + + 96 * - + 55 * - + 78
----
417606

query I rowsort
SELECT DISTINCT + + 11 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT DISTINCT + COUNT( + 24 ) + + 35 + - 6
----
30

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT + COUNT ( + 24 ) + + 35 + - 6
----
30

query I rowsort
SELECT ALL ( + 22 ) + + 65 AS col2
----
87

query I rowsort
SELECT + 98 + + 51 AS col2
----
149

query I rowsort
SELECT ALL - 52 + + 70 * - 24
----
-1732

query I rowsort
SELECT 46 * - 62 * - 27 + 24 + - 71 * + 25 + + ( ( + 38 ) )
----
75291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-534
SELECT DISTINCT + NULLIF ( 24, - + COALESCE ( - + 66, 34 * + COUNT( * ) ) * + 10 DIV 64 DIV - - COUNT( * ) - - 0 + - 93 * + 38 * + - 20 ) DIV + COALESCE ( + 94, + 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT + NULLIF ( 24, - + COALESCE ( - + 66, 34 * + COUNT ( * ) ) * + 10 / 64 / - - COUNT ( * ) - - 0 + - 93 * + 38 * + - 20 ) / + COALESCE ( + 94, + 86 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT - + 66 + + + ( + + 22 ) AS col2, + 74 * - COUNT( * ) + + + 66 + + - 54
----
-44
-62

skipif mysql # not compatible
query II rowsort label-535
SELECT - + 66 + + + ( + + 22 ) AS col2, + 74 * - COUNT ( * ) + + + 66 + + - 54
----
-44
-62

query I rowsort
SELECT - - 8 * - 67
----
-536

query I rowsort
SELECT ALL - 2 * + 66 * + 28 AS col1
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT ALL 63 - - ( 0 ) + + MIN( DISTINCT + 99 ) + - 81 * 65 + - 0
----
-5103

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL 63 - - ( 0 ) + + MIN ( DISTINCT + 99 ) + - 81 * 65 + - 0
----
-5103

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT + 74 * - - NULLIF ( - 30, - - 77 - MIN( 35 ) ) * + 64 * - 3 AS col0
----
426240

skipif mysql # not compatible
query I rowsort label-539
SELECT + 74 * - - NULLIF ( - 30, - - 77 - MIN ( 35 ) ) * + 64 * - 3 AS col0
----
426240

query I rowsort
SELECT ALL + 66 - - 39 AS col1
----
105

query II rowsort
SELECT ALL 90 col0, - 9 * - + 50 AS col0
----
90
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-542
SELECT - CAST( NULL AS SIGNED ) + 53 + - 83 * - 2 * + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-542
SELECT - CAST ( NULL AS INTEGER ) + 53 + - 83 * - 2 * + 95 AS col0
----
NULL

query I rowsort
SELECT + 15 * 48
----
720

query II rowsort
SELECT - 1 AS col2, 90
----
-1
90

query II rowsort
SELECT 20 col1, - 34 + - 99
----
20
-133

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

skipif mysql # not compatible
query I rowsort label-546
SELECT - ( + MIN ( 51 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT ALL MAX( - + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-547
SELECT ALL MAX ( - + 50 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-548
SELECT - 10, AVG ( ALL CASE - 40 WHEN - 75 * + - 31 + - + 59 + + NULLIF ( 61, 60 ) - 29 + + - 24 + 5 * - 5 * + 80 + - CAST( NULL AS DECIMAL ) * + - ( + + 4 ) THEN - 33 WHEN - 10 THEN - CAST( NULL AS SIGNED ) WHEN 36 THEN NULL END ) * 2 AS col1
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-548
SELECT - 10, AVG ( ALL CASE - 40 WHEN - 75 * + - 31 + - + 59 + + NULLIF ( 61, 60 ) - 29 + + - 24 + 5 * - 5 * + 80 + - CAST ( NULL AS REAL ) * + - ( + + 4 ) THEN - 33 WHEN - 10 THEN - CAST ( NULL AS INTEGER ) WHEN 36 THEN NULL END ) * 2 AS col1
----
-10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL NULLIF ( - 34, MIN( 40 ) * + 45 )
----
-34

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL NULLIF ( - 34, MIN ( 40 ) * + 45 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-550
SELECT DISTINCT 13, COUNT( + 92 ) + + MIN( + - 0 ) AS col1
----
13
1

skipif mysql # not compatible
query II rowsort label-550
SELECT DISTINCT 13, COUNT ( + 92 ) + + MIN ( + - 0 ) AS col1
----
13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL - 4 * + MIN( DISTINCT + 13 )
----
-52

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL - 4 * + MIN ( DISTINCT + 13 )
----
-52

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

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL + 77 + + COUNT ( * ) AS col1
----
78

query I rowsort
SELECT DISTINCT - CASE - + 7 WHEN + 26 THEN - - 85 * + 7 END * - 86 + 12 AS col0
----
NULL

query II rowsort
SELECT ALL ( + 1 ), 0 col2
----
1
0

query I rowsort
SELECT ALL - + 89 * - 95 AS col0
----
8455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-556
SELECT ALL + 32 / - CAST( NULL AS SIGNED ) + - - MAX( ( - 78 ) ) / - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL + 32 / - CAST ( NULL AS INTEGER ) + - - MAX ( ( - 78 ) ) / - 7
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-558
SELECT ALL + ( + 27 ) * - 75 + 16 + + + 83 * + 23 * - 33 + - - 44 DIV - - 69
----
-65006

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL + ( + 27 ) * - 75 + 16 + + + 83 * + 23 * - 33 + - - 44 / - - 69
----
-65006

onlyif mysql # DIV for integer division: 
query I rowsort label-559
SELECT 19 DIV + 1 - - 24
----
43

skipif mysql # not compatible
query I rowsort label-559
SELECT 19 / + 1 - - 24
----
43

query II rowsort
SELECT + - 51 AS col0, 0 AS col0
----
-51
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-561
SELECT - 20 / - CAST( NULL AS SIGNED ) - + AVG ( + + 0 ) / + 82 + CAST( NULL AS SIGNED ) AS col0, + 7 * + - 77
----
NULL
-539

skipif mysql # not compatible
query II rowsort label-561
SELECT - 20 / - CAST ( NULL AS INTEGER ) - + AVG ( + + 0 ) / + 82 + CAST ( NULL AS INTEGER ) AS col0, + 7 * + - 77
----
NULL
-539

query I rowsort
SELECT ALL + 3 * + 26 + 87 - + - 31 AS col2
----
196

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

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

query II rowsort
SELECT + 18 AS col0, + 78
----
18
78

onlyif mysql # aggregate syntax: 
query II rowsort label-565
SELECT ALL - COUNT( * ) * 81, + 16 * - 6 AS col0
----
-81
-96

skipif mysql # not compatible
query II rowsort label-565
SELECT ALL - COUNT ( * ) * 81, + 16 * - 6 AS col0
----
-81
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-566
SELECT + - MAX( 62 ), - 37 + ( + 31 ) - + 18 AS col0
----
-62
-24

skipif mysql # not compatible
query II rowsort label-566
SELECT + - MAX ( 62 ), - 37 + ( + 31 ) - + 18 AS col0
----
-62
-24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-568
SELECT + MIN( + 42 ) col2, NULLIF ( CASE + 88 WHEN - CAST( NULL AS SIGNED ) + + COUNT( * ) / + 96 THEN - 68 * + 43 END, + + 10 * - 85 * - COUNT( * ) / + - COALESCE ( - COUNT( * ), - 88, + MAX( DISTINCT + ( - + 73 ) ) ) + + 98 + + + 43 + + 7 + + - 74 + - 43 * + + 27 )
----
42
NULL

skipif mysql # not compatible
query II rowsort label-568
SELECT + MIN ( + 42 ) col2, NULLIF ( CASE + 88 WHEN - CAST ( NULL AS INTEGER ) + + COUNT ( * ) / + 96 THEN - 68 * + 43 END, + + 10 * - 85 * - COUNT ( * ) / + - COALESCE ( - COUNT ( * ), - 88, + MAX ( DISTINCT + ( - + 73 ) ) ) + + 98 + + + 43 + + 7 + + - 74 + - 43 * + + 27 )
----
42
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-569
SELECT ALL + CAST( + 10 AS SIGNED ) AS col1, COUNT( * ) + - 6 AS col2, + 39 AS col2
----
10
-5
39

skipif mysql # not compatible
query III rowsort label-569
SELECT ALL + CAST ( + 10 AS INTEGER ) AS col1, COUNT ( * ) + - 6 AS col2, + 39 AS col2
----
10
-5
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-570
SELECT DISTINCT + 73 * + CAST( - 23 AS SIGNED ) col1
----
-1679

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT + 73 * + CAST ( - 23 AS INTEGER ) col1
----
-1679

query I rowsort
SELECT + 51 - - 54 * 20 * - - 64 + + 89 * 3 + 87 AS col2
----
69525

query I rowsort
SELECT DISTINCT 74 * + + 63
----
4662

query II rowsort
SELECT - 97 + + 37 AS col0, + 91 + - 26 col2
----
-60
65

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

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

skipif mysql # not compatible
query I rowsort label-575
SELECT + 15 / + COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT + CASE 97 WHEN + COALESCE ( - + 90, - AVG ( ALL + 98 ) ) THEN + 77 + - - 55 * 19 - - - 96 + - - COUNT( * ) ELSE 34 END + + - 37
----
-3

skipif mysql # not compatible
query I rowsort label-576
SELECT + CASE 97 WHEN + COALESCE ( - + 90, - AVG ( ALL + 98 ) ) THEN + 77 + - - 55 * 19 - - - 96 + - - COUNT ( * ) ELSE 34 END + + - 37
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT + ( + + 3 ) + COUNT( * ) - + ( - 34 ) * + 20 AS col1
----
684

skipif mysql # not compatible
query I rowsort label-577
SELECT + ( + + 3 ) + COUNT ( * ) - + ( - 34 ) * + 20 AS col1
----
684

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-579
SELECT ALL 62 DIV ( COUNT( * ) ) * + 73
----
4526

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL 62 / ( COUNT ( * ) ) * + 73
----
4526

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

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

query II rowsort
SELECT ALL + 72 * 77 AS col0, + 82 * COALESCE ( - 63, + 69 + + 14 ) AS col0
----
5544
-5166

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT DISTINCT - ( - COALESCE ( - NULLIF ( - + 97, - COUNT( * ) ), + - CASE - 53 WHEN + COUNT( * ) THEN - 3 * 89 ELSE NULL END + + + 70 ) ) * - 38 AS col1
----
-3686

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT - ( - COALESCE ( - NULLIF ( - + 97, - COUNT ( * ) ), + - CASE - 53 WHEN + COUNT ( * ) THEN - 3 * 89 ELSE NULL END + + + 70 ) ) * - 38 AS col1
----
-3686

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT ALL 2 + + 47 - + COUNT( DISTINCT 75 ) + 62
----
110

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL 2 + + 47 - + COUNT ( DISTINCT 75 ) + 62
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-584
SELECT DISTINCT 61 + - COUNT( * ) DIV - 85
----
61

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT 61 + - COUNT ( * ) / - 85
----
61

query I rowsort
SELECT ALL ( 50 )
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-586
SELECT + ( - 31 ) DIV - - 14, + 40 * - 78 AS col0
----
-2
-3120

skipif mysql # not compatible
query II rowsort label-586
SELECT + ( - 31 ) / - - 14, + 40 * - 78 AS col0
----
-2
-3120

query II rowsort
SELECT - 90 + 75 AS col2, - 68
----
-15
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-588
SELECT - CAST( + - NULLIF ( 62, - 14 * - 12 ) AS SIGNED ), - 43 AS col2
----
62
-43

skipif mysql # not compatible
query II rowsort label-588
SELECT - CAST ( + - NULLIF ( 62, - 14 * - 12 ) AS INTEGER ), - 43 AS col2
----
62
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT + SUM( ALL + 91 ) + + 64 * 75
----
4891

skipif mysql # not compatible
query I rowsort label-590
SELECT + SUM ( ALL + 91 ) + + 64 * 75
----
4891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-591
SELECT + + CAST( NULL AS SIGNED ) + + NULLIF ( 17, CASE 52 WHEN 24 + + 54 + - 79 THEN - AVG ( DISTINCT - 7 ) WHEN + - 70 THEN + 53 + NULLIF ( - + 78, 21 * + 55 + - 85 + - - 99 / + 72 * ( + 18 ) + - - 67 ) + 0 - 13 + + CAST( CAST( - 6 AS SIGNED ) AS SIGNED ) * - COUNT( * ) * + NULLIF ( - CAST( NULL AS SIGNED ), + 90 ) END / + + ( + 91 ) + + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-591
SELECT + + CAST ( NULL AS INTEGER ) + + NULLIF ( 17, CASE 52 WHEN 24 + + 54 + - 79 THEN - AVG ( DISTINCT - 7 ) WHEN + - 70 THEN + 53 + NULLIF ( - + 78, 21 * + 55 + - 85 + - - 99 / + 72 * ( + 18 ) + - - 67 ) + 0 - 13 + + CAST ( CAST ( - 6 AS INTEGER ) AS INTEGER ) * - COUNT ( * ) * + NULLIF ( - CAST ( NULL AS INTEGER ), + 90 ) END / + + ( + 91 ) + + 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-592
SELECT COALESCE ( 65, + 56 ), - MIN( DISTINCT - 98 ) * 94 * + + 59 * + - 74 AS col2
----
65
-40219592

skipif mysql # not compatible
query II rowsort label-592
SELECT COALESCE ( 65, + 56 ), - MIN ( DISTINCT - 98 ) * 94 * + + 59 * + - 74 AS col2
----
65
-40219592

onlyif mysql # aggregate syntax: 
query II rowsort label-593
SELECT DISTINCT - + SUM( 73 ) + 12 + - 86 - - 68 AS col0, 11 - - 93
----
-79
104

skipif mysql # not compatible
query II rowsort label-593
SELECT DISTINCT - + SUM ( 73 ) + 12 + - 86 - - 68 AS col0, 11 - - 93
----
-79
104

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-594
SELECT ALL 78 + - AVG ( CAST( NULL AS DECIMAL ) ) * - 22 + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL 78 + - AVG ( CAST ( NULL AS REAL ) ) * - 22 + - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT - 18 + - 27 - + 16 + + COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT - 18 + - 27 - + 16 + + COUNT ( * ) AS col1
----
-60

query I rowsort
SELECT NULLIF ( - 22, - + 55 ) * + 9 * + 90 AS col0
----
-17820

query I rowsort
SELECT ALL + - 69 * + + 6 + + - 28 AS col1
----
-442

query I rowsort
SELECT 55 + - - 74 col0
----
129

query II rowsort
SELECT 1 + - + 56 AS col2, 45 + + 98
----
-55
143

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL - + COUNT( 9 ) - - 64 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL - + COUNT ( 9 ) - - 64 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-601
SELECT 2 * + - 72 * - CASE NULLIF ( + + 35, MAX( DISTINCT + + 47 ) + + + 88 ) WHEN + 87 THEN 72 END + - CAST( + 45 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-601
SELECT 2 * + - 72 * - CASE NULLIF ( + + 35, MAX ( DISTINCT + + 47 ) + + + 88 ) WHEN + 87 THEN 72 END + - CAST ( + 45 AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-603
SELECT CASE - - 59 WHEN + + 49 THEN - 49 WHEN 82 THEN NULL WHEN + 90 * + COALESCE ( - 71, + - 29 - - 46 * + 22, - CAST( NULL AS SIGNED ) / - 3 ) - - - 35 THEN NULL END + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT CASE - - 59 WHEN + + 49 THEN - 49 WHEN 82 THEN NULL WHEN + 90 * + COALESCE ( - 71, + - 29 - - 46 * + 22, - CAST ( NULL AS INTEGER ) / - 3 ) - - - 35 THEN NULL END + - 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT ALL + 3 DIV - - 41
----
0

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL + 3 / - - 41
----
0

query I rowsort
SELECT 54 * - 27
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT DISTINCT - 30 * + COUNT( * ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT - 30 * + COUNT ( * ) col2
----
-30

query I rowsort
SELECT DISTINCT 21 * 40
----
840

query I rowsort
SELECT 80 * + 97
----
7760

onlyif mysql # aggregate syntax: 
query II rowsort label-609
SELECT DISTINCT + 31 * - - 58 * + COUNT( ALL + 3 ), + ( - 69 ) AS col2
----
1798
-69

skipif mysql # not compatible
query II rowsort label-609
SELECT DISTINCT + 31 * - - 58 * + COUNT ( ALL + 3 ), + ( - 69 ) AS col2
----
1798
-69

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

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL - 76 + - - COUNT ( * ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-611
SELECT - 8 AS col2, + CAST( NULL AS SIGNED ) AS col2
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-611
SELECT - 8 AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
-8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT DISTINCT - 59 + 91 + - + SUM( 65 )
----
-33

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT - 59 + 91 + - + SUM ( 65 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ALL 96 + - + COUNT( * ) * + - 84
----
180

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL 96 + - + COUNT ( * ) * + - 84
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-614
SELECT SUM( 20 ) * - 98 AS col1, 34 DIV 97 AS col0
----
-1960
0

skipif mysql # not compatible
query II rowsort label-614
SELECT SUM ( 20 ) * - 98 AS col1, 34 / 97 AS col0
----
-1960
0

query I rowsort
SELECT ALL 48 + 66 AS col2
----
114

query I rowsort
SELECT DISTINCT ( 30 ) + 1 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-617
SELECT 90 / - - CASE + CAST( + - 36 AS SIGNED ) WHEN COUNT( * ) * - + 54 * - + 59 - 6 THEN - + 16 WHEN - 85 * 35 THEN NULL ELSE NULL END * 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT 90 / - - CASE + CAST ( + - 36 AS INTEGER ) WHEN COUNT ( * ) * - + 54 * - + 59 - 6 THEN - + 16 WHEN - 85 * 35 THEN NULL ELSE NULL END * 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL - CASE 28 WHEN + 9 + + - ( + COUNT( * ) ) THEN - 63 WHEN AVG ( DISTINCT - 20 ) THEN + - 90 * 11 + - AVG ( ALL - + ( - + 82 ) ) + - 57 END / + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - CASE 28 WHEN + 9 + + - ( + COUNT ( * ) ) THEN - 63 WHEN AVG ( DISTINCT - 20 ) THEN + - 90 * 11 + - AVG ( ALL - + ( - + 82 ) ) + - 57 END / + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL - NULLIF ( + - COUNT( * ), - - 27 ) * - ( + 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL - NULLIF ( + - COUNT ( * ), - - 27 ) * - ( + 21 ) AS col0
----
-21

query I rowsort
SELECT 1 * - 84
----
-84

query I rowsort
SELECT - 38 + + ( + 17 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT MIN( DISTINCT + - ( + 54 ) ) * + 70
----
-3780

skipif mysql # not compatible
query I rowsort label-622
SELECT MIN ( DISTINCT + - ( + 54 ) ) * + 70
----
-3780

onlyif mysql # aggregate syntax: 
query II rowsort label-623
SELECT DISTINCT - NULLIF ( - 91, + - COALESCE ( - 61, + + ( - - 59 ), 35 ) + - 70 + - CASE + 89 WHEN - COALESCE ( + + 91, 30 + + - COUNT( * ) * ( + 79 ), COUNT( * ) ) THEN 91 ELSE + + 62 + + 58 + + 60 * + 15 END - - 97 * + - 39 - 36 / + + COUNT( * ) ), 1 * + - ( - ( 87 ) ) AS col0
----
91
87

skipif mysql # not compatible
query II rowsort label-623
SELECT DISTINCT - NULLIF ( - 91, + - COALESCE ( - 61, + + ( - - 59 ), 35 ) + - 70 + - CASE + 89 WHEN - COALESCE ( + + 91, 30 + + - COUNT ( * ) * ( + 79 ), COUNT ( * ) ) THEN 91 ELSE + + 62 + + 58 + + 60 * + 15 END - - 97 * + - 39 - 36 / + + COUNT ( * ) ), 1 * + - ( - ( 87 ) ) AS col0
----
91
87

query I rowsort
SELECT DISTINCT - - NULLIF ( + - 7, 2 ) AS col2
----
-7

query I rowsort
SELECT 39 - - + 36 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-626
SELECT - ( 12 ) * - COALESCE ( - 65, CAST( + - NULLIF ( + - COALESCE ( + + 36, - - 49, - 17 ), + 21 ) AS SIGNED ) ) * 4 + - 60 + - COUNT( * ) + 59
----
-3122

skipif mysql # not compatible
query I rowsort label-626
SELECT - ( 12 ) * - COALESCE ( - 65, CAST ( + - NULLIF ( + - COALESCE ( + + 36, - - 49, - 17 ), + 21 ) AS INTEGER ) ) * 4 + - 60 + - COUNT ( * ) + 59
----
-3122

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL - CASE + COUNT( * ) WHEN - - 5 * COUNT( * ) THEN - - 33 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL - CASE + COUNT ( * ) WHEN - - 5 * COUNT ( * ) THEN - - 33 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 28 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-629
SELECT + 45 * CAST( + 27 AS SIGNED ), ( + - COUNT( * ) ) AS col2
----
1215
-1

skipif mysql # not compatible
query II rowsort label-629
SELECT + 45 * CAST ( + 27 AS INTEGER ), ( + - COUNT ( * ) ) AS col2
----
1215
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL + COUNT( * ) * 27 * + SUM( ALL + 25 ) AS col0
----
675

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL + COUNT ( * ) * 27 * + SUM ( ALL + 25 ) AS col0
----
675

query I rowsort
SELECT COALESCE ( - 59, - 75 )
----
-59

query I rowsort
SELECT ALL + 16 * - 93 * 27
----
-40176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-633
SELECT CAST( - SUM( ALL - 41 ) AS SIGNED ) - + 74 + - 56 - - 23 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-633
SELECT CAST ( - SUM ( ALL - 41 ) AS INTEGER ) - + 74 + - 56 - - 23 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-634
SELECT ALL 33 * COUNT( * ) AS col1, 46
----
33
46

skipif mysql # not compatible
query II rowsort label-634
SELECT ALL 33 * COUNT ( * ) AS col1, 46
----
33
46

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT DISTINCT 91 + - MAX( DISTINCT - 27 ) * - 13 AS col2
----
-260

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT 91 + - MAX ( DISTINCT - 27 ) * - 13 AS col2
----
-260

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

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

query I rowsort
SELECT 89 * - 21 col1
----
-1869

query I rowsort
SELECT ALL + 45 + - - 2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT DISTINCT CASE COUNT( * ) WHEN + - CAST( 57 AS SIGNED ) * - COUNT( * ) THEN NULL ELSE + 58 END col0
----
58

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT CASE COUNT ( * ) WHEN + - CAST ( 57 AS INTEGER ) * - COUNT ( * ) THEN NULL ELSE + 58 END col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL 8 + NULLIF ( - 63, 22 + + - 11 + - MAX( 20 ) ) + + - 97 * - - NULLIF ( + + 40, + 46 ) * COALESCE ( - + CASE WHEN NOT NULL IS NOT NULL THEN - 31 END, 58 ) * + 33 + + + 41 + + 35 * - + COUNT( * ) * + 94 + - 43 - + 35 * - + 3 * - 40 * + 27 * + 83
----
-13384787

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL 8 + NULLIF ( - 63, 22 + + - 11 + - MAX ( 20 ) ) + + - 97 * - - NULLIF ( + + 40, + 46 ) * COALESCE ( - + CASE WHEN NOT NULL IS NOT NULL THEN - 31 END, 58 ) * + 33 + + + 41 + + 35 * - + COUNT ( * ) * + 94 + - 43 - + 35 * - + 3 * - 40 * + 27 * + 83
----
-13384787

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT MIN( + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT MIN ( + 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL - NULLIF ( + - NULLIF ( + 97, + 11 ), + + MAX( DISTINCT 3 ) ) + - - 3 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL - NULLIF ( + - NULLIF ( + 97, + 11 ), + + MAX ( DISTINCT 3 ) ) + - - 3 AS col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-645
SELECT 95 + - COUNT( * ), 19 + - 16 + + + 65 AS col1
----
94
68

skipif mysql # not compatible
query II rowsort label-645
SELECT 95 + - COUNT ( * ), 19 + - 16 + + + 65 AS col1
----
94
68

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL + MAX( DISTINCT + 1 ) + + 40 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL + MAX ( DISTINCT + 1 ) + + 40 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT DISTINCT MIN( ALL + 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT MIN ( ALL + 91 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL 42 + + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL 42 + + COUNT ( * ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT - ( COALESCE ( + + COALESCE ( + 16, - 89, COUNT( * ) ), - + 80 ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-649
SELECT - ( COALESCE ( + + COALESCE ( + 16, - 89, COUNT ( * ) ), - + 80 ) ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT ALL + - COUNT( * ) * 36 * - 21 AS col2
----
756

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL + - COUNT ( * ) * 36 * - 21 AS col2
----
756

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

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

query II rowsort
SELECT + 26 + 84, + 28 * - 80 col2
----
110
-2240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-653
SELECT - 66 * + + 42, CAST( + + 80 AS SIGNED ) * + 33 AS col2
----
-2772
2640

skipif mysql # not compatible
query II rowsort label-653
SELECT - 66 * + + 42, CAST ( + + 80 AS INTEGER ) * + 33 AS col2
----
-2772
2640

query I rowsort
SELECT + 35 * + - 71 AS col0
----
-2485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-655
SELECT - - NULLIF ( - - CAST( + 14 AS SIGNED ), - - 54 + - 43 )
----
14

skipif mysql # not compatible
query I rowsort label-655
SELECT - - NULLIF ( - - CAST ( + 14 AS INTEGER ), - - 54 + - 43 )
----
14

query I rowsort
SELECT + + 13 * - + 97 * 21 AS col0
----
-26481

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

query I rowsort
SELECT DISTINCT 50 * + 52 * + 36
----
93600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-659
SELECT ALL - MAX( - - 94 ) DIV - - NULLIF ( 20, + COALESCE ( + 77, - - 85 * 21 * 59 + + 19 DIV + - 46 ) ) + - ( + 50 )
----
-54

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL - MAX ( - - 94 ) / - - NULLIF ( 20, + COALESCE ( + 77, - - 85 * 21 * 59 + + 19 / + - 46 ) ) + - ( + 50 )
----
-54

query I rowsort
SELECT + ( - 96 ) * - 98 * 96 col1
----
903168

query I rowsort
SELECT DISTINCT 8 * - 32 + - 56 AS col0
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT + 82 * - COALESCE ( - 27, + 46, + 56 ) + - 37 * + - COUNT( DISTINCT 38 )
----
2251

skipif mysql # not compatible
query I rowsort label-662
SELECT + 82 * - COALESCE ( - 27, + 46, + 56 ) + - 37 * + - COUNT ( DISTINCT 38 )
----
2251

query II rowsort
SELECT ALL - 46 * + - 78 + + + ( + 36 ) col0, + 21 + 73 AS col0
----
3624
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-664
SELECT COALESCE ( - + CASE + COUNT( * ) WHEN - SUM( ALL 66 ) THEN + 89 END, SUM( - CAST( NULL AS DECIMAL ) ) ) * COUNT( * ) + + - 56 * 66 * + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-664
SELECT COALESCE ( - + CASE + COUNT ( * ) WHEN - SUM ( ALL 66 ) THEN + 89 END, SUM ( - CAST ( NULL AS REAL ) ) ) * COUNT ( * ) + + - 56 * 66 * + - 10
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-666
SELECT - SUM( + 81 ) * - ( - 26 ) - - 79, CAST( NULL AS SIGNED ) * + 4 AS col1
----
-2027
NULL

skipif mysql # not compatible
query II rowsort label-666
SELECT - SUM ( + 81 ) * - ( - 26 ) - - 79, CAST ( NULL AS INTEGER ) * + 4 AS col1
----
-2027
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL MAX( ALL 68 ) * + 73 + + 18 + 7 * COUNT( * ) col2
----
4989

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL MAX ( ALL 68 ) * + 73 + + 18 + 7 * COUNT ( * ) col2
----
4989

onlyif mysql # aggregate syntax: 
query II rowsort label-668
SELECT ALL + CASE + 70 WHEN - - COUNT( DISTINCT - 30 ) THEN NULL ELSE - - 31 * + + 65 END col0, 24
----
2015
24

skipif mysql # not compatible
query II rowsort label-668
SELECT ALL + CASE + 70 WHEN - - COUNT ( DISTINCT - 30 ) THEN NULL ELSE - - 31 * + + 65 END col0, 24
----
2015
24

onlyif mysql # DIV for integer division: 
query II rowsort label-669
SELECT ALL - 89 * + 46 + 80 DIV - 18 - 10 AS col2, - 68 + - 89
----
-4108
-157

skipif mysql # not compatible
query II rowsort label-669
SELECT ALL - 89 * + 46 + 80 / - 18 - 10 AS col2, - 68 + - 89
----
-4108
-157

onlyif mysql # DIV for integer division: 
query I rowsort label-670
SELECT + 26 * - ( + 84 ) + 4 - + + NULLIF ( + 83, + 28 ) + 62 DIV - 37 AS col2
----
-2264

skipif mysql # not compatible
query I rowsort label-670
SELECT + 26 * - ( + 84 ) + 4 - + + NULLIF ( + 83, + 28 ) + 62 / - 37 AS col2
----
-2264

query I rowsort
SELECT NULLIF ( ( + 39 ), - 45 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-672
SELECT - 32 * + COALESCE ( + - NULLIF ( - - 45, 83 - + 83 ), + 55, 38 * MAX( 67 ) / + - COUNT( * ) + + 39 + - + 32 ) + - 32 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT - 32 * + COALESCE ( + - NULLIF ( - - 45, 83 - + 83 ), + 55, 38 * MAX ( 67 ) / + - COUNT ( * ) + + 39 + - + 32 ) + - 32 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT ALL 79 DIV - + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL 79 / - + 86 AS col0
----
0

query II rowsort
SELECT + COALESCE ( 95, + 7 ) AS col1, - 36 AS col0
----
95
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT - 91 + - MIN( - 40 )
----
-51

skipif mysql # not compatible
query I rowsort label-675
SELECT - 91 + - MIN ( - 40 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-676
SELECT + 2 * - ( - - CASE 36 WHEN 97 THEN + 2 + COUNT( * ) DIV 61 WHEN + 67 * + - COUNT( * ) + 18 THEN NULL ELSE + 77 END ) AS col2
----
-154

skipif mysql # not compatible
query I rowsort label-676
SELECT + 2 * - ( - - CASE 36 WHEN 97 THEN + 2 + COUNT ( * ) / 61 WHEN + 67 * + - COUNT ( * ) + 18 THEN NULL ELSE + 77 END ) AS col2
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT + 55 DIV + 70 * - 87 * 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-677
SELECT + 55 / + 70 * - 87 * 79 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL CASE + 28 WHEN 21 * - COUNT( * ) * - + 93 + 87 THEN - 11 - - - 28 + - - 47 * + 44 - - - 86 * + ( + + 54 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL CASE + 28 WHEN 21 * - COUNT ( * ) * - + 93 + 87 THEN - 11 - - - 28 + - - 47 * + 44 - - - 86 * + ( + + 54 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-680
SELECT COUNT( * ) AS col1, 47 + COUNT( * ) AS col0
----
1
48

skipif mysql # not compatible
query II rowsort label-680
SELECT COUNT ( * ) AS col1, 47 + COUNT ( * ) AS col0
----
1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT ALL COUNT( * ) - + - 62 col1
----
63

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL COUNT ( * ) - + - 62 col1
----
63

query I rowsort
SELECT DISTINCT ( - 74 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-683
SELECT - 97 * + + CAST( - MIN( + 60 ) AS SIGNED ) + ( + 8 ) + - - 49
----
5877

skipif mysql # not compatible
query I rowsort label-683
SELECT - 97 * + + CAST ( - MIN ( + 60 ) AS INTEGER ) + ( + 8 ) + - - 49
----
5877

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-684
SELECT DISTINCT - 30 DIV + 83 * + 84 col0, 8 * + COUNT( * )
----
0
8

skipif mysql # not compatible
query II rowsort label-684
SELECT DISTINCT - 30 / + 83 * + 84 col0, 8 * + COUNT ( * )
----
0
8

query I rowsort
SELECT - 41 * 47 * - 60 * 43
----
4971660

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

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

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

skipif mysql # not compatible
query I rowsort label-687
SELECT - + 3 * - 68 * COUNT ( * ) AS col2
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT DISTINCT - ( - 51 ) DIV 94 - 23
----
-23

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT - ( - 51 ) / 94 - 23
----
-23

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

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

query I rowsort
SELECT DISTINCT + - 25 * 59
----
-1475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT ALL COALESCE ( + ( - - 38 ), - 51 - + 74, CAST( - - 90 AS SIGNED ) )
----
38

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL COALESCE ( + ( - - 38 ), - 51 - + 74, CAST ( - - 90 AS INTEGER ) )
----
38

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

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

query I rowsort
SELECT DISTINCT - 45 * 61 AS col1
----
-2745

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT + - 76 + + ( - COUNT( * ) ) + + 77 * 27
----
2002

skipif mysql # not compatible
query I rowsort label-695
SELECT + - 76 + + ( - COUNT ( * ) ) + + 77 * 27
----
2002

query I rowsort
SELECT - + 7 * - + 1 + 34 AS col0
----
41

query I rowsort
SELECT + + 1 + - + 47 * 76 * + 38
----
-135735

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT ALL - 91 DIV + 48 + + 90 + + + 64 + 27 + - 51
----
129

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL - 91 / + 48 + + 90 + + + 64 + 27 + - 51
----
129

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

query I rowsort
SELECT - 2 * 74
----
-148

query I rowsort
SELECT - ( - 60 ) + 94 AS col1
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-702
SELECT ALL 91 DIV 16 + - 66 * 58 DIV COALESCE ( + ( - CASE 17 WHEN + 70 THEN + + 8 * + + CAST( NULL AS SIGNED ) * 64 + + 87 DIV - 21 ELSE ( ( + - 80 ) ) * - + 71 + 53 DIV - + COUNT( * ) + + 68 - - + 98 * SUM( - CAST( NULL AS SIGNED ) ) END ), + 10 * + 58 * - 38 * + - 90 )
----
5

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL 91 / 16 + - 66 * 58 / COALESCE ( + ( - CASE 17 WHEN + 70 THEN + + 8 * + + CAST ( NULL AS INTEGER ) * 64 + + 87 / - 21 ELSE ( ( + - 80 ) ) * - + 71 + 53 / - + COUNT ( * ) + + 68 - - + 98 * SUM ( - CAST ( NULL AS INTEGER ) ) END ), + 10 * + 58 * - 38 * + - 90 )
----
5

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

skipif mysql # not compatible
query I rowsort label-703
SELECT CAST ( SUM ( DISTINCT + 28 ) AS INTEGER )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT ALL - 45 DIV 42 DIV 46 * + 99 * - 86 + + + 48 + - ( - 31 ) DIV + 16 + + 69
----
118

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - 45 / 42 / 46 * + 99 * - 86 + + + 48 + - ( - 31 ) / + 16 + + 69
----
118

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-707
SELECT 90 DIV ( 48 ) - + - 45 + + - 73 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-707
SELECT 90 / ( 48 ) - + - 45 + + - 73 AS col1
----
-27

query I rowsort
SELECT ALL 79 * - 31 col1
----
-2449

query I rowsort
SELECT DISTINCT NULLIF ( - - ( 76 ), - 12 + - - 22 + - - ( + + 15 ) ) * + 18 col1
----
1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-710
SELECT + NULLIF ( - 97, + 68 * + + 51 * 63 * + NULLIF ( + CAST( + 19 AS SIGNED ), 9 * 82 + 96 ) / - - ( + 52 ) - - NULLIF ( + COUNT( * ), 19 ) * + 99 ) - + + 60 AS col1
----
-157

skipif mysql # not compatible
query I rowsort label-710
SELECT + NULLIF ( - 97, + 68 * + + 51 * 63 * + NULLIF ( + CAST ( + 19 AS INTEGER ), 9 * 82 + 96 ) / - - ( + 52 ) - - NULLIF ( + COUNT ( * ), 19 ) * + 99 ) - + + 60 AS col1
----
-157

query I rowsort
SELECT ALL 73 * + 38 AS col2
----
2774

query II rowsort
SELECT + 59, - 73 col1
----
59
-73

query II rowsort
SELECT ALL - 79, 91 - - 86 + - 70 AS col1
----
-79
107

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-715
SELECT DISTINCT MAX( DISTINCT 16 ) - + ( 48 ) + - - ( 38 ), - 26 + - 59 DIV - 15 AS col1, + - 21 AS col1
----
6
-23
-21

skipif mysql # not compatible
query III rowsort label-715
SELECT DISTINCT MAX ( DISTINCT 16 ) - + ( 48 ) + - - ( 38 ), - 26 + - 59 / - 15 AS col1, + - 21 AS col1
----
6
-23
-21

query I rowsort
SELECT 40 - + 13
----
27

query I rowsort
SELECT 10 * 89 AS col1
----
890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-718
SELECT + 25 + + 26 + + CAST( NULL AS SIGNED ) + - 41 / 19 + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT + 25 + + 26 + + CAST ( NULL AS INTEGER ) + - 41 / 19 + 87 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-719
SELECT ALL + 9 AS col1, 28 / - CAST( NULL AS SIGNED ) * - 1, + + 53 col1
----
9
NULL
53

skipif mysql # not compatible
query III rowsort label-719
SELECT ALL + 9 AS col1, 28 / - CAST ( NULL AS INTEGER ) * - 1, + + 53 col1
----
9
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT + 9 * - MAX( + 3 ) - + ( - 99 )
----
72

skipif mysql # not compatible
query I rowsort label-720
SELECT + 9 * - MAX ( + 3 ) - + ( - 99 )
----
72

query I rowsort
SELECT ALL - + NULLIF ( + - 53, - 60 ) * 11 AS col2
----
583

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

skipif mysql # not compatible
query I rowsort label-722
SELECT 42 / COUNT ( * )
----
42

query I rowsort
SELECT 45 + + + 25 * + 9 + + 7 + + 65
----
342

query II rowsort
SELECT - - 76 AS col2, - 26
----
76
-26

query I rowsort
SELECT DISTINCT + 85 + 50
----
135

query I rowsort
SELECT - 41 * + ( - 37 )
----
1517

query II rowsort
SELECT DISTINCT - 73 col2, - ( - - 42 ) AS col0
----
-73
-42

query I rowsort
SELECT DISTINCT + + 18 + + - 86 + 99 * 15 AS col0
----
1417

query I rowsort
SELECT ALL - - ( 52 ) + 18 + + 91
----
161

query I rowsort
SELECT ALL + 92 + 93 + + - ( + 28 ) AS col1
----
157

query II rowsort
SELECT - + 37, + 0 + 19 AS col2
----
-37
19

query II rowsort
SELECT + 78, 46 * 38 col1
----
78
1748

query I rowsort
SELECT ALL - 0 * - 95 + 65
----
65

query II rowsort
SELECT - 28 AS col1, 13
----
-28
13

query I rowsort
SELECT ALL - 89 + + 9
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ALL NULLIF ( + 40, 17 ) + - MAX( + 51 )
----
-11

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL NULLIF ( + 40, 17 ) + - MAX ( + 51 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-737
SELECT ALL 92 + 22, 68 * - - NULLIF ( - ( - + 40 ), COUNT( * ) ) col1
----
114
2720

skipif mysql # not compatible
query II rowsort label-737
SELECT ALL 92 + 22, 68 * - - NULLIF ( - ( - + 40 ), COUNT ( * ) ) col1
----
114
2720

query I rowsort
SELECT ALL - 86 * - + 16 AS col2
----
1376

query II rowsort
SELECT DISTINCT - ( 67 ) AS col2, 31 + 31
----
-67
62

query I rowsort
SELECT DISTINCT - 68 * 11 AS col2
----
-748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-741
SELECT CAST( NULL AS SIGNED ) / - + 53 + + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-741
SELECT CAST ( NULL AS INTEGER ) / - + 53 + + + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT - 36 * + COUNT( * ) + - 48
----
-84

skipif mysql # not compatible
query I rowsort label-742
SELECT - 36 * + COUNT ( * ) + - 48
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT ALL - CASE + + 24 WHEN 22 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL - CASE + + 24 WHEN 22 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 14 * + - 82 + - 24 - - 4
----
-1168

query I rowsort
SELECT 4 * + 74 * - 67 AS col2
----
-19832

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT 11 DIV 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-746
SELECT 11 / 35 AS col1
----
0

query I rowsort
SELECT DISTINCT ( - 64 ) * + 2 - - 94 - 29 AS col2
----
-63

query I rowsort
SELECT ALL 83 * - 88 * + - 95
----
693880

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

skipif mysql # not compatible
query I rowsort label-749
SELECT COUNT ( * ) / 92
----
0

query I rowsort
SELECT + + 35 * + 72 + - 99 AS col0
----
2421

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

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

query II rowsort
SELECT DISTINCT + - 54 * - 35, ( + 21 ) AS col1
----
1890
21

query I rowsort
SELECT ALL - 11 * + 49 * + + 38 AS col2
----
-20482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-754
SELECT + 55 * CAST( - 69 AS SIGNED )
----
-3795

skipif mysql # not compatible
query I rowsort label-754
SELECT + 55 * CAST ( - 69 AS INTEGER )
----
-3795

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT DISTINCT - MIN( - 14 ) + + 38 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT - MIN ( - 14 ) + + 38 AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-756
SELECT ALL MIN( ALL 14 ) col0, - 58
----
14
-58

skipif mysql # not compatible
query II rowsort label-756
SELECT ALL MIN ( ALL 14 ) col0, - 58
----
14
-58

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

query I rowsort
SELECT ALL - 56 + + 19
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-759
SELECT ALL - 40 * - + ( 68 ) + COUNT( * ) - COUNT( * ) col2, + 86
----
2720
86

skipif mysql # not compatible
query II rowsort label-759
SELECT ALL - 40 * - + ( 68 ) + COUNT ( * ) - COUNT ( * ) col2, + 86
----
2720
86

query I rowsort
SELECT DISTINCT 60 + - - 4 AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-761
SELECT + 39 * ( - 24 ) DIV - - 58 + - 40, CASE 10 WHEN + ( - 35 ) * ( - 54 ) * + 99 - - COUNT( * ) * + - 2 THEN - 68 * + ( + 29 ) ELSE NULL END AS col0
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-761
SELECT + 39 * ( - 24 ) / - - 58 + - 40, CASE 10 WHEN + ( - 35 ) * ( - 54 ) * + 99 - - COUNT ( * ) * + - 2 THEN - 68 * + ( + 29 ) ELSE NULL END AS col0
----
-56
NULL

query I rowsort
SELECT 29 * + 7 col2
----
203

query I rowsort
SELECT - ( + COALESCE ( + + 30, - - 3 ) ) AS col2
----
-30

query I rowsort
SELECT - 62 - - 15
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-765
SELECT ALL + 46 + - + 6, + CAST( NULL AS DECIMAL ) * 54 * + + 15 + - - 62 col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-765
SELECT ALL + 46 + - + 6, + CAST ( NULL AS REAL ) * 54 * + + 15 + - - 62 col2
----
40
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-766
SELECT 8 * - - CASE - AVG ( COALESCE ( CAST( NULL AS SIGNED ), + + 25 ) ) WHEN - 83 THEN NULL WHEN + + 73 + + + 56 THEN NULL ELSE 18 END col2
----
144

skipif mysql # not compatible
query I rowsort label-766
SELECT 8 * - - CASE - AVG ( COALESCE ( CAST ( NULL AS INTEGER ), + + 25 ) ) WHEN - 83 THEN NULL WHEN + + 73 + + + 56 THEN NULL ELSE 18 END col2
----
144

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT DISTINCT + 13 + - 67 DIV 79 col1
----
13

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT + 13 + - 67 / 79 col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL + + COUNT( * ) + - 5
----
-4

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL + + COUNT ( * ) + - 5
----
-4

query I rowsort
SELECT 99 * + - 17
----
-1683

query I rowsort
SELECT 5 + 20
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-772
SELECT DISTINCT COUNT( * ) - + NULLIF ( SUM( 65 ), - 61 + + 37 - CASE 15 WHEN + 91 + - AVG ( 34 ) * - 31 THEN - 40 WHEN + - 83 THEN + - 93 + + 7 + + 2 * - - 37 * + - 89 + 49 * CAST( + + 84 AS SIGNED ) * + ( 14 ) WHEN MIN( CAST( - 20 AS SIGNED ) ) * - 77 + - 20 THEN NULL WHEN + - 46 + - 46 * + 28 * 97 THEN NULL ELSE + 71 + + - 27 END + 99 * - - 64 * + ( - + 40 ) + + + CASE + - 92 WHEN - - CAST( NULL AS SIGNED ) + + 10 THEN 31 - 75 * - 12 WHEN + 86 THEN NULL END + COUNT( * ) * 16 * + 19 )
----
-64

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT COUNT ( * ) - + NULLIF ( SUM ( 65 ), - 61 + + 37 - CASE 15 WHEN + 91 + - AVG ( 34 ) * - 31 THEN - 40 WHEN + - 83 THEN + - 93 + + 7 + + 2 * - - 37 * + - 89 + 49 * CAST ( + + 84 AS INTEGER ) * + ( 14 ) WHEN MIN ( CAST ( - 20 AS INTEGER ) ) * - 77 + - 20 THEN NULL WHEN + - 46 + - 46 * + 28 * 97 THEN NULL ELSE + 71 + + - 27 END + 99 * - - 64 * + ( - + 40 ) + + + CASE + - 92 WHEN - - CAST ( NULL AS INTEGER ) + + 10 THEN 31 - 75 * - 12 WHEN + 86 THEN NULL END + COUNT ( * ) * 16 * + 19 )
----
-64

query II rowsort
SELECT ALL 36 col0, 50 * 34
----
36
1700

query I rowsort
SELECT ALL + 96 * - - 13 - + - 70
----
1318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT CAST( - - 19 AS SIGNED ) * 75 AS col0
----
1425

skipif mysql # not compatible
query I rowsort label-775
SELECT CAST ( - - 19 AS INTEGER ) * 75 AS col0
----
1425

query I rowsort
SELECT 24 * + 82
----
1968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-777
SELECT COUNT( * ) DIV + COALESCE ( - COUNT( DISTINCT CASE + 67 WHEN - - 37 THEN NULL ELSE - 46 * + - 46 END ), + 80 ) * COUNT( * ) + + 42 + + - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-777
SELECT COUNT ( * ) / + COALESCE ( - COUNT ( DISTINCT CASE + 67 WHEN - - 37 THEN NULL ELSE - 46 * + - 46 END ), + 80 ) * COUNT ( * ) + + 42 + + - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT NULLIF ( - ( + + COUNT( * ) ), + COUNT( * ) - 68 + - 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-778
SELECT NULLIF ( - ( + + COUNT ( * ) ), + COUNT ( * ) - 68 + - 48 ) AS col1
----
-1

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

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

query I rowsort
SELECT DISTINCT + 0 * - 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT ALL + NULLIF ( + ( - COALESCE ( 31, - 58 * + ( + - NULLIF ( + 60, - COUNT( * ) + - 55 ) ) + + 28 * + 23 * - 44, 66 + - COUNT( * ) ) ), - + 91 / + 71 )
----
-31

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL + NULLIF ( + ( - COALESCE ( 31, - 58 * + ( + - NULLIF ( + 60, - COUNT ( * ) + - 55 ) ) + + 28 * + 23 * - 44, 66 + - COUNT ( * ) ) ), - + 91 / + 71 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-782
SELECT - 8 * + + COALESCE ( - COUNT( * ), CAST( + CAST( 10 AS SIGNED ) AS SIGNED ) + COUNT( * ) + 45 + 83 * - 63 * - + 51 * - - 66 )
----
8

skipif mysql # not compatible
query I rowsort label-782
SELECT - 8 * + + COALESCE ( - COUNT ( * ), CAST ( + CAST ( 10 AS INTEGER ) AS INTEGER ) + COUNT ( * ) + 45 + 83 * - 63 * - + 51 * - - 66 )
----
8

query I rowsort
SELECT ALL + 55 * - 49 AS col1
----
-2695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT COALESCE ( 85, - + CAST( NULL AS SIGNED ), + ( + + MAX( - 55 ) ) )
----
85

skipif mysql # not compatible
query I rowsort label-784
SELECT COALESCE ( 85, - + CAST ( NULL AS INTEGER ), + ( + + MAX ( - 55 ) ) )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-785
SELECT DISTINCT + ( + ( 97 ) ) AS col1, - CAST( NULL AS SIGNED )
----
97
NULL

skipif mysql # not compatible
query II rowsort label-785
SELECT DISTINCT + ( + ( 97 ) ) AS col1, - CAST ( NULL AS INTEGER )
----
97
NULL

query I rowsort
SELECT - 72 * - - 49 AS col0
----
-3528

query I rowsort
SELECT - 66 - - 44 col2
----
-22

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

skipif mysql # not compatible
query I rowsort label-788
SELECT MAX ( DISTINCT - 79 )
----
-79

query II rowsort
SELECT ALL + - 60 AS col0, + 62 AS col1
----
-60
62

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-791
SELECT DISTINCT + - COUNT( * ) col1, + NULLIF ( - 95, - COALESCE ( - 73, + 57 * - - ( + 19 ), + 7 * 50 ) ) + - 44 DIV - 45 + - + 43
----
-1
-138

skipif mysql # not compatible
query II rowsort label-791
SELECT DISTINCT + - COUNT ( * ) col1, + NULLIF ( - 95, - COALESCE ( - 73, + 57 * - - ( + 19 ), + 7 * 50 ) ) + - 44 / - 45 + - + 43
----
-1
-138

query I rowsort
SELECT DISTINCT - 2 * - - 92 AS col1
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-793
SELECT ALL - ( + - ( - 50 ) ) * + 99 + + - 37 + - - 74, 34 + - CASE + - AVG ( DISTINCT - 81 ) WHEN + - CASE - 17 WHEN - - CASE + NULLIF ( - - 85, + CAST( + - 25 AS SIGNED ) * - CAST( - 44 AS DECIMAL ) + 66 * - 9 ) WHEN + 85 THEN - + ( - 96 ) / + 89 + + + 96 * - - 30 * 26 * 90 ELSE NULL END THEN NULL WHEN - - 1 + + - COUNT( * ) - + + 15 THEN - 76 ELSE NULL END THEN - 69 + COALESCE ( - - ( + 30 ), COUNT( * ) ) * COALESCE ( + - 18, 52 * + - 55 * + 45 ) + - 22 WHEN - 59 / + 61 THEN NULL ELSE - 8 END AS col0
----
-4913
42

skipif mysql # not compatible
query II rowsort label-793
SELECT ALL - ( + - ( - 50 ) ) * + 99 + + - 37 + - - 74, 34 + - CASE + - AVG ( DISTINCT - 81 ) WHEN + - CASE - 17 WHEN - - CASE + NULLIF ( - - 85, + CAST ( + - 25 AS INTEGER ) * - CAST ( - 44 AS REAL ) + 66 * - 9 ) WHEN + 85 THEN - + ( - 96 ) / + 89 + + + 96 * - - 30 * 26 * 90 ELSE NULL END THEN NULL WHEN - - 1 + + - COUNT ( * ) - + + 15 THEN - 76 ELSE NULL END THEN - 69 + COALESCE ( - - ( + 30 ), COUNT ( * ) ) * COALESCE ( + - 18, 52 * + - 55 * + 45 ) + - 22 WHEN - 59 / + 61 THEN NULL ELSE - 8 END AS col0
----
-4913
42

query I rowsort
SELECT + 66 - - 76 * + 73
----
5614

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT DISTINCT 5 * - + 24 + - 71 DIV + + 66 + - 32 * 73
----
-2457

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT 5 * - + 24 + - 71 / + + 66 + - 32 * 73
----
-2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-796
SELECT + 80 - + NULLIF ( - + 8, CASE + 3 WHEN + + 58 + + CAST( - ( + 2 ) AS SIGNED ) * - - 63 + - + 79 THEN - ( - ( + COUNT( * ) ) ) WHEN - - 20 THEN - COALESCE ( + + 8, 24 ) * + + 32 + 55 * - + 74 + - 77 + + 72 END * + + CAST( NULL AS DECIMAL ) + + COALESCE ( - COUNT( * ), 53 ) * - + 58 )
----
88

skipif mysql # not compatible
query I rowsort label-796
SELECT + 80 - + NULLIF ( - + 8, CASE + 3 WHEN + + 58 + + CAST ( - ( + 2 ) AS INTEGER ) * - - 63 + - + 79 THEN - ( - ( + COUNT ( * ) ) ) WHEN - - 20 THEN - COALESCE ( + + 8, 24 ) * + + 32 + 55 * - + 74 + - 77 + + 72 END * + + CAST ( NULL AS REAL ) + + COALESCE ( - COUNT ( * ), 53 ) * - + 58 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT - MAX( + 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-797
SELECT - MAX ( + 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT - COUNT( * ) + - 42 * 41 * 63
----
-108487

skipif mysql # not compatible
query I rowsort label-798
SELECT - COUNT ( * ) + - 42 * 41 * 63
----
-108487

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-799
SELECT + CAST( + 33 AS SIGNED ) DIV 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-799
SELECT + CAST ( + 33 AS INTEGER ) / 64 AS col0
----
0

query II rowsort
SELECT ALL 95, - 48 AS col1
----
95
-48

query I rowsort
SELECT DISTINCT + 6 * 46 * + 89
----
24564

query I rowsort
SELECT + + 95 + + 7 + + 57 AS col0
----
159

query I rowsort
SELECT ALL + 84 + 86 AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT DISTINCT - NULLIF ( 7, - 86 + - ( 12 ) - 1 + COUNT( * ) * + 88 * - 29 )
----
-7

skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT - NULLIF ( 7, - 86 + - ( 12 ) - 1 + COUNT ( * ) * + 88 * - 29 )
----
-7

query II rowsort
SELECT ALL - 13 AS col1, - 87 col0
----
-13
-87

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

query I rowsort
SELECT + 51 + 3
----
54

query I rowsort
SELECT ALL 56 - - 71 + - 38 AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-809
SELECT DISTINCT NULLIF ( + COUNT( * ), + ( - 84 ) ) * + 89 + - - 30 - - + COALESCE ( COUNT( * ), - - 15 DIV - 42 DIV COUNT( * ) + - 4 * - + 38, + - 23 + - ( 41 ) * 78 ) AS col1, 80
----
120
80

skipif mysql # not compatible
query II rowsort label-809
SELECT DISTINCT NULLIF ( + COUNT ( * ), + ( - 84 ) ) * + 89 + - - 30 - - + COALESCE ( COUNT ( * ), - - 15 / - 42 / COUNT ( * ) + - 4 * - + 38, + - 23 + - ( 41 ) * 78 ) AS col1, 80
----
120
80

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT + MIN( DISTINCT - 31 ) + + 49
----
18

skipif mysql # not compatible
query I rowsort label-810
SELECT + MIN ( DISTINCT - 31 ) + + 49
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-811
SELECT - COUNT( * ) * + 9 AS col2, 10 AS col0
----
-9
10

skipif mysql # not compatible
query II rowsort label-811
SELECT - COUNT ( * ) * + 9 AS col2, 10 AS col0
----
-9
10

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL ( - 4 ) * - 13 + - + 42 - - MAX( - - 52 )
----
62

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL ( - 4 ) * - 13 + - + 42 - - MAX ( - - 52 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-813
SELECT + 56 + + ( 19 ) DIV + 35 * + ( COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-813
SELECT + 56 + + ( 19 ) / + 35 * + ( COUNT ( * ) )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-814
SELECT DISTINCT CASE 48 WHEN + CAST( ( - - 29 ) AS SIGNED ) + - 91 THEN + MAX( + 64 ) END * - 53 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT CASE 48 WHEN + CAST ( ( - - 29 ) AS INTEGER ) + - 91 THEN + MAX ( + 64 ) END * - 53 col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 37, 80 ) AS col2
----
37

query I rowsort
SELECT + 8 * + 52
----
416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-817
SELECT 51 DIV - COUNT( - 69 ) - 16
----
-67

skipif mysql # not compatible
query I rowsort label-817
SELECT 51 / - COUNT ( - 69 ) - 16
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-818
SELECT CAST( + NULLIF ( - 35, + + 2 ) AS SIGNED ), - NULLIF ( - NULLIF ( COUNT( * ), 42 + + - NULLIF ( + - 53, - - 4 + + - 86 ) ), - 18 + + 24 ) AS col0
----
-35
1

skipif mysql # not compatible
query II rowsort label-818
SELECT CAST ( + NULLIF ( - 35, + + 2 ) AS INTEGER ), - NULLIF ( - NULLIF ( COUNT ( * ), 42 + + - NULLIF ( + - 53, - - 4 + + - 86 ) ), - 18 + + 24 ) AS col0
----
-35
1

onlyif mysql # aggregate syntax: 
query II rowsort label-819
SELECT - 2 + + COUNT( ALL 1 ) * + ( - 46 ), 64 AS col1
----
-48
64

skipif mysql # not compatible
query II rowsort label-819
SELECT - 2 + + COUNT ( ALL 1 ) * + ( - 46 ), 64 AS col1
----
-48
64

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT + 72 DIV - ( - - 4 ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-820
SELECT + 72 / - ( - - 4 ) col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT - 78 * COUNT( ALL + 96 ) * + ( - COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-821
SELECT - 78 * COUNT ( ALL + 96 ) * + ( - COUNT ( * ) )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-822
SELECT 51 * - COUNT( * ) + + - CAST( + 14 AS SIGNED ) DIV + + 44 * - ( - 66 ) * + 80
----
-51

skipif mysql # not compatible
query I rowsort label-822
SELECT 51 * - COUNT ( * ) + + - CAST ( + 14 AS INTEGER ) / + + 44 * - ( - 66 ) * + 80
----
-51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT + SUM( - 26 ) * - 16 * + + CASE 59 WHEN 24 THEN + + 44 END - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT + SUM ( - 26 ) * - 16 * + + CASE 59 WHEN 24 THEN + + 44 END - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT ALL 71 DIV - 99 + - 12 + - 36 * + 43 * + 46 * + - COALESCE ( + 63, + 60 + - 25, - 43 ) col0
----
4486092

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL 71 / - 99 + - 12 + - 36 * + 43 * + 46 * + - COALESCE ( + 63, + 60 + - 25, - 43 ) col0
----
4486092

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

query I rowsort
SELECT ALL - 52 * 0 * + 4
----
0

query I rowsort
SELECT DISTINCT + 49 * 8 * + 37 * 99 + 34 * - 2
----
1435828

onlyif mysql # aggregate syntax: 
query II rowsort label-829
SELECT - 64 + CASE + + 26 WHEN + + 86 * + - ( - COUNT( * ) ) + 79 + - COALESCE ( - ( 56 ), - + 85 ) * - 7 / + 1 THEN NULL ELSE - 50 END AS col2, + 97
----
-114
97

skipif mysql # not compatible
query II rowsort label-829
SELECT - 64 + CASE + + 26 WHEN + + 86 * + - ( - COUNT ( * ) ) + 79 + - COALESCE ( - ( 56 ), - + 85 ) * - 7 / + 1 THEN NULL ELSE - 50 END AS col2, + 97
----
-114
97

query I rowsort
SELECT ALL - 54 * + 97 + - + 75 * 65 + ( - 5 ) AS col0
----
-10118

onlyif mysql # aggregate syntax: 
query II rowsort label-831
SELECT - 77 + 69, + SUM( + 71 ) + + ( - 62 ) AS col2
----
-8
9

skipif mysql # not compatible
query II rowsort label-831
SELECT - 77 + 69, + SUM ( + 71 ) + + ( - 62 ) AS col2
----
-8
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-832
SELECT + CAST( + - CASE 8 WHEN + + 26 + + 24 THEN NULL ELSE COUNT( * ) END AS SIGNED ) * + 29 + + 92 + 83
----
146

skipif mysql # not compatible
query I rowsort label-832
SELECT + CAST ( + - CASE 8 WHEN + + 26 + + 24 THEN NULL ELSE COUNT ( * ) END AS INTEGER ) * + 29 + + 92 + 83
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT ALL + COUNT( * ) * + + 72 + 89 + - COUNT( * ) + + - 82 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + COUNT ( * ) * + + 72 + 89 + - COUNT ( * ) + + - 82 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT - CASE - + NULLIF ( + COUNT( * ), - 34 ) WHEN + 9 + + 92 - - 70 + CASE WHEN NOT ( - 31 ) IS NOT NULL THEN NULL ELSE 51 END * + 85 + - CAST( COUNT( * ) AS SIGNED ) + 96 * + 48 * - COUNT( * ) THEN - 32 * - - 21 * + 72 WHEN + 50 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-834
SELECT - CASE - + NULLIF ( + COUNT ( * ), - 34 ) WHEN + 9 + + 92 - - 70 + CASE WHEN NOT ( - 31 ) IS NOT NULL THEN NULL ELSE 51 END * + 85 + - CAST ( COUNT ( * ) AS INTEGER ) + 96 * + 48 * - COUNT ( * ) THEN - 32 * - - 21 * + 72 WHEN + 50 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( 81 ) AS col2
----
81

query I rowsort
SELECT - 66 * 56 + - 89
----
-3785

query I rowsort
SELECT DISTINCT + 96 * + 14 col0
----
1344

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-838
SELECT DISTINCT - 67 * - 87 * + ( + 32 ) - 33 * - CAST( NULL AS DECIMAL ) - + 66 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT - 67 * - 87 * + ( + 32 ) - 33 * - CAST ( NULL AS REAL ) - + 66 + 21
----
NULL

query I rowsort
SELECT DISTINCT ( - + 96 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL - + MAX( - + 92 ) - + 70 + - 50 + ( - ( + - 22 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL - + MAX ( - + 92 ) - + 70 + - 50 + ( - ( + - 22 ) )
----
-6

query I rowsort
SELECT 89 * - + 17 AS col1
----
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT ALL CASE WHEN NOT + 14 BETWEEN NULL AND + COUNT( * ) / + COUNT( * ) * - 86 * + - 15 * - - COALESCE ( - ( - - 34 ), - 60, + - 71 * - + COUNT( * ) * - 72 * COUNT( * ) ) THEN + + 89 ELSE NULL END * - 1 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL CASE WHEN NOT + 14 BETWEEN NULL AND + COUNT ( * ) / + COUNT ( * ) * - 86 * + - 15 * - - COALESCE ( - ( - - 34 ), - 60, + - 71 * - + COUNT ( * ) * - 72 * COUNT ( * ) ) THEN + + 89 ELSE NULL END * - 1 AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT 34 DIV ( + 89 )
----
0

skipif mysql # not compatible
query I rowsort label-843
SELECT 34 / ( + 89 )
----
0

query I rowsort
SELECT 5 * + - 23
----
-115

query II rowsort
SELECT ALL 42 AS col0, + 65 AS col1
----
42
65

query I rowsort
SELECT 40 + + + 43 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT COUNT( * ) - + 70 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-847
SELECT COUNT ( * ) - + 70 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-848
SELECT - 54, ( - - 32 ) * + + ( - + 23 ) + + + 95 + + - 96 * - CASE - 19 WHEN - 65 THEN - + COUNT( * ) * - - NULLIF ( - 41, - 24 - + + AVG ( DISTINCT + 95 ) ) * - 81 WHEN + + 89 / 27 THEN - COUNT( * ) WHEN 94 * + - 98 * 38 THEN NULL END * 29 + - + COUNT( * ) col2
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-848
SELECT - 54, ( - - 32 ) * + + ( - + 23 ) + + + 95 + + - 96 * - CASE - 19 WHEN - 65 THEN - + COUNT ( * ) * - - NULLIF ( - 41, - 24 - + + AVG ( DISTINCT + 95 ) ) * - 81 WHEN + + 89 / 27 THEN - COUNT ( * ) WHEN 94 * + - 98 * 38 THEN NULL END * 29 + - + COUNT ( * ) col2
----
-54
NULL

query I rowsort
SELECT 59 * - + 48 * - 85
----
240720

query I rowsort
SELECT 30 * + + 50 * - 52 AS col0
----
-78000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-851
SELECT - 73 / CAST( NULL AS SIGNED ) + 80 * - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-851
SELECT - 73 / CAST ( NULL AS INTEGER ) + 80 * - + 46
----
NULL

query II rowsort
SELECT ALL - 68, 19 * + 73 col0
----
-68
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT DISTINCT 95 + COUNT( * ) * + 12
----
107

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT 95 + COUNT ( * ) * + 12
----
107

query I rowsort
SELECT ALL 13 * - 19
----
-247

onlyif mysql # DIV for integer division: 
query I rowsort label-855
SELECT 49 DIV 43 col1
----
1

skipif mysql # not compatible
query I rowsort label-855
SELECT 49 / 43 col1
----
1

query I rowsort
SELECT ALL 25 + - 55
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-857
SELECT ALL + + MAX( + 89 ) + 99 col2, + COUNT( * )
----
188
1

skipif mysql # not compatible
query II rowsort label-857
SELECT ALL + + MAX ( + 89 ) + 99 col2, + COUNT ( * )
----
188
1

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

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

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

skipif mysql # not compatible
query I rowsort label-859
SELECT + COUNT ( * ) / + 86 * - + 21
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-860
SELECT ALL + 58 + COUNT( * ) + + ( - 16 ) + 46 + + + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL + 58 + COUNT ( * ) + + ( - 16 ) + 46 + + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
89

query I rowsort
SELECT ( - 99 ) * 62 AS col2
----
-6138

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

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

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

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

query I rowsort
SELECT - COALESCE ( - CASE - + 92 WHEN + 45 THEN - 57 END, + 45 + + 10 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT ALL - - 9 DIV - + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL - - 9 / - + 55 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT - NULLIF ( + 76, - MIN( ALL 49 ) + + ( + COALESCE ( COUNT( * ), CAST( - 42 AS SIGNED ) / + - MIN( DISTINCT - 24 ) + 30 + + - 91 + - 75 / - 33 * - 36 * 4 ) ) ) - - 36
----
-40

skipif mysql # not compatible
query I rowsort label-866
SELECT - NULLIF ( + 76, - MIN ( ALL 49 ) + + ( + COALESCE ( COUNT ( * ), CAST ( - 42 AS INTEGER ) / + - MIN ( DISTINCT - 24 ) + 30 + + - 91 + - 75 / - 33 * - 36 * 4 ) ) ) - - 36
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL + - COUNT( * ) * - 72 * + - 7 * 55 AS col2
----
-27720

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL + - COUNT ( * ) * - 72 * + - 7 * 55 AS col2
----
-27720

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT DISTINCT - CASE + 16 WHEN + + 56 THEN COUNT( * ) WHEN - ( + 45 ) THEN + 40 WHEN - CASE - - ( 79 ) WHEN + - 77 * + - COUNT( * ) THEN + 10 + 39 * - 93 END THEN - + 13 * 44 + + 61 - 97 * 56 / + 63 * + 94 END * + 66 AS col1, 3 * - + 46 AS col2
----
NULL
-138

skipif mysql # not compatible
query II rowsort label-868
SELECT DISTINCT - CASE + 16 WHEN + + 56 THEN COUNT ( * ) WHEN - ( + 45 ) THEN + 40 WHEN - CASE - - ( 79 ) WHEN + - 77 * + - COUNT ( * ) THEN + 10 + 39 * - 93 END THEN - + 13 * 44 + + 61 - 97 * 56 / + 63 * + 94 END * + 66 AS col1, 3 * - + 46 AS col2
----
NULL
-138

query I rowsort
SELECT + 64 - 2 + - 44 col0
----
18

query I rowsort
SELECT ALL - + 4 * + - 59
----
236

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-871
SELECT + 33 * + + 94 * + 93 + + + 59 + + 4 * + ( MIN( + + 98 ) ) + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-871
SELECT + 33 * + + 94 * + 93 + + + 59 + + 4 * + ( MIN ( + + 98 ) ) + - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT 83 - + 83 - + 50 DIV + + 99 * - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-872
SELECT 83 - + 83 - + 50 / + + 99 * - 60 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-873
SELECT ALL + 81 - - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + 81 - - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
81

query I rowsort
SELECT DISTINCT - 23 * - 31
----
713

onlyif mysql # aggregate syntax: 
query II rowsort label-875
SELECT - 42 AS col1, - COUNT( DISTINCT 89 ) col2
----
-42
-1

skipif mysql # not compatible
query II rowsort label-875
SELECT - 42 AS col1, - COUNT ( DISTINCT 89 ) col2
----
-42
-1

query I rowsort
SELECT + 31 + 29 + + 75 AS col1
----
135

query I rowsort
SELECT DISTINCT 4 * + 68 AS col2
----
272

query I rowsort
SELECT 8 + ( - ( - + ( + - 46 ) ) )
----
-38

query II rowsort
SELECT ALL 31 AS col1, - 14 col2
----
31
-14

query I rowsort
SELECT 14 * - 31
----
-434

query I rowsort
SELECT 18 + + 0 col1
----
18

query II rowsort
SELECT ALL 84 col0, 17 * - 73
----
84
-1241

query I rowsort
SELECT DISTINCT - ( - 24 ) * 50
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-884
SELECT ALL CAST( NULL AS SIGNED ) + + 33 * CAST( NULL AS SIGNED ) * + 19 * + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL CAST ( NULL AS INTEGER ) + + 33 * CAST ( NULL AS INTEGER ) * + 19 * + - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT ALL SUM( - + 68 ) * 57 + - + 6
----
-3882

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL SUM ( - + 68 ) * 57 + - + 6
----
-3882

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

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

skipif mysql # not compatible
query I rowsort label-887
SELECT 4 / + - 48
----
0

query I rowsort
SELECT 40 * 33
----
1320

query I rowsort
SELECT COALESCE ( + 79, + 80, + + 63 ) + - 17 AS col1
----
62

query II rowsort
SELECT 26 AS col1, - 92 col1
----
26
-92

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

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

query I rowsort
SELECT 30 + 58 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT 54 + - 74 * - + COUNT( * ) * - 13 + 82 AS col0
----
-826

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT 54 + - 74 * - + COUNT ( * ) * - 13 + 82 AS col0
----
-826

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

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

query I rowsort
SELECT ALL 75 * 32 * - 46 + - 45 + - - 8 - 3 * - + 27 AS col2
----
-110356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-896
SELECT 25 DIV + COUNT( * ) + - COUNT( * ) + + COALESCE ( - CAST( - + 40 AS SIGNED ), + 6 ) + - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-896
SELECT 25 / + COUNT ( * ) + - COUNT ( * ) + + COALESCE ( - CAST ( - + 40 AS INTEGER ), + 6 ) + - COUNT ( * )
----
63

query I rowsort
SELECT DISTINCT 0 * + 12 + - - 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT + 32 + - COUNT( * ) + - 47 * - + SUM( ALL - 31 )
----
-1426

skipif mysql # not compatible
query I rowsort label-898
SELECT + 32 + - COUNT ( * ) + - 47 * - + SUM ( ALL - 31 )
----
-1426

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT + - SUM( 49 ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-899
SELECT + - SUM ( 49 ) col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-900
SELECT ALL 57 * 81 + + 99 DIV - COALESCE ( + 66, - COUNT( * ) * + - 87 ) AS col0
----
4616

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL 57 * 81 + + 99 / - COALESCE ( + 66, - COUNT ( * ) * + - 87 ) AS col0
----
4616

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT + 48 * - + 40 + COUNT( * )
----
-1919

skipif mysql # not compatible
query I rowsort label-901
SELECT + 48 * - + 40 + COUNT ( * )
----
-1919

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT DISTINCT - COALESCE ( + + COUNT( * ), ( + - 42 ) * + 66 * + 10 * - + 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT - COALESCE ( + + COUNT ( * ), ( + - 42 ) * + 66 * + 10 * - + 85 )
----
-1

query I rowsort
SELECT ALL + 52 * + 67 - 66 + + 46 AS col0
----
3464

query I rowsort
SELECT DISTINCT - 30 * 64 + + 55
----
-1865

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT - NULLIF ( ( + - 15 ), - 77 - - COUNT( * ) - + AVG ( ALL + 10 ) ) * - + 87 AS col1
----
-1305

skipif mysql # not compatible
query I rowsort label-906
SELECT - NULLIF ( ( + - 15 ), - 77 - - COUNT ( * ) - + AVG ( ALL + 10 ) ) * - + 87 AS col1
----
-1305

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

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT ALL - 85 * - - COUNT( * ) - + + 88 * + 60 + - - 46 * - + ( + - MAX( ALL - 15 ) ) AS col1
----
-6055

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL - 85 * - - COUNT ( * ) - + + 88 * + 60 + - - 46 * - + ( + - MAX ( ALL - 15 ) ) AS col1
----
-6055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-909
SELECT - 85 DIV + MAX( + 3 ) - + - 63 * + 32 AS col0
----
1988

skipif mysql # not compatible
query I rowsort label-909
SELECT - 85 / + MAX ( + 3 ) - + - 63 * + 32 AS col0
----
1988

query II rowsort
SELECT + 59, + 79 * + 13 col0
----
59
1027

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT DISTINCT + 3 DIV 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT + 3 / 35 AS col1
----
0

query I rowsort
SELECT + 42 * - ( - - 18 )
----
-756

query II rowsort
SELECT ALL 98 + + + 0 AS col0, 94 AS col1
----
98
94

query I rowsort
SELECT DISTINCT CASE + 55 WHEN 24 THEN + - 22 END / - ( - 45 )
----
NULL

query II rowsort
SELECT DISTINCT - 91 + 96, + 53 AS col2
----
5
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT ALL + CAST( NULL AS SIGNED ) + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL + CAST ( NULL AS INTEGER ) + 57
----
NULL

query I rowsort
SELECT + 56 * + 27
----
1512

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT - CASE - + 66 WHEN 74 * + COALESCE ( MAX( ALL + 60 ), - CAST( - COUNT( * ) AS SIGNED ) * 26 + - + 57 + 77 + + - 3 * + COUNT( * ) + 23 ) * - - NULLIF ( + ( + - ( 42 ) ), + - 92 + + + 15 ) * - 72 + - SUM( DISTINCT - 14 ) + + COUNT( * ) THEN NULL ELSE - - MIN( DISTINCT 32 ) END
----
-32

skipif mysql # not compatible
query I rowsort label-919
SELECT - CASE - + 66 WHEN 74 * + COALESCE ( MAX ( ALL + 60 ), - CAST ( - COUNT ( * ) AS INTEGER ) * 26 + - + 57 + 77 + + - 3 * + COUNT ( * ) + 23 ) * - - NULLIF ( + ( + - ( 42 ) ), + - 92 + + + 15 ) * - 72 + - SUM ( DISTINCT - 14 ) + + COUNT ( * ) THEN NULL ELSE - - MIN ( DISTINCT 32 ) END
----
-32

query I rowsort
SELECT - 26 - 81
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL CASE - COUNT( * ) WHEN - 69 + + + 34 - 82 * 44 * 1 THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL CASE - COUNT ( * ) WHEN - 69 + + + 34 - 82 * 44 * 1 THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL NULLIF ( - 19, + 10 + - - COUNT( DISTINCT + - 84 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL NULLIF ( - 19, + 10 + - - COUNT ( DISTINCT + - 84 ) )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT DISTINCT CASE 5 WHEN - COUNT( * ) THEN - + 19 WHEN + 0 THEN 63 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT CASE 5 WHEN - COUNT ( * ) THEN - + 19 WHEN + 0 THEN 63 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-924
SELECT ALL - 93 + + - CAST( + 64 AS SIGNED ) * NULLIF ( + COUNT( * ), + 69 ) + - ( 69 )
----
-226

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL - 93 + + - CAST ( + 64 AS INTEGER ) * NULLIF ( + COUNT ( * ), + 69 ) + - ( 69 )
----
-226

query I rowsort
SELECT ALL + 29 * 82
----
2378

onlyif mysql # aggregate syntax: 
query II rowsort label-926
SELECT - COUNT( * ) + + 15 col2, 37
----
14
37

skipif mysql # not compatible
query II rowsort label-926
SELECT - COUNT ( * ) + + 15 col2, 37
----
14
37

query I rowsort
SELECT ALL NULLIF ( - + 32, + 13 + - - 29 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-928
SELECT - COALESCE ( - 56, - 61, 70 * + NULLIF ( ( 86 ), + 42 + - NULLIF ( - 4, - - 50 * + - 30 * - - MAX( DISTINCT + - CASE + + 88 WHEN 30 - + 87 THEN 31 + - 97 WHEN + 17 + + CAST( - 46 AS SIGNED ) * - 71 THEN NULL END ) ) - - 58 * 15 + + + ( - 50 ) ) DIV - 57 * - 14 + + 38 ) - - 33
----
89

skipif mysql # not compatible
query I rowsort label-928
SELECT - COALESCE ( - 56, - 61, 70 * + NULLIF ( ( 86 ), + 42 + - NULLIF ( - 4, - - 50 * + - 30 * - - MAX ( DISTINCT + - CASE + + 88 WHEN 30 - + 87 THEN 31 + - 97 WHEN + 17 + + CAST ( - 46 AS INTEGER ) * - 71 THEN NULL END ) ) - - 58 * 15 + + + ( - 50 ) ) / - 57 * - 14 + + 38 ) - - 33
----
89

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

skipif mysql # not compatible
query I rowsort label-929
SELECT - - COUNT ( * ) / 9 * + + 73
----
0

query I rowsort
SELECT - 88 + + - 12 + + 42
----
-58

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

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

query II rowsort
SELECT DISTINCT - ( + 19 ) * 27, + 80 AS col2
----
-513
80

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT + + SUM( DISTINCT + 3 ) * - ( 92 ) * - 55 + 4
----
15184

skipif mysql # not compatible
query I rowsort label-933
SELECT + + SUM ( DISTINCT + 3 ) * - ( 92 ) * - 55 + 4
----
15184

query I rowsort
SELECT - 77 + - - ( 97 ) AS col1
----
20

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

query I rowsort
SELECT + 73 * + - 52
----
-3796

query I rowsort
SELECT + 54 * - 22 * - - 73 + - - 2
----
-86722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-938
SELECT ALL + CASE COUNT( * ) WHEN + 9 * - 18 * - 19 + - 50 * - 60 * - 60 THEN + 52 - 80 WHEN - 68 + + 22 * - 81 * SUM( - 28 ) * - + 75 THEN + 40 END * + 85 AS col1, CAST( 18 AS SIGNED )
----
NULL
18

skipif mysql # not compatible
query II rowsort label-938
SELECT ALL + CASE COUNT ( * ) WHEN + 9 * - 18 * - 19 + - 50 * - 60 * - 60 THEN + 52 - 80 WHEN - 68 + + 22 * - 81 * SUM ( - 28 ) * - + 75 THEN + 40 END * + 85 AS col1, CAST ( 18 AS INTEGER )
----
NULL
18

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

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

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

skipif mysql # not compatible
query II rowsort label-940
SELECT + COUNT ( * ), + 52 col2
----
1
52

query I rowsort
SELECT + 56 + + - 74 AS col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT - CAST( 5 AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-942
SELECT - CAST ( 5 AS INTEGER ) AS col2
----
-5

query II rowsort
SELECT - 40 AS col1, - ( - 21 ) * - 41 AS col0
----
-40
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT + COUNT( * ) + + - 6 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-944
SELECT + COUNT ( * ) + + - 6 AS col1
----
-5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-946
SELECT - CAST( + AVG ( ALL - 18 ) AS SIGNED ), + COUNT( * ) * + 78 AS col2
----
18
78

skipif mysql # not compatible
query II rowsort label-946
SELECT - CAST ( + AVG ( ALL - 18 ) AS INTEGER ), + COUNT ( * ) * + 78 AS col2
----
18
78

onlyif mysql # DIV for integer division: 
query I rowsort label-947
SELECT ALL 2 DIV 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL 2 / 19 AS col2
----
0

query I rowsort
SELECT + 66 * - 62 AS col2
----
-4092

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT - ( - CASE + + 66 WHEN + 70 * - SUM( 97 ) / + COUNT( * ) + - + 37 / + 79 + + - 20 THEN + - 28 WHEN CASE - + 93 WHEN ( + + 94 ) THEN - - 34 - NULLIF ( + 98, 51 * - - 34 ) + - 72 * 69 END * + 93 + - + 36 THEN - + 19 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT - ( - CASE + + 66 WHEN + 70 * - SUM ( 97 ) / + COUNT ( * ) + - + 37 / + 79 + + - 20 THEN + - 28 WHEN CASE - + 93 WHEN ( + + 94 ) THEN - - 34 - NULLIF ( + 98, 51 * - - 34 ) + - 72 * 69 END * + 93 + - + 36 THEN - + 19 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-950
SELECT - CAST( NULL AS SIGNED ) AS col2, 5 AS col0
----
NULL
5

skipif mysql # not compatible
query II rowsort label-950
SELECT - CAST ( NULL AS INTEGER ) AS col2, 5 AS col0
----
NULL
5

query I rowsort
SELECT ALL + 43 - + 22 AS col2
----
21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT - ( ( 25 ) ) * - + CASE - + 57 WHEN - 3 THEN + + 15 * - 91 END - - 23 + - - 31 * - 91 + CASE - - 30 WHEN + 38 * + - COUNT( DISTINCT - + NULLIF ( - + 65, 35 - + + 32 ) ) + + - MAX( ALL - 19 ) / 13 * + 15 THEN - 33 / - 85 + + 80 - 63 * - - 81 ELSE + NULLIF ( + - 64, - 53 * 67 ) END / + 31, - 96 AS col2
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-953
SELECT - ( ( 25 ) ) * - + CASE - + 57 WHEN - 3 THEN + + 15 * - 91 END - - 23 + - - 31 * - 91 + CASE - - 30 WHEN + 38 * + - COUNT ( DISTINCT - + NULLIF ( - + 65, 35 - + + 32 ) ) + + - MAX ( ALL - 19 ) / 13 * + 15 THEN - 33 / - 85 + + 80 - 63 * - - 81 ELSE + NULLIF ( + - 64, - 53 * 67 ) END / + 31, - 96 AS col2
----
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT ALL CASE - COUNT( * ) WHEN + 23 * - + 13 / COUNT( * ) THEN + 63 * + - COUNT( * ) + 17 * + 3 / 73 / - NULLIF ( - 6, 4 ) / - MAX( - - 74 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL CASE - COUNT ( * ) WHEN + 23 * - + 13 / COUNT ( * ) THEN + 63 * + - COUNT ( * ) + 17 * + 3 / 73 / - NULLIF ( - 6, 4 ) / - MAX ( - - 74 ) END AS col0
----
NULL

query I rowsort
SELECT - + 15 + - 24 * + 16 * - - ( - - 85 )
----
-32655

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT ALL - CASE 82 WHEN + 30 THEN NULL ELSE ( + 16 ) END - - + 93 DIV + 9 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - CASE 82 WHEN + 30 THEN NULL ELSE ( + 16 ) END - - + 93 / + 9 AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-957
SELECT ALL + + 89 DIV ( - - 72 ) * 74
----
74

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL + + 89 / ( - - 72 ) * 74
----
74

onlyif mysql # aggregate syntax: 
query III rowsort label-958
SELECT + 61 * - + MAX( DISTINCT + - 96 ), NULLIF ( - - 72, COUNT( * ) ) AS col0, + 82 * + 86 AS col0
----
5856
72
7052

skipif mysql # not compatible
query III rowsort label-958
SELECT + 61 * - + MAX ( DISTINCT + - 96 ), NULLIF ( - - 72, COUNT ( * ) ) AS col0, + 82 * + 86 AS col0
----
5856
72
7052

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT ALL + - 97 DIV 11 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + - 97 / 11 AS col2
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT CASE - + ( MAX( - 70 ) ) WHEN - 76 + - - 93 THEN + + 54 - 55 + + + 50 / + 84 * + COUNT( * ) + COALESCE ( + 4, + + 16 ) + - COUNT( * ) + + ( + + 68 ) + + - 46 / - MIN( ALL 68 ) * 29 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT CASE - + ( MAX ( - 70 ) ) WHEN - 76 + - - 93 THEN + + 54 - 55 + + + 50 / + 84 * + COUNT ( * ) + COALESCE ( + 4, + + 16 ) + - COUNT ( * ) + + ( + + 68 ) + + - 46 / - MIN ( ALL 68 ) * 29 WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT - SUM( DISTINCT - + 3 ) + 43 - - - 62 * 15 * + ( + + 84 )
----
-78074

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT - SUM ( DISTINCT - + 3 ) + 43 - - - 62 * 15 * + ( + + 84 )
----
-78074

query I rowsort
SELECT DISTINCT - + ( - 23 ) * + - ( - 60 ) * + 45 + 29 * 74 AS col2
----
64246

query I rowsort
SELECT ALL 63 + - 83 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT COUNT( * ) * 7 + 25 + - 91 * - 73 + - 4 AS col1
----
6671

skipif mysql # not compatible
query I rowsort label-965
SELECT COUNT ( * ) * 7 + 25 + - 91 * - 73 + - 4 AS col1
----
6671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-966
SELECT ALL + + 43 + - 17 + - 94 DIV - 84 - - 58 * COUNT( * ) + 77 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL + + 43 + - 17 + - 94 / - 84 - - 58 * COUNT ( * ) + 77 AS col2
----
162

query I rowsort
SELECT ( - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT DISTINCT + 92 + - COUNT( ALL + - ( CASE + 73 WHEN - 48 THEN NULL WHEN + 96 THEN + 66 * + 30 END ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT + 92 + - COUNT ( ALL + - ( CASE + 73 WHEN - 48 THEN NULL WHEN + 96 THEN + 66 * + 30 END ) ) AS col2
----
92

query I rowsort
SELECT ALL 97 * + 64 * + - 76
----
-471808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-970
SELECT NULLIF ( + - COALESCE ( + 76, - - COUNT( * ) * + 36 DIV ( + 46 ) * + - 98 * + ( - ( - 42 ) ) ), + NULLIF ( 89, COUNT( * ) ) ) * - + 74
----
5624

skipif mysql # not compatible
query I rowsort label-970
SELECT NULLIF ( + - COALESCE ( + 76, - - COUNT ( * ) * + 36 / ( + 46 ) * + - 98 * + ( - ( - 42 ) ) ), + NULLIF ( 89, COUNT ( * ) ) ) * - + 74
----
5624

query I rowsort
SELECT ALL + 74 - - + 10 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT ALL 90 - - - MIN( + 48 ) - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL 90 - - - MIN ( + 48 ) - COUNT ( * )
----
41

query I rowsort
SELECT ALL 61 * 75 AS col1
----
4575

query I rowsort
SELECT 33 + + 78 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT 39 * - - COUNT( * ) col0
----
39

skipif mysql # not compatible
query I rowsort label-975
SELECT 39 * - - COUNT ( * ) col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-976
SELECT 74 + + CAST( MAX( + 65 ) AS SIGNED ) * - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-976
SELECT 74 + + CAST ( MAX ( + 65 ) AS INTEGER ) * - COUNT ( * )
----
9

query I rowsort
SELECT ALL 54 - - 63 * + + 23 * 14 * + 35
----
710064

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT 58 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-978
SELECT 58 / 83
----
0

query I rowsort
SELECT 93 * - 69 * - 94
----
603198

onlyif mysql # DIV for integer division: 
query I rowsort label-980
SELECT DISTINCT 83 DIV + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT 83 / + 90 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT - COUNT( DISTINCT + 8 ) * - 20 + - 52 * 85 col1
----
-4400

skipif mysql # not compatible
query I rowsort label-982
SELECT - COUNT ( DISTINCT + 8 ) * - 20 + - 52 * 85 col1
----
-4400

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

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

query I rowsort
SELECT - CASE - - ( 4 ) WHEN - 91 * - 14 + 65 THEN NULL WHEN + CASE WHEN NOT - 55 NOT BETWEEN 42 * + 12 * + 1 AND NULL THEN + - 60 * + 29 * + 91 ELSE NULL END THEN NULL ELSE - + 78 END
----
78

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

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

query I rowsort
SELECT ALL + 40 * - + 55 + + + 6 AS col2
----
-2194

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT + MAX( DISTINCT + - 74 ) * - + 23 AS col1
----
1702

skipif mysql # not compatible
query I rowsort label-987
SELECT + MAX ( DISTINCT + - 74 ) * - + 23 AS col1
----
1702

query I rowsort
SELECT ( + + 72 ) * - 3
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL + - MIN( COALESCE ( 65, - + 89 + - - 87 + - + 43, 94 ) ) + 28 + + 70
----
33

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + - MIN ( COALESCE ( 65, - + 89 + - - 87 + - + 43, 94 ) ) + 28 + + 70
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT DISTINCT - - 20 DIV 35 + - + 24 + - + 21
----
-45

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT - - 20 / 35 + - + 24 + - + 21
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-991
SELECT COUNT( * ) DIV - 92 + - - ( - 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-991
SELECT COUNT ( * ) / - 92 + - - ( - 53 ) AS col0
----
-53

query II rowsort
SELECT 6 * 88 AS col2, - 36 + 7 AS col2
----
528
-29

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

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

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

query I rowsort
SELECT ALL + + 90 + + 56 col1
----
146

query I rowsort
SELECT 59 * + 93
----
5487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-997
SELECT DISTINCT - ( CASE WHEN - COUNT( * ) IS NOT NULL THEN + 51 * + CAST( + + SUM( + 22 ) AS SIGNED ) END ) * - - ( + - 14 ) - - 7 * + 20
----
15848

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT - ( CASE WHEN - COUNT ( * ) IS NOT NULL THEN + 51 * + CAST ( + + SUM ( + 22 ) AS INTEGER ) END ) * - - ( + - 14 ) - - 7 * + 20
----
15848

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

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT - 10 * - COUNT( * ) + - 51 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-999
SELECT - 10 * - COUNT ( * ) + - 51 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT ALL NULLIF ( + - 88, - + 52 + + 36 + 6 + + 47 ) - + 88 + - + COUNT( * ) AS col2
----
-177

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL NULLIF ( + - 88, - + 52 + + 36 + 6 + + 47 ) - + 88 + - + COUNT ( * ) AS col2
----
-177

query I rowsort
SELECT ALL - 6 - + ( 84 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1002
SELECT 49 * CAST( - 29 AS SIGNED ) AS col2, - 56 + + + 88 * + - 51, - COALESCE ( + - 86, - 61 ) * 21 AS col0
----
-1421
-4544
1806

skipif mysql # not compatible
query III rowsort label-1002
SELECT 49 * CAST ( - 29 AS INTEGER ) AS col2, - 56 + + + 88 * + - 51, - COALESCE ( + - 86, - 61 ) * 21 AS col0
----
-1421
-4544
1806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1003
SELECT DISTINCT - 33 * - MIN( ALL + 15 ) * - 98 * - 75 AS col0, 43 + + - NULLIF ( - 95, NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) * + - CAST( NULL AS SIGNED ) / 1 ) ) AS col0
----
3638250
138

skipif mysql # not compatible
query II rowsort label-1003
SELECT DISTINCT - 33 * - MIN ( ALL + 15 ) * - 98 * - 75 AS col0, 43 + + - NULLIF ( - 95, NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / 1 ) ) AS col0
----
3638250
138

query I rowsort
SELECT ALL + 43 - - 4 AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1005
SELECT COUNT( COALESCE ( 33, 87 ) ) * 57 AS col1, + 20
----
57
20

skipif mysql # not compatible
query II rowsort label-1005
SELECT COUNT ( COALESCE ( 33, 87 ) ) * 57 AS col1, + 20
----
57
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL - SUM( - ( 99 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL - SUM ( - ( 99 ) ) AS col0
----
99

query I rowsort
SELECT 79 * + 68 + 5 * - 83
----
4957

query II rowsort
SELECT + 49, 58 col1
----
49
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1009
SELECT SUM( + - CAST( NULL AS SIGNED ) ) * - - 40 / - 33 + 39 + - - 16 * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1009
SELECT SUM ( + - CAST ( NULL AS INTEGER ) ) * - - 40 / - 33 + 39 + - - 16 * + 1
----
NULL

query I rowsort
SELECT 48 * - 55
----
-2640

query I rowsort
SELECT 58 + 29
----
87

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1013
SELECT 74 * 35 * CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT 74 * 35 * CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT COUNT( - - 7 ) + + + 52
----
53

skipif mysql # not compatible
query I rowsort label-1014
SELECT COUNT ( - - 7 ) + + + 52
----
53

query I rowsort
SELECT DISTINCT - 26 * - 12 * + 9 AS col1
----
2808

query I rowsort
SELECT ALL 77 * - 7
----
-539

onlyif mysql # DIV for integer division: 
query I rowsort label-1017
SELECT 64 + 22 DIV 35
----
64

skipif mysql # not compatible
query I rowsort label-1017
SELECT 64 + 22 / 35
----
64

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

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

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

query I rowsort
SELECT + 35 + - 64
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT + 53 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-1021
SELECT + 53 / 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT - MAX( ( 15 ) ) + - COALESCE ( COUNT( * ), + NULLIF ( - 96, 50 ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1022
SELECT - MAX ( ( 15 ) ) + - COALESCE ( COUNT ( * ), + NULLIF ( - 96, 50 ) ) AS col0
----
-16

query I rowsort
SELECT ALL + 36 + 26 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL NULLIF ( 35, MIN( 83 ) * COUNT( * ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL NULLIF ( 35, MIN ( 83 ) * COUNT ( * ) ) AS col2
----
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT ALL COUNT( * ) + - 30
----
-29

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL COUNT ( * ) + - 30
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT DISTINCT 40 DIV + 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT 40 / + 58 AS col1
----
0

query I rowsort
SELECT ALL 99 + 17 AS col2
----
116

query I rowsort
SELECT + 10 + 6
----
16

query I rowsort
SELECT DISTINCT 22 * - 41 AS col0
----
-902

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

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

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

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

query I rowsort
SELECT ALL + 1 * 38 + + 37 AS col1
----
75

query I rowsort
SELECT + 63 + 56 AS col0
----
119

query I rowsort
SELECT + 74 * 8 AS col0
----
592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1036
SELECT - COUNT( * ) / CASE + 24 WHEN CAST( + 17 AS SIGNED ) THEN - 29 ELSE NULL END + + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT - COUNT ( * ) / CASE + 24 WHEN CAST ( + 17 AS INTEGER ) THEN - 29 ELSE NULL END + + 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT CASE 90 WHEN COUNT( ALL - ( + 16 ) ) + + 3 THEN NULL WHEN + 8 THEN + 41 + + 0 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT CASE 90 WHEN COUNT ( ALL - ( + 16 ) ) + + 3 THEN NULL WHEN + 8 THEN + 41 + + 0 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( 98 ) * - 34 + - 96 * 10
----
-4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1039
SELECT CASE + COALESCE ( COUNT( * ), + 30 ) WHEN COUNT( * ) * + 82 THEN NULL WHEN - CASE + CAST( NULL AS DECIMAL ) WHEN + 99 THEN 59 WHEN 43 * 38 THEN + COUNT( * ) END + 15 THEN + 9 + + 39 ELSE - CAST( 3 AS SIGNED ) END
----
-3

skipif mysql # not compatible
query I rowsort label-1039
SELECT CASE + COALESCE ( COUNT ( * ), + 30 ) WHEN COUNT ( * ) * + 82 THEN NULL WHEN - CASE + CAST ( NULL AS REAL ) WHEN + 99 THEN 59 WHEN 43 * 38 THEN + COUNT ( * ) END + 15 THEN + 9 + + 39 ELSE - CAST ( 3 AS INTEGER ) END
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT + 93 * SUM( - 20 ) + 84 * + 48 AS col2
----
2172

skipif mysql # not compatible
query I rowsort label-1040
SELECT + 93 * SUM ( - 20 ) + 84 * + 48 AS col2
----
2172

query I rowsort
SELECT + 43 * + ( 17 )
----
731

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT + 61 DIV - 98 col2
----
0

skipif mysql # not compatible
query I rowsort label-1042
SELECT + 61 / - 98 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT DISTINCT - 2 * COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT - 2 * COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT ALL + 84 * 55
----
4620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT DISTINCT - 30 * - MIN( ALL 53 DIV 48 )
----
30

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT - 30 * - MIN ( ALL 53 / 48 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1046
SELECT - NULLIF ( + 95, 33 ) DIV 86
----
-1

skipif mysql # not compatible
query I rowsort label-1046
SELECT - NULLIF ( + 95, 33 ) / 86
----
-1

query I rowsort
SELECT - 7 * + 47
----
-329

query I rowsort
SELECT ALL - 39 * - 22 AS col2
----
858

query I rowsort
SELECT ALL + 85 + 16 col0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-1050
SELECT + 53 + 31 DIV + 94 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1050
SELECT + 53 + 31 / + 94 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT - SUM( ALL NULLIF ( - 27, - ( 8 ) ) ) + 65
----
92

skipif mysql # not compatible
query I rowsort label-1051
SELECT - SUM ( ALL NULLIF ( - 27, - ( 8 ) ) ) + 65
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT MIN( 29 )
----
29

skipif mysql # not compatible
query I rowsort label-1052
SELECT MIN ( 29 )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT DISTINCT CAST( + ( COALESCE ( 45, 78 * 40 ) ) AS SIGNED ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT CAST ( + ( COALESCE ( 45, 78 * 40 ) ) AS INTEGER ) AS col2
----
45

query I rowsort
SELECT - 41 - 81
----
-122

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

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

query I rowsort
SELECT ALL + 57 * 10
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT DISTINCT MAX( CASE 45 WHEN + 44 THEN 56 / 54 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT MAX ( CASE 45 WHEN + 44 THEN 56 / 54 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT DISTINCT + - COALESCE ( NULLIF ( 83, - COUNT( * ) * + 91 ), - 79, 77 ) + + 24 * + 32
----
685

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT + - COALESCE ( NULLIF ( 83, - COUNT ( * ) * + 91 ), - 79, 77 ) + + 24 * + 32
----
685

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

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL + - CAST ( NULL AS REAL ) * - 81
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL SUM ( ALL - 94 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT + COALESCE ( 61, 45 + 83 DIV 41, + 24 )
----
61

skipif mysql # not compatible
query I rowsort label-1061
SELECT + COALESCE ( 61, 45 + 83 / 41, + 24 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT ALL - 14 DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL - 14 / 65 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1063
SELECT CAST( - - 35 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-1063
SELECT CAST ( - - 35 AS INTEGER ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT + MIN( ALL - 77 ) * + 53 col1
----
-4081

skipif mysql # not compatible
query I rowsort label-1064
SELECT + MIN ( ALL - 77 ) * + 53 col1
----
-4081

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT ALL ( + 43 ) DIV 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL ( + 43 ) / 34 AS col1
----
1

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

query I rowsort
SELECT ALL 38 * - + 4
----
-152

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

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

query I rowsort
SELECT + 20 * - 84 * - 57
----
95760

query I rowsort
SELECT ALL 31 * NULLIF ( 58, + 17 ) AS col2
----
1798

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT + 37 + - COUNT( * ) * + 67
----
-30

skipif mysql # not compatible
query I rowsort label-1071
SELECT + 37 + - COUNT ( * ) * + 67
----
-30

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

query I rowsort
SELECT DISTINCT 78 * + 58
----
4524

query I rowsort
SELECT DISTINCT 13 * + 41 + 61 * 47
----
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT ALL COUNT( ALL - 12 ) * 78 + + 93
----
171

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL COUNT ( ALL - 12 ) * 78 + + 93
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT + COUNT( * ) * + 97 + 21
----
118

skipif mysql # not compatible
query I rowsort label-1076
SELECT + COUNT ( * ) * + 97 + 21
----
118

query I rowsort
SELECT 3 + - 41 AS col1
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1078
SELECT 9 DIV - 31 * - 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1078
SELECT 9 / - 31 * - 47 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1079
SELECT 54 * - 26 + ( + 20 ) * + COALESCE ( - NULLIF ( + 89, 63 * 34 ) * - NULLIF ( COUNT( * ) * + COUNT( * ), + CASE + NULLIF ( + 59, ( 4 ) ) WHEN - 30 THEN MIN( ALL - ( 21 ) ) * + 33 ELSE - NULLIF ( 3, 90 ) END DIV - 85 ), - COUNT( DISTINCT 94 ), 15 DIV - 77 )
----
376

skipif mysql # not compatible
query I rowsort label-1079
SELECT 54 * - 26 + ( + 20 ) * + COALESCE ( - NULLIF ( + 89, 63 * 34 ) * - NULLIF ( COUNT ( * ) * + COUNT ( * ), + CASE + NULLIF ( + 59, ( 4 ) ) WHEN - 30 THEN MIN ( ALL - ( 21 ) ) * + 33 ELSE - NULLIF ( 3, 90 ) END / - 85 ), - COUNT ( DISTINCT 94 ), 15 / - 77 )
----
376

query I rowsort
SELECT ALL - + 51 + - - 91
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT NULLIF ( - 71, - 80 / COUNT( * ) + 64 ) + - 93 * - 82 AS col1
----
7555

skipif mysql # not compatible
query I rowsort label-1081
SELECT NULLIF ( - 71, - 80 / COUNT ( * ) + 64 ) + - 93 * - 82 AS col1
----
7555

onlyif mysql # DIV for integer division: 
query I rowsort label-1082
SELECT 43 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1082
SELECT 43 / 73 AS col2
----
0

query I rowsort
SELECT DISTINCT 13 * - 84 AS col2
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ALL 17 + - - COUNT( * )
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT DISTINCT - COUNT( * ) + 66 col0
----
65

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT - COUNT ( * ) + 66 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT DISTINCT + - 46 + - 12 + COUNT( ALL + 59 + + 57 ) * - 85
----
-143

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT + - 46 + - 12 + COUNT ( ALL + 59 + + 57 ) * - 85
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT - 88 + - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-1087
SELECT - 88 + - COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT MIN( DISTINCT - + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1088
SELECT MIN ( DISTINCT - + 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1089
SELECT - NULLIF ( + + 40, + 60 + ( - 47 + - CAST( NULL AS SIGNED ) / + 68 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-1089
SELECT - NULLIF ( + + 40, + 60 + ( - 47 + - CAST ( NULL AS INTEGER ) / + 68 ) )
----
-40

query I rowsort
SELECT 91 + + + 26 AS col0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT ( - + 17 ) + + 73 DIV 32 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1091
SELECT ( - + 17 ) + + 73 / 32 AS col2
----
-15

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

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT - - 71 - - 4 * + COUNT ( * ) AS col1
----
75

query I rowsort
SELECT ALL + 85 * + 48 + 74 * 11 AS col2
----
4894

query I rowsort
SELECT + 77 + + ( + 77 )
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1095
SELECT ALL 22, + COUNT( * ) DIV - 77 AS col0
----
22
0

skipif mysql # not compatible
query II rowsort label-1095
SELECT ALL 22, + COUNT ( * ) / - 77 AS col0
----
22
0

query I rowsort
SELECT 59 + - 84
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT MIN( ALL + 57 ) * - 91 + COUNT( * ) AS col0
----
-5186

skipif mysql # not compatible
query I rowsort label-1097
SELECT MIN ( ALL + 57 ) * - 91 + COUNT ( * ) AS col0
----
-5186

query I rowsort
SELECT 33 * + 55 AS col2
----
1815

query I rowsort
SELECT DISTINCT + 2 * - + ( 47 ) * ( + 85 )
----
-7990

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT 52 DIV + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1100
SELECT 52 / + 57 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT + 60 * + 88 + + - COUNT( * )
----
5279

skipif mysql # not compatible
query I rowsort label-1101
SELECT + 60 * + 88 + + - COUNT ( * )
----
5279

query II rowsort
SELECT ALL - 23, ( + - 60 ) col0
----
-23
-60

query II rowsort
SELECT + 89 AS col2, 78
----
89
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL + COUNT( * ) * + 63 * 86
----
5418

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL + COUNT ( * ) * + 63 * 86
----
5418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT ALL MIN( DISTINCT - 71 ) DIV - + 22
----
3

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL MIN ( DISTINCT - 71 ) / - + 22
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT SUM( ALL 84 ) * - - 34 AS col1
----
2856

skipif mysql # not compatible
query I rowsort label-1106
SELECT SUM ( ALL 84 ) * - - 34 AS col1
----
2856

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

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL COUNT ( 42 ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1108
SELECT + 55 AS col1, 71 DIV - + 91
----
55
0

skipif mysql # not compatible
query II rowsort label-1108
SELECT + 55 AS col1, 71 / - + 91
----
55
0

query II rowsort
SELECT ALL - 28 AS col2, - 63 * - 91
----
-28
5733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1110
SELECT 67 DIV - 1 * COUNT( * ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-1110
SELECT 67 / - 1 * COUNT ( * ) col2
----
-67

query I rowsort
SELECT 3 * + 96 AS col2
----
288

query II rowsort
SELECT 43, - 5 + 53 AS col0
----
43
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT MAX( ALL - 30 ) * - - 99 * - 35
----
103950

skipif mysql # not compatible
query I rowsort label-1113
SELECT MAX ( ALL - 30 ) * - - 99 * - 35
----
103950

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT NULLIF ( - + COUNT( * ), + 80 ) * - 28 col0
----
28

skipif mysql # not compatible
query I rowsort label-1114
SELECT NULLIF ( - + COUNT ( * ), + 80 ) * - 28 col0
----
28

query I rowsort
SELECT ALL 18 + + 6 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1116
SELECT DISTINCT CASE - COUNT( * ) WHEN 30 THEN 11 * ( - CAST( + COALESCE ( + COALESCE ( + COUNT( * ), + 44 * COUNT( * ) - + 7 / + 94 ), 21 ) AS SIGNED ) ) + + ( 37 + + 70 * 14 ) WHEN CAST( - COUNT( * ) AS SIGNED ) + - COUNT( * ) THEN NULL END + - 14 * + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT CASE - COUNT ( * ) WHEN 30 THEN 11 * ( - CAST ( + COALESCE ( + COALESCE ( + COUNT ( * ), + 44 * COUNT ( * ) - + 7 / + 94 ), 21 ) AS INTEGER ) ) + + ( 37 + + 70 * 14 ) WHEN CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) THEN NULL END + - 14 * + 70 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT DISTINCT + - 69 * CAST( NULL AS SIGNED ) * + ( 30 )
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1119
SELECT + + MAX ( 34 )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1120
SELECT ALL 6 + + - 26 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL 6 + + - 26 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( - 23, 51 ) AS col1
----
-23

query I rowsort
SELECT ALL + 41 - + + 20 + - 50 + + 98
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT - 59 * COUNT( * ) col0
----
-59

skipif mysql # not compatible
query I rowsort label-1123
SELECT - 59 * COUNT ( * ) col0
----
-59

query I rowsort
SELECT + CASE AVG ( ALL - 80 ) WHEN + 7 THEN 6 - - 36 END + 84 AS col1
----
NULL

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

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

query I rowsort
SELECT 44 * 9 * + 39 + 95
----
15539

onlyif mysql # aggregate syntax: 
query II rowsort label-1127
SELECT 51, COUNT( * ) * 96 AS col2
----
51
96

skipif mysql # not compatible
query II rowsort label-1127
SELECT 51, COUNT ( * ) * 96 AS col2
----
51
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT + SUM( DISTINCT ( + 52 ) ) * MAX( 67 )
----
3484

skipif mysql # not compatible
query I rowsort label-1129
SELECT + SUM ( DISTINCT ( + 52 ) ) * MAX ( 67 )
----
3484

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

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL MAX ( ALL 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1131
SELECT CAST( - + 48 AS SIGNED ) - + + 54
----
-102

skipif mysql # not compatible
query I rowsort label-1131
SELECT CAST ( - + 48 AS INTEGER ) - + + 54
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT DISTINCT - 36 DIV + 21
----
-1

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT - 36 / + 21
----
-1

query I rowsort
SELECT ALL - - 69 * - + 82
----
-5658

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

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - 54 * - 42 AS col0
----
2269

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ALL + CASE + 47 WHEN + - MAX( ALL ( + 95 ) ) THEN NULL ELSE 15 END AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL + CASE + 47 WHEN + - MAX ( ALL ( + 95 ) ) THEN NULL ELSE 15 END AS col2
----
15

query I rowsort
SELECT + 28 * 85 - + 63 * - 78
----
7294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1137
SELECT CAST( NULL AS SIGNED ) - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1137
SELECT CAST ( NULL AS INTEGER ) - 39 AS col1
----
NULL

query I rowsort
SELECT ALL 31 * - 20 * + 95 + + ( - 39 ) AS col2
----
-58939

query I rowsort
SELECT NULLIF ( + ( + + 25 ), 74 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT ALL NULLIF ( - 20, 79 ) * + 47 * COUNT( * ) - 46 + - 58
----
-1044

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL NULLIF ( - 20, 79 ) * + 47 * COUNT ( * ) - 46 + - 58
----
-1044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1141
SELECT COALESCE ( - - COALESCE ( - 85, 89 * 57 + + 62 DIV 29 ), MAX( 63 ) - - 27 DIV 81, 13 )
----
-85

skipif mysql # not compatible
query I rowsort label-1141
SELECT COALESCE ( - - COALESCE ( - 85, 89 * 57 + + 62 / 29 ), MAX ( 63 ) - - 27 / 81, 13 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL + COUNT( * ) * - - 64 + 60 - + 27
----
97

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL + COUNT ( * ) * - - 64 + 60 - + 27
----
97

query I rowsort
SELECT ALL - 80 * - - 52
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT - 31 + + COUNT( DISTINCT 52 ) + + 23 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1144
SELECT - 31 + + COUNT ( DISTINCT 52 ) + + 23 AS col0
----
-7

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

skipif mysql # not compatible
query I rowsort label-1145
SELECT + 36 * + 56 * + COUNT ( * ) AS col1
----
2016

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

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

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

query I rowsort
SELECT + 11 * - 10 + 47 AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1149
SELECT ALL + ( - 39 ) AS col2, CAST( NULL AS SIGNED ) * - - NULLIF ( 91, - 29 - 97 * 9 ) AS col2
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-1149
SELECT ALL + ( - 39 ) AS col2, CAST ( NULL AS INTEGER ) * - - NULLIF ( 91, - 29 - 97 * 9 ) AS col2
----
-39
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + 91, + 99 ) col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL 29 * - + CASE - + CASE 34 WHEN 12 - - 33 * + ( 67 ) THEN + 17 END WHEN COUNT( * ) + + 95 THEN COUNT( * ) / 34 WHEN + 26 THEN + COUNT( * ) + - 9 ELSE NULL END - - COUNT( - 33 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL 29 * - + CASE - + CASE 34 WHEN 12 - - 33 * + ( 67 ) THEN + 17 END WHEN COUNT ( * ) + + 95 THEN COUNT ( * ) / 34 WHEN + 26 THEN + COUNT ( * ) + - 9 ELSE NULL END - - COUNT ( - 33 ) col0
----
NULL

query II rowsort
SELECT - + 14 * - + 41 col0, - 49
----
574
-49

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

skipif mysql # not compatible
query I rowsort label-1153
SELECT - COUNT ( * ) + - 68 AS col0
----
-69

query I rowsort
SELECT ALL + 11 * + 43 - 64 * 91 + + 15 AS col2
----
-5336

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT + + 64 + - NULLIF ( - + ( - 65 ), + 8 ) - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1155
SELECT + + 64 + - NULLIF ( - + ( - 65 ), + 8 ) - COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT - - 53 * + - ( + - 64 ) * 22 AS col1
----
74624

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT COALESCE ( COUNT( * ), - 22 )
----
1

skipif mysql # not compatible
query I rowsort label-1157
SELECT COALESCE ( COUNT ( * ), - 22 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT - 38 * + + COUNT( * ) * + 10 + + MAX( + CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT - 38 * + + COUNT ( * ) * + 10 + + MAX ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1159
SELECT - 9 / CAST( NULL AS SIGNED ), + 15 AS col0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-1159
SELECT - 9 / CAST ( NULL AS INTEGER ), + 15 AS col0
----
NULL
15

query I rowsort
SELECT + 79 * - + 39
----
-3081

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT ALL 62 * - NULLIF ( COUNT( DISTINCT - 91 ), + 9 / 94 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL 62 * - NULLIF ( COUNT ( DISTINCT - 91 ), + 9 / 94 ) AS col2
----
-62

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT + + COALESCE ( - 91, + + 65 * + CAST( NULL AS SIGNED ) + 17 * ( 36 ) ) + 22 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-1164
SELECT + + COALESCE ( - 91, + + 65 * + CAST ( NULL AS INTEGER ) + 17 * ( 36 ) ) + 22 AS col2
----
-69

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

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

query I rowsort
SELECT ALL 9 + NULLIF ( + 21, - 68 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-1167
SELECT + 14 + COUNT( * ) + + 34 AS col1, 3 col1
----
49
3

skipif mysql # not compatible
query II rowsort label-1167
SELECT + 14 + COUNT ( * ) + + 34 AS col1, 3 col1
----
49
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT ALL 20 + + SUM( - ( + 87 ) ) * + 47 AS col2
----
-4069

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL 20 + + SUM ( - ( + 87 ) ) * + 47 AS col2
----
-4069

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT + ( + - 27 ) + - 75 DIV COUNT( * ) AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-1169
SELECT + ( + - 27 ) + - 75 / COUNT ( * ) AS col1
----
-102

query I rowsort
SELECT ALL + 85 + + 0 AS col1
----
85

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1172
SELECT - CAST( NULL AS DECIMAL ) AS col1, + 65
----
NULL
65

skipif mysql # not compatible
query II rowsort label-1172
SELECT - CAST ( NULL AS REAL ) AS col1, + 65
----
NULL
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT + 78 DIV - 68 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1173
SELECT + 78 / - 68 AS col0
----
-1

query II rowsort
SELECT 6 AS col0, 27
----
6
27

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

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

query I rowsort
SELECT - 60 + - 6
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT CAST( - NULLIF ( - ( + 74 ), - - COUNT( * ) + 74 * - 3 ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-1177
SELECT CAST ( - NULLIF ( - ( + 74 ), - - COUNT ( * ) + 74 * - 3 ) AS INTEGER )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT ALL 20 DIV - 91 * 34 + - 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL 20 / - 91 * 34 + - 23 AS col0
----
-23

query I rowsort
SELECT + COALESCE ( - 73, + 33 * + + COALESCE ( 97, 74 * + 64 + 78 * + 30 ) * NULLIF ( - 31, 53 * 88 ), 21 * 53 ) * + 47
----
-3431

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1180
SELECT 95 DIV - 83 + + ( + - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-1180
SELECT 95 / - 83 + + ( + - COUNT ( * ) )
----
-2

query I rowsort
SELECT ( - 28 ) AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1182
SELECT ALL 57 / + 59 * 42 - + - COUNT( * ) + + + 54 + + COUNT( * ) * CASE COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED ) WHEN - 79 THEN - ( - 34 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL 57 / + 59 * 42 - + - COUNT ( * ) + + + 54 + + COUNT ( * ) * CASE COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER ) WHEN - 79 THEN - ( - 34 ) ELSE NULL END
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1184
SELECT + 17, - 95 DIV 39 AS col0
----
17
-2

skipif mysql # not compatible
query II rowsort label-1184
SELECT + 17, - 95 / 39 AS col0
----
17
-2

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1187
SELECT + NULLIF ( COUNT( * ), + COALESCE ( + 35, - 79 + 79, + 18 / 84, 21 + + COUNT( * ) ) + ( CAST( NULL AS DECIMAL ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1187
SELECT + NULLIF ( COUNT ( * ), + COALESCE ( + 35, - 79 + 79, + 18 / 84, 21 + + COUNT ( * ) ) + ( CAST ( NULL AS REAL ) ) )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL - - 2 * COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL - - 2 * COUNT ( * ) col0
----
2

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

skipif mysql # not compatible
query I rowsort label-1190
SELECT SUM ( DISTINCT 73 )
----
73

query I rowsort
SELECT - 80 * 37 AS col0
----
-2960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1192
SELECT - 50 * COALESCE ( + + 44, + + 41 ) + + 85 * - NULLIF ( 5 + + CAST( NULL AS SIGNED ), - AVG ( - 58 ) * + CAST( - 63 * 83 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1192
SELECT - 50 * COALESCE ( + + 44, + + 41 ) + + 85 * - NULLIF ( 5 + + CAST ( NULL AS INTEGER ), - AVG ( - 58 ) * + CAST ( - 63 * 83 AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL + - 24, + COALESCE ( + - 58, + 65, - + 67 ) - 38 col1
----
-24
-96

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

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

query I rowsort
SELECT + 68 * - 98
----
-6664

query I rowsort
SELECT - - 41 * - 68
----
-2788

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1198
SELECT - - 92 DIV - - 80
----
1

skipif mysql # not compatible
query I rowsort label-1198
SELECT - - 92 / - - 80
----
1

query I rowsort
SELECT ALL + CASE + 62 WHEN - 32 THEN 94 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT - + COUNT( * ) + + ( + 56 )
----
55

skipif mysql # not compatible
query I rowsort label-1200
SELECT - + COUNT ( * ) + + ( + 56 )
----
55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1201
SELECT - 96 * + NULLIF ( CAST( NULL AS DECIMAL ), + CASE + CAST( NULL AS SIGNED ) WHEN 7 THEN NULL ELSE 56 END * + 89 - CASE 0 WHEN + 77 + - 60 THEN 81 END ) - + 29 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT - 96 * + NULLIF ( CAST ( NULL AS REAL ), + CASE + CAST ( NULL AS INTEGER ) WHEN 7 THEN NULL ELSE 56 END * + 89 - CASE 0 WHEN + 77 + - 60 THEN 81 END ) - + 29 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT + 66 + CAST( - - 85 AS SIGNED ) AS col2
----
151

skipif mysql # not compatible
query I rowsort label-1202
SELECT + 66 + CAST ( - - 85 AS INTEGER ) AS col2
----
151

query I rowsort
SELECT DISTINCT - ( - + 55 ) * - 41 + + 51 + 1 * + 16
----
-2188

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL COUNT( * ) * 91 * + 95 + 11 - - - 59 + 11 AS col1
----
8608

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL COUNT ( * ) * 91 * + 95 + 11 - - - 59 + 11 AS col1
----
8608

query I rowsort
SELECT DISTINCT - 3 * + 94
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT ALL + 52 + - - COUNT( * ) + - - 41 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL + 52 + - - COUNT ( * ) + - - 41 AS col2
----
94

query I rowsort
SELECT ALL - 98 + - + 22
----
-120

query II rowsort
SELECT 59, - 42 + - 13 * - - 46 AS col1
----
59
-640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1209
SELECT ALL 3 + + 20 - + COALESCE ( - + 6, - 52, COUNT( * ) DIV - 91 ) * 86
----
539

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL 3 + + 20 - + COALESCE ( - + 6, - 52, COUNT ( * ) / - 91 ) * 86
----
539

query II rowsort
SELECT ALL 82 col2, + 22
----
82
22

query II rowsort
SELECT - 37 AS col2, 91
----
-37
91

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

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

query I rowsort
SELECT ALL 67 + + + 35 col0
----
102

query I rowsort
SELECT ALL 31 - 6 * + 12 + - ( 80 ) * CASE 25 WHEN - 68 THEN 97 * + 46 WHEN 53 + + 25 THEN NULL END + 45 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT COALESCE ( - 99, - + 55 ) DIV + + 37 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1215
SELECT COALESCE ( - 99, - + 55 ) / + + 37 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT COUNT( * ) * 24 * + 46
----
1104

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT COUNT ( * ) * 24 * + 46
----
1104

query II rowsort
SELECT ALL - 57 col2, 6 + + - 14
----
-57
-8

query I rowsort
SELECT ( ( 41 ) ) * + 1 + + 12 * + ( - 96 ) * 50
----
-57559

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1220
SELECT + ( 52 ) DIV ( - 81 ) * 68 - + + 71 * 25 AS col0
----
-1775

skipif mysql # not compatible
query I rowsort label-1220
SELECT + ( 52 ) / ( - 81 ) * 68 - + + 71 * 25 AS col0
----
-1775

query I rowsort
SELECT + 78 + + + 59
----
137

query I rowsort
SELECT DISTINCT 57 * + 52 * - 44
----
-130416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1223
SELECT 12 * - COUNT( 80 ) DIV - SUM( DISTINCT + 60 ) + - 66 - 59 * 82 DIV 10
----
-549

skipif mysql # not compatible
query I rowsort label-1223
SELECT 12 * - COUNT ( 80 ) / - SUM ( DISTINCT + 60 ) + - 66 - 59 * 82 / 10
----
-549

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1224
SELECT ALL - 71 AS col2, - MAX( 74 ) * COALESCE ( + - 70, + + ( - 28 ) DIV - 76, + 45, 2 * - 73 ) - - COUNT( * ) * + 21 AS col2
----
-71
5201

skipif mysql # not compatible
query II rowsort label-1224
SELECT ALL - 71 AS col2, - MAX ( 74 ) * COALESCE ( + - 70, + + ( - 28 ) / - 76, + 45, 2 * - 73 ) - - COUNT ( * ) * + 21 AS col2
----
-71
5201

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

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

query II rowsort
SELECT ALL - 2 AS col0, 88 AS col0
----
-2
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1227
SELECT ALL - 61 AS col0, + 31 + - + 1 * + COUNT( * ) * - COUNT( * ) + - - 82 - - COUNT( * ) * + CASE 68 + 14 WHEN 94 THEN COUNT( * ) + + SUM( + 3 ) END AS col1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-1227
SELECT ALL - 61 AS col0, + 31 + - + 1 * + COUNT ( * ) * - COUNT ( * ) + - - 82 - - COUNT ( * ) * + CASE 68 + 14 WHEN 94 THEN COUNT ( * ) + + SUM ( + 3 ) END AS col1
----
-61
NULL

query II rowsort
SELECT ALL - 57 + + 39 * - 2 * 95, 64 col1
----
-7467
64

query II rowsort
SELECT + + 7 AS col0, - 57 * + 34 AS col2
----
7
-1938

query I rowsort
SELECT 50 + + COALESCE ( - - 61, + 99, - 93 )
----
111

query I rowsort
SELECT - 81 * 16
----
-1296

query II rowsort
SELECT ALL - 40, + 19 AS col1
----
-40
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT + COALESCE ( + SUM( ALL - 15 ), - 53, + COUNT( * ), - 2 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1233
SELECT + COALESCE ( + SUM ( ALL - 15 ), - 53, + COUNT ( * ), - 2 ) AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1234
SELECT + ( + + 49 ) * - COUNT( * ) + + 54 DIV + - 7 - + SUM( - 32 )
----
-24

skipif mysql # not compatible
query I rowsort label-1234
SELECT + ( + + 49 ) * - COUNT ( * ) + + 54 / + - 7 - + SUM ( - 32 )
----
-24

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

query I rowsort
SELECT 60 + 24
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT DISTINCT 86 + - 7 + - - COUNT( * ) + - 48 col2
----
32

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT 86 + - 7 + - - COUNT ( * ) + - 48 col2
----
32

query II rowsort
SELECT - 56, 88 col2
----
-56
88

query I rowsort
SELECT 71 * - 50 AS col0
----
-3550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1240
SELECT ALL 62 + COALESCE ( 28, + + COUNT( * ) * - 78 DIV + 73, + 72 + 6 ) + - COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL 62 + COALESCE ( 28, + + COUNT ( * ) * - 78 / + 73, + 72 + 6 ) + - COUNT ( * ) AS col2
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT MIN( ALL - 18 ) * - + 1 + - MAX( + ( - 53 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-1242
SELECT MIN ( ALL - 18 ) * - + 1 + - MAX ( + ( - 53 ) ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL + 21 - - 58 + + 8 * + 59 + + + COUNT( + 15 )
----
552

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL + 21 - - 58 + + 8 * + 59 + + + COUNT ( + 15 )
----
552

query I rowsort
SELECT 83 + - 38 AS col0
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT ALL COALESCE ( + ( + 37 ), COUNT( * ) ) * + 78
----
2886

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL COALESCE ( + ( + 37 ), COUNT ( * ) ) * + 78
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT MAX( DISTINCT 36 ) + + 10 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1247
SELECT MAX ( DISTINCT 36 ) + + 10 AS col1
----
46

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

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

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

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

query I rowsort
SELECT DISTINCT + 50 * 73 * ( 41 )
----
149650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1251
SELECT 18 + COUNT( * ) - CASE + 97 WHEN + + COUNT( * ) + 18 / - 37 THEN - 70 * + 40 WHEN - 33 + + ( 10 + + 39 / 31 ) THEN NULL WHEN 74 * 51 THEN + CAST( NULL AS SIGNED ) ELSE - NULLIF ( COUNT( * ), 71 ) END + 73 * - 36 AS col2
----
-2608

skipif mysql # not compatible
query I rowsort label-1251
SELECT 18 + COUNT ( * ) - CASE + 97 WHEN + + COUNT ( * ) + 18 / - 37 THEN - 70 * + 40 WHEN - 33 + + ( 10 + + 39 / 31 ) THEN NULL WHEN 74 * 51 THEN + CAST ( NULL AS INTEGER ) ELSE - NULLIF ( COUNT ( * ), 71 ) END + 73 * - 36 AS col2
----
-2608

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT ALL + COUNT( * ) * - 93 * + 75 AS col0
----
-6975

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL + COUNT ( * ) * - 93 * + 75 AS col0
----
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT COUNT( * ) + + 13 + - + 63 * - + 76 + - + ( - + 16 ) AS col2
----
4818

skipif mysql # not compatible
query I rowsort label-1253
SELECT COUNT ( * ) + + 13 + - + 63 * - + 76 + - + ( - + 16 ) AS col2
----
4818

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT 37 + - + 3 * - - COUNT( * ) - + 2
----
32

skipif mysql # not compatible
query I rowsort label-1254
SELECT 37 + - + 3 * - - COUNT ( * ) - + 2
----
32

query I rowsort
SELECT - 53 * 96 * - 71 * + - 9
----
-3251232

query I rowsort
SELECT - 18 * - ( - - 83 ) * - + 57 * 44 + + 76 * - 27
----
-3749004

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT + CASE - COUNT( * ) WHEN - COUNT( * ) - - 69 THEN NULL WHEN + COUNT( * ) * - 7 THEN - COUNT( * ) WHEN COUNT( * ) + + COUNT( + 92 ) * NULLIF ( + ( - 23 ), - 54 ) THEN NULL ELSE - 77 * - 37 END
----
2849

skipif mysql # not compatible
query I rowsort label-1257
SELECT + CASE - COUNT ( * ) WHEN - COUNT ( * ) - - 69 THEN NULL WHEN + COUNT ( * ) * - 7 THEN - COUNT ( * ) WHEN COUNT ( * ) + + COUNT ( + 92 ) * NULLIF ( + ( - 23 ), - 54 ) THEN NULL ELSE - 77 * - 37 END
----
2849

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1258
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( 92 ) col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT ALL 86 + + + COUNT( * ) + 33 * + 29
----
1044

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL 86 + + + COUNT ( * ) + 33 * + 29
----
1044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1261
SELECT MIN( ALL 65 ) * 63 - + - CAST( - 36 AS SIGNED )
----
4059

skipif mysql # not compatible
query I rowsort label-1261
SELECT MIN ( ALL 65 ) * 63 - + - CAST ( - 36 AS INTEGER )
----
4059

query I rowsort
SELECT ALL + 95 + + - 5
----
90

query I rowsort
SELECT + 92 * 12 * - 76 AS col1
----
-83904

onlyif mysql # aggregate syntax: 
query II rowsort label-1264
SELECT - ( - 53 ) AS col0, 11 + + COUNT( * ) AS col2
----
53
12

skipif mysql # not compatible
query II rowsort label-1264
SELECT - ( - 53 ) AS col0, 11 + + COUNT ( * ) AS col2
----
53
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT ALL NULLIF ( 54, - 80 + 96 ) DIV + ( + - COUNT( * ) ) + + 97
----
43

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL NULLIF ( 54, - 80 + 96 ) / + ( + - COUNT ( * ) ) + + 97
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL + 45 + + + CASE 84 WHEN - 13 THEN 71 * + CASE 85 WHEN - 49 THEN - CASE + 32 WHEN - SUM( DISTINCT - 68 ) * - 57 THEN NULL WHEN 8 + 0 THEN + 45 ELSE NULL END END * - 9 WHEN 71 + 0 / + SUM( ALL + 13 - 75 ) THEN NULL WHEN 23 THEN NULL ELSE + 77 END AS col0
----
122

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL + 45 + + + CASE 84 WHEN - 13 THEN 71 * + CASE 85 WHEN - 49 THEN - CASE + 32 WHEN - SUM ( DISTINCT - 68 ) * - 57 THEN NULL WHEN 8 + 0 THEN + 45 ELSE NULL END END * - 9 WHEN 71 + 0 / + SUM ( ALL + 13 - 75 ) THEN NULL WHEN 23 THEN NULL ELSE + 77 END AS col0
----
122

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1267
SELECT ( + + 87 ) - + - 6, 44 + + 75 + + CAST( NULL AS DECIMAL ) AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-1267
SELECT ( + + 87 ) - + - 6, 44 + + 75 + + CAST ( NULL AS REAL ) AS col1
----
93
NULL

query I rowsort
SELECT DISTINCT - 3 col2
----
-3

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

skipif mysql # not compatible
query I rowsort label-1269
SELECT + ( + NULLIF ( ( - 6 ), - NULLIF ( + ( + ( COUNT ( * ) ) ), - 14 ) ) )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1270
SELECT ALL - - MIN( CAST( + + 0 AS SIGNED ) ) col0, 48 AS col2
----
0
48

skipif mysql # not compatible
query II rowsort label-1270
SELECT ALL - - MIN ( CAST ( + + 0 AS INTEGER ) ) col0, 48 AS col2
----
0
48

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1272
SELECT ALL CAST( NULL AS DECIMAL ) + - + 52 + + NULLIF ( + + 16, + 63 ) + + 69 + + - MIN( ALL - 85 ) * 83 * COUNT( * ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL CAST ( NULL AS REAL ) + - + 52 + + NULLIF ( + + 16, + 63 ) + + 69 + + - MIN ( ALL - 85 ) * 83 * COUNT ( * ) * 16
----
NULL

query I rowsort
SELECT + 38 + + - 57 col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1274
SELECT ALL 26, 79 * + COUNT( * ) AS col2
----
26
79

skipif mysql # not compatible
query II rowsort label-1274
SELECT ALL 26, 79 * + COUNT ( * ) AS col2
----
26
79

query I rowsort
SELECT - 61 + - - 40 + + - 53 AS col0
----
-74

query I rowsort
SELECT ALL + 35 * - 8 AS col2
----
-280

query I rowsort
SELECT + ( 15 ) * - 2 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1278
SELECT 27 AS col1, + NULLIF ( + CAST( + - 85 AS SIGNED ), + NULLIF ( - 64, + + 31 ) ) AS col2
----
27
-85

skipif mysql # not compatible
query II rowsort label-1278
SELECT 27 AS col1, + NULLIF ( + CAST ( + - 85 AS INTEGER ), + NULLIF ( - 64, + + 31 ) ) AS col2
----
27
-85

query II rowsort
SELECT - 35 AS col2, 75 AS col1
----
-35
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT SUM( ALL + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT SUM ( ALL + 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1281
SELECT ALL MAX( - + 3 ) * + + 89 + + 96, ( - 36 ) DIV NULLIF ( 82, 88 + 15 ) + - 64 * ( 69 * - 25 + 25 ) AS col1
----
-171
108800

skipif mysql # not compatible
query II rowsort label-1281
SELECT ALL MAX ( - + 3 ) * + + 89 + + 96, ( - 36 ) / NULLIF ( 82, 88 + 15 ) + - 64 * ( 69 * - 25 + 25 ) AS col1
----
-171
108800

onlyif mysql # aggregate syntax: 
query II rowsort label-1282
SELECT ALL COUNT( * ), - 92 * + 27 * COUNT( * ) AS col2
----
1
-2484

skipif mysql # not compatible
query II rowsort label-1282
SELECT ALL COUNT ( * ), - 92 * + 27 * COUNT ( * ) AS col2
----
1
-2484

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

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

query I rowsort
SELECT - 54 * 70 * + - COALESCE ( - - ( - 4 ), + - ( 86 ) ) * + 71
----
-1073520

query I rowsort
SELECT - 66 + - 27 + + + 10 * - 39 AS col2
----
-483

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT - 18 DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1286
SELECT - 18 / 74 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1287
SELECT + 24 * CASE - 29 WHEN + NULLIF ( - + 74, - 91 * + + 20 + + 4 - + 2 / 83 ) THEN + 58 * ( NULLIF ( - COALESCE ( 60, ( + COALESCE ( + 44, 43, - 40 * + COUNT( * ) ) ) * + CAST( NULL AS SIGNED ) ), 69 + CASE + 72 WHEN ( + 65 ) THEN NULL WHEN 84 / 29 + - 30 * SUM( 31 ) THEN + ( NULLIF ( 47, ( 58 ) ) ) + + 91 END * + CAST( COUNT( * ) * 40 AS SIGNED ) ) * - COUNT( * ) ) + 52 WHEN - SUM( - 6 ) * + 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1287
SELECT + 24 * CASE - 29 WHEN + NULLIF ( - + 74, - 91 * + + 20 + + 4 - + 2 / 83 ) THEN + 58 * ( NULLIF ( - COALESCE ( 60, ( + COALESCE ( + 44, 43, - 40 * + COUNT ( * ) ) ) * + CAST ( NULL AS INTEGER ) ), 69 + CASE + 72 WHEN ( + 65 ) THEN NULL WHEN 84 / 29 + - 30 * SUM ( 31 ) THEN + ( NULLIF ( 47, ( 58 ) ) ) + + 91 END * + CAST ( COUNT ( * ) * 40 AS INTEGER ) ) * - COUNT ( * ) ) + 52 WHEN - SUM ( - 6 ) * + 13 THEN NULL END
----
NULL

query I rowsort
SELECT - 60 - + + 29 * - 48
----
1332

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL - 81 * + SUM( + 43 )
----
-3483

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL - 81 * + SUM ( + 43 )
----
-3483

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

query II rowsort
SELECT DISTINCT - - 68 * + 95 + - - 37 col0, 41 AS col1
----
6497
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT + 86 * 84 - COUNT( * ) + COUNT( * ) AS col0
----
7224

skipif mysql # not compatible
query I rowsort label-1292
SELECT + 86 * 84 - COUNT ( * ) + COUNT ( * ) AS col0
----
7224

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

query I rowsort
SELECT - - NULLIF ( - 72, 66 + COALESCE ( + 22, + 57 ) ) + - 49 AS col1
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT - COUNT( - 22 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1295
SELECT - COUNT ( - 22 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL - 63 * + 0 + + 52 + COUNT( * ) col1
----
53

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - 63 * + 0 + + 52 + COUNT ( * ) col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1297
SELECT 69 * + 84 + + COALESCE ( + 8, ( + + 67 ) + - 45 DIV + 63 ) * + NULLIF ( 24 - 55, + 56 DIV - MAX( DISTINCT + CAST( 71 AS SIGNED ) ) + - ( 16 ) ) AS col1
----
5548

skipif mysql # not compatible
query I rowsort label-1297
SELECT 69 * + 84 + + COALESCE ( + 8, ( + + 67 ) + - 45 / + 63 ) * + NULLIF ( 24 - 55, + 56 / - MAX ( DISTINCT + CAST ( 71 AS INTEGER ) ) + - ( 16 ) ) AS col1
----
5548

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT - CASE - 46 WHEN - COUNT( * ) THEN NULL WHEN - MAX( - 48 ) THEN NULL ELSE + 91 END AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-1298
SELECT - CASE - 46 WHEN - COUNT ( * ) THEN NULL WHEN - MAX ( - 48 ) THEN NULL ELSE + 91 END AS col2
----
-91

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

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

query I rowsort
SELECT ALL + + 82 col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1302
SELECT ALL 23 * + CAST( NULL AS SIGNED ) - + + 82 / COUNT( * ) - + - ( CASE + 48 WHEN - 35 + + 85 THEN CAST( + 6 AS SIGNED ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL 23 * + CAST ( NULL AS INTEGER ) - + + 82 / COUNT ( * ) - + - ( CASE + 48 WHEN - 35 + + 85 THEN CAST ( + 6 AS INTEGER ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT DISTINCT 73 * - COUNT( * ) * 84 * - 54 - 61 + + - 2 + - - 8
----
331073

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT 73 * - COUNT ( * ) * 84 * - 54 - 61 + + - 2 + - - 8
----
331073

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT + SUM( ALL 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1304
SELECT + SUM ( ALL 52 ) AS col0
----
52

query I rowsort
SELECT CASE + 37 WHEN 44 THEN NULL ELSE + 38 + - 75 END col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1306
SELECT 40 * + SUM( ALL 46 ) + - - CAST( + 99 AS SIGNED )
----
1939

skipif mysql # not compatible
query I rowsort label-1306
SELECT 40 * + SUM ( ALL 46 ) + - - CAST ( + 99 AS INTEGER )
----
1939

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + 32 * - 70 * + MIN( ALL 40 )
----
-89600

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 32 * - 70 * + MIN ( ALL 40 )
----
-89600

query I rowsort
SELECT + 38 * 59 * - 58 AS col0
----
-130036

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT + ( - 33 ) * + 50 / - ( + - 20 ) / 69 / CASE + 99 WHEN + 77 THEN - 44 WHEN - ( + 81 ) THEN - 77 END * + CASE 28 WHEN - 72 THEN 34 * COUNT( 52 ) - - 72 * - 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT + ( - 33 ) * + 50 / - ( + - 20 ) / 69 / CASE + 99 WHEN + 77 THEN - 44 WHEN - ( + 81 ) THEN - 77 END * + CASE 28 WHEN - 72 THEN 34 * COUNT ( 52 ) - - 72 * - 32 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL 14 * - 23 * COUNT( * ) col2
----
-322

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL 14 * - 23 * COUNT ( * ) col2
----
-322

onlyif mysql # DIV for integer division: 
query II rowsort label-1311
SELECT + 2 * - 99 AS col1, - 14 DIV - 21 AS col1
----
-198
0

skipif mysql # not compatible
query II rowsort label-1311
SELECT + 2 * - 99 AS col1, - 14 / - 21 AS col1
----
-198
0

query I rowsort
SELECT + 78 * + 3 AS col0
----
234

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

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

query I rowsort
SELECT + 42 * + ( + 91 ) AS col2
----
3822

query I rowsort
SELECT - 48 + 36
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1316
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT ALL + 32 + + + COALESCE ( - COUNT( * ), + ( 79 ) + + - 49 )
----
31

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL + 32 + + + COALESCE ( - COUNT ( * ), + ( 79 ) + + - 49 )
----
31

query I rowsort
SELECT + 36 + + 27 * + - 42
----
-1098

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT + 12 + + MIN( - + 83 ) + - - 81 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1320
SELECT + 12 + + MIN ( - + 83 ) + - - 81 AS col1
----
10

query I rowsort
SELECT DISTINCT + 52 + - 96
----
-44

query I rowsort
SELECT ALL + 94 + - - 11 - + 46 AS col0
----
59

query I rowsort
SELECT ALL - 19 + - 38 col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1324
SELECT DISTINCT 13 DIV + COUNT( * ) + 74 DIV + - 25 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT 13 / + COUNT ( * ) + 74 / + - 25 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1325
SELECT DISTINCT - ( - CAST( + 98 AS SIGNED ) ) DIV - + ( 92 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT - ( - CAST ( + 98 AS INTEGER ) ) / - + ( 92 ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1326
SELECT ALL - + 84 DIV - COUNT( * ) + + - 98
----
-14

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - + 84 / - COUNT ( * ) + + - 98
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1327
SELECT - CAST( - COUNT( * ) AS SIGNED ) / AVG ( ALL - CASE - + 77 WHEN 18 THEN - + 63 * CAST( NULL AS SIGNED ) - - + 46 WHEN + 9 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) / AVG ( ALL - CASE - + 77 WHEN 18 THEN - + 63 * CAST ( NULL AS INTEGER ) - - + 46 WHEN + 9 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1328
SELECT ALL - 87 * - - 57 + 98 + - 69 * + SUM( ALL + + CAST( NULL AS SIGNED ) ) * + 74 * + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL - 87 * - - 57 + 98 + - 69 * + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) * + 74 * + 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT DISTINCT - MAX( - + NULLIF ( - 63, 10 ) ) * 16 * + - 82 * - 1
----
-82656

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT - MAX ( - + NULLIF ( - 63, 10 ) ) * 16 * + - 82 * - 1
----
-82656

query I rowsort
SELECT ALL - + 71 - - + 61
----
-10

query II rowsort
SELECT + - CASE + 56 WHEN + 38 THEN NULL ELSE + - COALESCE ( 83, - 27 + + 0 ) END, 47 AS col2
----
83
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT DISTINCT - 85 - COUNT( ALL - - 56 )
----
-86

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT - 85 - COUNT ( ALL - - 56 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT COALESCE ( - 81, + 30 + + 68 ) - + - 65 * - ( - - CASE - 75 WHEN - + COUNT( * ) / + 55 THEN 76 * 68 WHEN - 35 THEN 49 END ) / 45 + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT COALESCE ( - 81, + 30 + + 68 ) - + - 65 * - ( - - CASE - 75 WHEN - + COUNT ( * ) / + 55 THEN 76 * 68 WHEN - 35 THEN 49 END ) / 45 + 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT - MIN( ALL + + 34 ) * + ( - 55 ) * - NULLIF ( - - 49, 98 * - 13 ) col1
----
-91630

skipif mysql # not compatible
query I rowsort label-1334
SELECT - MIN ( ALL + + 34 ) * + ( - 55 ) * - NULLIF ( - - 49, 98 * - 13 ) col1
----
-91630

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT 40 * + 91 + + 28 - + COUNT( * ) * + 9
----
3659

skipif mysql # not compatible
query I rowsort label-1335
SELECT 40 * + 91 + + 28 - + COUNT ( * ) * + 9
----
3659

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT COUNT( + 3 ) - + 61
----
-60

skipif mysql # not compatible
query I rowsort label-1337
SELECT COUNT ( + 3 ) - + 61
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1338
SELECT 52 AS col2, + ( CAST( - 84 AS SIGNED ) ) AS col0
----
52
-84

skipif mysql # not compatible
query II rowsort label-1338
SELECT 52 AS col2, + ( CAST ( - 84 AS INTEGER ) ) AS col0
----
52
-84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT ALL SUM( - 50 ) * 63
----
-3150

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL SUM ( - 50 ) * 63
----
-3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1341
SELECT + 80 * + - 62 + + COUNT( * ), - NULLIF ( + 1, - 49 ) + 31 DIV - 59 AS col2
----
-4959
-1

skipif mysql # not compatible
query II rowsort label-1341
SELECT + 80 * + - 62 + + COUNT ( * ), - NULLIF ( + 1, - 49 ) + 31 / - 59 AS col2
----
-4959
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT ( AVG ( 0 ) ) + CAST( NULL AS SIGNED ) * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT ( AVG ( 0 ) ) + CAST ( NULL AS INTEGER ) * 54
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1344
SELECT 2 DIV + 19
----
0

skipif mysql # not compatible
query I rowsort label-1344
SELECT 2 / + 19
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1345
SELECT 0 * 39 * + CAST( - 12 AS SIGNED ) + + 7
----
7

skipif mysql # not compatible
query I rowsort label-1345
SELECT 0 * 39 * + CAST ( - 12 AS INTEGER ) + + 7
----
7

query I rowsort
SELECT 47 * + COALESCE ( + 74, - - 0 )
----
3478

query I rowsort
SELECT ALL 30 + + 92
----
122

query I rowsort
SELECT ALL + 73 * 99 AS col2
----
7227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1349
SELECT DISTINCT 59 + + + 80 + CAST( NULL AS SIGNED ) / + ( - 58 ) AS col1, - 56 - - + 33 * 13, - - 56 * 89 AS col0
----
NULL
373
4984

skipif mysql # not compatible
query III rowsort label-1349
SELECT DISTINCT 59 + + + 80 + CAST ( NULL AS INTEGER ) / + ( - 58 ) AS col1, - 56 - - + 33 * 13, - - 56 * 89 AS col0
----
NULL
373
4984

query I rowsort
SELECT 30 + - NULLIF ( - - 38, 49 * - 62 * 77 + + + 72 ) * 57 AS col0
----
-2136

query I rowsort
SELECT 37 * - 89
----
-3293

query II rowsort
SELECT ALL 94 + - - ( + - 96 ) AS col0, 97 + - - 14
----
-2
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1353
SELECT ALL CASE - 30 WHEN + ( + CAST( NULL AS SIGNED ) ) * 98 / + 28 * - 7 + - + CASE + 80 WHEN + 4 THEN NULL WHEN + COALESCE ( - 94, COALESCE ( 53, 72 + - 84 * - ( - 71 ), ( 33 ) ), - ( - 43 ) ) * + 56 THEN + CASE 81 WHEN - COUNT( * ) THEN NULL ELSE + 52 END END THEN NULL WHEN - 74 THEN 81 - 24 WHEN - 76 THEN NULL END + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL CASE - 30 WHEN + ( + CAST ( NULL AS INTEGER ) ) * 98 / + 28 * - 7 + - + CASE + 80 WHEN + 4 THEN NULL WHEN + COALESCE ( - 94, COALESCE ( 53, 72 + - 84 * - ( - 71 ), ( 33 ) ), - ( - 43 ) ) * + 56 THEN + CASE 81 WHEN - COUNT ( * ) THEN NULL ELSE + 52 END END THEN NULL WHEN - 74 THEN 81 - 24 WHEN - 76 THEN NULL END + - 1
----
NULL

query II rowsort
SELECT 84 AS col2, 0 col0
----
84
0

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

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

query I rowsort
SELECT 25 * + 98 AS col2
----
2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1357
SELECT - CASE + - COUNT( DISTINCT - 3 ) WHEN - 55 THEN + COUNT( * ) WHEN - - 35 THEN - 20 * - 49 + + CAST( NULL AS SIGNED ) - - CASE - 79 WHEN 13 / 5 THEN NULL WHEN - COUNT( * ) / + COUNT( * ) + + 2 * - 87 THEN 56 + CASE + 33 WHEN + 94 / - 63 THEN ( - 29 ) + - 83 * + 33 ELSE - 22 END END - - 64 ELSE - NULLIF ( 42, - 23 ) END AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1357
SELECT - CASE + - COUNT ( DISTINCT - 3 ) WHEN - 55 THEN + COUNT ( * ) WHEN - - 35 THEN - 20 * - 49 + + CAST ( NULL AS INTEGER ) - - CASE - 79 WHEN 13 / 5 THEN NULL WHEN - COUNT ( * ) / + COUNT ( * ) + + 2 * - 87 THEN 56 + CASE + 33 WHEN + 94 / - 63 THEN ( - 29 ) + - 83 * + 33 ELSE - 22 END END - - 64 ELSE - NULLIF ( 42, - 23 ) END AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT DISTINCT - COALESCE ( 84, + 46 * + 98, - 25 - - + ( - 55 ) DIV - 14 ) * 22 + 93 DIV - 12
----
-1855

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT - COALESCE ( 84, + 46 * + 98, - 25 - - + ( - 55 ) / - 14 ) * 22 + 93 / - 12
----
-1855

query I rowsort
SELECT ALL 61 + - + 56 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT MIN( ALL 93 )
----
93

skipif mysql # not compatible
query I rowsort label-1360
SELECT MIN ( ALL 93 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1361
SELECT ALL + NULLIF ( - + ( + + 38 ), - - 8 ) + COUNT( * ) - + + COUNT( * ) + 56 DIV + ( - 97 )
----
-38

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL + NULLIF ( - + ( + + 38 ), - - 8 ) + COUNT ( * ) - + + COUNT ( * ) + 56 / + ( - 97 )
----
-38

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

query I rowsort
SELECT ALL - 96 * - 76 * + + 24
----
175104

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT DISTINCT COUNT( * ) * + + 47 - - COALESCE ( - COALESCE ( + 69, 95 * 91 + - - 53 + 4 ), - COALESCE ( 2, - SUM( - 67 ) ) + MIN( DISTINCT 50 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT COUNT ( * ) * + + 47 - - COALESCE ( - COALESCE ( + 69, 95 * 91 + - - 53 + 4 ), - COALESCE ( 2, - SUM ( - 67 ) ) + MIN ( DISTINCT 50 ) ) AS col0
----
-22

query I rowsort
SELECT ALL ( - - 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1366
SELECT + COUNT( * ) DIV - + 32 + - + 49 col2
----
-49

skipif mysql # not compatible
query I rowsort label-1366
SELECT + COUNT ( * ) / - + 32 + - + 49 col2
----
-49

query I rowsort
SELECT ALL - 47 * 76 AS col1
----
-3572

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

query II rowsort
SELECT + 47, 38 * 81 col0
----
47
3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1370
SELECT DISTINCT + 14 - - 49 DIV - SUM( DISTINCT 13 )
----
11

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT + 14 - - 49 / - SUM ( DISTINCT 13 )
----
11

query I rowsort
SELECT + 47 * - 29 - + + 76 AS col2
----
-1439

query I rowsort
SELECT 22 + + 46 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1373
SELECT - 3 AS col1, COUNT( * ) DIV - + COUNT( * )
----
-3
-1

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

query I rowsort
SELECT 12 * 59 AS col0
----
708

query I rowsort
SELECT ALL + 31 * - 85
----
-2635

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

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

query II rowsort
SELECT DISTINCT - 25 AS col2, - 36
----
-25
-36

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

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT 32 / - 20
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1379
SELECT ALL - ( ( - MAX( DISTINCT + - CAST( + 54 AS SIGNED ) ) ) ) * + + 12 AS col1, 45 + + 84 + 25 + - 67 - - 27
----
-648
114

skipif mysql # not compatible
query II rowsort label-1379
SELECT ALL - ( ( - MAX ( DISTINCT + - CAST ( + 54 AS INTEGER ) ) ) ) * + + 12 AS col1, 45 + + 84 + 25 + - 67 - - 27
----
-648
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT 2 * - MIN( DISTINCT + 73 ) AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-1380
SELECT 2 * - MIN ( DISTINCT + 73 ) AS col2
----
-146

query I rowsort
SELECT DISTINCT ( - 90 ) + - 30 AS col1
----
-120

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1383
SELECT ALL - COUNT( * ) * - ( - CASE - 65 WHEN - COUNT( + 76 ) * - - 69 + + - 50 THEN - 39 * - - 89 + + + 64 + - CAST( NULL AS SIGNED ) * 76 / - 93 WHEN + 45 * - 38 THEN CASE + 44 WHEN + COUNT( + ( 24 ) ) THEN NULL WHEN + 49 THEN 28 - - 31 END END ) / 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL - COUNT ( * ) * - ( - CASE - 65 WHEN - COUNT ( + 76 ) * - - 69 + + - 50 THEN - 39 * - - 89 + + + 64 + - CAST ( NULL AS INTEGER ) * 76 / - 93 WHEN + 45 * - 38 THEN CASE + 44 WHEN + COUNT ( + ( 24 ) ) THEN NULL WHEN + 49 THEN 28 - - 31 END END ) / 31 AS col1
----
NULL

query I rowsort
SELECT 92 + + - 50 * - ( - ( + 60 ) )
----
-2908

query II rowsort
SELECT + 86 AS col0, - 45 col0
----
86
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT COUNT( * ) + + NULLIF ( MAX( ALL - ( ( + 74 ) ) ), 70 / + 32 * + + 29 * - 84 * 80 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1386
SELECT COUNT ( * ) + + NULLIF ( MAX ( ALL - ( ( + 74 ) ) ), 70 / + 32 * + + 29 * - 84 * 80 ) AS col1
----
-73

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT + COUNT ( * ) + - 37 + - 4 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL - 77 + - MIN( ALL + 34 )
----
-111

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL - 77 + - MIN ( ALL + 34 )
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT DISTINCT + MIN( + 58 ) + 58 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT + MIN ( + 58 ) + 58 AS col1
----
116

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

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

query I rowsort
SELECT ALL 83 * + 49
----
4067

query I rowsort
SELECT 37 + 0 - - - 78 * - CASE CASE - - 81 WHEN ( + 5 ) THEN + - ( - + 24 ) + 47 * 96 ELSE NULL END WHEN 5 THEN 35 + + 54 ELSE NULL END + - 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ALL - COUNT( * ) + CASE - 20 WHEN 58 THEN - 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL - COUNT ( * ) + CASE - 20 WHEN 58 THEN - 87 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1394
SELECT ALL 77 + - + ( 93 ) + - + NULLIF ( - CASE WHEN NULL > - 98 THEN + - 44 - - - 43 + 14 ELSE NULL END, + + COUNT( * ) + ( - CAST( NULL AS DECIMAL ) ) ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL 77 + - + ( 93 ) + - + NULLIF ( - CASE WHEN NULL > - 98 THEN + - 44 - - - 43 + 14 ELSE NULL END, + + COUNT ( * ) + ( - CAST ( NULL AS REAL ) ) ) + + 48
----
NULL

query I rowsort
SELECT 20 - 56 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ALL + NULLIF ( - 3, + 48 / 64 ) * - - COUNT( * ) * + 41
----
-123

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + NULLIF ( - 3, + 48 / 64 ) * - - COUNT ( * ) * + 41
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-1397
SELECT 44, 88 + - COUNT( DISTINCT 17 ) AS col1
----
44
87

skipif mysql # not compatible
query II rowsort label-1397
SELECT 44, 88 + - COUNT ( DISTINCT 17 ) AS col1
----
44
87

query I rowsort
SELECT + 62 + NULLIF ( - - 38, - 50 + + + 74 ) * + + 30 AS col2
----
1202

onlyif mysql # DIV for integer division: 
query II rowsort label-1399
SELECT - 68 AS col2, + COALESCE ( 25, - - COALESCE ( + - 15, 30 + 42 + - + 55 ) ) DIV + - 42
----
-68
0

skipif mysql # not compatible
query II rowsort label-1399
SELECT - 68 AS col2, + COALESCE ( 25, - - COALESCE ( + - 15, 30 + 42 + - + 55 ) ) / + - 42
----
-68
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT ALL + COUNT( * ) - + 90, + MIN( DISTINCT - 16 ) + 2 col2
----
-89
-14

skipif mysql # not compatible
query II rowsort label-1400
SELECT ALL + COUNT ( * ) - + 90, + MIN ( DISTINCT - 16 ) + 2 col2
----
-89
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + 20 * MIN( DISTINCT 93 ) * ( 5 ) AS col0
----
9300

skipif mysql # not compatible
query I rowsort label-1401
SELECT + 20 * MIN ( DISTINCT 93 ) * ( 5 ) AS col0
----
9300

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

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

query II rowsort
SELECT ALL - - 5 * + ( + ( + - 34 ) ) AS col2, 84 AS col1
----
-170
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1404
SELECT ALL - CAST( - 85 AS SIGNED ) col0
----
85

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL - CAST ( - 85 AS INTEGER ) col0
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT DISTINCT + 18 - - CASE - 99 WHEN 16 THEN - + COUNT( DISTINCT + - ( - 20 ) ) WHEN + - COUNT( * ) - 13 * - 43 + - - 21 * 80 THEN 96 * - 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT + 18 - - CASE - 99 WHEN 16 THEN - + COUNT ( DISTINCT + - ( - 20 ) ) WHEN + - COUNT ( * ) - 13 * - 43 + - - 21 * 80 THEN 96 * - 70 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT DISTINCT + NULLIF ( - 9, - + CAST( + 9 AS SIGNED ) * - 65 - 12 + + + 71 + + - 95 )
----
-9

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT + NULLIF ( - 9, - + CAST ( + 9 AS INTEGER ) * - 65 - 12 + + + 71 + + - 95 )
----
-9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1409
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, ( + 68 ) * - 86
----
NULL
-5848

skipif mysql # not compatible
query II rowsort label-1409
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, ( + 68 ) * - 86
----
NULL
-5848

query II rowsort
SELECT DISTINCT + - 71 AS col2, - 59 col0
----
-71
-59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT + 25 * - SUM( - + 91 ) + + 89 * COUNT( * ) + + 80
----
2444

skipif mysql # not compatible
query I rowsort label-1412
SELECT + 25 * - SUM ( - + 91 ) + + 89 * COUNT ( * ) + + 80
----
2444

query I rowsort
SELECT DISTINCT 93 * + 72 * - + 15
----
-100440

query II rowsort
SELECT ALL + 55 AS col0, - 48 + + 60
----
55
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL + 85 * + MAX( + 51 )
----
4335

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL + 85 * + MAX ( + 51 )
----
4335

query I rowsort
SELECT + CASE + NULLIF ( NULLIF ( + - ( + + 21 ), + 97 ), - 81 ) WHEN + 46 THEN NULL ELSE - 30 * 80 * + - 48 END AS col1
----
115200

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL COUNT( * ) * - + 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL COUNT ( * ) * - + 15 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1418
SELECT + 3 * COUNT( + 47 ) * CAST( NULL AS SIGNED ) * + 93 - + - MIN( - 14 ) + - COUNT( * ) + - 1 + 75 * 14 * + 67 + 17 * - 19 * - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT + 3 * COUNT ( + 47 ) * CAST ( NULL AS INTEGER ) * + 93 - + - MIN ( - 14 ) + - COUNT ( * ) + - 1 + 75 * 14 * + 67 + 17 * - 19 * - 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1419
SELECT ALL COUNT( * ) * - 37 + + + 8 + MAX( - 72 ) AS col0, - ( - 93 )
----
-101
93

skipif mysql # not compatible
query II rowsort label-1419
SELECT ALL COUNT ( * ) * - 37 + + + 8 + MAX ( - 72 ) AS col0, - ( - 93 )
----
-101
93

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

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

query I rowsort
SELECT - 38 * NULLIF ( CASE - 10 WHEN + - 23 THEN 39 * - + 0 + - + 39 END, - AVG ( + 96 ) )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1424
SELECT + CAST( + 49 AS SIGNED ) DIV + + CASE - 12 WHEN - COALESCE ( + 16, - ( - + 38 ) - COUNT( * ) ) * + 91 DIV - 63 THEN NULL ELSE 58 * 11 END
----
0

skipif mysql # not compatible
query I rowsort label-1424
SELECT + CAST ( + 49 AS INTEGER ) / + + CASE - 12 WHEN - COALESCE ( + 16, - ( - + 38 ) - COUNT ( * ) ) * + 91 / - 63 THEN NULL ELSE 58 * 11 END
----
0

query II rowsort
SELECT NULLIF ( - 25, 16 ) col0, - 7 AS col0
----
-25
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT 36 * + 7 + - + MIN( - 79 )
----
331

skipif mysql # not compatible
query I rowsort label-1426
SELECT 36 * + 7 + - + MIN ( - 79 )
----
331

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT ALL - COUNT( * ) * - + 24 * - 91 * - 33 + COUNT( - - 68 )
----
72073

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL - COUNT ( * ) * - + 24 * - 91 * - 33 + COUNT ( - - 68 )
----
72073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1428
SELECT COALESCE ( - + CAST( NULLIF ( - + COUNT( * ), + 41 * + 91 + + 25 ) AS SIGNED ), - 98 + 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1428
SELECT COALESCE ( - + CAST ( NULLIF ( - + COUNT ( * ), + 41 * + 91 + + 25 ) AS INTEGER ), - 98 + 50 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1429
SELECT 46 * + + COUNT( * ) - - - 24 DIV 10
----
44

skipif mysql # not compatible
query I rowsort label-1429
SELECT 46 * + + COUNT ( * ) - - - 24 / 10
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1430
SELECT - 13 * COUNT( * ) / + + CAST( CASE - 87 WHEN - AVG ( + 48 ) THEN + 33 WHEN + 81 THEN 79 + 55 + 86 * + 51 * + 70 WHEN + 44 THEN + 17 - + 3 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1430
SELECT - 13 * COUNT ( * ) / + + CAST ( CASE - 87 WHEN - AVG ( + 48 ) THEN + 33 WHEN + 81 THEN 79 + 55 + 86 * + 51 * + 70 WHEN + 44 THEN + 17 - + 3 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1431
SELECT DISTINCT - 11 * MIN( DISTINCT - 21 ) + + 15 * + 88 AS col1, - 39 - - ( - 43 ) col1
----
1551
-82

skipif mysql # not compatible
query II rowsort label-1431
SELECT DISTINCT - 11 * MIN ( DISTINCT - 21 ) + + 15 * + 88 AS col1, - 39 - - ( - 43 ) col1
----
1551
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1432
SELECT ALL ( + - 97 ) DIV COUNT( * ) AS col0, 9 AS col1
----
-97
9

skipif mysql # not compatible
query II rowsort label-1432
SELECT ALL ( + - 97 ) / COUNT ( * ) AS col0, 9 AS col1
----
-97
9

query I rowsort
SELECT DISTINCT + 55 * + 88 col1
----
4840

query I rowsort
SELECT DISTINCT 59 * - 4 + + - 4 * - 90 * 78 * 80 AS col1
----
2246164

query I rowsort
SELECT DISTINCT - 28 * + - 18 * 7
----
3528

onlyif mysql # aggregate syntax: 
query II rowsort label-1436
SELECT ALL + SUM( DISTINCT - 56 ), + 54 AS col1
----
-56
54

skipif mysql # not compatible
query II rowsort label-1436
SELECT ALL + SUM ( DISTINCT - 56 ), + 54 AS col1
----
-56
54

query I rowsort
SELECT + 77 * - 57 * - ( + + 70 ) * + 7 * - 57
----
-122584770

query I rowsort
SELECT + 36 + 41 + - 21 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT + 56 * - COALESCE ( + - 52, - 68, 83 * + 37, COUNT( * ) )
----
2912

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + 56 * - COALESCE ( + - 52, - 68, 83 * + 37, COUNT ( * ) )
----
2912

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT DISTINCT + COALESCE ( NULLIF ( + - NULLIF ( - 51, + 19 ), 40 + + COUNT( * ) * + 6 + ( + 5 ) ), COUNT( * ) * 92 + + 28 ) * 92
----
11040

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT + COALESCE ( NULLIF ( + - NULLIF ( - 51, + 19 ), 40 + + COUNT ( * ) * + 6 + ( + 5 ) ), COUNT ( * ) * 92 + + 28 ) * 92
----
11040

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT DISTINCT + CASE + 6 WHEN 37 THEN + + COALESCE ( COUNT( * ), + + 72 * - 10 ) * COUNT( * ) * COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT + CASE + 6 WHEN 37 THEN + + COALESCE ( COUNT ( * ), + + 72 * - 10 ) * COUNT ( * ) * COUNT ( * ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT ALL + - 65 DIV 39 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL + - 65 / 39 AS col1
----
-1

query I rowsort
SELECT - + ( + 25 ) + - 51 col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT - - 50 + 97 * + 25 * COUNT( * ) * + - ( COUNT( * ) ) AS col2
----
-2375

skipif mysql # not compatible
query I rowsort label-1447
SELECT - - 50 + 97 * + 25 * COUNT ( * ) * + - ( COUNT ( * ) ) AS col2
----
-2375

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

query I rowsort
SELECT ALL - NULLIF ( - 73, + + 48 + 13 + - AVG ( ALL + 98 ) ) col2
----
73

query I rowsort
SELECT + + 70 * + 91 + + + 14 * + + 47 col1
----
7028

query I rowsort
SELECT - 29 - - 82
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1452
SELECT DISTINCT - + 22 * 33 - ( COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) * - COUNT( * ) AS col2
----
-726

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT - + 22 * 33 - ( COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * - COUNT ( * ) AS col2
----
-726

query I rowsort
SELECT ALL 87 + 48 AS col1
----
135

query I rowsort
SELECT DISTINCT + 45 * 60 + 88
----
2788

query II rowsort
SELECT + 70 + - - 24 AS col2, - 16 * - - 5
----
94
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1456
SELECT ALL - 27 / + ( - CASE MIN( ALL 34 ) WHEN + ( 55 ) THEN + 91 / + + 4 END ) / - CAST( 93 AS SIGNED ) + + 59 + - 51 / + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - 27 / + ( - CASE MIN ( ALL 34 ) WHEN + ( 55 ) THEN + 91 / + + 4 END ) / - CAST ( 93 AS INTEGER ) + + 59 + - 51 / + 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1457
SELECT + 69 DIV - NULLIF ( - + ( + 94 ), 39 + - + COALESCE ( NULLIF ( + + 77, COUNT( + CAST( NULL AS SIGNED ) ) + - 93 * - - 15 - - 40 ), - 50 * 27 ) + + COALESCE ( - 95, 77 ) DIV 26 ) + 3 col2
----
3

skipif mysql # not compatible
query I rowsort label-1457
SELECT + 69 / - NULLIF ( - + ( + 94 ), 39 + - + COALESCE ( NULLIF ( + + 77, COUNT ( + CAST ( NULL AS INTEGER ) ) + - 93 * - - 15 - - 40 ), - 50 * 27 ) + + COALESCE ( - 95, 77 ) / 26 ) + 3 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT - 81 * 89 * - 20 - - + COUNT( * )
----
144181

skipif mysql # not compatible
query I rowsort label-1458
SELECT - 81 * 89 * - 20 - - + COUNT ( * )
----
144181

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1459
SELECT + CASE + 62 WHEN - - 37 THEN NULL WHEN + - 22 THEN + 64 ELSE + CAST( NULL AS SIGNED ) END AS col1, + 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-1459
SELECT + CASE + 62 WHEN - - 37 THEN NULL WHEN + - 22 THEN + 64 ELSE + CAST ( NULL AS INTEGER ) END AS col1, + 80
----
NULL
80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT 50 DIV + - 98 + + MIN( DISTINCT + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-1461
SELECT 50 / + - 98 + + MIN ( DISTINCT + 5 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1462
SELECT ALL - 61 DIV + 24 + - 49 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL - 61 / + 24 + - 49 AS col2
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-1463
SELECT DISTINCT - 17 DIV - 29 + - - 71, 46 AS col1
----
71
46

skipif mysql # not compatible
query II rowsort label-1463
SELECT DISTINCT - 17 / - 29 + - - 71, 46 AS col1
----
71
46

query I rowsort
SELECT 50 * 71 + COALESCE ( ( - 34 ), + - 71 ) col2
----
3516

query I rowsort
SELECT DISTINCT ( + COALESCE ( 13, 34, 5 ) ) * + - 29 + - 19 AS col1
----
-396

onlyif mysql # aggregate syntax: 
query II rowsort label-1466
SELECT + COUNT( * ) + ( + + 53 ) AS col1, 88 + - + 37 AS col1
----
54
51

skipif mysql # not compatible
query II rowsort label-1466
SELECT + COUNT ( * ) + ( + + 53 ) AS col1, 88 + - + 37 AS col1
----
54
51

query I rowsort
SELECT ALL + COALESCE ( + 28, COALESCE ( - + 59, - 77 * - ( + + 25 ) ) )
----
28

query I rowsort
SELECT + 77 + - 60
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT ( - CASE 24 WHEN - + MIN( DISTINCT 7 ) THEN - + 11 WHEN + 98 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT ( - CASE 24 WHEN - + MIN ( DISTINCT 7 ) THEN - + 11 WHEN + 98 THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1471
SELECT DISTINCT + 52 * - - 96 - 0 + CAST( NULL AS SIGNED ) - - 85 + + CAST( 80 AS SIGNED ) * - + 63 + + 84 / NULLIF ( - + 63, - CAST( COALESCE ( CASE - NULLIF ( 10, - 39 ) WHEN + 67 THEN NULL ELSE 54 END, COUNT( * ) + + 84 ) AS DECIMAL ) ) * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT + 52 * - - 96 - 0 + CAST ( NULL AS INTEGER ) - - 85 + + CAST ( 80 AS INTEGER ) * - + 63 + + 84 / NULLIF ( - + 63, - CAST ( COALESCE ( CASE - NULLIF ( 10, - 39 ) WHEN + 67 THEN NULL ELSE 54 END, COUNT ( * ) + + 84 ) AS REAL ) ) * 40
----
NULL

query I rowsort
SELECT + 30 * - 65 * - 27 AS col0
----
52650

query I rowsort
SELECT NULLIF ( - + 31, 11 ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1474
SELECT + CAST( 14 AS SIGNED ) * CASE - - 27 WHEN - NULLIF ( - + 88, - ( - - ( - 90 ) ) ) THEN + + 51 WHEN + MAX( ALL + 56 ) THEN 60 END + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1474
SELECT + CAST ( 14 AS INTEGER ) * CASE - - 27 WHEN - NULLIF ( - + 88, - ( - - ( - 90 ) ) ) THEN + + 51 WHEN + MAX ( ALL + 56 ) THEN 60 END + + 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT DISTINCT - + CAST( - 48 AS SIGNED ) * 96 * + 48 - COALESCE ( 61, 48, - 43 * - 38 - + 36 * - NULLIF ( + 3, - 21 ) * - 46 + COALESCE ( 63, + 16 ) ) AS col1
----
221123

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT - + CAST ( - 48 AS INTEGER ) * 96 * + 48 - COALESCE ( 61, 48, - 43 * - 38 - + 36 * - NULLIF ( + 3, - 21 ) * - 46 + COALESCE ( 63, + 16 ) ) AS col1
----
221123

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT ALL - 20 * + 72 * COUNT( * ) * 18 * - + 17 AS col1
----
440640

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL - 20 * + 72 * COUNT ( * ) * 18 * - + 17 AS col1
----
440640

query I rowsort
SELECT 56 + + 40 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT DISTINCT - 3 - + 34 + + - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT - 3 - + 34 + + - COUNT ( * ) AS col2
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT ALL + + 4 * + 49 + - + 90 DIV - 21 AS col2
----
200

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL + + 4 * + 49 + - + 90 / - 21 AS col2
----
200

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

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

query I rowsort
SELECT ALL - 59 * - 30
----
1770

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1483
SELECT - CAST( + - NULLIF ( 30, COUNT( * ) ) AS SIGNED ) AS col1, 74 * - SUM( 40 )
----
30
-2960

skipif mysql # not compatible
query II rowsort label-1483
SELECT - CAST ( + - NULLIF ( 30, COUNT ( * ) ) AS INTEGER ) AS col1, 74 * - SUM ( 40 )
----
30
-2960

query I rowsort
SELECT 25 + - + 31 * - 32 * + 60 * + + 47 AS col2
----
2797465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1485
SELECT ALL + 68 * + CASE - 17 WHEN CAST( CASE WHEN + COUNT( * ) IS NULL THEN NULL WHEN NULL NOT IN ( COALESCE ( COALESCE ( + 19, + - 11, + MIN( DISTINCT 15 ) / 87 ), 87 ) ) THEN + 83 ELSE NULL END AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN - 3 END + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL + 68 * + CASE - 17 WHEN CAST ( CASE WHEN + COUNT ( * ) IS NULL THEN NULL WHEN NULL NOT IN ( COALESCE ( COALESCE ( + 19, + - 11, + MIN ( DISTINCT 15 ) / 87 ), 87 ) ) THEN + 83 ELSE NULL END AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN - 3 END + 63
----
NULL

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

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

query I rowsort
SELECT 5 + 72 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT + COUNT( * ) + + COALESCE ( 3, - 36 ) + - + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1488
SELECT + COUNT ( * ) + + COALESCE ( 3, - 36 ) + - + COUNT ( * ) AS col1
----
3

query I rowsort
SELECT ALL + + 33 + + + 84
----
117

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT DISTINCT - 25 + + MAX( ALL + 7 ) DIV NULLIF ( + COALESCE ( COUNT( * ), 11 ), + + ( + + 16 ) ) + + + 0 col1
----
-18

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT - 25 + + MAX ( ALL + 7 ) / NULLIF ( + COALESCE ( COUNT ( * ), 11 ), + + ( + + 16 ) ) + + + 0 col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1492
SELECT 96 * + 67 * CAST( - AVG ( + ( - - 29 ) ) AS SIGNED ) AS col1
----
-186528

skipif mysql # not compatible
query I rowsort label-1492
SELECT 96 * + 67 * CAST ( - AVG ( + ( - - 29 ) ) AS INTEGER ) AS col1
----
-186528

query I rowsort
SELECT 31 + - 97
----
-66

query I rowsort
SELECT ALL - 45 + + 75 + - + 7
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT ALL 90 + + + COALESCE ( + 83, + 31 ) + + + COUNT( * ) * + + 19 * + 98
----
2035

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL 90 + + + COALESCE ( + 83, + 31 ) + + + COUNT ( * ) * + + 19 * + 98
----
2035

query I rowsort
SELECT 21 * + - 55 * + 98 AS col2
----
-113190

query I rowsort
SELECT ALL - 46 * + 58 AS col2
----
-2668

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT 46 * - + CAST( - 82 AS SIGNED ) AS col0
----
3772

skipif mysql # not compatible
query I rowsort label-1499
SELECT 46 * - + CAST ( - 82 AS INTEGER ) AS col0
----
3772

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

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - SUM ( - 93 )
----
93

query I rowsort
SELECT ( - + 56 ) * - 29 AS col0
----
1624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1502
SELECT + 44 DIV COUNT( * ) + 42 * 35 + - 84 + 26
----
1456

skipif mysql # not compatible
query I rowsort label-1502
SELECT + 44 / COUNT ( * ) + 42 * 35 + - 84 + 26
----
1456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1503
SELECT 46 * + 5 * - CAST( NULL AS SIGNED ) * - COALESCE ( 97, - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1503
SELECT 46 * + 5 * - CAST ( NULL AS INTEGER ) * - COALESCE ( 97, - 86 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT + 44 * ( - + 98 ) * - COUNT( * ) + + + CASE - COUNT( * ) WHEN 28 + 81 + ( - MAX( + 25 ) ) * - 60 + - 60 THEN + COUNT( * ) WHEN 7 / - COUNT( * ) THEN NULL END * - MAX( 61 ) - 85 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1505
SELECT + 44 * ( - + 98 ) * - COUNT ( * ) + + + CASE - COUNT ( * ) WHEN 28 + 81 + ( - MAX ( + 25 ) ) * - 60 + - 60 THEN + COUNT ( * ) WHEN 7 / - COUNT ( * ) THEN NULL END * - MAX ( 61 ) - 85 col1
----
NULL

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

query I rowsort
SELECT DISTINCT 53 * - 42
----
-2226

query I rowsort
SELECT ALL + ( - 66 ) * 72 * - - 74
----
-351648

query I rowsort
SELECT ALL - 74 * - + CASE 55 WHEN + 54 THEN + 43 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1510
SELECT ALL - CASE - 72 WHEN 84 THEN NULL WHEN + 53 * + - 77 + + 56 + - 18 THEN + - COALESCE ( ( + 86 ), 24 * + 29 + - 49 + + + NULLIF ( AVG ( ALL 80 ), CASE - CAST( NULL AS SIGNED ) WHEN ( + ( + 15 ) ) THEN 66 WHEN - COALESCE ( - 56, 59, - CAST( NULL AS SIGNED ) + + 56 ) + - 57 THEN NULL END ) + + 40 * - 5 ) * + 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL - CASE - 72 WHEN 84 THEN NULL WHEN + 53 * + - 77 + + 56 + - 18 THEN + - COALESCE ( ( + 86 ), 24 * + 29 + - 49 + + + NULLIF ( AVG ( ALL 80 ), CASE - CAST ( NULL AS INTEGER ) WHEN ( + ( + 15 ) ) THEN 66 WHEN - COALESCE ( - 56, 59, - CAST ( NULL AS INTEGER ) + + 56 ) + - 57 THEN NULL END ) + + 40 * - 5 ) * + 62 END AS col1
----
NULL

query I rowsort
SELECT + 66 + 44 AS col2
----
110

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

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

query I rowsort
SELECT 94 * 65
----
6110

query I rowsort
SELECT ALL - - 97 + - + 72
----
25

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

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

query I rowsort
SELECT ALL + 37 + - 56 + + 59
----
40

query I rowsort
SELECT ALL - - ( 99 ) * - 95 col0
----
-9405

query I rowsort
SELECT - 47 * + - 64 + - 6
----
3002

query I rowsort
SELECT 99 + + 79 AS col1
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT - 5 + + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-1520
SELECT - 5 + + COUNT ( * )
----
-4

query I rowsort
SELECT ALL + 21 + 6
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1522
SELECT - COALESCE ( MAX( ALL ( + + 80 ) ), - COALESCE ( + 6, - - 12 + - NULLIF ( 4, + COUNT( * ) + - 59 ), + 62, + 58 DIV 1 + 68 * + 27 ), + COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-1522
SELECT - COALESCE ( MAX ( ALL ( + + 80 ) ), - COALESCE ( + 6, - - 12 + - NULLIF ( 4, + COUNT ( * ) + - 59 ), + 62, + 58 / 1 + 68 * + 27 ), + COUNT ( * ) )
----
-80

query I rowsort
SELECT 12 - + 33
----
-21

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

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL COUNT ( DISTINCT - 78 ) AS col0
----
1

query II rowsort
SELECT 21 + - 87 * + 9, 65 AS col1
----
-762
65

query I rowsort
SELECT ALL 61 * + - NULLIF ( + + 36, - - 96 ) AS col2
----
-2196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1527
SELECT 87 * 70 + - COUNT( DISTINCT - 10 ) + CAST( - NULLIF ( - 73, 98 + + 95 / - 46 * - 1 + 4 ) AS SIGNED )
----
6162

skipif mysql # not compatible
query I rowsort label-1527
SELECT 87 * 70 + - COUNT ( DISTINCT - 10 ) + CAST ( - NULLIF ( - 73, 98 + + 95 / - 46 * - 1 + 4 ) AS INTEGER )
----
6162

query I rowsort
SELECT 56 - 38 AS col0
----
18

query I rowsort
SELECT 27 * + 83 AS col0
----
2241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1530
SELECT - 22 DIV - 49 * + - 67 * - + COUNT( * ) * 84 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1530
SELECT - 22 / - 49 * + - 67 * - + COUNT ( * ) * 84 + + COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT DISTINCT - 97 * 21 DIV + 51 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT - 97 * 21 / + 51 AS col2
----
-39

query I rowsort
SELECT 40 * + - 21 * - - 94 AS col1
----
-78960

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT 46 DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1533
SELECT 46 / + 85 AS col1
----
0

query I rowsort
SELECT ALL + 79 * + + 24 AS col0
----
1896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1535
SELECT DISTINCT + CASE - NULLIF ( - 62, - COUNT( * ) - - 65 * + 36 * - SUM( DISTINCT - 88 ) ) WHEN + 23 THEN NULL WHEN + 72 / + - 6 THEN + 53 * + ( - 36 ) * - 25 * + 22 + + 17 + + 53 END * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT + CASE - NULLIF ( - 62, - COUNT ( * ) - - 65 * + 36 * - SUM ( DISTINCT - 88 ) ) WHEN + 23 THEN NULL WHEN + 72 / + - 6 THEN + 53 * + ( - 36 ) * - 25 * + 22 + + 17 + + 53 END * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT + 77 * + ( - COUNT( * ) ) + 32 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1536
SELECT + 77 * + ( - COUNT ( * ) ) + 32 AS col1
----
-45

query II rowsort
SELECT DISTINCT - 34 * + + NULLIF ( - 73, 78 ) * 37 AS col0, ( 6 ) * + 33 + ( - ( 76 ) ) + + 7 AS col0
----
91834
129

query II rowsort
SELECT DISTINCT + 39, 37 * - 30 AS col2
----
39
-1110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1539
SELECT + 7 * - CAST( - ( + - 21 ) AS SIGNED ) * - 15 * - 89
----
-196245

skipif mysql # not compatible
query I rowsort label-1539
SELECT + 7 * - CAST ( - ( + - 21 ) AS INTEGER ) * - 15 * - 89
----
-196245

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

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

query I rowsort
SELECT - ( - ( 47 ) ) * + 11
----
517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1542
SELECT ALL + + MIN( + 53 ) DIV + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + + MIN ( + 53 ) / + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT + - 32 * 32 AS col2
----
-1024

query I rowsort
SELECT ALL + 51 + - 51 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + 96 + COALESCE ( - 19, - 10, 33 * - + 38 + + - ( + COUNT( DISTINCT + 98 ) ) ) * + 37 * - 95 - + + SUM( + 21 ) * 62
----
65579

skipif mysql # not compatible
query I rowsort label-1546
SELECT + 96 + COALESCE ( - 19, - 10, 33 * - + 38 + + - ( + COUNT ( DISTINCT + 98 ) ) ) * + 37 * - 95 - + + SUM ( + 21 ) * 62
----
65579

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL + COALESCE ( + - COUNT( * ), + COALESCE ( + + 58, + ( - CASE - + 82 WHEN + COUNT( * ) * 2 / + COUNT( * ) / - 12 - + AVG ( DISTINCT - 21 ) THEN + 8 END ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL + COALESCE ( + - COUNT ( * ), + COALESCE ( + + 58, + ( - CASE - + 82 WHEN + COUNT ( * ) * 2 / + COUNT ( * ) / - 12 - + AVG ( DISTINCT - 21 ) THEN + 8 END ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1548
SELECT DISTINCT - CASE + 94 WHEN + 87 THEN NULL WHEN 64 * 34 THEN + 77 DIV - COUNT( * ) * - 29 WHEN 60 THEN - CASE ( + COUNT( * ) ) WHEN 0 DIV 83 THEN - - 89 DIV + 32 WHEN COUNT( * ) THEN - 97 + 49 * 87 WHEN CAST( NULL AS SIGNED ) + 45 THEN + 59 + 89 END * + 49 ELSE - 33 - - 37 END * + 10
----
-40

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT - CASE + 94 WHEN + 87 THEN NULL WHEN 64 * 34 THEN + 77 / - COUNT ( * ) * - 29 WHEN 60 THEN - CASE ( + COUNT ( * ) ) WHEN 0 / 83 THEN - - 89 / + 32 WHEN COUNT ( * ) THEN - 97 + 49 * 87 WHEN CAST ( NULL AS INTEGER ) + 45 THEN + 59 + 89 END * + 49 ELSE - 33 - - 37 END * + 10
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT - 75 * 70 + - + 86 * + COALESCE ( CAST( - 39 AS SIGNED ), - 24 ) + 86 + + 5
----
-1805

skipif mysql # not compatible
query I rowsort label-1549
SELECT - 75 * 70 + - + 86 * + COALESCE ( CAST ( - 39 AS INTEGER ), - 24 ) + 86 + + 5
----
-1805

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

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

query I rowsort
SELECT DISTINCT - 25 * + - 58 AS col0
----
1450

onlyif mysql # aggregate syntax: 
query II rowsort label-1552
SELECT - 56, MAX( - 68 ) - - 43 + + COUNT( * ) - - ( 16 ) + - 7 * - MAX( DISTINCT 49 ) * + - 3 * - 67 AS col0
----
-56
68935

skipif mysql # not compatible
query II rowsort label-1552
SELECT - 56, MAX ( - 68 ) - - 43 + + COUNT ( * ) - - ( 16 ) + - 7 * - MAX ( DISTINCT 49 ) * + - 3 * - 67 AS col0
----
-56
68935

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT ALL - NULLIF ( 18, MIN( DISTINCT - - 49 ) - NULLIF ( + 15, - - ( - 35 ) ) - - - 81 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - NULLIF ( 18, MIN ( DISTINCT - - 49 ) - NULLIF ( + 15, - - ( - 35 ) ) - - - 81 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT - COALESCE ( - COUNT( * ), 60 )
----
1

skipif mysql # not compatible
query I rowsort label-1554
SELECT - COALESCE ( - COUNT ( * ), 60 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT - - 81 + - 94 DIV + 12 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1555
SELECT - - 81 + - 94 / + 12 AS col0
----
74

query I rowsort
SELECT ALL - 75 - - 74
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1557
SELECT + - 70 * + 78 * + CAST( NULL AS SIGNED ) + + 60 + 57 - - - 67 / - 66 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1557
SELECT + - 70 * + 78 * + CAST ( NULL AS INTEGER ) + + 60 + 57 - - - 67 / - 66 * - COUNT ( * ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 82 * + 54
----
4428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1560
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN 10 THEN - + 1 * + 41 + - 14 - - 68 + CAST( NULL AS SIGNED ) - - - 69 * 47 END / - - 99 * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN 10 THEN - + 1 * + 41 + - 14 - - 68 + CAST ( NULL AS INTEGER ) - - - 69 * 47 END / - - 99 * + 0
----
NULL

query I rowsort
SELECT DISTINCT + 73 * + 31 * + 16 AS col1
----
36208

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT - COUNT( * ) * + 18 * + - 28 AS col0
----
504

skipif mysql # not compatible
query I rowsort label-1562
SELECT - COUNT ( * ) * + 18 * + - 28 AS col0
----
504

query II rowsort
SELECT 73 AS col1, 97
----
73
97

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

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

query II rowsort
SELECT - ( 10 ) AS col2, + 37 + + - 17 AS col2
----
-10
20

query I rowsort
SELECT - 19 + + 31 * + 90 col0
----
2771

query I rowsort
SELECT + 31 * + + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1568
SELECT - ( + NULLIF ( - + COUNT( * ), + 51 ) ), 89 AS col0
----
1
89

skipif mysql # not compatible
query II rowsort label-1568
SELECT - ( + NULLIF ( - + COUNT ( * ), + 51 ) ), 89 AS col0
----
1
89

query II rowsort
SELECT 24 col2, 6 col1
----
24
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1570
SELECT ALL + COUNT( * ) col1, + 4 * + 80 AS col0
----
1
320

skipif mysql # not compatible
query II rowsort label-1570
SELECT ALL + COUNT ( * ) col1, + 4 * + 80 AS col0
----
1
320

query I rowsort
SELECT DISTINCT + ( + 33 ) AS col1
----
33

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1574
SELECT DISTINCT 67 DIV + 82 * + 19 + + 71 + + + COALESCE ( 42, 3 ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT 67 / + 82 * + 19 + + 71 + + + COALESCE ( 42, 3 ) AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT + 23 + COUNT( * ) * + 78 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-1575
SELECT + 23 + COUNT ( * ) * + 78 AS col2
----
101

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1577
SELECT - 1 * - 11 * - COUNT( * ) * - 61 * - 62 + - 32 * - CASE + 28 WHEN - + 5 * 41 - - MAX( - + CAST( NULL AS SIGNED ) ) * + 24 * 88 + + 29 - COUNT( * ) - 99 * 58 THEN NULL ELSE + CAST( NULL AS SIGNED ) END + - 82 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT - 1 * - 11 * - COUNT ( * ) * - 61 * - 62 + - 32 * - CASE + 28 WHEN - + 5 * 41 - - MAX ( - + CAST ( NULL AS INTEGER ) ) * + 24 * 88 + + 29 - COUNT ( * ) - 99 * 58 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END + - 82 * COUNT ( * ) AS col2
----
NULL

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

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

query I rowsort
SELECT - - 42 - - + 63
----
105

query II rowsort
SELECT DISTINCT + 85 col0, 4
----
85
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT ALL + 22 * + 17 * 95 + - - 75 + - 64 + + COUNT( * ) * - 27 + 81 AS col1
----
35595

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL + 22 * + 17 * 95 + - - 75 + - 64 + + COUNT ( * ) * - 27 + 81 AS col1
----
35595

query I rowsort
SELECT - 51 * + + COALESCE ( - 59, - 20 ) + 79 * - - 33 * + 88 AS col0
----
232425

query I rowsort
SELECT - 20 * - ( 99 ) AS col2
----
1980

query I rowsort
SELECT + + COALESCE ( - ( + + ( 41 ) ), + 63 * - 58 + + 50 )
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-1585
SELECT + + 59 DIV ( + 93 ) + 84 AS col0, + 64
----
84
64

skipif mysql # not compatible
query II rowsort label-1585
SELECT + + 59 / ( + 93 ) + 84 AS col0, + 64
----
84
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT DISTINCT + 37 DIV - 6
----
-6

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT + 37 / - 6
----
-6

query I rowsort
SELECT + - 26 - + 80
----
-106

query II rowsort
SELECT 96 AS col1, + 26 AS col1
----
96
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1589
SELECT DISTINCT CAST( + - MAX( 9 ) AS SIGNED ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT CAST ( + - MAX ( 9 ) AS INTEGER ) col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL 44 * - - 3 * + COUNT( * ) AS col0
----
132

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL 44 * - - 3 * + COUNT ( * ) AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL + COUNT( * ) * + - 20 * - 90 AS col1
----
1800

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + COUNT ( * ) * + - 20 * - 90 AS col1
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT ( + 93 ) * + + 10 * + COUNT( * )
----
930

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT ( + 93 ) * + + 10 * + COUNT ( * )
----
930

query I rowsort
SELECT - 37 + + 22 AS col2
----
-15

query I rowsort
SELECT + 13 + 35 * - 50
----
-1737

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1596
SELECT + COUNT( * ) DIV - - 90 AS col2, + 63 - - SUM( 50 ) + - - 60 + + 58 + - 55 * - 34 * 62 DIV 62 - - + 63 AS col1
----
0
2164

skipif mysql # not compatible
query II rowsort label-1596
SELECT + COUNT ( * ) / - - 90 AS col2, + 63 - - SUM ( 50 ) + - - 60 + + 58 + - 55 * - 34 * 62 / 62 - - + 63 AS col1
----
0
2164

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT + 90 + 99 + + 28 DIV - ( 52 )
----
189

skipif mysql # not compatible
query I rowsort label-1597
SELECT + 90 + 99 + + 28 / - ( 52 )
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT ALL 95 DIV + + 21 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL 95 / + + 21 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT SUM( ALL - 30 ) + - + ( 88 )
----
-118

skipif mysql # not compatible
query I rowsort label-1599
SELECT SUM ( ALL - 30 ) + - + ( 88 )
----
-118

query I rowsort
SELECT 75 + + - 79 - - 19 * - 61 * - 38 AS col2
----
44038

query I rowsort
SELECT ALL 42 + 62 AS col0
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-1602
SELECT DISTINCT 94 + 32 AS col2, COUNT( * ) AS col2
----
126
1

skipif mysql # not compatible
query II rowsort label-1602
SELECT DISTINCT 94 + 32 AS col2, COUNT ( * ) AS col2
----
126
1

query I rowsort
SELECT ALL + 51 + - 55 AS col1
----
-4

query I rowsort
SELECT ALL 25 * 95 * + + 9
----
21375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1605
SELECT DISTINCT 29 + - + 77 + + CAST( 95 AS SIGNED ) + NULLIF ( - 8, CASE + 11 WHEN + NULLIF ( 54, - 38 ) - ( - - 68 ) + - 29 THEN + + 84 END + 91 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT 29 + - + 77 + + CAST ( 95 AS INTEGER ) + NULLIF ( - 8, CASE + 11 WHEN + NULLIF ( 54, - 38 ) - ( - - 68 ) + - 29 THEN + + 84 END + 91 ) AS col2
----
39

query I rowsort
SELECT ALL - + ( - 6 )
----
6

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

skipif mysql # not compatible
query II rowsort label-1607
SELECT + MAX ( DISTINCT 36 ), - COUNT ( * ) / + COUNT ( * ) AS col2
----
36
-1

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

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

query II rowsort
SELECT ALL 52 + + 36 AS col1, 16 + + 84 * 90 AS col0
----
88
7576

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT + + COUNT( DISTINCT + 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1610
SELECT + + COUNT ( DISTINCT + 41 ) AS col2
----
1

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1612
SELECT ALL + - 11 DIV 65 + + 98 + 71 * 60 * + 11 + - 12 * - - 55 AS col2, + 74
----
46298
74

skipif mysql # not compatible
query II rowsort label-1612
SELECT ALL + - 11 / 65 + + 98 + 71 * 60 * + 11 + - 12 * - - 55 AS col2, + 74
----
46298
74

query I rowsort
SELECT + + 53 * 41 + - 74 AS col2
----
2099

query I rowsort
SELECT DISTINCT + - 86 - + 50 + + + 85 AS col0
----
-51

query I rowsort
SELECT ALL - + 36 - - + 28 * + 12 AS col1
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - SUM( + - 49 ) * - - 52 + + - 57 * + - 8 AS col2
----
3004

skipif mysql # not compatible
query I rowsort label-1616
SELECT - SUM ( + - 49 ) * - - 52 + + - 57 * + - 8 AS col2
----
3004

query I rowsort
SELECT + 94 + - + 14 + 95 * + - 90 AS col1
----
-8470

query I rowsort
SELECT 66 + - 42
----
24

query II rowsort
SELECT - 14, 20 AS col2
----
-14
20

query II rowsort
SELECT 41 AS col1, - 13
----
41
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-1621
SELECT ALL 68 AS col2, - 94 * + COUNT( * ) AS col0
----
68
-94

skipif mysql # not compatible
query II rowsort label-1621
SELECT ALL 68 AS col2, - 94 * + COUNT ( * ) AS col0
----
68
-94

query II rowsort
SELECT 12 AS col2, 24 col2
----
12
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT ALL - 65 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL - 65 / - + 77
----
0

query I rowsort
SELECT 30 * - 85
----
-2550

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT ALL - 56 DIV 44 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL - 56 / 44 AS col2
----
-1

query I rowsort
SELECT 40 * + - 13 AS col2
----
-520

onlyif mysql # DIV for integer division: 
query II rowsort label-1627
SELECT CASE 48 WHEN 13 DIV - 30 THEN NULL ELSE 54 * 2 DIV - 62 END + - - 43, 38 AS col1
----
42
38

skipif mysql # not compatible
query II rowsort label-1627
SELECT CASE 48 WHEN 13 / - 30 THEN NULL ELSE 54 * 2 / - 62 END + - - 43, 38 AS col1
----
42
38

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

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

query I rowsort
SELECT ALL 54 + + + 44 AS col2
----
98

query II rowsort
SELECT 55 col0, 88
----
55
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1631
SELECT - 44 AS col1, CAST( NULL AS SIGNED )
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-1631
SELECT - 44 AS col1, CAST ( NULL AS INTEGER )
----
-44
NULL

query II rowsort
SELECT - 46, + 84 + - 99 AS col1
----
-46
-15

query II rowsort
SELECT - 47 AS col0, ( + 26 )
----
-47
26

query II rowsort
SELECT ALL 18 + - 19 * 32, + 46 AS col0
----
-590
46

query I rowsort
SELECT 55 * 0
----
0

query I rowsort
SELECT 91 * - 25
----
-2275

query I rowsort
SELECT ALL 12 + - 96 AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1638
SELECT 10 DIV + + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1638
SELECT 10 / + + 41 AS col2
----
0

query I rowsort
SELECT ALL - ( - 60 )
----
60

query II rowsort
SELECT DISTINCT ( 37 ) - + 11 AS col2, + 27 + + + 16 - - 64
----
26
107

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT DISTINCT - - ( - CASE + - 94 WHEN 53 THEN 50 * COUNT( * ) * + - SUM( 82 ) * - 90 + COUNT( * ) ELSE + COUNT( * ) END ), ( + 72 ) + - NULLIF ( - - COUNT( * ), NULLIF ( 68, - - 27 * + 58 + 46 * 19 ) ) * 36 AS col1
----
-1
36

skipif mysql # not compatible
query II rowsort label-1641
SELECT DISTINCT - - ( - CASE + - 94 WHEN 53 THEN 50 * COUNT ( * ) * + - SUM ( 82 ) * - 90 + COUNT ( * ) ELSE + COUNT ( * ) END ), ( + 72 ) + - NULLIF ( - - COUNT ( * ), NULLIF ( 68, - - 27 * + 58 + 46 * 19 ) ) * 36 AS col1
----
-1
36

query I rowsort
SELECT DISTINCT 15 * - + 63
----
-945

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT + 76 DIV + + 79 + ( + ( - 72 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-1643
SELECT + 76 / + + 79 + ( + ( - 72 ) )
----
-72

query II rowsort
SELECT ALL - - 59, - 23 AS col2
----
59
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1645
SELECT + CAST( NULL AS DECIMAL ) + - + COALESCE ( + COUNT( * ), + + 9 ) * 99 / - COUNT( ALL - 64 ) + 23 + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT + CAST ( NULL AS REAL ) + - + COALESCE ( + COUNT ( * ), + + 9 ) * 99 / - COUNT ( ALL - 64 ) + 23 + 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1646
SELECT 43 * - COUNT( * ) + - 2 + + 69 + + 45 - + - COUNT( * ) * + 18 DIV + - 31
----
69

skipif mysql # not compatible
query I rowsort label-1646
SELECT 43 * - COUNT ( * ) + - 2 + + 69 + + 45 - + - COUNT ( * ) * + 18 / + - 31
----
69

query I rowsort
SELECT DISTINCT - 37 * 46 * - 51
----
86802

query II rowsort
SELECT 39 AS col2, + 67 * + 74 * + 88 AS col2
----
39
436304

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL - + NULLIF ( + 5, SUM( ALL 24 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL - + NULLIF ( + 5, SUM ( ALL 24 ) )
----
-5

query I rowsort
SELECT DISTINCT - - 31 col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT CASE - SUM( ALL - 38 ) WHEN 64 THEN NULL WHEN - 11 * + + CASE + 53 WHEN + + 37 THEN - 44 + - - 86 END + - + COUNT( * ) THEN - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT CASE - SUM ( ALL - 38 ) WHEN 64 THEN NULL WHEN - 11 * + + CASE + 53 WHEN + + 37 THEN - 44 + - - 86 END + - + COUNT ( * ) THEN - 27 END
----
NULL

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

query I rowsort
SELECT 81 * 66 AS col1
----
5346

query I rowsort
SELECT 21 * - ( - 7 )
----
147

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

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

query I rowsort
SELECT ALL - 69 * 24
----
-1656

query I rowsort
SELECT DISTINCT - 51 * + 17
----
-867

query I rowsort
SELECT ALL - 34 + - 62 * - 72 AS col0
----
4430

query I rowsort
SELECT - 60 * + ( + 64 ) AS col1
----
-3840

onlyif mysql # aggregate syntax: 
query II rowsort label-1661
SELECT ALL - 25 + + COUNT( ( + 63 ) ) AS col1, + ( - + COUNT( * ) ) * + ( 80 ) AS col0
----
-24
-80

skipif mysql # not compatible
query II rowsort label-1661
SELECT ALL - 25 + + COUNT ( ( + 63 ) ) AS col1, + ( - + COUNT ( * ) ) * + ( 80 ) AS col0
----
-24
-80

query I rowsort
SELECT DISTINCT - 52 * - 47
----
2444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1663
SELECT - CAST( 66 AS SIGNED ) - + COALESCE ( - + 10, 56 DIV + 91 * + 51 + - MIN( DISTINCT - 79 ) - - 77, MIN( ( 35 ) ) * + + 30 + - + MIN( ALL - 91 ) * 19 * + + 19 * + 70 * 89 )
----
-56

skipif mysql # not compatible
query I rowsort label-1663
SELECT - CAST ( 66 AS INTEGER ) - + COALESCE ( - + 10, 56 / + 91 * + 51 + - MIN ( DISTINCT - 79 ) - - 77, MIN ( ( 35 ) ) * + + 30 + - + MIN ( ALL - 91 ) * 19 * + + 19 * + 70 * 89 )
----
-56

query I rowsort
SELECT ALL - 34 + + 79 AS col1
----
45

query I rowsort
SELECT - 24 + + - 82 + + 86 + - - 30
----
10

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

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

query I rowsort
SELECT - 6 * - 99 * + - 55 col1
----
-32670

query I rowsort
SELECT ALL - 62 + - - 39 * - - 61 AS col0
----
2317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1669
SELECT DISTINCT + 7 DIV ( NULLIF ( - 1, - AVG ( + 7 ) * + 73 ) ), - 11 * MIN( DISTINCT + 94 ) * 7 DIV + 33 + + - COALESCE ( + + ( - 26 ), CAST( NULL AS SIGNED ) ) + + - 84 * 78 AS col2
----
-7
-6745

skipif mysql # not compatible
query II rowsort label-1669
SELECT DISTINCT + 7 / ( NULLIF ( - 1, - AVG ( + 7 ) * + 73 ) ), - 11 * MIN ( DISTINCT + 94 ) * 7 / + 33 + + - COALESCE ( + + ( - 26 ), CAST ( NULL AS INTEGER ) ) + + - 84 * 78 AS col2
----
-7
-6745

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1671
SELECT ALL - 62 - 79 DIV ( COUNT( * ) )
----
-141

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL - 62 - 79 / ( COUNT ( * ) )
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1672
SELECT ALL NULLIF ( + - 4, + + 38 + - NULLIF ( + - 16, - 30 + 61 + + - CAST( + + 52 AS SIGNED ) / + CAST( NULL AS SIGNED ) * - COUNT( * ) ) * 47 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL NULLIF ( + - 4, + + 38 + - NULLIF ( + - 16, - 30 + 61 + + - CAST ( + + 52 AS INTEGER ) / + CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) * 47 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT - - MIN( 73 ) + + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1673
SELECT - - MIN ( 73 ) + + COUNT ( * ) AS col1
----
74

query I rowsort
SELECT + + 80 + - 60 + + - 69 * + 51 * + 99 AS col2
----
-348361

query I rowsort
SELECT - 4 * - 86
----
344

query II rowsort
SELECT + NULLIF ( 85, - 16 * - 77 ) AS col0, + 99 col1
----
85
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1678
SELECT ALL + - MIN( ALL + 67 ) * - - 89 - - - 87 - + 37 - CAST( 54 AS SIGNED )
----
-6141

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL + - MIN ( ALL + 67 ) * - - 89 - - - 87 - + 37 - CAST ( 54 AS INTEGER )
----
-6141

query I rowsort
SELECT - - 3 * 6 col0
----
18

query I rowsort
SELECT + - 97 * 79 + 48
----
-7615

query I rowsort
SELECT ALL + + 97 col2
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT + MAX( - 20 ) * - 5
----
100

skipif mysql # not compatible
query I rowsort label-1683
SELECT + MAX ( - 20 ) * - 5
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + + 76 + + 61 + COUNT( * )
----
138

skipif mysql # not compatible
query I rowsort label-1684
SELECT + + 76 + + 61 + COUNT ( * )
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT + + 70 - COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1685
SELECT + + 70 - COUNT ( * ) AS col1
----
69

query I rowsort
SELECT DISTINCT - 65 * 20 * 97 AS col1
----
-126100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1687
SELECT + - COALESCE ( 98, + + 27 + + + COUNT( * ) + - 90 + - 77 * 52 ) * COALESCE ( 5, + 15 - + 81 ) + + CAST( 31 AS SIGNED ) * + 28 AS col2
----
378

skipif mysql # not compatible
query I rowsort label-1687
SELECT + - COALESCE ( 98, + + 27 + + + COUNT ( * ) + - 90 + - 77 * 52 ) * COALESCE ( 5, + 15 - + 81 ) + + CAST ( 31 AS INTEGER ) * + 28 AS col2
----
378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1688
SELECT - CASE WHEN NOT - COUNT( * ) IN ( ( - 10 ) - + - NULLIF ( - - 86, - - COUNT( * ) ) + 21 + - COALESCE ( - + ( - 85 ), - 4, + COUNT( * ) ) * - MAX( + 10 ), + 82 + - 31 ) THEN 63 WHEN CAST( NULL AS SIGNED ) IS NULL THEN NULL END DIV 65 col2
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT - CASE WHEN NOT - COUNT ( * ) IN ( ( - 10 ) - + - NULLIF ( - - 86, - - COUNT ( * ) ) + 21 + - COALESCE ( - + ( - 85 ), - 4, + COUNT ( * ) ) * - MAX ( + 10 ), + 82 + - 31 ) THEN 63 WHEN CAST ( NULL AS INTEGER ) IS NULL THEN NULL END / 65 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1689
SELECT DISTINCT + 16 * - CAST( + COUNT( + 75 ) AS SIGNED ) + - 92 col0, - 75 AS col1
----
-108
-75

skipif mysql # not compatible
query II rowsort label-1689
SELECT DISTINCT + 16 * - CAST ( + COUNT ( + 75 ) AS INTEGER ) + - 92 col0, - 75 AS col1
----
-108
-75

query I rowsort
SELECT CASE + ( + ( ( + - 62 ) ) ) WHEN + - 62 THEN + 49 ELSE NULL END
----
49

query I rowsort
SELECT + 84 + - 90 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL + 83 * + 48 * - COUNT( * ) + COUNT( ALL - 21 ) * 62
----
-3922

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + 83 * + 48 * - COUNT ( * ) + COUNT ( ALL - 21 ) * 62
----
-3922

onlyif mysql # aggregate syntax: 
query II rowsort label-1693
SELECT + CASE 73 WHEN + MAX( - + 23 ) THEN NULL WHEN 43 THEN + 51 END + + ( - 25 ) AS col1, + 67 * - 84 * + + 55
----
NULL
-309540

skipif mysql # not compatible
query II rowsort label-1693
SELECT + CASE 73 WHEN + MAX ( - + 23 ) THEN NULL WHEN 43 THEN + 51 END + + ( - 25 ) AS col1, + 67 * - 84 * + + 55
----
NULL
-309540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1694
SELECT ALL NULLIF ( ( + + 80 ), + - COALESCE ( 69, + 52 * + 88 ) + - SUM( + 90 ) / AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + COUNT( * ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL NULLIF ( ( + + 80 ), + - COALESCE ( 69, + 52 * + 88 ) + - SUM ( + 90 ) / AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT + 48 * 63 * - MAX( 24 ) AS col0
----
-72576

skipif mysql # not compatible
query I rowsort label-1695
SELECT + 48 * 63 * - MAX ( 24 ) AS col0
----
-72576

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT - 54 + + 40 + - + 97 + 62 + ( 31 ) * - COUNT( * ) * + 99 * - 38 + 84 * + 33
----
119345

skipif mysql # not compatible
query I rowsort label-1696
SELECT - 54 + + 40 + - + 97 + 62 + ( 31 ) * - COUNT ( * ) * + 99 * - 38 + 84 * + 33
----
119345

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT COUNT( ALL + 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1697
SELECT COUNT ( ALL + 13 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT + 64 * + + COUNT( + 38 ) + + - 35 col0
----
29

skipif mysql # not compatible
query I rowsort label-1698
SELECT + 64 * + + COUNT ( + 38 ) + + - 35 col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1699
SELECT ALL 36 + - 50 + 85 + + 78 / 4 - + + CASE + 64 WHEN + COUNT( * ) THEN - 53 - - - AVG ( DISTINCT + 21 ) WHEN + ( + - 98 ) * CAST( + CASE - - 38 WHEN - 81 * + COUNT( * ) THEN 51 WHEN 89 + COUNT( * ) THEN 34 ELSE NULL END AS SIGNED ) + 25 / 12 THEN + COUNT( * ) + + 49 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL 36 + - 50 + 85 + + 78 / 4 - + + CASE + 64 WHEN + COUNT ( * ) THEN - 53 - - - AVG ( DISTINCT + 21 ) WHEN + ( + - 98 ) * CAST ( + CASE - - 38 WHEN - 81 * + COUNT ( * ) THEN 51 WHEN 89 + COUNT ( * ) THEN 34 ELSE NULL END AS INTEGER ) + 25 / 12 THEN + COUNT ( * ) + + 49 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1700
SELECT - 7 + - - 14 * + 30 + - 1 * - + 52 * - CAST( - 7 AS SIGNED ) AS col0
----
777

skipif mysql # not compatible
query I rowsort label-1700
SELECT - 7 + - - 14 * + 30 + - 1 * - + 52 * - CAST ( - 7 AS INTEGER ) AS col0
----
777

query I rowsort
SELECT ALL - 30 + - + 68
----
-98

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

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

query I rowsort
SELECT DISTINCT 42 - + 90 + + 86
----
38

query I rowsort
SELECT - CASE + 74 WHEN 19 + 7 THEN + 29 WHEN 62 + + + 51 THEN NULL WHEN 87 + + 13 + + + 28 THEN NULL END / + 89 AS col1
----
NULL

query I rowsort
SELECT ALL 76 - 71 + 6 + + 32 * - NULLIF ( - 26, + ( - AVG ( 59 ) ) ) + - + 2
----
841

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

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

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

query I rowsort
SELECT ALL + 3 * 98
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT + COUNT( DISTINCT - + 92 ) - - 6 + 29 * + + 30 * - - 83 + - 72 + + 45
----
72190

skipif mysql # not compatible
query I rowsort label-1709
SELECT + COUNT ( DISTINCT - + 92 ) - - 6 + 29 * + + 30 * - - 83 + - 72 + + 45
----
72190

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT - + 92 DIV - 69 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1710
SELECT - + 92 / - 69 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT ALL + + 4 DIV - 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL + + 4 / - 44 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT - + 32 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-1712
SELECT - + 32 / + 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1713
SELECT 57 DIV 12 * 93 DIV COUNT( * ) DIV COUNT( * ) - + 54 * - 81 AS col0
----
4746

skipif mysql # not compatible
query I rowsort label-1713
SELECT 57 / 12 * 93 / COUNT ( * ) / COUNT ( * ) - + 54 * - 81 AS col0
----
4746

onlyif mysql # aggregate syntax: 
query II rowsort label-1714
SELECT ALL + - 77, - CASE - AVG ( DISTINCT - 27 ) WHEN + 28 + 14 * - + COUNT( * ) THEN NULL WHEN + 52 THEN NULL ELSE 31 END AS col0
----
-77
-31

skipif mysql # not compatible
query II rowsort label-1714
SELECT ALL + - 77, - CASE - AVG ( DISTINCT - 27 ) WHEN + 28 + 14 * - + COUNT ( * ) THEN NULL WHEN + 52 THEN NULL ELSE 31 END AS col0
----
-77
-31

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

query I rowsort
SELECT ALL 4 * - - 57 * + 91 + - 71
----
20677

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT ALL - - COUNT( * ) * COUNT( * ) * + 23 * 47 * - - ( + + 24 ) * + + 91 + + 13 + - - 60
----
2360977

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - - COUNT ( * ) * COUNT ( * ) * + 23 * 47 * - - ( + + 24 ) * + + 91 + + 13 + - - 60
----
2360977

onlyif mysql # DIV for integer division: 
query I rowsort label-1718
SELECT ALL - 97 DIV + - 14 + + + 8
----
14

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL - 97 / + - 14 + + + 8
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT + - 75 / - CAST( NULL AS SIGNED ) - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT + - 75 / - CAST ( NULL AS INTEGER ) - + 80
----
NULL

query I rowsort
SELECT ALL + - 24 * 92 + - + 69
----
-2277

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1722
SELECT + - 4 DIV + 52 * + 27 + + 75
----
75

skipif mysql # not compatible
query I rowsort label-1722
SELECT + - 4 / + 52 * + 27 + + 75
----
75

query II rowsort
SELECT ALL - 54 AS col0, + 27 AS col2
----
-54
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL 79 + COUNT( DISTINCT - - 56 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL 79 + COUNT ( DISTINCT - - 56 ) AS col2
----
80

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

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

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

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

query I rowsort
SELECT ALL 72 + + 97 * - 87
----
-8367

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL COUNT( * ) * 36 col0
----
36

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL COUNT ( * ) * 36 col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT ALL 43 DIV 14
----
3

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL 43 / 14
----
3

query I rowsort
SELECT 91 * 81 AS col1
----
7371

query I rowsort
SELECT ALL 95 * + 37 AS col1
----
3515

query III rowsort
SELECT 52 AS col2, 42 AS col2, - 42
----
52
42
-42

query I rowsort
SELECT ALL 89 * - 44 AS col2
----
-3916

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

skipif mysql # not compatible
query I rowsort label-1735
SELECT COUNT ( ALL + 26 ) - - 5 AS col2
----
6

query I rowsort
SELECT ( 9 ) * + - 86 * + 26
----
-20124

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT - 98 AS col1, - NULLIF ( - - COUNT( * ), 11 / + 13 )
----
-98
-1

skipif mysql # not compatible
query II rowsort label-1737
SELECT - 98 AS col1, - NULLIF ( - - COUNT ( * ), 11 / + 13 )
----
-98
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL 35 * COUNT( - 27 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL 35 * COUNT ( - 27 ) AS col0
----
35

query II rowsort
SELECT DISTINCT 2, - 68 + 51 AS col2
----
2
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1740
SELECT ALL + SUM( ALL - + CAST( + 65 AS SIGNED ) ) - + 26 DIV + NULLIF ( - 11, + 39 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + SUM ( ALL - + CAST ( + 65 AS INTEGER ) ) - + 26 / + NULLIF ( - 11, + 39 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1741
SELECT COALESCE ( - - 79, - 92, 33 * - + 82 - COUNT( + - CAST( NULL AS SIGNED ) ) * 66 ) * 45 * - 59
----
-209745

skipif mysql # not compatible
query I rowsort label-1741
SELECT COALESCE ( - - 79, - 92, 33 * - + 82 - COUNT ( + - CAST ( NULL AS INTEGER ) ) * 66 ) * 45 * - 59
----
-209745

onlyif mysql # DIV for integer division: 
query I rowsort label-1742
SELECT 80 + - - 38 + - 18 - 38 DIV NULLIF ( - 92, - 68 * + 37 ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-1742
SELECT 80 + - - 38 + - 18 - 38 / NULLIF ( - 92, - 68 * + 37 ) AS col1
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1743
SELECT 16 - - 5 * + + 9 * + + COUNT( * ) DIV + ( - 80 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1743
SELECT 16 - - 5 * + + 9 * + + COUNT ( * ) / + ( - 80 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT 7 * + CASE - 49 WHEN + + 73 THEN + + 7 END + + COALESCE ( + CASE + - 17 WHEN 77 THEN - - 2 WHEN - 49 THEN NULL END, COUNT( ALL 14 ) ) + 21 * - - 90 * - - 57 + 41 * + ( + 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT 7 * + CASE - 49 WHEN + + 73 THEN + + 7 END + + COALESCE ( + CASE + - 17 WHEN 77 THEN - - 2 WHEN - 49 THEN NULL END, COUNT ( ALL 14 ) ) + 21 * - - 90 * - - 57 + 41 * + ( + 84 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1745
SELECT + CASE + 74 WHEN - 45 THEN NULL WHEN 70 * - + 41 * + 83 THEN - + 46 / - - 17 WHEN - 83 * - ( + 98 ) * - 17 + 69 THEN NULL ELSE - - 39 * + 74 + - CAST( NULL AS SIGNED ) + - - 6 END + + COUNT( * ) + - + 6 / + + AVG ( DISTINCT 77 ) / - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT + CASE + 74 WHEN - 45 THEN NULL WHEN 70 * - + 41 * + 83 THEN - + 46 / - - 17 WHEN - 83 * - ( + 98 ) * - 17 + 69 THEN NULL ELSE - - 39 * + 74 + - CAST ( NULL AS INTEGER ) + - - 6 END + + COUNT ( * ) + - + 6 / + + AVG ( DISTINCT 77 ) / - 1 AS col2
----
NULL

query II rowsort
SELECT ( 12 ) - - 69 * - - 6 AS col2, 32 * + - 54 col2
----
426
-1728

query II rowsort
SELECT ALL 81 AS col1, + 63 AS col1
----
81
63

query I rowsort
SELECT - 95 * + 85 AS col2
----
-8075

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT 41 + + 95 DIV - 6 + + 61
----
87

skipif mysql # not compatible
query I rowsort label-1749
SELECT 41 + + 95 / - 6 + + 61
----
87

query I rowsort
SELECT DISTINCT - 8 * + 44 + + 66 AS col2
----
-286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT CASE + 43 WHEN 6 * 22 THEN NULL WHEN - + COALESCE ( + ( - 46 ), - 54 * + 67, - 2 ) + - + 12 * 66 * + 83 THEN - + NULLIF ( + 55, - ( - 65 ) ) * - NULLIF ( 85, 86 ) END * + - CAST( 95 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT CASE + 43 WHEN 6 * 22 THEN NULL WHEN - + COALESCE ( + ( - 46 ), - 54 * + 67, - 2 ) + - + 12 * 66 * + 83 THEN - + NULLIF ( + 55, - ( - 65 ) ) * - NULLIF ( 85, 86 ) END * + - CAST ( 95 AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1752
SELECT ALL + + CASE + CAST( - CASE - 47 WHEN - - COALESCE ( + 52, - + 33 ) / 61 * - 84 * + - 71 THEN ( COUNT( * ) ) WHEN - MIN( ALL + - 35 ) THEN NULL WHEN + 51 THEN + 98 / 86 END AS SIGNED ) WHEN 54 + 55 THEN NULL WHEN + 75 * CAST( NULL AS DECIMAL ) THEN COUNT( * ) - + AVG ( 79 ) WHEN COALESCE ( 70, 17 * - 49 - 78, COUNT( * ) ) THEN NULL END * ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL + + CASE + CAST ( - CASE - 47 WHEN - - COALESCE ( + 52, - + 33 ) / 61 * - 84 * + - 71 THEN ( COUNT ( * ) ) WHEN - MIN ( ALL + - 35 ) THEN NULL WHEN + 51 THEN + 98 / 86 END AS INTEGER ) WHEN 54 + 55 THEN NULL WHEN + 75 * CAST ( NULL AS REAL ) THEN COUNT ( * ) - + AVG ( 79 ) WHEN COALESCE ( 70, 17 * - 49 - 78, COUNT ( * ) ) THEN NULL END * ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT 17 + - + COUNT( * ) col2
----
16

skipif mysql # not compatible
query I rowsort label-1753
SELECT 17 + - + COUNT ( * ) col2
----
16

query I rowsort
SELECT - 35 + 40
----
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT DISTINCT + 89 + - - CAST( + - COALESCE ( - - 61, + 52, - 75 * - - 49 ) AS SIGNED ) + + 64 * 13 * + - 0 - - 10 col1
----
38

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT + 89 + - - CAST ( + - COALESCE ( - - 61, + 52, - 75 * - - 49 ) AS INTEGER ) + + 64 * 13 * + - 0 - - 10 col1
----
38

query II rowsort
SELECT 56 + + 92 * 38 + - + 90 AS col0, 17 AS col0
----
3462
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT ALL + COUNT( - + 6 ) + 19 + + 36
----
56

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL + COUNT ( - + 6 ) + 19 + + 36
----
56

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1760
SELECT 89 * CASE - CAST( NULL AS SIGNED ) WHEN - + 45 THEN + 70 + - - 9 ELSE - 23 + 21 * - 13 * 45 * - 43 END AS col0, ( + 55 ) AS col2
----
47012648
55

skipif mysql # not compatible
query II rowsort label-1760
SELECT 89 * CASE - CAST ( NULL AS INTEGER ) WHEN - + 45 THEN + 70 + - - 9 ELSE - 23 + 21 * - 13 * 45 * - 43 END AS col0, ( + 55 ) AS col2
----
47012648
55

query II rowsort
SELECT ALL - 76 col1, - 28 * 40 AS col1
----
-76
-1120

query I rowsort
SELECT DISTINCT - + 22 + - - ( + + 38 ) + + 71 + 38
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT + + 14 DIV + 75 + 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-1763
SELECT + + 14 / + 75 + 18 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1764
SELECT ALL + SUM( DISTINCT + - 82 ) + CAST( + 11 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL + SUM ( DISTINCT + - 82 ) + CAST ( + 11 AS INTEGER )
----
-71

query II rowsort
SELECT - 51 * 73, + 3 AS col0
----
-3723
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT + COUNT( ALL - 91 ) + + 90
----
91

skipif mysql # not compatible
query I rowsort label-1766
SELECT + COUNT ( ALL - 91 ) + + 90
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1767
SELECT ALL + 38 * - + COALESCE ( COUNT( + 34 ), + ( - 36 ) DIV 9, ( 7 ) + + CASE + + COUNT( * ) WHEN - - 67 THEN NULL WHEN + 7 THEN NULL ELSE 48 * - + COUNT( * ) END )
----
-38

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL + 38 * - + COALESCE ( COUNT ( + 34 ), + ( - 36 ) / 9, ( 7 ) + + CASE + + COUNT ( * ) WHEN - - 67 THEN NULL WHEN + 7 THEN NULL ELSE 48 * - + COUNT ( * ) END )
----
-38

query I rowsort
SELECT DISTINCT + 47 + + 87 AS col0
----
134

query II rowsort
SELECT 55 + 54 + + 90 AS col0, + COALESCE ( + - 9, + + 40 * + 31 + + + 90 ) - CASE - + 7 WHEN 6 THEN + 39 * + + ( 3 ) ELSE NULL END
----
199
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT + ( + + 61 ) * - - 4 + - + 27 * 52 * - 59 + ( - - 3 ) * - SUM( DISTINCT - - 55 ) AS col0
----
82915

skipif mysql # not compatible
query I rowsort label-1770
SELECT + ( + + 61 ) * - - 4 + - + 27 * 52 * - 59 + ( - - 3 ) * - SUM ( DISTINCT - - 55 ) AS col0
----
82915

query II rowsort
SELECT DISTINCT + 30 - 92 + + 74, 40 col1
----
12
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1772
SELECT ALL ( 51 ) DIV - COUNT( DISTINCT + 23 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL ( 51 ) / - COUNT ( DISTINCT + 23 ) AS col1
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1773
SELECT NULLIF ( + 60, - 29 ) + - CAST( NULL AS DECIMAL ) + + + 44 * + NULLIF ( + + 42, - - 77 ), + 47 AS col1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-1773
SELECT NULLIF ( + 60, - 29 ) + - CAST ( NULL AS REAL ) + + + 44 * + NULLIF ( + + 42, - - 77 ), + 47 AS col1
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT ALL MAX( ALL + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL MAX ( ALL + 13 )
----
13

query II rowsort
SELECT 90 * + 79, - 19 AS col0
----
7110
-19

query I rowsort
SELECT 25 + ( - 8 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1777
SELECT 55 DIV - 64 * SUM( ALL - 54 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1777
SELECT 55 / - 64 * SUM ( ALL - 54 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1778
SELECT DISTINCT COUNT( * ) * + 25 - 46 * - 66 * + CAST( - 9 AS SIGNED ) AS col0
----
-27299

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT COUNT ( * ) * + 25 - 46 * - 66 * + CAST ( - 9 AS INTEGER ) AS col0
----
-27299

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL - 71 + + + MAX( DISTINCT + 4 ) - - + ( SUM( DISTINCT + 97 ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - 71 + + + MAX ( DISTINCT + 4 ) - - + ( SUM ( DISTINCT + 97 ) ) AS col2
----
30

query I rowsort
SELECT - COALESCE ( - 71, ( + 30 ) ) AS col1
----
71

query I rowsort
SELECT ALL + 60 + + ( 2 ) * + 28 * 67 + - 39 AS col2
----
3773

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT 12 - - SUM( DISTINCT + 92 ) + - + CASE 20 WHEN + - 74 THEN - 88 WHEN + ( CASE + + 84 WHEN - CAST( NULL AS SIGNED ) THEN COUNT( * ) END ) + + 27 * + 9 + - CAST( COALESCE ( + + CAST( COUNT( * ) AS SIGNED ), - 28 - + 37 ) AS SIGNED ) THEN 39 WHEN - + 65 THEN - 64 END - 2 / + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1783
SELECT 12 - - SUM ( DISTINCT + 92 ) + - + CASE 20 WHEN + - 74 THEN - 88 WHEN + ( CASE + + 84 WHEN - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) END ) + + 27 * + 9 + - CAST ( COALESCE ( + + CAST ( COUNT ( * ) AS INTEGER ), - 28 - + 37 ) AS INTEGER ) THEN 39 WHEN - + 65 THEN - 64 END - 2 / + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT - - 83 + + ( + COUNT( * ) ) - + 11
----
73

skipif mysql # not compatible
query I rowsort label-1784
SELECT - - 83 + + ( + COUNT ( * ) ) - + 11
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT DISTINCT 10 DIV + 13
----
0

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT 10 / + 13
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1786
SELECT + + 64 - - NULLIF ( + COUNT( ALL 35 ), + 65 / - - ( + 18 ) ), - 3 + COUNT( * ) + - 32 + + + 26 * - - 27 / CAST( NULL AS SIGNED ) AS col1
----
65
NULL

skipif mysql # not compatible
query II rowsort label-1786
SELECT + + 64 - - NULLIF ( + COUNT ( ALL 35 ), + 65 / - - ( + 18 ) ), - 3 + COUNT ( * ) + - 32 + + + 26 * - - 27 / CAST ( NULL AS INTEGER ) AS col1
----
65
NULL

query I rowsort
SELECT ALL 28 * + 26 * + - 59 * - 23
----
987896

query I rowsort
SELECT ALL 77 * - 75 * + 18 * - 25 - - 52
----
2598802

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT + 8 + - 59 DIV + - 13 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1789
SELECT + 8 + - 59 / + - 13 AS col0
----
12

query I rowsort
SELECT - 14 * 59 * + 75
----
-61950

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL + NULLIF ( - COUNT( * ), - COUNT( * ) * 82 * - - 63 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL + NULLIF ( - COUNT ( * ), - COUNT ( * ) * 82 * - - 63 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 25 * + 32
----
800

query I rowsort
SELECT NULLIF ( + + 25, 99 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1794
SELECT - ( + - 53 ) * - 29 AS col0, + COUNT( COALESCE ( + 80, - 29, 28 ) ) + CASE + 77 WHEN - 42 THEN + + COUNT( * ) / - 36 WHEN + ( 25 ) / + 73 - - 91 THEN 62 END - + 31 + 47 * + 80 AS col1
----
-1537
NULL

skipif mysql # not compatible
query II rowsort label-1794
SELECT - ( + - 53 ) * - 29 AS col0, + COUNT ( COALESCE ( + 80, - 29, 28 ) ) + CASE + 77 WHEN - 42 THEN + + COUNT ( * ) / - 36 WHEN + ( 25 ) / + 73 - - 91 THEN 62 END - + 31 + 47 * + 80 AS col1
----
-1537
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT DISTINCT 19 DIV - - 71 * + 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT 19 / - - 71 * + 13 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1796
SELECT - COUNT( * ) + SUM( DISTINCT - - 38 ) AS col2, + 37 col1
----
37
37

skipif mysql # not compatible
query II rowsort label-1796
SELECT - COUNT ( * ) + SUM ( DISTINCT - - 38 ) AS col2, + 37 col1
----
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT ALL + MIN( + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + MIN ( + 46 ) AS col1
----
46

query I rowsort
SELECT DISTINCT + 90 * + + 19
----
1710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1799
SELECT ALL + NULLIF ( - 36, - COALESCE ( + + 78, - 50, - CAST( - + COALESCE ( COUNT( * ), 85 + - 20 ) AS SIGNED ) ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + NULLIF ( - 36, - COALESCE ( + + 78, - 50, - CAST ( - + COALESCE ( COUNT ( * ), 85 + - 20 ) AS INTEGER ) ) ) AS col0
----
-36

query I rowsort
SELECT + ( 89 ) * + 50
----
4450

query I rowsort
SELECT - 24 * + 79
----
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + 26 * 72 * - - 11 + ( COUNT( * ) )
----
20593

skipif mysql # not compatible
query I rowsort label-1802
SELECT + 26 * 72 * - - 11 + ( COUNT ( * ) )
----
20593

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

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

query I rowsort
SELECT - 88 * - 28 * 86 * 25 * + 99
----
524462400

onlyif mysql # aggregate syntax: 
query II rowsort label-1805
SELECT - 94 * COUNT( ALL 72 ), 79 AS col1
----
-94
79

skipif mysql # not compatible
query II rowsort label-1805
SELECT - 94 * COUNT ( ALL 72 ), 79 AS col1
----
-94
79

query I rowsort
SELECT ALL - 72 * - + 29
----
2088

query I rowsort
SELECT - 5 - - - 4
----
-9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1809
SELECT - - COALESCE ( - COUNT( 74 ), + - 33 * 46 ) - - ( - MAX( DISTINCT - - CAST( + 29 AS SIGNED ) ) ) * + + 20 * 24, 43 AS col0
----
-13921
43

skipif mysql # not compatible
query II rowsort label-1809
SELECT - - COALESCE ( - COUNT ( 74 ), + - 33 * 46 ) - - ( - MAX ( DISTINCT - - CAST ( + 29 AS INTEGER ) ) ) * + + 20 * 24, 43 AS col0
----
-13921
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL - 81 * COUNT( * ) * - 11 * + 40
----
35640

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - 81 * COUNT ( * ) * - 11 * + 40
----
35640

query I rowsort
SELECT DISTINCT + 22 + + + 2 * - 69 * 1 AS col1
----
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1812
SELECT ALL + 0 + + + CAST( - + 24 AS SIGNED ) - + + 73 + - - 52 - + 48
----
-93

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + 0 + + + CAST ( - + 24 AS INTEGER ) - + + 73 + - - 52 - + 48
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1813
SELECT DISTINCT - 42 + - 78 + - 66 * + CAST( + NULLIF ( 77, ( 27 ) / CAST( - 48 AS SIGNED ) ) AS SIGNED ) * - 90 * - 49 + - ( + COUNT( * ) )
----
-22411741

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT - 42 + - 78 + - 66 * + CAST ( + NULLIF ( 77, ( 27 ) / CAST ( - 48 AS INTEGER ) ) AS INTEGER ) * - 90 * - 49 + - ( + COUNT ( * ) )
----
-22411741

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

query II rowsort
SELECT - 84 + + 88 + 69, + 97 AS col2
----
73
97

query I rowsort
SELECT + 53 - - NULLIF ( + - 51, + ( 79 ) )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1817
SELECT + 67 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-1817
SELECT + 67 / - 79
----
0

query I rowsort
SELECT ALL - 48 + ( - 18 )
----
-66

query I rowsort
SELECT - - 43 * 15 AS col0
----
645

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1820
SELECT ALL - COUNT( * ) DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL - COUNT ( * ) / 34
----
0

query I rowsort
SELECT + + 68 + + 64 col0
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1822
SELECT DISTINCT - - 51 * - + COUNT( + 20 ) * - 99 * - COALESCE ( - - COUNT( * ), - CASE + 33 WHEN - COALESCE ( + 94, - 33 * 46 ) THEN NULL ELSE + COUNT( * ) * - 88 * + 24 END * + + 89 ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT - - 51 * - + COUNT ( + 20 ) * - 99 * - COALESCE ( - - COUNT ( * ), - CASE + 33 WHEN - COALESCE ( + 94, - 33 * 46 ) THEN NULL ELSE + COUNT ( * ) * - 88 * + 24 END * + + 89 ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT ALL ( - + 15 ) - + + 25 * + 50 col0, + 36 * - COUNT( ALL + 76 )
----
-1265
-36

skipif mysql # not compatible
query II rowsort label-1823
SELECT ALL ( - + 15 ) - + + 25 * + 50 col0, + 36 * - COUNT ( ALL + 76 )
----
-1265
-36

query I rowsort
SELECT - 86 * 57 col2
----
-4902

onlyif mysql # aggregate syntax: 
query II rowsort label-1825
SELECT - 96 AS col0, COUNT( + 89 )
----
-96
1

skipif mysql # not compatible
query II rowsort label-1825
SELECT - 96 AS col0, COUNT ( + 89 )
----
-96
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1826
SELECT + 61 * - - 58 + + + 5 + - 55 * 87 * 86 * 31, MIN( - 6 ) AS col0
----
-12753267
-6

skipif mysql # not compatible
query II rowsort label-1826
SELECT + 61 * - - 58 + + + 5 + - 55 * 87 * 86 * 31, MIN ( - 6 ) AS col0
----
-12753267
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT + 2 * + COALESCE ( + COALESCE ( 5, + + 51 * + 20 ), + + 71 * + + 16 + + 68, + 66 DIV + 15 ) col2
----
10

skipif mysql # not compatible
query I rowsort label-1827
SELECT + 2 * + COALESCE ( + COALESCE ( 5, + + 51 * + 20 ), + + 71 * + + 16 + + 68, + 66 / + 15 ) col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT ALL MIN( DISTINCT + - CASE - 48 WHEN + 22 * + + 41 THEN + 92 + - 45 WHEN - 98 THEN 38 * - ( 98 ) END ) / - 29 - + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL MIN ( DISTINCT + - CASE - 48 WHEN + 22 * + + 41 THEN + 92 + - 45 WHEN - 98 THEN 38 * - ( 98 ) END ) / - 29 - + - 71 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1829
SELECT CAST( + - NULLIF ( + - COUNT( * ), - 64 - - CASE - COUNT( ALL - 14 ) WHEN - 93 / ( + - COUNT( * ) ) THEN - 76 ELSE + 67 + 35 + + - CASE - 95 WHEN 67 THEN NULL WHEN 87 - + 26 + + ( - - CAST( NULL AS DECIMAL ) ) THEN 38 ELSE NULL END END + + - 53 + MAX( DISTINCT + - 76 ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1829
SELECT CAST ( + - NULLIF ( + - COUNT ( * ), - 64 - - CASE - COUNT ( ALL - 14 ) WHEN - 93 / ( + - COUNT ( * ) ) THEN - 76 ELSE + 67 + 35 + + - CASE - 95 WHEN 67 THEN NULL WHEN 87 - + 26 + + ( - - CAST ( NULL AS REAL ) ) THEN 38 ELSE NULL END END + + - 53 + MAX ( DISTINCT + - 76 ) ) AS INTEGER )
----
1

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

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

query I rowsort
SELECT + 72 + + - 39 + + 90
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT DISTINCT 78 DIV - 18 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT 78 / - 18 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT ALL + CASE + COUNT( * ) WHEN + SUM( ALL + + 24 ) + + COUNT( * ) THEN NULL ELSE - 63 + - 2 END AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + CASE + COUNT ( * ) WHEN + SUM ( ALL + + 24 ) + + COUNT ( * ) THEN NULL ELSE - 63 + - 2 END AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1834
SELECT ( - CASE + COUNT( * ) WHEN + CAST( + 38 AS SIGNED ) THEN NULL WHEN - - ( 93 ) + + 91 THEN NULL ELSE COUNT( * ) + + 6 + + 36 * + 10 END )
----
-367

skipif mysql # not compatible
query I rowsort label-1834
SELECT ( - CASE + COUNT ( * ) WHEN + CAST ( + 38 AS INTEGER ) THEN NULL WHEN - - ( 93 ) + + 91 THEN NULL ELSE COUNT ( * ) + + 6 + + 36 * + 10 END )
----
-367

query I rowsort
SELECT + 24 * - 24 * 19 * - 55
----
601920

query I rowsort
SELECT 3 * + - 26 - - NULLIF ( - 75, + 24 ) * - ( + + 7 ) * + 16 AS col2
----
8322

query I rowsort
SELECT - 94 + + 56 * 55 AS col2
----
2986

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL - MAX( DISTINCT - 69 ) * + + 78 + - - 39
----
5421

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL - MAX ( DISTINCT - 69 ) * + + 78 + - - 39
----
5421

query II rowsort
SELECT - 3 * + 32 + + 46 + + + 17 AS col2, 76 + + + 57 AS col2
----
-33
133

query I rowsort
SELECT ALL 84 * + 16 * 81 + 68 + - 83 - + 80 * - 11 AS col0
----
109729

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT + 82 + - MIN( 30 ) + + - 83 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1841
SELECT + 82 + - MIN ( 30 ) + + - 83 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-1842
SELECT - 88 + 82 * - 50 * + + COUNT( - - 43 ) + + 35 * + 33 AS col2, - 10 + + + 65 + - - 88 AS col1
----
-3033
143

skipif mysql # not compatible
query II rowsort label-1842
SELECT - 88 + 82 * - 50 * + + COUNT ( - - 43 ) + + 35 * + 33 AS col2, - 10 + + + 65 + - - 88 AS col1
----
-3033
143

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT ALL + + CASE 69 WHEN - + 29 THEN + 58 * - 26 + + 15 END * - 79 * - 77 * + 63 * + - 43 + 47 * 14 + - 39 + - CASE - 31 WHEN 42 THEN NULL ELSE - NULLIF ( COUNT( * ), - + COUNT( * ) ) END - + 25, - 60 * - COUNT( * ) * - 43 * - + 66 AS col1
----
NULL
170280

skipif mysql # not compatible
query II rowsort label-1843
SELECT ALL + + CASE 69 WHEN - + 29 THEN + 58 * - 26 + + 15 END * - 79 * - 77 * + 63 * + - 43 + 47 * 14 + - 39 + - CASE - 31 WHEN 42 THEN NULL ELSE - NULLIF ( COUNT ( * ), - + COUNT ( * ) ) END - + 25, - 60 * - COUNT ( * ) * - 43 * - + 66 AS col1
----
NULL
170280

query I rowsort
SELECT - 2 + + 18 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT DISTINCT + + 19 * - + CAST( NULL AS SIGNED ) * 40 + + COALESCE ( - - 12, 47 - + 75, 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT + + 19 * - + CAST ( NULL AS INTEGER ) * 40 + + COALESCE ( - - 12, 47 - + 75, 86 )
----
NULL

query I rowsort
SELECT + - 66 * - + 45 + - 71 + 13 * + 6
----
2977

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1848
SELECT + COUNT( * ) + 21 + - SUM( 30 ) - + 51 * + COUNT( * ) + CASE - + COUNT( * ) WHEN - + 85 * - + 17 THEN - + 92 WHEN 47 THEN - + COALESCE ( + 79, - + CASE + - AVG ( - - ( + 12 ) ) WHEN - 38 * + - 96 * + NULLIF ( + 86, 28 ) THEN NULL WHEN + + 3 * + CASE 44 WHEN 87 THEN 46 ELSE 97 END THEN + 71 END * - 22, - COUNT( * ) * 76 ) ELSE + 27 + COUNT( * ) END * CAST( 7 * 3 AS SIGNED ) AS col2
----
529

skipif mysql # not compatible
query I rowsort label-1848
SELECT + COUNT ( * ) + 21 + - SUM ( 30 ) - + 51 * + COUNT ( * ) + CASE - + COUNT ( * ) WHEN - + 85 * - + 17 THEN - + 92 WHEN 47 THEN - + COALESCE ( + 79, - + CASE + - AVG ( - - ( + 12 ) ) WHEN - 38 * + - 96 * + NULLIF ( + 86, 28 ) THEN NULL WHEN + + 3 * + CASE 44 WHEN 87 THEN 46 ELSE 97 END THEN + 71 END * - 22, - COUNT ( * ) * 76 ) ELSE + 27 + COUNT ( * ) END * CAST ( 7 * 3 AS INTEGER ) AS col2
----
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1849
SELECT MIN( DISTINCT - CASE + + 8 WHEN - CAST( NULL AS SIGNED ) THEN + 46 * - + ( 39 ) + + + 62 * 24 ELSE NULL END ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT MIN ( DISTINCT - CASE + + 8 WHEN - CAST ( NULL AS INTEGER ) THEN + 46 * - + ( 39 ) + + + 62 * 24 ELSE NULL END ) + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - - 99 * + 3 AS col0, 48 * + 16 AS col1
----
297
768

query I rowsort
SELECT - 4 * + 73 * - - 40 AS col0
----
-11680

query I rowsort
SELECT DISTINCT - + ( 0 ) * + - 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT COALESCE ( + COUNT( * ), - 94 ) - - 19 * ( - COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-1853
SELECT COALESCE ( + COUNT ( * ), - 94 ) - - 19 * ( - COUNT ( * ) )
----
-18

query II rowsort
SELECT 65 * ( - 42 ) AS col2, + 37
----
-2730
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT COUNT( * ) + + 58 + - 13 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1855
SELECT COUNT ( * ) + + 58 + - 13 AS col1
----
46

query I rowsort
SELECT 74 * + - 23 AS col2
----
-1702

onlyif mysql # DIV for integer division: 
query I rowsort label-1857
SELECT DISTINCT + 89 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT + 89 / + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT SUM( - 77 ) * 78 * + 20 AS col1
----
-120120

skipif mysql # not compatible
query I rowsort label-1858
SELECT SUM ( - 77 ) * 78 * + 20 AS col1
----
-120120

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL - 17 * SUM( DISTINCT - 89 ) col1
----
1513

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - 17 * SUM ( DISTINCT - 89 ) col1
----
1513

query I rowsort
SELECT 83 + + ( + 15 ) * 92 AS col0
----
1463

query I rowsort
SELECT 8 * + 92 + + 70
----
806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1862
SELECT DISTINCT 24 + 96 + + COUNT( * ) DIV - 98
----
120

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT 24 + 96 + + COUNT ( * ) / - 98
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-1863
SELECT ALL MIN( DISTINCT - 82 ) + - 36 AS col1, + 59 - - 35 - + 51
----
-118
43

skipif mysql # not compatible
query II rowsort label-1863
SELECT ALL MIN ( DISTINCT - 82 ) + - 36 AS col1, + 59 - - 35 - + 51
----
-118
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1864
SELECT DISTINCT - 77, - 28 + COUNT( * ) col2
----
-77
-27

skipif mysql # not compatible
query II rowsort label-1864
SELECT DISTINCT - 77, - 28 + COUNT ( * ) col2
----
-77
-27

query I rowsort
SELECT DISTINCT + 27 + + 75 AS col1
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1866
SELECT ALL COUNT( * ) DIV - - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL COUNT ( * ) / - - 33 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1867
SELECT COUNT( * ), MAX( DISTINCT - 86 ) DIV 19 * + - 64 col1
----
1
256

skipif mysql # not compatible
query II rowsort label-1867
SELECT COUNT ( * ), MAX ( DISTINCT - 86 ) / 19 * + - 64 col1
----
1
256

query I rowsort
SELECT + 52 + 49 * 62 + 65
----
3155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1869
SELECT NULLIF ( + - COUNT( DISTINCT - 30 ), 91 ) DIV - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1869
SELECT NULLIF ( + - COUNT ( DISTINCT - 30 ), 91 ) / - - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1870
SELECT ALL COUNT( + 77 ) + 79 + + COUNT( + 69 ) * + 49 + 55 + + 98, - 23 AS col1
----
282
-23

skipif mysql # not compatible
query II rowsort label-1870
SELECT ALL COUNT ( + 77 ) + 79 + + COUNT ( + 69 ) * + 49 + 55 + + 98, - 23 AS col1
----
282
-23

query I rowsort
SELECT 40 - NULLIF ( 68, 65 ) + - - 83
----
55

query I rowsort
SELECT + 79 * - 5 AS col0
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL - NULLIF ( + 71, 29 ) - + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL - NULLIF ( + 71, 29 ) - + COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT CASE WHEN 58 <> NULL THEN - 93 ELSE NULL END / - - 5 - ( + SUM( ALL - 9 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT CASE WHEN 58 <> NULL THEN - 93 ELSE NULL END / - - 5 - ( + SUM ( ALL - 9 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ( + + 30 ) + ( - ( - - SUM( DISTINCT + - 74 ) ) ) * + COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-1875
SELECT ( + + 30 ) + ( - ( - - SUM ( DISTINCT + - 74 ) ) ) * + COUNT ( * )
----
104

query II rowsort
SELECT ALL 36 col2, 9 AS col2
----
36
9

query I rowsort
SELECT + 68 + - - 43 * - 12 * - 42
----
21740

query I rowsort
SELECT CASE + 32 WHEN + + 89 + 98 * + 1 + - 8 THEN - - 63 ELSE - 26 END - 0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT - SUM( - 57 ) * - CAST( - MIN( DISTINCT + 75 ) AS SIGNED ) + - 41 AS col1
----
4234

skipif mysql # not compatible
query I rowsort label-1879
SELECT - SUM ( - 57 ) * - CAST ( - MIN ( DISTINCT + 75 ) AS INTEGER ) + - 41 AS col1
----
4234

query I rowsort
SELECT + 51 - - 94
----
145

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

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

query I rowsort
SELECT DISTINCT 2 * 77 col2
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-1883
SELECT DISTINCT COUNT( * ) AS col2, - 37
----
1
-37

skipif mysql # not compatible
query II rowsort label-1883
SELECT DISTINCT COUNT ( * ) AS col2, - 37
----
1
-37

query I rowsort
SELECT 3 + 12
----
15

query I rowsort
SELECT 80 + + 63 - - + 38 AS col2
----
181

query I rowsort
SELECT 84 * - 3 col1
----
-252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT + 14 * + COUNT( ALL + - 24 ) / - - 38 / - CAST( NULL AS SIGNED ) / + - 77 + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT + 14 * + COUNT ( ALL + - 24 ) / - - 38 / - CAST ( NULL AS INTEGER ) / + - 77 + + 58 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1888
SELECT DISTINCT - 60 * 85 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT - 60 * 85 + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1890
SELECT + 36 AS col0, COUNT( * ) * + 68
----
36
68

skipif mysql # not compatible
query II rowsort label-1890
SELECT + 36 AS col0, COUNT ( * ) * + 68
----
36
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1891
SELECT ALL + 61 * + CAST( NULL AS SIGNED ) + + - ( + + ( 88 ) ) + - + 76 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL + 61 * + CAST ( NULL AS INTEGER ) + + - ( + + ( 88 ) ) + - + 76 * - 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1892
SELECT COUNT( * ) + - - ( 86 ) * - CAST( + 2 AS SIGNED ) * SUM( DISTINCT - 61 ) * 22 - - COUNT( * ) AS col0, 0 AS col2
----
230826
0

skipif mysql # not compatible
query II rowsort label-1892
SELECT COUNT ( * ) + - - ( 86 ) * - CAST ( + 2 AS INTEGER ) * SUM ( DISTINCT - 61 ) * 22 - - COUNT ( * ) AS col0, 0 AS col2
----
230826
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1893
SELECT 13 * - + 40 * + - COUNT( * ) + 68 AS col1, CAST( NULL AS SIGNED ) * 5 * + + COUNT( * ) AS col0
----
588
NULL

skipif mysql # not compatible
query II rowsort label-1893
SELECT 13 * - + 40 * + - COUNT ( * ) + 68 AS col1, CAST ( NULL AS INTEGER ) * 5 * + + COUNT ( * ) AS col0
----
588
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT DISTINCT + COUNT( * ) * + 66 + + - 15
----
51

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT + COUNT ( * ) * + 66 + + - 15
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT + CASE - - COUNT( * ) WHEN - COALESCE ( - 20, MIN( - COALESCE ( NULLIF ( + 45, 31 ), + 31 * - 86 ) ) * - 80 ) THEN - ( - - 17 ) ELSE NULL END * 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + CASE - - COUNT ( * ) WHEN - COALESCE ( - 20, MIN ( - COALESCE ( NULLIF ( + 45, 31 ), + 31 * - 86 ) ) * - 80 ) THEN - ( - - 17 ) ELSE NULL END * 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1896
SELECT 77 DIV - 44 + COUNT( + 42 ) + + 6 * + - 96 AS col0
----
-576

skipif mysql # not compatible
query I rowsort label-1896
SELECT 77 / - 44 + COUNT ( + 42 ) + + 6 * + - 96 AS col0
----
-576

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1898
SELECT + 6 + - 76 + - 88 DIV 7 AS col0, CAST( NULL AS SIGNED ) - COUNT( * ) * - 83
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-1898
SELECT + 6 + - 76 + - 88 / 7 AS col0, CAST ( NULL AS INTEGER ) - COUNT ( * ) * - 83
----
-82
NULL

query II rowsort
SELECT 25 AS col2, + 73 * - + 57 AS col0
----
25
-4161

query II rowsort
SELECT ALL + + 3 AS col0, 98
----
3
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1901
SELECT ALL - 70 - + CAST( - 97 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL - 70 - + CAST ( - 97 AS INTEGER )
----
27

query I rowsort
SELECT DISTINCT 65 * + 67 + 44 AS col0
----
4399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1903
SELECT - 53, + CAST( + COUNT( * ) AS SIGNED ) + 43 AS col1
----
-53
44

skipif mysql # not compatible
query II rowsort label-1903
SELECT - 53, + CAST ( + COUNT ( * ) AS INTEGER ) + 43 AS col1
----
-53
44

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

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL + COUNT ( * ) * + 43 + - - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1905
SELECT 5, 43 * - + COUNT( * ) * - 22 + - 86 AS col2
----
5
860

skipif mysql # not compatible
query II rowsort label-1905
SELECT 5, 43 * - + COUNT ( * ) * - 22 + - 86 AS col2
----
5
860

query I rowsort
SELECT + 15 * 73 + + + 9 col1
----
1104

query II rowsort
SELECT - + 27 AS col2, 43 col0
----
-27
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + NULLIF ( 35, - 92 * COUNT( * ) ) + 38
----
73

skipif mysql # not compatible
query I rowsort label-1908
SELECT + NULLIF ( 35, - 92 * COUNT ( * ) ) + 38
----
73

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

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

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

skipif mysql # not compatible
query I rowsort label-1910
SELECT + 80 * - 27 + + COUNT ( * ) AS col2
----
-2159

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL 49 * - 12 * - MAX( 93 ) AS col0
----
54684

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL 49 * - 12 * - MAX ( 93 ) AS col0
----
54684

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL CASE 21 WHEN + + 36 THEN + ( + 8 ) - - ( + + ( + ( - COUNT( * ) ) ) ) WHEN - ( + - 92 ) * 48 + 57 * + 41 + + + COUNT( * ) THEN - 58 + + COUNT( * ) - 83 * 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL CASE 21 WHEN + + 36 THEN + ( + 8 ) - - ( + + ( + ( - COUNT ( * ) ) ) ) WHEN - ( + - 92 ) * 48 + 57 * + 41 + + + COUNT ( * ) THEN - 58 + + COUNT ( * ) - 83 * 49 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + 31 * + MAX( ALL 82 ) AS col1
----
2542

skipif mysql # not compatible
query I rowsort label-1913
SELECT + 31 * + MAX ( ALL 82 ) AS col1
----
2542

query I rowsort
SELECT ALL - 17 * + - 80 col0
----
1360

onlyif mysql # DIV for integer division: 
query II rowsort label-1915
SELECT + 49 DIV - 90, - 80 AS col2
----
0
-80

skipif mysql # not compatible
query II rowsort label-1915
SELECT + 49 / - 90, - 80 AS col2
----
0
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT DISTINCT 55 + + CAST( NULL AS SIGNED ) - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT 55 + + CAST ( NULL AS INTEGER ) - 58 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( 78, + + 39 * - 17 * - 42 ) - + 26 AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1918
SELECT ALL 90 + 22 AS col1, - COUNT( * ) AS col2
----
112
-1

skipif mysql # not compatible
query II rowsort label-1918
SELECT ALL 90 + 22 AS col1, - COUNT ( * ) AS col2
----
112
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1919
SELECT + 96 - + + 61 + COALESCE ( 77, + 97, COUNT( * ) ) * ( ( + NULLIF ( - - 13, 32 * - - 34 + + + COALESCE ( + 66, - 84 * CAST( 83 AS SIGNED ) + - 67 + + 6 - + + 44 ) / + + CAST( NULL AS SIGNED ) + - + NULLIF ( - - 61, - 35 * + 12 * + 98 * 83 ) + 41 * - 22 * COALESCE ( 72, + 69 ) ) ) )
----
1036

skipif mysql # not compatible
query I rowsort label-1919
SELECT + 96 - + + 61 + COALESCE ( 77, + 97, COUNT ( * ) ) * ( ( + NULLIF ( - - 13, 32 * - - 34 + + + COALESCE ( + 66, - 84 * CAST ( 83 AS INTEGER ) + - 67 + + 6 - + + 44 ) / + + CAST ( NULL AS INTEGER ) + - + NULLIF ( - - 61, - 35 * + 12 * + 98 * 83 ) + 41 * - 22 * COALESCE ( 72, + 69 ) ) ) )
----
1036

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT ALL 54 + - + 44 - + + CAST( 79 AS SIGNED ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL 54 + - + 44 - + + CAST ( 79 AS INTEGER ) col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1922
SELECT DISTINCT COUNT( * ) + - 2 DIV + - MIN( + ( + 40 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT COUNT ( * ) + - 2 / + - MIN ( + ( + 40 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1923
SELECT ALL + COUNT( * ) + COALESCE ( + + CAST( ( - + 91 ) AS SIGNED ), 92 * - + ( - 80 ) + 40 + 55 * + CASE - 39 WHEN + 85 THEN NULL ELSE + - 28 + - + 21 END * 34, + ( + 75 ) + + 36 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL + COUNT ( * ) + COALESCE ( + + CAST ( ( - + 91 ) AS INTEGER ), 92 * - + ( - 80 ) + 40 + 55 * + CASE - 39 WHEN + 85 THEN NULL ELSE + - 28 + - + 21 END * 34, + ( + 75 ) + + 36 ) AS col2
----
-90

query I rowsort
SELECT - 42 - NULLIF ( - - NULLIF ( - 21, - 19 / + - 91 ), 98 * - + 52 ) * - + 98
----
-2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1925
SELECT ALL COALESCE ( - - 71, 78, 13 * 54 + 68 * - - 1 * + - MIN( ALL 72 ) + + 28 DIV + MAX( - CAST( 86 AS SIGNED ) ) ) * 55
----
3905

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL COALESCE ( - - 71, 78, 13 * 54 + 68 * - - 1 * + - MIN ( ALL 72 ) + + 28 / + MAX ( - CAST ( 86 AS INTEGER ) ) ) * 55
----
3905

onlyif mysql # aggregate syntax: 
query II rowsort label-1926
SELECT ALL + MAX( DISTINCT 39 ), - 60 - - 0 AS col0
----
39
-60

skipif mysql # not compatible
query II rowsort label-1926
SELECT ALL + MAX ( DISTINCT 39 ), - 60 - - 0 AS col0
----
39
-60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT + 6 * + + 96 * + - COUNT( * ) * 39 AS col1
----
-22464

skipif mysql # not compatible
query I rowsort label-1928
SELECT + 6 * + + 96 * + - COUNT ( * ) * 39 AS col1
----
-22464

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT - 12 * - + MIN( ALL + 52 ) AS col2
----
624

skipif mysql # not compatible
query I rowsort label-1929
SELECT - 12 * - + MIN ( ALL + 52 ) AS col2
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT 46 * 56 + - 56 + - - 30 - + COUNT( DISTINCT + + 83 )
----
2549

skipif mysql # not compatible
query I rowsort label-1930
SELECT 46 * 56 + - 56 + - - 30 - + COUNT ( DISTINCT + + 83 )
----
2549

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT DISTINCT - 24 * 53 - + COUNT( * ) AS col2
----
-1273

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT - 24 * 53 - + COUNT ( * ) AS col2
----
-1273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1932
SELECT - - MIN( ALL - 62 ) DIV - 6 + 58
----
68

skipif mysql # not compatible
query I rowsort label-1932
SELECT - - MIN ( ALL - 62 ) / - 6 + 58
----
68

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

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

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

query I rowsort
SELECT - - 26 + 7
----
33

query I rowsort
SELECT ALL + + 79 * - 75 + - 54
----
-5979

query I rowsort
SELECT - 23 + 28 + - 61 * + 31 AS col0
----
-1886

onlyif mysql # DIV for integer division: 
query I rowsort label-1938
SELECT + 97 DIV - - ( - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-1938
SELECT + 97 / - - ( - 61 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT - 83 * COUNT( * ) + + + 57 + - 99 + + + CASE + 31 WHEN - 37 THEN NULL WHEN - + 96 THEN - 36 - 59 + 64 + + + MIN( ALL - 85 ) + + 38 ELSE NULL END / - + 39 * - - 69 * + - AVG ( DISTINCT 11 ) + - COALESCE ( - - 22, - 6 + 38, - + 5 ) + 70 * + CASE + 5 WHEN - - 52 - + 49 THEN NULL ELSE + 77 / - 30 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT - 83 * COUNT ( * ) + + + 57 + - 99 + + + CASE + 31 WHEN - 37 THEN NULL WHEN - + 96 THEN - 36 - 59 + 64 + + + MIN ( ALL - 85 ) + + 38 ELSE NULL END / - + 39 * - - 69 * + - AVG ( DISTINCT 11 ) + - COALESCE ( - - 22, - 6 + 38, - + 5 ) + 70 * + CASE + 5 WHEN - - 52 - + 49 THEN NULL ELSE + 77 / - 30 END AS col2
----
NULL

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

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

query I rowsort
SELECT - - ( - 6 ) * - 55 col1
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + - 8 + - 82 * + + COUNT( * ) + + 27 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1942
SELECT + - 8 + - 82 * + + COUNT ( * ) + + 27 AS col1
----
-63

query I rowsort
SELECT + - 30 * + - 42 + + 28
----
1288

query I rowsort
SELECT DISTINCT 44 * 32 + - 46 + 9 * 57
----
1875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1945
SELECT ALL 14 + + 45 + CASE - - COUNT( * ) WHEN - + COALESCE ( + ( + 60 ), - + 65 * + 34 * - 12 + + 64 + + + ( 98 ) + - + 10 * 0, + MAX( - 48 ) + - + 95 + + COUNT( * ) * 14 ) THEN + CAST( + NULLIF ( COUNT( * ), COUNT( * ) + - CAST( NULL AS SIGNED ) + 82 + - - 33 * 53 * 59 ) AS SIGNED ) ELSE NULL END * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL 14 + + 45 + CASE - - COUNT ( * ) WHEN - + COALESCE ( + ( + 60 ), - + 65 * + 34 * - 12 + + 64 + + + ( 98 ) + - + 10 * 0, + MAX ( - 48 ) + - + 95 + + COUNT ( * ) * 14 ) THEN + CAST ( + NULLIF ( COUNT ( * ), COUNT ( * ) + - CAST ( NULL AS INTEGER ) + 82 + - - 33 * 53 * 59 ) AS INTEGER ) ELSE NULL END * + 63
----
NULL

query I rowsort
SELECT - 20 + + 35
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT - CASE + + 50 WHEN - + 95 THEN + + 25 WHEN - 30 THEN - COUNT( * ) + 42 * - + 11 + + 48 * - - 14 WHEN - COUNT( * ) THEN NULL ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-1947
SELECT - CASE + + 50 WHEN - + 95 THEN + + 25 WHEN - 30 THEN - COUNT ( * ) + 42 * - + 11 + + 48 * - - 14 WHEN - COUNT ( * ) THEN NULL ELSE COUNT ( * ) END
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1948
SELECT + 78 - - - 92 + CAST( NULL AS SIGNED ) * - 89 + + + 90 - + 93 + + - 2 * 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT + 78 - - - 92 + CAST ( NULL AS INTEGER ) * - 89 + + + 90 - + 93 + + - 2 * 99 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1949
SELECT DISTINCT 1 + CASE + 8 WHEN + COUNT( DISTINCT - 59 ) - - COUNT( * ) + - ( 92 ) THEN CAST( + 36 AS SIGNED ) * 83 + - 46 + - 30 WHEN - 49 THEN - + 58 WHEN - 17 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT 1 + CASE + 8 WHEN + COUNT ( DISTINCT - 59 ) - - COUNT ( * ) + - ( 92 ) THEN CAST ( + 36 AS INTEGER ) * 83 + - 46 + - 30 WHEN - 49 THEN - + 58 WHEN - 17 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1950
SELECT + 18 + 63 DIV - ( - ( - SUM( DISTINCT - 10 ) ) ) + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1950
SELECT + 18 + 63 / - ( - ( - SUM ( DISTINCT - 10 ) ) ) + COUNT ( * ) AS col2
----
25

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

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL COUNT ( * ) - 89 AS col2
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1952
SELECT 9 DIV + SUM( + - 99 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1952
SELECT 9 / + SUM ( + - 99 ) AS col0
----
0

query I rowsort
SELECT NULLIF ( - - 40, 88 ) * 94 * 24 - - 61
----
90301

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT COUNT( * ) + + COALESCE ( 78, + 75 - + COUNT( * ) - + - COUNT( * ) + + 37 * 75 * + 20, + 57 )
----
79

skipif mysql # not compatible
query I rowsort label-1954
SELECT COUNT ( * ) + + COALESCE ( 78, + 75 - + COUNT ( * ) - + - COUNT ( * ) + + 37 * 75 * + 20, + 57 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT 53 * + COUNT( * ) * 90
----
4770

skipif mysql # not compatible
query I rowsort label-1955
SELECT 53 * + COUNT ( * ) * 90
----
4770

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT 87 * - + ( + + COUNT( * ) ) + + - 59 AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-1956
SELECT 87 * - + ( + + COUNT ( * ) ) + + - 59 AS col2
----
-146

query I rowsort
SELECT DISTINCT - 5 * - 45
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT DISTINCT - CASE + 19 WHEN - + 24 * + + 2 - - COUNT( * ) THEN NULL WHEN - 7 + 65 THEN + - ( - 43 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT - CASE + 19 WHEN - + 24 * + + 2 - - COUNT ( * ) THEN NULL WHEN - 7 + 65 THEN + - ( - 43 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1959
SELECT DISTINCT 97 - - ( + - 35 ) AS col2, + COUNT( 69 ) DIV - 4 - + 70 + + - 54
----
62
-124

skipif mysql # not compatible
query II rowsort label-1959
SELECT DISTINCT 97 - - ( + - 35 ) AS col2, + COUNT ( 69 ) / - 4 - + 70 + + - 54
----
62
-124

query I rowsort
SELECT ALL - 25 * 44 * 77
----
-84700

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1962
SELECT DISTINCT + 92 * + + 32 DIV 2 + 26
----
1498

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT + 92 * + + 32 / 2 + 26
----
1498

query I rowsort
SELECT - 98 * + 99 col2
----
-9702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1964
SELECT + 92, + CASE CAST( 57 AS SIGNED ) WHEN - 93 / + + COUNT( * ) + - 1 + + - CAST( NULL AS SIGNED ) * + 8 * + 34 * MAX( ( - 12 ) ) THEN NULL WHEN COUNT( * ) THEN + 21 END * + CAST( + 10 AS SIGNED ) + 97 AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1964
SELECT + 92, + CASE CAST ( 57 AS INTEGER ) WHEN - 93 / + + COUNT ( * ) + - 1 + + - CAST ( NULL AS INTEGER ) * + 8 * + 34 * MAX ( ( - 12 ) ) THEN NULL WHEN COUNT ( * ) THEN + 21 END * + CAST ( + 10 AS INTEGER ) + 97 AS col1
----
92
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1965
SELECT + + 20 DIV - 43 * + CASE + 46 WHEN - + COUNT( * ) THEN NULL WHEN - COUNT( * ) DIV NULLIF ( 50, - 7 ) THEN NULL WHEN 66 + + 52 THEN - 1 DIV - - MAX( ALL + 48 ) ELSE + 78 END * + 34 * + - 25 * + ( 12 ) + - SUM( DISTINCT + 95 ) * 25
----
-2375

skipif mysql # not compatible
query I rowsort label-1965
SELECT + + 20 / - 43 * + CASE + 46 WHEN - + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) / NULLIF ( 50, - 7 ) THEN NULL WHEN 66 + + 52 THEN - 1 / - - MAX ( ALL + 48 ) ELSE + 78 END * + 34 * + - 25 * + ( 12 ) + - SUM ( DISTINCT + 95 ) * 25
----
-2375

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

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

query I rowsort
SELECT ALL - - 72 + ( 2 ) AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT DISTINCT - 26 * 5 + + ( + 12 ) + - + 46 + 19 DIV - 96
----
-164

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - 26 * 5 + + ( + 12 ) + - + 46 + 19 / - 96
----
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1969
SELECT - 98 DIV + - 72 + - COALESCE ( + 73, - 75 - + SUM( DISTINCT 0 ) + - CAST( NULL AS SIGNED ) - - - COUNT( * ) + - 88 + - 10 - - - COUNT( * ) * 30 * + COUNT( * ) + - 94 * 82 + - + 33 )
----
-72

skipif mysql # not compatible
query I rowsort label-1969
SELECT - 98 / + - 72 + - COALESCE ( + 73, - 75 - + SUM ( DISTINCT 0 ) + - CAST ( NULL AS INTEGER ) - - - COUNT ( * ) + - 88 + - 10 - - - COUNT ( * ) * 30 * + COUNT ( * ) + - 94 * 82 + - + 33 )
----
-72

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

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + 82 + - COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT 84 * - COUNT( + 93 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1971
SELECT 84 * - COUNT ( + 93 ) AS col2
----
-84

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

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

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

query I rowsort
SELECT DISTINCT 95 - + - 83
----
178

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT 34 * CASE + + MAX( DISTINCT - 62 ) WHEN - COUNT( * ) - + - COUNT( ALL - 38 ) THEN - + MAX( 14 ) * + 81 * 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT 34 * CASE + + MAX ( DISTINCT - 62 ) WHEN - COUNT ( * ) - + - COUNT ( ALL - 38 ) THEN - + MAX ( 14 ) * + 81 * 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT COUNT( * ) - + 23 + NULLIF ( 17, 27 * + - 26 * ( - 96 ) + + 8 )
----
-5

skipif mysql # not compatible
query I rowsort label-1977
SELECT COUNT ( * ) - + 23 + NULLIF ( 17, 27 * + - 26 * ( - 96 ) + + 8 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1978
SELECT COUNT( NULLIF ( + 5, - + 0 + + - 26 - + + COALESCE ( - 66, 28, + + 80 DIV - - ( + + 66 ) + 81 ) DIV + + 63 + + 7 ) ) DIV - 91 * 7 + - 40 + + + 38 * - 93 + - 30 + + - NULLIF ( 49, 15 + - - 78 DIV + CAST( COUNT( * ) AS SIGNED ) )
----
-3653

skipif mysql # not compatible
query I rowsort label-1978
SELECT COUNT ( NULLIF ( + 5, - + 0 + + - 26 - + + COALESCE ( - 66, 28, + + 80 / - - ( + + 66 ) + 81 ) / + + 63 + + 7 ) ) / - 91 * 7 + - 40 + + + 38 * - 93 + - 30 + + - NULLIF ( 49, 15 + - - 78 / + CAST ( COUNT ( * ) AS INTEGER ) )
----
-3653

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT 24 * - MIN( ALL - - 24 )
----
-576

skipif mysql # not compatible
query I rowsort label-1980
SELECT 24 * - MIN ( ALL - - 24 )
----
-576

query I rowsort
SELECT - 30 - 6 + - + ( 98 )
----
-134

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

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

query I rowsort
SELECT + 96 + + - 32 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT SUM( - - 4 ) * 17 * - 29 + - 17
----
-1989

skipif mysql # not compatible
query I rowsort label-1984
SELECT SUM ( - - 4 ) * 17 * - 29 + - 17
----
-1989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1985
SELECT NULLIF ( - - ( - 0 ), 57 * - - 91 + - 27 * - COUNT( * ) ) + 1 * + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * - + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1985
SELECT NULLIF ( - - ( - 0 ), 57 * - - 91 + - 27 * - COUNT ( * ) ) + 1 * + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + + ( + COUNT( DISTINCT - 34 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1986
SELECT + + ( + COUNT ( DISTINCT - 34 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT COUNT( ALL - - 65 ) - + ( - 41 ) col0
----
42

skipif mysql # not compatible
query I rowsort label-1987
SELECT COUNT ( ALL - - 65 ) - + ( - 41 ) col0
----
42

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

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

query I rowsort
SELECT ALL ( - 13 ) + + 29 AS col1
----
16

query I rowsort
SELECT DISTINCT - 19 + + 58 + 25 + + 51 + + 5
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT 71 + + - MAX( ALL + ( + + 11 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1991
SELECT 71 + + - MAX ( ALL + ( + + 11 ) ) AS col2
----
60

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1995
SELECT CAST ( + ( - 2 ) AS INTEGER ) - 67 AS col0
----
-69

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

skipif mysql # not compatible
query I rowsort label-1996
SELECT + - 93 * + - 85 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 58 col2, 17 col1
----
-58
17

query I rowsort
SELECT 93 + + + 46 AS col0
----
139

query I rowsort
SELECT DISTINCT 37 + - 98
----
-61

query I rowsort
SELECT - 36 * - 85
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT - 95 + - COUNT( * ) * ( - 32 )
----
-63

skipif mysql # not compatible
query I rowsort label-2001
SELECT - 95 + - COUNT ( * ) * ( - 32 )
----
-63

query I rowsort
SELECT - 12 * + 89
----
-1068

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2003
SELECT - 59 + + 55 + MIN( ALL + - 0 ) - + 79 * + MIN( ALL - 39 ) * + - CAST( NULL AS DECIMAL ) * 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT - 59 + + 55 + MIN ( ALL + - 0 ) - + 79 * + MIN ( ALL - 39 ) * + - CAST ( NULL AS REAL ) * 13 AS col2
----
NULL

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

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

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

query I rowsort
SELECT - 29 + - 71 AS col0
----
-100

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

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

query II rowsort
SELECT 71, + 60 + - - 88 col1
----
71
148

query I rowsort
SELECT ALL + 42 * - + ( + 4 ) AS col1
----
-168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT ALL - COUNT( * ) * 55 + - + 88
----
-143

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL - COUNT ( * ) * 55 + - + 88
----
-143

query I rowsort
SELECT ALL + ( 74 ) * + - 0 + - 17 + 26 + - 84 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT + - CASE - - 59 WHEN + 36 THEN NULL WHEN - 83 THEN - - 66 WHEN 95 THEN - 83 END / + COALESCE ( - COUNT( * ), 89, 70 * - - 71 ) / + 97 * + - 8 + ( - 47 ) - SUM( DISTINCT + 40 ) + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT + - CASE - - 59 WHEN + 36 THEN NULL WHEN - 83 THEN - - 66 WHEN 95 THEN - 83 END / + COALESCE ( - COUNT ( * ), 89, 70 * - - 71 ) / + 97 * + - 8 + ( - 47 ) - SUM ( DISTINCT + 40 ) + + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2014
SELECT ALL + 26 / - + 13 * + CASE + 80 WHEN + 36 * MIN( ALL + ( + 63 ) ) + - 91 + + 31 THEN NULL WHEN - 37 * + 16 * + 3 * + 40 + + + COUNT( * ) THEN 45 WHEN - 63 THEN NULL ELSE NULL END / - + COUNT( * ) - - COUNT( * ) * - 60, - COALESCE ( 5, + 49, - 30, - + 24 ) + - MAX( 2 ) AS col0
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-2014
SELECT ALL + 26 / - + 13 * + CASE + 80 WHEN + 36 * MIN ( ALL + ( + 63 ) ) + - 91 + + 31 THEN NULL WHEN - 37 * + 16 * + 3 * + 40 + + + COUNT ( * ) THEN 45 WHEN - 63 THEN NULL ELSE NULL END / - + COUNT ( * ) - - COUNT ( * ) * - 60, - COALESCE ( 5, + 49, - 30, - + 24 ) + - MAX ( 2 ) AS col0
----
NULL
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2015
SELECT ALL 80 * + 73 + + COUNT( * ) AS col0, MIN( ALL 29 ) * + - 2 * - 8 * + - COUNT( DISTINCT - - 43 ) * - 2 + + 95 AS col2
----
5841
1023

skipif mysql # not compatible
query II rowsort label-2015
SELECT ALL 80 * + 73 + + COUNT ( * ) AS col0, MIN ( ALL 29 ) * + - 2 * - 8 * + - COUNT ( DISTINCT - - 43 ) * - 2 + + 95 AS col2
----
5841
1023

query II rowsort
SELECT DISTINCT + 45, 54 * - 46 AS col2
----
45
-2484

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT - 6 * - 41 + + 14 + 53 + - COUNT( 95 ) + - 33 * + 21
----
-381

skipif mysql # not compatible
query I rowsort label-2017
SELECT - 6 * - 41 + + 14 + 53 + - COUNT ( 95 ) + - 33 * + 21
----
-381

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT COUNT( * ) * + + 26 + - + 50
----
-24

skipif mysql # not compatible
query I rowsort label-2018
SELECT COUNT ( * ) * + + 26 + - + 50
----
-24

query I rowsort
SELECT ALL + + 96 * + 87 * + 89 + - 55 - 27 * - 75 * - 14 AS col1
----
714923

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2021
SELECT DISTINCT + + COALESCE ( + - NULLIF ( 73, + 5 ), + MIN( DISTINCT - 14 ) - COUNT( * ), 42, + 83 * - AVG ( DISTINCT - 85 ) * + 18 DIV - 88 + - COUNT( * ) + + 50 + - + 44 )
----
-73

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT + + COALESCE ( + - NULLIF ( 73, + 5 ), + MIN ( DISTINCT - 14 ) - COUNT ( * ), 42, + 83 * - AVG ( DISTINCT - 85 ) * + 18 / - 88 + - COUNT ( * ) + + 50 + - + 44 )
----
-73

query I rowsort
SELECT + NULLIF ( + - 4, + 44 )
----
-4

query I rowsort
SELECT + 25 * - 55 col2
----
-1375

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT CASE - + CASE + 1 WHEN - 96 / + - 6 * + 6 * ( - - MAX( - - ( + + 57 ) ) ) THEN 84 WHEN 20 THEN 41 END WHEN - + 82 THEN NULL WHEN + 89 THEN 22 + 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT CASE - + CASE + 1 WHEN - 96 / + - 6 * + 6 * ( - - MAX ( - - ( + + 57 ) ) ) THEN 84 WHEN 20 THEN 41 END WHEN - + 82 THEN NULL WHEN + 89 THEN 22 + 60 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT + ( NULLIF ( + 40, + COUNT( - 51 ) + + 99 ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-2025
SELECT + ( NULLIF ( + 40, + COUNT ( - 51 ) + + 99 ) ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT COUNT( * ) * 96 - + MIN( - + 64 )
----
160

skipif mysql # not compatible
query I rowsort label-2026
SELECT COUNT ( * ) * 96 - + MIN ( - + 64 )
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT MAX( - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-2027
SELECT MAX ( - 89 )
----
-89

query II rowsort
SELECT + 72, ( + 95 ) AS col2
----
72
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL COUNT( + NULLIF ( - - 44, - 12 - + 33 / - + NULLIF ( - 99, - 41 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL COUNT ( + NULLIF ( - - 44, - 12 - + 33 / - + NULLIF ( - 99, - 41 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2031
SELECT MAX( 25 ) AS col1, 31
----
25
31

skipif mysql # not compatible
query II rowsort label-2031
SELECT MAX ( 25 ) AS col1, 31
----
25
31

query I rowsort
SELECT + 59 * 61 * - + 82
----
-295118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2033
SELECT - CASE + NULLIF ( + 1, - - COUNT( * ) - - 79 + + 36 ) WHEN 52 * 38 THEN + 84 + + 32 ELSE + ( - 83 ) END + - CASE COUNT( * ) WHEN - + MAX( + 30 ) / - COUNT( * ) + - NULLIF ( + 80, + ( - + ( + 35 ) ) + + + CAST( NULL AS SIGNED ) ) + ( + - 71 ) * + CAST( 31 AS SIGNED ) + + 11 THEN - ( - - MAX( DISTINCT + 43 ) ) * CAST( 89 AS SIGNED ) END + + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT - CASE + NULLIF ( + 1, - - COUNT ( * ) - - 79 + + 36 ) WHEN 52 * 38 THEN + 84 + + 32 ELSE + ( - 83 ) END + - CASE COUNT ( * ) WHEN - + MAX ( + 30 ) / - COUNT ( * ) + - NULLIF ( + 80, + ( - + ( + 35 ) ) + + + CAST ( NULL AS INTEGER ) ) + ( + - 71 ) * + CAST ( 31 AS INTEGER ) + + 11 THEN - ( - - MAX ( DISTINCT + 43 ) ) * CAST ( 89 AS INTEGER ) END + + 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2034
SELECT + MAX( ALL 82 ) DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-2034
SELECT + MAX ( ALL 82 ) / + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT MAX( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-2035
SELECT MAX ( - 4 )
----
-4

query II rowsort
SELECT ALL 38 AS col1, 56 * + + 37
----
38
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL ( + COALESCE ( + + 42, + 42 + 22 * + 63 * 43 * COUNT( * ) ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL ( + COALESCE ( + + 42, + 42 + 22 * + 63 * 43 * COUNT ( * ) ) ) AS col0
----
42

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

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

query II rowsort
SELECT - 49 AS col2, 97 AS col2
----
-49
97

query I rowsort
SELECT DISTINCT - 47 * - ( - + 62 ) AS col0
----
-2914

query I rowsort
SELECT ALL + 92 + 95 + - + 21 AS col0
----
166

query II rowsort
SELECT ALL 71 AS col0, + 68
----
71
68

query I rowsort
SELECT - - 85 + - 35 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT DISTINCT + + 20 + - 33 - + 0 * + - COUNT( * ) * - 22 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT + + 20 + - 33 - + 0 * + - COUNT ( * ) * - 22 AS col0
----
-13

query II rowsort
SELECT - 33 AS col1, - 80 * 59 * 70 * + 85 AS col2
----
-33
-28084000

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT - + 25 * 41 DIV + 37
----
-27

skipif mysql # not compatible
query I rowsort label-2046
SELECT - + 25 * 41 / + 37
----
-27

query I rowsort
SELECT DISTINCT + - 28 + 19 AS col0
----
-9

query I rowsort
SELECT DISTINCT - 97 * - + 66
----
6402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT ALL - ( - 15 ) / - 82 - 69 * + CAST( NULL AS SIGNED ) + + 86 + - 66 / + + 90 + + + 61 + + - 90 + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL - ( - 15 ) / - 82 - 69 * + CAST ( NULL AS INTEGER ) + + 86 + - 66 / + + 90 + + + 61 + + - 90 + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2050
SELECT ALL + 29, COUNT( * ) + + + CASE - COUNT( * ) WHEN - COUNT( * ) THEN 40 ELSE NULL END + - 50 / - - 36 + - MIN( ALL 35 ) * - 79 + - CASE - + 3 WHEN + ( - - 81 ) * + - COALESCE ( + 60, 35 * COUNT( * ), + 18 ) THEN NULL WHEN 19 THEN - 31 ELSE NULL END AS col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2050
SELECT ALL + 29, COUNT ( * ) + + + CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN 40 ELSE NULL END + - 50 / - - 36 + - MIN ( ALL 35 ) * - 79 + - CASE - + 3 WHEN + ( - - 81 ) * + - COALESCE ( + 60, 35 * COUNT ( * ), + 18 ) THEN NULL WHEN 19 THEN - 31 ELSE NULL END AS col2
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT - ( MIN( 33 ) ) * - 90 AS col1
----
2970

skipif mysql # not compatible
query I rowsort label-2051
SELECT - ( MIN ( 33 ) ) * - 90 AS col1
----
2970

query I rowsort
SELECT - 94 + + + 24
----
-70

query II rowsort
SELECT + - 31 AS col2, 58 * - 78 * - 59 * + + 33 col0
----
-31
8808228

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT + SUM( + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2054
SELECT + SUM ( + 64 ) AS col0
----
64

query II rowsort
SELECT + - 8 AS col0, 56
----
-8
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2056
SELECT ALL + - COUNT( * ) DIV + - 48 - + 32
----
-32

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

query II rowsort
SELECT ALL + 67 AS col0, 93 * + 18
----
67
1674

query II rowsort
SELECT DISTINCT - + 11 * + - 1 AS col2, 63 + 37 + - - 62
----
11
162

query II rowsort
SELECT 99 + + ( - 29 ) AS col1, - 82 AS col1
----
70
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT 2 DIV - 23 col0
----
0

skipif mysql # not compatible
query I rowsort label-2060
SELECT 2 / - 23 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT 38 * - - 64 * - + MIN( 42 ) AS col2
----
-102144

skipif mysql # not compatible
query I rowsort label-2061
SELECT 38 * - - 64 * - + MIN ( 42 ) AS col2
----
-102144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2062
SELECT 32 * + CAST( - 34 AS SIGNED ) + - + 75 * - NULLIF ( - ( 64 ), + + COALESCE ( + 53, + 87, + 22 * COUNT( * ) + 4 ) - - NULLIF ( ( + 39 ), - COUNT( * ) * + 7 * + 47 * 27 - + 77 * - + COUNT( * ) ) + + - 56 ) * + COUNT( * )
----
-5888

skipif mysql # not compatible
query I rowsort label-2062
SELECT 32 * + CAST ( - 34 AS INTEGER ) + - + 75 * - NULLIF ( - ( 64 ), + + COALESCE ( + 53, + 87, + 22 * COUNT ( * ) + 4 ) - - NULLIF ( ( + 39 ), - COUNT ( * ) * + 7 * + 47 * 27 - + 77 * - + COUNT ( * ) ) + + - 56 ) * + COUNT ( * )
----
-5888

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT 44 - - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-2063
SELECT 44 - - COUNT ( * ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT COALESCE ( 93, + 20, + + 13 + - + MIN( + 41 ) ) * - 2 + - + 9 * COUNT( * ) AS col2
----
-195

skipif mysql # not compatible
query I rowsort label-2064
SELECT COALESCE ( 93, + 20, + + 13 + - + MIN ( + 41 ) ) * - 2 + - + 9 * COUNT ( * ) AS col2
----
-195

query I rowsort
SELECT - ( + - 79 ) * + 0 * 7 + + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT 28 + CASE + COUNT( * ) WHEN + 51 / - COUNT( * ) THEN - + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT 28 + CASE + COUNT ( * ) WHEN + 51 / - COUNT ( * ) THEN - + 22 END
----
NULL

query I rowsort
SELECT ALL 71 * 12 * + 18
----
15336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2068
SELECT DISTINCT 30 * - 22 * - MIN( 88 ) * - CAST( + 86 AS SIGNED ) - + 87
----
-4994967

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT 30 * - 22 * - MIN ( 88 ) * - CAST ( + 86 AS INTEGER ) - + 87
----
-4994967

query I rowsort
SELECT ALL ( + 86 ) + + 94 * - + 6 * - + ( - 98 )
----
-55186

query I rowsort
SELECT ( + 21 ) + + ( + 51 )
----
72

query II rowsort
SELECT ALL 24 + - - ( + - 11 ) AS col2, + 51
----
13
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2072
SELECT DISTINCT CAST( 6 AS SIGNED ) * - + ( 28 ) * - COUNT( * ) + + COUNT( 0 ) * - - 40 + - 38 + COALESCE ( + ( - - COUNT( * ) ), + 18 * 83 - + + 92, - - COUNT( * ) * + 1 + NULLIF ( + - CASE 64 WHEN NULLIF ( - 35, + 57 ) + + - COUNT( + + 66 ) + - 53 DIV + - COUNT( * ) THEN NULL ELSE + 41 END, - ( + 14 ) + 5 + - + 5 ) ) * ( 11 * - CAST( - 94 DIV + COUNT( 22 ) AS SIGNED ) + + 46 DIV 87 )
----
1204

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT CAST ( 6 AS INTEGER ) * - + ( 28 ) * - COUNT ( * ) + + COUNT ( 0 ) * - - 40 + - 38 + COALESCE ( + ( - - COUNT ( * ) ), + 18 * 83 - + + 92, - - COUNT ( * ) * + 1 + NULLIF ( + - CASE 64 WHEN NULLIF ( - 35, + 57 ) + + - COUNT ( + + 66 ) + - 53 / + - COUNT ( * ) THEN NULL ELSE + 41 END, - ( + 14 ) + 5 + - + 5 ) ) * ( 11 * - CAST ( - 94 / + COUNT ( 22 ) AS INTEGER ) + + 46 / 87 )
----
1204

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL 29 + - 52 + + 33 * + NULLIF ( + + 28, + COUNT( * ) - - - 95 ) col2
----
901

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL 29 + - 52 + + 33 * + NULLIF ( + + 28, + COUNT ( * ) - - - 95 ) col2
----
901

query I rowsort
SELECT ALL 64 + + 99 + + 89 * - - 46 AS col1
----
4257

query I rowsort
SELECT 53 * - 44
----
-2332

onlyif mysql # aggregate syntax: 
query II rowsort label-2076
SELECT + COUNT( * ) + - 85 col1, + 89 * + 19
----
-84
1691

skipif mysql # not compatible
query II rowsort label-2076
SELECT + COUNT ( * ) + - 85 col1, + 89 * + 19
----
-84
1691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2077
SELECT + 41 DIV - 40 - COUNT( * ) DIV 34 + - 38 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2077
SELECT + 41 / - 40 - COUNT ( * ) / 34 + - 38 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL + 51 + MAX( + + 44 ) + - ( 3 )
----
92

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + 51 + MAX ( + + 44 ) + - ( 3 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2079
SELECT DISTINCT - 92 DIV + 98 + ( + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT - 92 / + 98 + ( + 19 ) AS col1
----
19

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2081
SELECT ALL - 59 * - CAST( NULL AS DECIMAL ) * - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - 59 * - CAST ( NULL AS REAL ) * - 48 AS col2
----
NULL

query I rowsort
SELECT ALL + 1 + - 64 - 25 * + 37 * - 61 AS col0
----
56362

query I rowsort
SELECT 23 + 72 AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2084
SELECT - 65 * 52 DIV + - 76
----
44

skipif mysql # not compatible
query I rowsort label-2084
SELECT - 65 * 52 / + - 76
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2085
SELECT 54 * 27 * - 95 * - 82 / + AVG ( + + CAST( NULL AS DECIMAL ) ) * + 92 / 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT 54 * 27 * - 95 * - 82 / + AVG ( + + CAST ( NULL AS REAL ) ) * + 92 / 20 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2086
SELECT ALL - 99 * 26 - - + 14 + 69 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL - 99 * 26 - - + 14 + 69 * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 74 + - 78 + - 48 - - 20 * - - 65 * - 91
----
-118352

query I rowsort
SELECT 46 + + - 35 * + 18 * 9 AS col1
----
-5624

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2090
SELECT COUNT( ALL - - 34 ) AS col0, - 57 * - 10 AS col0
----
1
570

skipif mysql # not compatible
query II rowsort label-2090
SELECT COUNT ( ALL - - 34 ) AS col0, - 57 * - 10 AS col0
----
1
570

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT + NULLIF ( - - 50, COUNT( ALL 91 ) * 47 ) - - 77
----
127

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT + NULLIF ( - - 50, COUNT ( ALL 91 ) * 47 ) - - 77
----
127

query I rowsort
SELECT - COALESCE ( - 28, + 60 * + 63 + + 30 ) + 9 + - - 30
----
67

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

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

query II rowsort
SELECT + 6 AS col1, - 67 AS col1
----
6
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL - CASE - 39 WHEN SUM( + 59 ) THEN NULL ELSE - - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - CASE - 39 WHEN SUM ( + 59 ) THEN NULL ELSE - - COUNT ( * ) END
----
-1

query I rowsort
SELECT 18 * - 14 AS col1
----
-252

query I rowsort
SELECT 54 + + 87
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ALL + COUNT( * ) + - + 58 + 28
----
-29

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL + COUNT ( * ) + - + 58 + 28
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT + 73, COALESCE ( - 65, - - MIN( 77 ), ( + - 39 ) ) col0
----
73
-65

skipif mysql # not compatible
query II rowsort label-2099
SELECT + 73, COALESCE ( - 65, - - MIN ( 77 ), ( + - 39 ) ) col0
----
73
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL - COUNT( ALL 23 ) + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - COUNT ( ALL 23 ) + - 64
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL - CASE - - 34 WHEN - + NULLIF ( ( - 34 ), + + COUNT( * ) ) THEN NULL ELSE ( 90 ) + 82 END * - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - CASE - - 34 WHEN - + NULLIF ( ( - 34 ), + + COUNT ( * ) ) THEN NULL ELSE ( 90 ) + 82 END * - 34 AS col1
----
NULL

query I rowsort
SELECT ALL 24 + + 79 AS col1
----
103

query I rowsort
SELECT DISTINCT 83 + 68
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT 63 / - ( - CASE - ( - - 60 ) WHEN 79 * + - 94 + - + 51 + 84 THEN NULLIF ( + + SUM( ALL - 54 ), + 62 - + - 58 + - 31 ) * + COALESCE ( + 32, 23 + + - 85 * 58 - 96 + - + 27 + 29 + - 32 + + 20 * + 20 * + 15 * + NULLIF ( + ( - - ( 65 ) ), - - COUNT( * ) * + 58 ) * + 15 ) WHEN COALESCE ( COALESCE ( - 4, 34, + COUNT( * ) ), COUNT( CAST( NULL AS SIGNED ) ) / 61 ) - + COUNT( * ) * - 1 THEN COUNT( ALL + 75 ) WHEN 4 THEN 34 END ) / - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT 63 / - ( - CASE - ( - - 60 ) WHEN 79 * + - 94 + - + 51 + 84 THEN NULLIF ( + + SUM ( ALL - 54 ), + 62 - + - 58 + - 31 ) * + COALESCE ( + 32, 23 + + - 85 * 58 - 96 + - + 27 + 29 + - 32 + + 20 * + 20 * + 15 * + NULLIF ( + ( - - ( 65 ) ), - - COUNT ( * ) * + 58 ) * + 15 ) WHEN COALESCE ( COALESCE ( - 4, 34, + COUNT ( * ) ), COUNT ( CAST ( NULL AS INTEGER ) ) / 61 ) - + COUNT ( * ) * - 1 THEN COUNT ( ALL + 75 ) WHEN 4 THEN 34 END ) / - 29
----
NULL

query I rowsort
SELECT ( + ( + 6 ) ) * - + 15 * - 34
----
3060

query I rowsort
SELECT ALL + 74 + + + 67 + + - 18 AS col0
----
123

query II rowsort
SELECT 34 AS col1, - 96 * + - 33 * - 29
----
34
-91872

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT SUM( - - 21 ) * 76
----
1596

skipif mysql # not compatible
query I rowsort label-2108
SELECT SUM ( - - 21 ) * 76
----
1596

query I rowsort
SELECT DISTINCT - 21 * + 32 * + 52 AS col2
----
-34944

query I rowsort
SELECT DISTINCT 9 * + + 67 * COALESCE ( + 83, 46 )
----
50049

query I rowsort
SELECT DISTINCT - 52 + + 81
----
29

query I rowsort
SELECT ALL 27 * NULLIF ( - 20, 50 ) AS col1
----
-540

query I rowsort
SELECT ALL 66 - + 24
----
42

query I rowsort
SELECT DISTINCT - 3 * - - 79 AS col2
----
-237

query II rowsort
SELECT 64 AS col1, - 25 * - - 94 * - 91 AS col2
----
64
213850

query I rowsort
SELECT ALL 93 * - 3 AS col1
----
-279

query I rowsort
SELECT + 63 + - 74 col2
----
-11

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

skipif mysql # not compatible
query I rowsort label-2118
SELECT 68 * 40 + + 28 - + COUNT ( * ) AS col0
----
2747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2119
SELECT ALL - CAST( 13 AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL - CAST ( 13 AS INTEGER ) AS col1
----
-13

query II rowsort
SELECT ALL + 45 col0, - 76 col1
----
45
-76

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

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

query I rowsort
SELECT DISTINCT - CASE + 3 WHEN - 14 THEN + + 60 * 10 + + 90 END * + - 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2123
SELECT + 26 + 90 - - 14 AS col2, MIN( 60 ) * + ( CAST( NULL AS DECIMAL ) ) AS col1
----
130
NULL

skipif mysql # not compatible
query II rowsort label-2123
SELECT + 26 + 90 - - 14 AS col2, MIN ( 60 ) * + ( CAST ( NULL AS REAL ) ) AS col1
----
130
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2124
SELECT ALL CASE 45 WHEN + CAST( NULL AS SIGNED ) - - + 31 THEN + 67 WHEN - - 44 + + 8 * + 85 THEN - 45 * - 69 END / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL CASE 45 WHEN + CAST ( NULL AS INTEGER ) - - + 31 THEN + 67 WHEN - - 44 + + 8 * + 85 THEN - 45 * - 69 END / 18
----
NULL

query I rowsort
SELECT ALL + 26 * - 49 AS col2
----
-1274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT + + 61 * CAST( - 82 AS SIGNED ) - - COALESCE ( - 18, + 53 ) + - - 14 AS col0
----
-5006

skipif mysql # not compatible
query I rowsort label-2126
SELECT + + 61 * CAST ( - 82 AS INTEGER ) - - COALESCE ( - 18, + 53 ) + - - 14 AS col0
----
-5006

query I rowsort
SELECT + - ( + 75 ) * + 82
----
-6150

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT MAX( 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2128
SELECT MAX ( 67 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT DISTINCT MIN( + + 59 ) * 36 AS col1
----
2124

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT MIN ( + + 59 ) * 36 AS col1
----
2124

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2130
SELECT + 67 + - - COUNT( * ) - 64 * - CASE - 46 WHEN + 99 * 96 + + 50 THEN - 60 WHEN + CAST( + 92 AS DECIMAL ) THEN 17 + - 79 * - - 88 WHEN 69 * 19 * + 75 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT + 67 + - - COUNT ( * ) - 64 * - CASE - 46 WHEN + 99 * 96 + + 50 THEN - 60 WHEN + CAST ( + 92 AS REAL ) THEN 17 + - 79 * - - 88 WHEN 69 * 19 * + 75 THEN NULL END
----
NULL

query I rowsort
SELECT + 84 * - 39
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT - SUM( - + 44 ) * - MIN( ALL 3 ) * + + 88 * - ( + 69 )
----
801504

skipif mysql # not compatible
query I rowsort label-2132
SELECT - SUM ( - + 44 ) * - MIN ( ALL 3 ) * + + 88 * - ( + 69 )
----
801504

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

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

query I rowsort
SELECT ALL + 71 * 76 + - - 99
----
5495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT ALL 31 * 78 + COUNT( * ) + CAST( NULL AS SIGNED ) * 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL 31 * 78 + COUNT ( * ) + CAST ( NULL AS INTEGER ) * 8 AS col2
----
NULL

query I rowsort
SELECT - 30 * 8 col0
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT ALL - 55 * - 58 + 6 * ( + NULLIF ( - + 38, + 46 * 47 ) ) + CAST( NULL AS SIGNED ) * + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL - 55 * - 58 + 6 * ( + NULLIF ( - + 38, + 46 * 47 ) ) + CAST ( NULL AS INTEGER ) * + - 26
----
NULL

query II rowsort
SELECT + 18 + - 19 * - - ( + 39 ) AS col2, 64
----
-723
64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2140
SELECT ALL ( CAST( COUNT( * ) AS SIGNED ) ) * 15 + - 40 + 80 + + - 0 DIV - - 41
----
55

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL ( CAST ( COUNT ( * ) AS INTEGER ) ) * 15 + - 40 + 80 + + - 0 / - - 41
----
55

query II rowsort
SELECT ALL - 15 * - - 93 AS col0, 89
----
-1395
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2142
SELECT - + COUNT( * ) * COUNT( * ) AS col0, 79 + + ( NULLIF ( + 36, 77 * + + MAX( - + 8 ) + - 20 ) ) + + + 40 * - CAST( - + 62 AS SIGNED ) AS col1
----
-1
2595

skipif mysql # not compatible
query II rowsort label-2142
SELECT - + COUNT ( * ) * COUNT ( * ) AS col0, 79 + + ( NULLIF ( + 36, 77 * + + MAX ( - + 8 ) + - 20 ) ) + + + 40 * - CAST ( - + 62 AS INTEGER ) AS col1
----
-1
2595

query I rowsort
SELECT - - ( + 86 ) + 83
----
169

query I rowsort
SELECT + + 4 + - 13 AS col2
----
-9

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT ALL + + CAST( NULL AS SIGNED ) / - + 17 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + COUNT( * ) + - 77 col0
----
-76

skipif mysql # not compatible
query I rowsort label-2148
SELECT + COUNT ( * ) + - 77 col0
----
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-2149
SELECT - 83 DIV 53 AS col0, - 14 AS col2
----
-1
-14

skipif mysql # not compatible
query II rowsort label-2149
SELECT - 83 / 53 AS col0, - 14 AS col2
----
-1
-14

query I rowsort
SELECT ALL - 16 * 99 - - 92
----
-1492

query I rowsort
SELECT DISTINCT 45 * + 46 AS col0
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT + + SUM( - 82 ) * + 99 * - + 87 AS col0
----
706266

skipif mysql # not compatible
query I rowsort label-2152
SELECT + + SUM ( - 82 ) * + 99 * - + 87 AS col0
----
706266

onlyif mysql # aggregate syntax: 
query II rowsort label-2153
SELECT MIN( + - 67 ) AS col0, - ( - COUNT( * ) ) + 63 col0
----
-67
64

skipif mysql # not compatible
query II rowsort label-2153
SELECT MIN ( + - 67 ) AS col0, - ( - COUNT ( * ) ) + 63 col0
----
-67
64

query I rowsort
SELECT + 84 + - - 80
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + 90 + + - 12 + 47 * - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-2155
SELECT + 90 + + - 12 + 47 * - COUNT ( * )
----
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT + 61 DIV + 78 * + - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT + 61 / + 78 * + - 89 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2158
SELECT ALL + COUNT( * ) DIV + COUNT( * ) + + 3 DIV - - 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + COUNT ( * ) / + COUNT ( * ) + + 3 / - - 65 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT ALL + 38 DIV - + ( + 65 ) + 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL + 38 / - + ( + 65 ) + 68 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2160
SELECT CAST( - - 29 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2160
SELECT CAST ( - - 29 AS INTEGER ) AS col1
----
29

query I rowsort
SELECT + 54 + - 33
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT DISTINCT + 11 / + - 32 + + - 3 + NULLIF ( + CASE - ( + + ( - - 37 ) ) WHEN - + 56 THEN COUNT( + + 18 ) ELSE NULL END, 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT + 11 / + - 32 + + - 3 + NULLIF ( + CASE - ( + + ( - - 37 ) ) WHEN - + 56 THEN COUNT ( + + 18 ) ELSE NULL END, 73 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT DISTINCT + 44 DIV + 56 + - 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT + 44 / + 56 + - 68 AS col1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2164
SELECT DISTINCT 2 DIV + 17 * 81 + 99 + + ( - 54 ) + + 83 col0
----
128

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT 2 / + 17 * 81 + 99 + + ( - 54 ) + + 83 col0
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2165
SELECT DISTINCT ( 31 ) DIV + - COUNT( * ) * - + 96 DIV - - 89 DIV + + SUM( DISTINCT + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT ( 31 ) / + - COUNT ( * ) * - + 96 / - - 89 / + + SUM ( DISTINCT + 80 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT + SUM( - CAST( NULL AS SIGNED ) ) / 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) / 61 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT + 26 DIV - 92 + 60
----
60

skipif mysql # not compatible
query I rowsort label-2167
SELECT + 26 / - 92 + 60
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2168
SELECT DISTINCT 6 * + COALESCE ( + + CASE 5 WHEN + 45 * 75 THEN NULL WHEN 53 THEN + 8 END, + 59, - SUM( 37 ), - 88 + + 66 ) AS col2, CASE - 35 WHEN - 25 THEN NULL ELSE - 76 END
----
354
-76

skipif mysql # not compatible
query II rowsort label-2168
SELECT DISTINCT 6 * + COALESCE ( + + CASE 5 WHEN + 45 * 75 THEN NULL WHEN 53 THEN + 8 END, + 59, - SUM ( 37 ), - 88 + + 66 ) AS col2, CASE - 35 WHEN - 25 THEN NULL ELSE - 76 END
----
354
-76

query I rowsort
SELECT ALL 65 * 23
----
1495

query I rowsort
SELECT ALL + NULLIF ( - - 11, + 60 )
----
11

query I rowsort
SELECT DISTINCT 70 * 69 AS col1
----
4830

query I rowsort
SELECT ALL 46 * + 55 AS col0
----
2530

query I rowsort
SELECT NULLIF ( + - 49, - 86 ) col0
----
-49

query I rowsort
SELECT + - COALESCE ( + 22, 47 + + 11 )
----
-22

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

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

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

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + + COUNT ( * ) * + - 11 AS col0
----
-11

query I rowsort
SELECT - - 31 * + 74 AS col0
----
2294

query I rowsort
SELECT DISTINCT + 20 * - - 52 AS col1
----
1040

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

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

query I rowsort
SELECT - - 81 - + 52
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT ALL + MAX( ALL 16 ) * + - 23
----
-368

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL + MAX ( ALL 16 ) * + - 23
----
-368

query I rowsort
SELECT 62 * + ( - ( + 0 ) )
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-2184
SELECT COUNT ( * ) * - - 37 / + 2
----
18

query I rowsort
SELECT ALL 72 + - - ( - 10 )
----
62

query I rowsort
SELECT ALL 31 + + 33
----
64

query I rowsort
SELECT 44 * - - 6 AS col1
----
264

query I rowsort
SELECT 47 + + 84 AS col2
----
131

query I rowsort
SELECT - 35 * + 42 - - 42 - 42
----
-1470

onlyif mysql # aggregate syntax: 
query II rowsort label-2190
SELECT + 21, - COUNT( * ) * + + CASE 70 WHEN 61 * + - 58 / - ( + 83 ) * + 94 + + COALESCE ( + 22, - - ( + 43 ), + 54 ) THEN NULL WHEN - 80 * + 24 THEN COUNT( ALL 53 ) WHEN + 45 THEN 39 ELSE NULL END * + - 40 AS col2
----
21
NULL

skipif mysql # not compatible
query II rowsort label-2190
SELECT + 21, - COUNT ( * ) * + + CASE 70 WHEN 61 * + - 58 / - ( + 83 ) * + 94 + + COALESCE ( + 22, - - ( + 43 ), + 54 ) THEN NULL WHEN - 80 * + 24 THEN COUNT ( ALL 53 ) WHEN + 45 THEN 39 ELSE NULL END * + - 40 AS col2
----
21
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2191
SELECT COUNT( * ) * + + NULLIF ( 36, - - ( + 99 ) ) * 91 DIV + + 78 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2191
SELECT COUNT ( * ) * + + NULLIF ( 36, - - ( + 99 ) ) * 91 / + + 78 AS col1
----
42

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

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

query II rowsort
SELECT 50 AS col2, - 79 * - ( - + 23 ) + - - 15
----
50
-1802

query I rowsort
SELECT ( 47 ) * + - 27 AS col0
----
-1269

query II rowsort
SELECT 58, - 75 AS col2
----
58
-75

query I rowsort
SELECT DISTINCT + 25 - + 23
----
2

query I rowsort
SELECT ( - + 74 ) * - + 63
----
4662

query I rowsort
SELECT + 97 * + 47 * 48 * 95 - + + 94
----
20788946

query II rowsort
SELECT + 44 AS col0, 7
----
44
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2200
SELECT ALL 99 DIV - + MIN( + - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL 99 / - + MIN ( + - 88 )
----
1

query I rowsort
SELECT 68 + + 81 AS col0
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2202
SELECT 28 DIV - - 82 * - NULLIF ( 19, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2202
SELECT 28 / - - 82 * - NULLIF ( 19, + COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2203
SELECT + 83 * + - CAST( 6 AS SIGNED ) + - - 46 AS col2
----
-452

skipif mysql # not compatible
query I rowsort label-2203
SELECT + 83 * + - CAST ( 6 AS INTEGER ) + - - 46 AS col2
----
-452

query II rowsort
SELECT ALL - 18 AS col2, 89 AS col0
----
-18
89

query I rowsort
SELECT ALL 60 * - + 77 * - 6 * - + 91 + - 24 + - 28 col2
----
-2522572

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT 77 + + SUM( - + 50 )
----
27

skipif mysql # not compatible
query I rowsort label-2206
SELECT 77 + + SUM ( - + 50 )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT ( - + 57 ) DIV COALESCE ( + 62, - - 37 DIV - 23 + 41 + - 17 - 70 + - - ( + + COUNT( * ) ) * 94 * - 10 * - 65, - COUNT( + + 42 ), 96 )
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT ( - + 57 ) / COALESCE ( + 62, - - 37 / - 23 + 41 + - 17 - 70 + - - ( + + COUNT ( * ) ) * 94 * - 10 * - 65, - COUNT ( + + 42 ), 96 )
----
0

query I rowsort
SELECT + 43 + + + 9
----
52

query II rowsort
SELECT ALL - + 82 col1, 64
----
-82
64

query II rowsort
SELECT 89, - 80 + - 41 AS col2
----
89
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL COUNT( * ) * + + ( - 49 ) * - 78 AS col0
----
3822

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL COUNT ( * ) * + + ( - 49 ) * - 78 AS col0
----
3822

query I rowsort
SELECT + 65 + + 82 AS col1
----
147

query I rowsort
SELECT 77 * - - 54 AS col1
----
4158

query I rowsort
SELECT - ( + COALESCE ( + + 70, - 14 * + 38, - 53 * 79 ) ) + 25
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2215
SELECT ALL MIN( + NULLIF ( - + 47, 38 ) ) + COUNT( * ) - 65 + - CAST( ( - CAST( NULL AS DECIMAL ) ) AS SIGNED ) - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL MIN ( + NULLIF ( - + 47, 38 ) ) + COUNT ( * ) - 65 + - CAST ( ( - CAST ( NULL AS REAL ) ) AS INTEGER ) - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2216
SELECT ALL - COALESCE ( - ( - + 53 ), - + 3 DIV + COUNT( + 23 ) - COUNT( * ), 19 * - MIN( ALL + - 51 ) - - COUNT( * ) * - + COUNT( * ) ) + - 23 DIV - ( - - 57 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - COALESCE ( - ( - + 53 ), - + 3 / + COUNT ( + 23 ) - COUNT ( * ), 19 * - MIN ( ALL + - 51 ) - - COUNT ( * ) * - + COUNT ( * ) ) + - 23 / - ( - - 57 ) AS col2
----
-53

query I rowsort
SELECT ( ( 78 ) )
----
78

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

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

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

query I rowsort
SELECT DISTINCT - + 87 + - 47 * - ( - 30 )
----
-1497

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT ALL CAST( 15 AS SIGNED ) * - ( - 44 ) * - COUNT( * ) + 23
----
-637

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL CAST ( 15 AS INTEGER ) * - ( - 44 ) * - COUNT ( * ) + 23
----
-637

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

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT - 45 + - CAST ( NULL AS INTEGER ) * + + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL + MIN( DISTINCT + - 81 ) + + 7 col2
----
-74

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL + MIN ( DISTINCT + - 81 ) + + 7 col2
----
-74

query I rowsort
SELECT 27 * 40 AS col1
----
1080

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT 34 + - 11 + - 10 DIV + 99
----
23

skipif mysql # not compatible
query I rowsort label-2226
SELECT 34 + - 11 + - 10 / + 99
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT 82 * - - NULLIF ( + 32, + ( - COUNT( * ) ) * AVG ( + 46 ) )
----
2624

skipif mysql # not compatible
query I rowsort label-2227
SELECT 82 * - - NULLIF ( + 32, + ( - COUNT ( * ) ) * AVG ( + 46 ) )
----
2624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2228
SELECT DISTINCT MAX( 74 ) AS col2, + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-2228
SELECT DISTINCT MAX ( 74 ) AS col2, + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
74
NULL

query I rowsort
SELECT ALL - 74 - 51 AS col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT DISTINCT - COALESCE ( - CASE + 23 WHEN + ( - + 75 ) * + + 59 THEN - MAX( DISTINCT + 78 ) + - 88 END, + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT - COALESCE ( - CASE + 23 WHEN + ( - + 75 ) * + + 59 THEN - MAX ( DISTINCT + 78 ) + - 88 END, + 33 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT ALL - 84 DIV - - 55 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL - 84 / - - 55 AS col0
----
-1

query I rowsort
SELECT DISTINCT - ( - 61 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * - + 8 * - 25 / + + 95 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - + 8 * - 25 / + + 95 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2234
SELECT + 30 * - 9 + - 44 * - - 33 * + - 50 AS col2, - 69 + - - 66 + COUNT( * ) + - 32 * - 41 AS col2
----
72330
1310

skipif mysql # not compatible
query II rowsort label-2234
SELECT + 30 * - 9 + - 44 * - - 33 * + - 50 AS col2, - 69 + - - 66 + COUNT ( * ) + - 32 * - 41 AS col2
----
72330
1310

query I rowsort
SELECT 59 * - 6 AS col2
----
-354

query II rowsort
SELECT DISTINCT + 93 * + 36, + 11 AS col0
----
3348
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT SUM( ALL + 59 ) * - - 16 + - - 40 + + + 17
----
1001

skipif mysql # not compatible
query I rowsort label-2237
SELECT SUM ( ALL + 59 ) * - - 16 + - - 40 + + + 17
----
1001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2238
SELECT ALL COUNT( ALL 29 ) * + + 52 DIV COUNT( * ) + - + 47 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL COUNT ( ALL 29 ) * + + 52 / COUNT ( * ) + - + 47 AS col2
----
5

query I rowsort
SELECT ALL - NULLIF ( 51, - 30 ) col0
----
-51

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

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT - 42 * - - ( CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 92 + 75
----
-17

query II rowsort
SELECT + 63 * + 30 AS col1, - 41 - + 86
----
1890
-127

query I rowsort
SELECT + - 61 col0
----
-61

query I rowsort
SELECT + - 79 - - 47
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-2246
SELECT ALL + COUNT( * ) + - + 1 * - 23 AS col2, 16
----
24
16

skipif mysql # not compatible
query II rowsort label-2246
SELECT ALL + COUNT ( * ) + - + 1 * - 23 AS col2, 16
----
24
16

query I rowsort
SELECT + - 4 - + 54
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) * 53 + 68
----
16

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) * 53 + 68
----
16

query I rowsort
SELECT - COALESCE ( + 45, + - 47, 32 + - 67 )
----
-45

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

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

query II rowsort
SELECT 2 AS col0, 71 + - 60
----
2
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT - NULLIF ( + - 90, - + COUNT( - 90 ) )
----
90

skipif mysql # not compatible
query I rowsort label-2252
SELECT - NULLIF ( + - 90, - + COUNT ( - 90 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT + MAX( DISTINCT - 77 ) + 13 + + 29
----
-35

skipif mysql # not compatible
query I rowsort label-2253
SELECT + MAX ( DISTINCT - 77 ) + 13 + + 29
----
-35

query I rowsort
SELECT DISTINCT - 97 * + 35
----
-3395

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

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT MAX ( ALL + 91 ) AS col2
----
91

query I rowsort
SELECT ALL - 88 * - + 4
----
352

query I rowsort
SELECT + 48 * - + 56
----
-2688

query I rowsort
SELECT ALL + 25 - - - 65
----
-40

query I rowsort
SELECT ALL COALESCE ( + 98, + 73 * + 74 )
----
98

query I rowsort
SELECT - 18 * + 27
----
-486

query I rowsort
SELECT ALL - 80 * + - 47 * + + ( 47 ) AS col2
----
176720

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL MAX( ALL + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL MAX ( ALL + 84 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT - 70 DIV + COALESCE ( + - 51, 12 )
----
1

skipif mysql # not compatible
query I rowsort label-2263
SELECT - 70 / + COALESCE ( + - 51, 12 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT ALL + CAST( ( - + 23 ) AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL + CAST ( ( - + 23 ) AS INTEGER ) AS col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT ALL + 26 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL + 26 / + 87
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT - ( - 72 ) DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2266
SELECT - ( - 72 ) / + 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT - COUNT( * ) - - + 48 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2267
SELECT - COUNT ( * ) - - + 48 AS col0
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ALL - + 13 * + 83 * - COUNT( * ) + + 82 + - 84 + + - 55 * - COALESCE ( + - 64, - - 98, + COUNT( * ) * - 78 * + CASE + - 48 WHEN 56 + + + 42 THEN - 29 END )
----
-2443

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL - + 13 * + 83 * - COUNT ( * ) + + 82 + - 84 + + - 55 * - COALESCE ( + - 64, - - 98, + COUNT ( * ) * - 78 * + CASE + - 48 WHEN 56 + + + 42 THEN - 29 END )
----
-2443

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL - 27 * + 36 * - COUNT( * ) + + + 11
----
983

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL - 27 * + 36 * - COUNT ( * ) + + + 11
----
983

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL + + 14 * COUNT( * ) + COUNT( + - 2 )
----
15

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + + 14 * COUNT ( * ) + COUNT ( + - 2 )
----
15

query I rowsort
SELECT ALL - 19 * + - 79 + 4 AS col2
----
1505

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

query I rowsort
SELECT ALL - 97 * - CASE - - 96 WHEN + 39 - + 95 THEN - 33 / 81 / - + 14 END * + 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2275
SELECT ALL + 5 * + - 87 * + 12 + + CAST( COUNT( * ) AS SIGNED ) / - + ( + 52 ) * + ( COALESCE ( - + COUNT( * ), - 44 * 83, + 21 / - CAST( NULL AS SIGNED ) * + 82 + - 20 + - MIN( + 54 ) + - 70 * + - 98 + 86 + + 4 ) ) * - - 55 + - + 36 + 70 * - + 93 * 0 * - - CASE - COUNT( DISTINCT + + 1 ) WHEN 65 - 52 THEN 21 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + 5 * + - 87 * + 12 + + CAST ( COUNT ( * ) AS INTEGER ) / - + ( + 52 ) * + ( COALESCE ( - + COUNT ( * ), - 44 * 83, + 21 / - CAST ( NULL AS INTEGER ) * + 82 + - 20 + - MIN ( + 54 ) + - 70 * + - 98 + 86 + + 4 ) ) * - - 55 + - + 36 + 70 * - + 93 * 0 * - - CASE - COUNT ( DISTINCT + + 1 ) WHEN 65 - 52 THEN 21 END col1
----
NULL

query I rowsort
SELECT + 83 - + 69 + + 48 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT - - 58 + - + SUM( ALL - 62 ) - 59
----
61

skipif mysql # not compatible
query I rowsort label-2277
SELECT - - 58 + - + SUM ( ALL - 62 ) - 59
----
61

query II rowsort
SELECT NULLIF ( - 65, + 42 + + 21 + + + ( + 20 ) + 63 * + 70 ) AS col1, 1 + - 27 + - 87 AS col0
----
-65
-113

query I rowsort
SELECT ALL - + 16 * - 93
----
1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2280
SELECT ALL - SUM( - 0 ) * + COALESCE ( + CAST( NULL AS SIGNED ), 67 * MIN( + - 87 ) * - - 44 ) + + 23 - + 83 DIV 50 col0
----
22

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL - SUM ( - 0 ) * + COALESCE ( + CAST ( NULL AS INTEGER ), 67 * MIN ( + - 87 ) * - - 44 ) + + 23 - + 83 / 50 col0
----
22

query I rowsort
SELECT ALL + - 94 AS col1
----
-94

query I rowsort
SELECT 92 * + 38 + - 29 * - 14 col0
----
3902

query I rowsort
SELECT + 96 + - ( + + 71 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT - NULLIF ( + 54, - - 72 + - + NULLIF ( + - 76, + ( + COUNT( * ) ) ) * + 0 + + 43 + + 96 * - 38 / COUNT( * ) * - 77 * - 83 + + COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-2284
SELECT - NULLIF ( + 54, - - 72 + - + NULLIF ( + - 76, + ( + COUNT ( * ) ) ) * + 0 + + 43 + + 96 * - 38 / COUNT ( * ) * - 77 * - 83 + + COUNT ( * ) )
----
-54

query II rowsort
SELECT + 60 + - 54 col2, + 35
----
6
35

query I rowsort
SELECT - COALESCE ( - + 3, 56 ) AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT DISTINCT 84 * 21 DIV - + 74 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT 84 * 21 / - + 74 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT ALL 42 * - 7 / CAST( NULL AS SIGNED ) * + 67 * - 78 * + - CASE 72 WHEN + + 94 * - + 7 THEN 64 ELSE NULL END / 2 * 77 * - - COUNT( * ) + 53 + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL 42 * - 7 / CAST ( NULL AS INTEGER ) * + 67 * - 78 * + - CASE 72 WHEN + + 94 * - + 7 THEN 64 ELSE NULL END / 2 * 77 * - - COUNT ( * ) + 53 + - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL ( + 12 ) * - NULLIF ( + 91, ( - - 58 ) / + COUNT( * ) * COUNT( 26 ) + NULLIF ( + 7, + 8 + + 6 ) * - - 45 + + - 41 + + + 56 ) AS col0
----
-1092

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL ( + 12 ) * - NULLIF ( + 91, ( - - 58 ) / + COUNT ( * ) * COUNT ( 26 ) + NULLIF ( + 7, + 8 + + 6 ) * - - 45 + + - 41 + + + 56 ) AS col0
----
-1092

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2290
SELECT + 24 * - MAX( + 0 ) DIV - 8 * 23 * 82 + + 13 - + + ( 92 ) AS col1, + 29 + + 0 * + - MAX( ALL - 60 ) + + 69
----
-79
98

skipif mysql # not compatible
query II rowsort label-2290
SELECT + 24 * - MAX ( + 0 ) / - 8 * 23 * 82 + + 13 - + + ( 92 ) AS col1, + 29 + + 0 * + - MAX ( ALL - 60 ) + + 69
----
-79
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2291
SELECT + ( 93 ) + + + SUM( DISTINCT - 61 ), 25 AS col2
----
32
25

skipif mysql # not compatible
query II rowsort label-2291
SELECT + ( 93 ) + + + SUM ( DISTINCT - 61 ), 25 AS col2
----
32
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT + 88 * + - SUM( 35 )
----
-3080

skipif mysql # not compatible
query I rowsort label-2292
SELECT + 88 * + - SUM ( 35 )
----
-3080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2293
SELECT + MAX( DISTINCT - - 21 ) * - CAST( NULL AS SIGNED ) * - COUNT( * ) * 0 / + COALESCE ( - 52, - COUNT( * ), + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT + MAX ( DISTINCT - - 21 ) * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 0 / + COALESCE ( - 52, - COUNT ( * ), + 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + 6 + COUNT( ( + 61 ) ) + ( - 84 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-2294
SELECT + 6 + COUNT ( ( + 61 ) ) + ( - 84 ) AS col0
----
-77

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

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

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

query I rowsort
SELECT + ( - 49 ) + + - 77
----
-126

query I rowsort
SELECT - 88 + + 21
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2299
SELECT DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN + 60 THEN + - 41 * + - 8 END, 94 * COUNT( * ) AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-2299
SELECT DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN + 60 THEN + - 41 * + - 8 END, 94 * COUNT ( * ) AS col2
----
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT + MAX( 52 ) * - 79 AS col0
----
-4108

skipif mysql # not compatible
query I rowsort label-2300
SELECT + MAX ( 52 ) * - 79 AS col0
----
-4108

query I rowsort
SELECT DISTINCT 99 + + - 66 AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2302
SELECT ALL + COUNT( * ) + + 89 DIV + + 25
----
4

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL + COUNT ( * ) + + 89 / + + 25
----
4

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

skipif mysql # not compatible
query I rowsort label-2303
SELECT + 89 * ( + 19 ) + + - COUNT ( * ) + - COUNT ( * ) AS col1
----
1689

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

skipif mysql # not compatible
query I rowsort label-2304
SELECT + + MIN ( - 3 )
----
-3

query I rowsort
SELECT ALL + - 93 + NULLIF ( - - 50, + 91 ) - - - 67 + + + 49 * + ( + 75 ) + - 48 AS col0
----
3517

query I rowsort
SELECT + 21 * + + 68
----
1428

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT DISTINCT + ( 16 ) DIV - - 88 + + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT + ( 16 ) / - - 88 + + 37 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + - 29
----
NULL

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

query I rowsort
SELECT ALL + + 17 * + 65 * - 91
----
-100555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 16 - + + 5 - + - 3 AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2313
SELECT - 28 - + 51 + - ( + 96 ) DIV - - COUNT( * )
----
-175

skipif mysql # not compatible
query I rowsort label-2313
SELECT - 28 - + 51 + - ( + 96 ) / - - COUNT ( * )
----
-175

query I rowsort
SELECT ALL + 88 * 58 * + 78 * 40 col1
----
15924480

query I rowsort
SELECT 53 * + - 70 AS col2
----
-3710

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL + 97 * COALESCE ( - - MAX( - 70 ), 2 ) AS col2
----
-6790

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL + 97 * COALESCE ( - - MAX ( - 70 ), 2 ) AS col2
----
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT 82 - + - 65 - 86 + - ( - 83 ) + - 22 + - 63 * + COUNT( * ) * - 78 AS col1
----
5036

skipif mysql # not compatible
query I rowsort label-2317
SELECT 82 - + - 65 - 86 + - ( - 83 ) + - 22 + - 63 * + COUNT ( * ) * - 78 AS col1
----
5036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2318
SELECT SUM( DISTINCT - 12 ) - CAST( + + 29 AS SIGNED ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-2318
SELECT SUM ( DISTINCT - 12 ) - CAST ( + + 29 AS INTEGER ) AS col0
----
-41

query II rowsort
SELECT ALL 0 + COALESCE ( + 61, - 78, + 52 ), 31 col0
----
61
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2320
SELECT 72 + - 83 + - - COUNT( + + 74 ) * + 4 DIV - 97 + - + 86 - 80 * - COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2320
SELECT 72 + - 83 + - - COUNT ( + + 74 ) * + 4 / - 97 + - + 86 - 80 * - COUNT ( * ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT MIN( ALL ( - - 64 ) ) + 88 + + - 44 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-2321
SELECT MIN ( ALL ( - - 64 ) ) + 88 + + - 44 AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2322
SELECT ALL CASE 15 WHEN - 78 THEN - - 23 WHEN + ( - ( - 97 ) ) * - MAX( - 72 ) * CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL CASE 15 WHEN - 78 THEN - - 23 WHEN + ( - ( - 97 ) ) * - MAX ( - 72 ) * CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * 21 AS col2
----
NULL

query I rowsort
SELECT ALL 29 * - - ( - + 7 )
----
-203

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 84 AS col1
----
NULL

query I rowsort
SELECT - 16 * - 6 + - + 37
----
59

query I rowsort
SELECT 8 - 59
----
-51

query I rowsort
SELECT - 60 * + - NULLIF ( 76, - + 6 ) AS col0
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL 99 + + 2 + 34 * + - NULLIF ( + - 74, - + COUNT( 52 ) ) - + MAX( DISTINCT + 16 ) AS col2
----
2601

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL 99 + + 2 + 34 * + - NULLIF ( + - 74, - + COUNT ( 52 ) ) - + MAX ( DISTINCT + 16 ) AS col2
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT MIN( 91 ) * + 91 + + - 60
----
8221

skipif mysql # not compatible
query I rowsort label-2330
SELECT MIN ( 91 ) * + 91 + + - 60
----
8221

query I rowsort
SELECT ALL 40 * + 21 - - 97 AS col2
----
937

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

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

query I rowsort
SELECT ALL + + 65 * + 76 AS col0
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT - 57 * + 21 * + 24 + - - CASE - + COUNT( DISTINCT - - 13 ) WHEN + - 91 THEN NULL WHEN 67 + COUNT( + 49 ) THEN 69 WHEN - ( - - 78 ) THEN + COUNT( * ) END - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT - 57 * + 21 * + 24 + - - CASE - + COUNT ( DISTINCT - - 13 ) WHEN + - 91 THEN NULL WHEN 67 + COUNT ( + 49 ) THEN 69 WHEN - ( - - 78 ) THEN + COUNT ( * ) END - 86 AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2336
SELECT 15 + 26 * + + COUNT ( * ) AS col1
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2337
SELECT DISTINCT - 54 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT - 54 * - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL - 5, - 16 AS col2
----
-5
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT + COUNT( DISTINCT - ( NULLIF ( - + 39, + 59 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2339
SELECT + COUNT ( DISTINCT - ( NULLIF ( - + 39, + 59 ) ) ) AS col0
----
1

query I rowsort
SELECT 7 * - + 74 col1
----
-518

query I rowsort
SELECT DISTINCT + ( + 0 ) * 18 AS col0
----
0

query I rowsort
SELECT ALL - ( - 43 ) AS col2
----
43

query I rowsort
SELECT 63 * 30
----
1890

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2344
SELECT 66 * 95 AS col1, + CASE ( - 82 ) WHEN + CAST( + - 79 AS SIGNED ) + 62 + 8 + + 33 * 11 THEN 67 END AS col1
----
6270
NULL

skipif mysql # not compatible
query II rowsort label-2344
SELECT 66 * 95 AS col1, + CASE ( - 82 ) WHEN + CAST ( + - 79 AS INTEGER ) + 62 + 8 + + 33 * 11 THEN 67 END AS col1
----
6270
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT ALL - 29 DIV - + 38 * 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL - 29 / - + 38 * 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2346
SELECT 72 + + COUNT( * ) AS col0, 3 AS col2
----
73
3

skipif mysql # not compatible
query II rowsort label-2346
SELECT 72 + + COUNT ( * ) AS col0, 3 AS col2
----
73
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL + 57 * - MAX( DISTINCT - 86 ) AS col1
----
4902

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL + 57 * - MAX ( DISTINCT - 86 ) AS col1
----
4902

query I rowsort
SELECT DISTINCT + 84 + 21 AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2349
SELECT ALL - 21 + + + COALESCE ( 29, - 48 DIV + - 62 DIV - CAST( NULL AS SIGNED ) ) + + - 0 * - MIN( DISTINCT - 44 ) DIV - 82
----
8

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL - 21 + + + COALESCE ( 29, - 48 / + - 62 / - CAST ( NULL AS INTEGER ) ) + + - 0 * - MIN ( DISTINCT - 44 ) / - 82
----
8

query I rowsort
SELECT ALL + 66 + + 48 AS col0
----
114

query II rowsort
SELECT - 25 AS col1, ( 81 ) AS col1
----
-25
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2352
SELECT 17 + + 43 AS col0, + SUM( ALL 78 ) * 70 + 87 + + 33
----
60
5580

skipif mysql # not compatible
query II rowsort label-2352
SELECT 17 + + 43 AS col0, + SUM ( ALL 78 ) * 70 + 87 + + 33
----
60
5580

query I rowsort
SELECT 87 + 79 * - + 99
----
-7734

query I rowsort
SELECT ALL - 21 + - - 49 AS col0
----
28

query I rowsort
SELECT ALL + 67 + - - 35 AS col2
----
102

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

skipif mysql # not compatible
query II rowsort label-2356
SELECT 28 AS col2, COUNT ( * ) AS col0
----
28
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2357
SELECT ALL + COUNT( * ) + - 70 + + + 26 DIV - 31 AS col1, + 57 AS col1
----
-69
57

skipif mysql # not compatible
query II rowsort label-2357
SELECT ALL + COUNT ( * ) + - 70 + + + 26 / - 31 AS col1, + 57 AS col1
----
-69
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT ALL 5 + MAX( DISTINCT - 51 ) * 42
----
-2137

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL 5 + MAX ( DISTINCT - 51 ) * 42
----
-2137

query II rowsort
SELECT + 5 + 49, 12 AS col1
----
54
12

query I rowsort
SELECT ALL + 22 + - 72 + + 69
----
19

query II rowsort
SELECT 23, + 86 + - 53 AS col2
----
23
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT - + 95 + + + COUNT( * ) - + - 73 * + - 98 * - 92 + + - 63 AS col0
----
658011

skipif mysql # not compatible
query I rowsort label-2363
SELECT - + 95 + + + COUNT ( * ) - + - 73 * + - 98 * - 92 + + - 63 AS col0
----
658011

query I rowsort
SELECT + - 32 * - 77 - 16 AS col1
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT MAX( DISTINCT - + 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2365
SELECT MAX ( DISTINCT - + 56 ) AS col0
----
-56

query I rowsort
SELECT + - 15 + + 48
----
33

query I rowsort
SELECT DISTINCT 6 - - + 5 AS col0
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT - MIN( DISTINCT + 4 ) - - - 67 * + 24 + - 45 AS col0
----
-1657

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT - MIN ( DISTINCT + 4 ) - - - 67 * + 24 + - 45 AS col0
----
-1657

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT + - ( - 55 ) * - - COUNT( * ) * - + 69
----
-3795

skipif mysql # not compatible
query I rowsort label-2370
SELECT + - ( - 55 ) * - - COUNT ( * ) * - + 69
----
-3795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2371
SELECT + 17 / - CAST( NULL AS SIGNED ) * - 13 / - - NULLIF ( + 27, - - ( + 64 ) ) + + MIN( DISTINCT + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT + 17 / - CAST ( NULL AS INTEGER ) * - 13 / - - NULLIF ( + 27, - - ( + 64 ) ) + + MIN ( DISTINCT + 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT DISTINCT - - COUNT( * ) * + 47 * + 42
----
1974

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT - - COUNT ( * ) * + 47 * + 42
----
1974

query I rowsort
SELECT - 60 * + 21 AS col0
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2374
SELECT - CAST( - - 64 AS SIGNED ) * + + 61 * + + COUNT( * ) * + + 82 AS col0
----
-320128

skipif mysql # not compatible
query I rowsort label-2374
SELECT - CAST ( - - 64 AS INTEGER ) * + + 61 * + + COUNT ( * ) * + + 82 AS col0
----
-320128

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT CASE - 16 WHEN 69 / + ( - ( + CASE - 65 WHEN - + 96 THEN + 79 END ) ) THEN - 60 WHEN - ( + + 70 ) * - 54 - 86 + - - 37 + + + 69 THEN COUNT( * ) + 97 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2375
SELECT CASE - 16 WHEN 69 / + ( - ( + CASE - 65 WHEN - + 96 THEN + 79 END ) ) THEN - 60 WHEN - ( + + 70 ) * - 54 - 86 + - - 37 + + + 69 THEN COUNT ( * ) + 97 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2376
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0, 37 + - - 46 - 39 + - 48 DIV - 61 * - 2 AS col1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-2376
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0, 37 + - - 46 - 39 + - 48 / - 61 * - 2 AS col1
----
NULL
44

query I rowsort
SELECT CASE WHEN NOT ( NOT NULL IS NOT NULL ) THEN + 60 ELSE - 65 * + + 7 + - 60 END
----
-515

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT + + 39 + + + 70 * - MAX( DISTINCT + 29 ) AS col1
----
-1991

skipif mysql # not compatible
query I rowsort label-2378
SELECT + + 39 + + + 70 * - MAX ( DISTINCT + 29 ) AS col1
----
-1991

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2379
SELECT + 14 AS col0, CAST( NULL AS SIGNED ) * - - 48 + 44
----
14
NULL

skipif mysql # not compatible
query II rowsort label-2379
SELECT + 14 AS col0, CAST ( NULL AS INTEGER ) * - - 48 + 44
----
14
NULL

query I rowsort
SELECT + - 69 * - + 80
----
5520

query II rowsort
SELECT ALL + + 79 AS col2, + 89
----
79
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT + COALESCE ( 27, COUNT( * ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2382
SELECT + COALESCE ( 27, COUNT ( * ) ) AS col1
----
27

query I rowsort
SELECT ALL - 25 * + - 29 * + + 60 AS col1
----
43500

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT + 19 * + COUNT( * ) * + 55 * + - MIN( DISTINCT + 37 ) * - 9 AS col2
----
347985

skipif mysql # not compatible
query I rowsort label-2384
SELECT + 19 * + COUNT ( * ) * + 55 * + - MIN ( DISTINCT + 37 ) * - 9 AS col2
----
347985

query I rowsort
SELECT DISTINCT 79 * 8 + - 35
----
597

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

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

query I rowsort
SELECT + 65 - - 49 * 30 AS col2
----
1535

onlyif mysql # DIV for integer division: 
query I rowsort label-2388
SELECT + 83 DIV - 83
----
-1

skipif mysql # not compatible
query I rowsort label-2388
SELECT + 83 / - 83
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2389
SELECT + NULLIF ( - 39, + 44 ) + + ( COALESCE ( - + 97, - ( + 96 ) * - COUNT( * ) DIV - 93 + 43 ) )
----
-136

skipif mysql # not compatible
query I rowsort label-2389
SELECT + NULLIF ( - 39, + 44 ) + + ( COALESCE ( - + 97, - ( + 96 ) * - COUNT ( * ) / - 93 + 43 ) )
----
-136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL - MIN( - 29 ) + + 43
----
72

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - MIN ( - 29 ) + + 43
----
72

query I rowsort
SELECT ALL + 35 + 86
----
121

query II rowsort
SELECT - 88 - 50, 74 * - - 63 AS col0
----
-138
4662

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT ALL - 90 DIV + ( + 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL - 90 / + ( + 88 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL - MIN( 71 ) - + NULLIF ( + 39, - - 63 ) * - MAX( ALL - ( - 88 ) ) col2
----
3361

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL - MIN ( 71 ) - + NULLIF ( + 39, - - 63 ) * - MAX ( ALL - ( - 88 ) ) col2
----
3361

query I rowsort
SELECT - 52 + 80
----
28

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

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

query I rowsort
SELECT ALL + - 19 - 7 + 14 AS col0
----
-12

query I rowsort
SELECT - COALESCE ( - 65, + 72 * - - 34 + + - 90 - 87 * + + 49 * + 28, 5 ) AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2400
SELECT - 91 * 16 * - + 1, + CAST( NULL AS SIGNED ) AS col1
----
1456
NULL

skipif mysql # not compatible
query II rowsort label-2400
SELECT - 91 * 16 * - + 1, + CAST ( NULL AS INTEGER ) AS col1
----
1456
NULL

query I rowsort
SELECT ALL - 20 * 44 + - 83 AS col1
----
-963

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT - - 23 + 56 + + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-2402
SELECT - - 23 + 56 + + COUNT ( * ) AS col2
----
80

query I rowsort
SELECT ALL + 4 * 30 * - + 73 AS col2
----
-8760

query I rowsort
SELECT - ( + 17 ) + - 42
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2405
SELECT DISTINCT - COUNT( DISTINCT 40 ) DIV - - 74 * - MIN( ALL - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT - COUNT ( DISTINCT 40 ) / - - 74 * - MIN ( ALL - 74 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT ALL 18 DIV - + 75 + - - 58
----
58

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL 18 / - + 75 + - - 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT DISTINCT + + COUNT( ALL 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT + + COUNT ( ALL 90 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2408
SELECT DISTINCT CAST( + MIN( DISTINCT + 38 ) AS SIGNED ) DIV - + ( + 72 ) + MAX( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT CAST ( + MIN ( DISTINCT + 38 ) AS INTEGER ) / - + ( + 72 ) + MAX ( - 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2409
SELECT CAST( NULL AS SIGNED ), + 88 AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-2409
SELECT CAST ( NULL AS INTEGER ), + 88 AS col0
----
NULL
88

query I rowsort
SELECT - 72 * - 53
----
3816

query I rowsort
SELECT + 78 + - - COALESCE ( + 11, - 34 ) AS col0
----
89

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

query I rowsort
SELECT + 72 * - 27
----
-1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2414
SELECT ALL 77 DIV - SUM( - 9 )
----
8

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL 77 / - SUM ( - 9 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2415
SELECT 66 * - 72 DIV + NULLIF ( + COUNT( * ), 36 + - - COUNT( * ) + + - 48 + SUM( - 77 ) * + - 82 ) - + - COUNT( * ) AS col2, 86 AS col0
----
-4751
86

skipif mysql # not compatible
query II rowsort label-2415
SELECT 66 * - 72 / + NULLIF ( + COUNT ( * ), 36 + - - COUNT ( * ) + + - 48 + SUM ( - 77 ) * + - 82 ) - + - COUNT ( * ) AS col2, 86 AS col0
----
-4751
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2416
SELECT + ( COUNT( ALL - 22 ) ) col2, + CAST( 21 AS SIGNED ) + + - 78, + 46 AS col2
----
1
-57
46

skipif mysql # not compatible
query III rowsort label-2416
SELECT + ( COUNT ( ALL - 22 ) ) col2, + CAST ( 21 AS INTEGER ) + + - 78, + 46 AS col2
----
1
-57
46

query II rowsort
SELECT 67 AS col0, 96 * + + 8 * + 0
----
67
0

query I rowsort
SELECT ALL 6 + 25 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT 7 + - - MIN( DISTINCT + + 48 )
----
55

skipif mysql # not compatible
query I rowsort label-2419
SELECT 7 + - - MIN ( DISTINCT + + 48 )
----
55

query I rowsort
SELECT ALL 23 * + 8
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT DISTINCT 35 - - COUNT( DISTINCT + 29 )
----
36

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT 35 - - COUNT ( DISTINCT + 29 )
----
36

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

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

query I rowsort
SELECT 97 * + + 15 AS col0
----
1455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2424
SELECT COUNT( * ) * - - 97 * + ( + COUNT( * ) ) * - CASE + MAX( ALL + + 35 ) WHEN + 50 + 25 THEN + 58 * - + 21 + - 71 + - 24 * - + CAST( - 90 AS SIGNED ) * 53 + 40 * - COUNT( * ) * ( - - 69 ) + - 75 + - + 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT COUNT ( * ) * - - 97 * + ( + COUNT ( * ) ) * - CASE + MAX ( ALL + + 35 ) WHEN + 50 + 25 THEN + 58 * - + 21 + - 71 + - 24 * - + CAST ( - 90 AS INTEGER ) * 53 + 40 * - COUNT ( * ) * ( - - 69 ) + - 75 + - + 32 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT COUNT( * ) * - CASE - + 66 WHEN + 85 THEN - COUNT( + 10 ) WHEN + 51 THEN - 62 * 97 * + 7 - - 18 ELSE - + 45 END
----
45

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT COUNT ( * ) * - CASE - + 66 WHEN + 85 THEN - COUNT ( + 10 ) WHEN + 51 THEN - 62 * 97 * + 7 - - 18 ELSE - + 45 END
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT COUNT( * ) * + 46 * + 75 * - + 84 AS col0
----
-289800

skipif mysql # not compatible
query I rowsort label-2427
SELECT COUNT ( * ) * + 46 * + 75 * - + 84 AS col0
----
-289800

onlyif mysql # DIV for integer division: 
query II rowsort label-2428
SELECT ALL + 39 AS col1, 89 DIV + 60 + + 82
----
39
83

skipif mysql # not compatible
query II rowsort label-2428
SELECT ALL + 39 AS col1, 89 / + 60 + + 82
----
39
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT ALL - COALESCE ( + - 73, + 59 + + + 91, - CAST( NULL AS SIGNED ) ) - + 27 * + + ( - + 79 ) + + + 63
----
2269

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - COALESCE ( + - 73, + 59 + + + 91, - CAST ( NULL AS INTEGER ) ) - + 27 * + + ( - + 79 ) + + + 63
----
2269

query I rowsort
SELECT + 71 + + - 43 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL + 43 * - SUM( ALL 92 ) + - 42 AS col2
----
-3998

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + 43 * - SUM ( ALL 92 ) + - 42 AS col2
----
-3998

query I rowsort
SELECT + 85 + + 49 col1
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2433
SELECT ALL - 32 DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - 32 / 37
----
0

query II rowsort
SELECT ( - 56 ) + + 80 col1, - 49 * + NULLIF ( 75, 93 )
----
24
-3675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2435
SELECT 23 DIV 30 * COUNT( * ) - 9 col2
----
-9

skipif mysql # not compatible
query I rowsort label-2435
SELECT 23 / 30 * COUNT ( * ) - 9 col2
----
-9

query I rowsort
SELECT ALL - + 79 * + 48 * 11 AS col0
----
-41712

query II rowsort
SELECT - - 0 AS col1, + 29
----
0
29

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT DISTINCT - 75 + - + 92 + + COUNT( * ) AS col1, 62 AS col1
----
-166
62

skipif mysql # not compatible
query II rowsort label-2439
SELECT DISTINCT - 75 + - + 92 + + COUNT ( * ) AS col1, 62 AS col1
----
-166
62

query I rowsort
SELECT ALL + - 66 + 3 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT - + CASE MAX( - 75 ) WHEN + 63 * - 47 + - 77 + - ( - 69 ) * 99 / - 11 THEN NULL ELSE + + ( - - 66 ) END
----
-66

skipif mysql # not compatible
query I rowsort label-2441
SELECT - + CASE MAX ( - 75 ) WHEN + 63 * - 47 + - 77 + - ( - 69 ) * 99 / - 11 THEN NULL ELSE + + ( - - 66 ) END
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT + 1 + - ( - NULLIF ( 11, - MAX( ALL - 50 ) ) ) - MIN( + 58 ) * - 48 AS col2
----
2796

skipif mysql # not compatible
query I rowsort label-2442
SELECT + 1 + - ( - NULLIF ( 11, - MAX ( ALL - 50 ) ) ) - MIN ( + 58 ) * - 48 AS col2
----
2796

query I rowsort
SELECT ( - 73 ) + + 8
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL + - CASE COUNT( * ) WHEN + 47 THEN NULL ELSE 29 END + - 14 + + 39
----
-4

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL + - CASE COUNT ( * ) WHEN + 47 THEN NULL ELSE 29 END + - 14 + + 39
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2445
SELECT + 0 AS col1, - CASE + 44 WHEN + 89 * + 8 * - ( - 77 ) THEN NULL WHEN COUNT( * ) - + COUNT( * ) * - 35 / - 21 + - 71 * + CAST( MIN( ALL + 50 ) AS SIGNED ) * - 2 * + 36 THEN + COALESCE ( - 40, 10 ) ELSE NULL END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2445
SELECT + 0 AS col1, - CASE + 44 WHEN + 89 * + 8 * - ( - 77 ) THEN NULL WHEN COUNT ( * ) - + COUNT ( * ) * - 35 / - 21 + - 71 * + CAST ( MIN ( ALL + 50 ) AS INTEGER ) * - 2 * + 36 THEN + COALESCE ( - 40, 10 ) ELSE NULL END AS col1
----
0
NULL

query I rowsort
SELECT + 28 * + + 79 * + 82 AS col2
----
181384

query I rowsort
SELECT - 67 * + - 61
----
4087

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2449
SELECT ALL + 7 DIV 74 AS col0, 98
----
0
98

skipif mysql # not compatible
query II rowsort label-2449
SELECT ALL + 7 / 74 AS col0, 98
----
0
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT 81 DIV 41 * + - 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2450
SELECT 81 / 41 * + - 31 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-2451
SELECT COUNT( * ) + + 14 AS col0, ( 52 ) * 63
----
15
3276

skipif mysql # not compatible
query II rowsort label-2451
SELECT COUNT ( * ) + + 14 AS col0, ( 52 ) * 63
----
15
3276

query I rowsort
SELECT ALL 30 + + 40 AS col1
----
70

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

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT COUNT ( - 68 ) * + + 26 AS col2
----
26

query I rowsort
SELECT ALL + 8 * + 85 col2
----
680

onlyif mysql # aggregate syntax: 
query II rowsort label-2455
SELECT DISTINCT + 90 * - 65 AS col2, COUNT( * )
----
-5850
1

skipif mysql # not compatible
query II rowsort label-2455
SELECT DISTINCT + 90 * - 65 AS col2, COUNT ( * )
----
-5850
1

query I rowsort
SELECT ALL - COALESCE ( + 76, 32 ) - + 60 + - 68
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT COALESCE ( - - 18, - + CASE 6 WHEN - ( COUNT( * ) ) THEN NULL ELSE + + 68 + + 25 END ) * - 58
----
-1044

skipif mysql # not compatible
query I rowsort label-2457
SELECT COALESCE ( - - 18, - + CASE 6 WHEN - ( COUNT ( * ) ) THEN NULL ELSE + + 68 + + 25 END ) * - 58
----
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT 6 - + MIN( DISTINCT - 15 ) * + - 67 AS col0
----
-999

skipif mysql # not compatible
query I rowsort label-2458
SELECT 6 - + MIN ( DISTINCT - 15 ) * + - 67 AS col0
----
-999

onlyif mysql # DIV for integer division: 
query I rowsort label-2459
SELECT DISTINCT ( + 81 ) DIV - 65 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT ( + 81 ) / - 65 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT COUNT( * ) + NULLIF ( - 9, + - 27 / - - 89 * 49 )
----
-8

skipif mysql # not compatible
query I rowsort label-2460
SELECT COUNT ( * ) + NULLIF ( - 9, + - 27 / - - 89 * 49 )
----
-8

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

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

query I rowsort
SELECT 32 * 8 * 94 AS col1
----
24064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT CAST( + 68 AS SIGNED ) - CAST( 0 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-2463
SELECT CAST ( + 68 AS INTEGER ) - CAST ( 0 AS INTEGER )
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2464
SELECT ALL - 3 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT + COUNT( ALL 89 ) * 91
----
91

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT + COUNT ( ALL 89 ) * 91
----
91

query I rowsort
SELECT - + NULLIF ( 96, + 71 )
----
-96

query I rowsort
SELECT 38 + + 98
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT + 19 * COUNT( * ) AS col2, 31 AS col0
----
19
31

skipif mysql # not compatible
query II rowsort label-2469
SELECT + 19 * COUNT ( * ) AS col2, 31 AS col0
----
19
31

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2471
SELECT ALL - 46 + + - 86, + COUNT( * ) AS col0
----
-132
1

skipif mysql # not compatible
query II rowsort label-2471
SELECT ALL - 46 + + - 86, + COUNT ( * ) AS col0
----
-132
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2472
SELECT - COALESCE ( + 56, 36 * + 18 + 54 - + 8 DIV - NULLIF ( 34, - + COUNT( * ) ) ) AS col2, ( 46 ) * 87 - + 52 + 35 * 34 DIV - COUNT( * )
----
-56
2760

skipif mysql # not compatible
query II rowsort label-2472
SELECT - COALESCE ( + 56, 36 * + 18 + 54 - + 8 / - NULLIF ( 34, - + COUNT ( * ) ) ) AS col2, ( 46 ) * 87 - + 52 + 35 * 34 / - COUNT ( * )
----
-56
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL + 77 + - SUM( ALL + 28 )
----
49

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + 77 + - SUM ( ALL + 28 )
----
49

query I rowsort
SELECT ALL - 96 + - 50 AS col2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT ALL + ( + 24 ) DIV + - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL + ( + 24 ) / + - 80 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2476
SELECT - 51 + - + COUNT ( * ) AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2477
SELECT DISTINCT - CASE + 84 WHEN - 0 THEN NULL ELSE - - 6 END * - + 97 * - NULLIF ( - - NULLIF ( - 76, - COUNT( * ) ), ( - + CAST( 75 AS SIGNED ) ) * + - 98 * 63 ) col0
----
44232

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT - CASE + 84 WHEN - 0 THEN NULL ELSE - - 6 END * - + 97 * - NULLIF ( - - NULLIF ( - 76, - COUNT ( * ) ), ( - + CAST ( 75 AS INTEGER ) ) * + - 98 * 63 ) col0
----
44232

query I rowsort
SELECT 17 + + - 41
----
-24

query I rowsort
SELECT CASE - - ( - - 48 ) WHEN ( + 87 ) THEN - + 72 WHEN 62 * - + 78 - 88 THEN - 60 * - 49 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT 10 * + COUNT( * ) * - 91
----
-910

skipif mysql # not compatible
query I rowsort label-2480
SELECT 10 * + COUNT ( * ) * - 91
----
-910

query I rowsort
SELECT ALL + 75 * - 45 AS col0
----
-3375

query I rowsort
SELECT DISTINCT 48 * - ( 98 ) - - + 77
----
-4627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2483
SELECT - COUNT( * ) DIV - 35 * - 73 + - 65 * + - 70 * + + 69 + - + 90 - + + 46 AS col1
----
313814

skipif mysql # not compatible
query I rowsort label-2483
SELECT - COUNT ( * ) / - 35 * - 73 + - 65 * + - 70 * + + 69 + - + 90 - + + 46 AS col1
----
313814

query I rowsort
SELECT - 6 * + ( - - 58 ) AS col1
----
-348

query I rowsort
SELECT - 65 + 19 + - 50
----
-96

query I rowsort
SELECT - 76 + + + 41
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT - 70 * COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-2487
SELECT - 70 * COUNT ( * ) AS col2
----
-70

query I rowsort
SELECT - 29 + ( - - 10 ) - - 65 * ( - 38 ) * 14 * + 30 * + 0 AS col0
----
-19

query I rowsort
SELECT - 5 * 77 AS col1
----
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT - 23 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-2490
SELECT - 23 / + 86
----
0

query I rowsort
SELECT ALL 34 * + 21 AS col1
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT + MIN( ALL - 53 ) * + + 92 AS col2
----
-4876

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT + MIN ( ALL - 53 ) * + + 92 AS col2
----
-4876

query I rowsort
SELECT ALL 97 * + 65 + + 77 * 25 AS col1
----
8230

query I rowsort
SELECT ALL + + 0 * - - 18 * + 9 AS col0
----
0

query I rowsort
SELECT DISTINCT + + 37 * + 64 + + NULLIF ( 28, - 45 + 52 )
----
2396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT + CAST( - CASE 22 WHEN - ( + 63 ) / + CASE - 44 WHEN SUM( ALL - 89 ) THEN NULL WHEN - 64 + 12 THEN - COUNT( * ) - - 73 * - - 76 ELSE NULL END + 68 + + CASE + 66 WHEN - + 70 THEN - 0 ELSE NULL END THEN NULL WHEN + ( + 65 ) THEN - ( - COUNT( * ) ) WHEN + + ( 31 ) THEN 51 ELSE NULL END AS SIGNED ) + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT + CAST ( - CASE 22 WHEN - ( + 63 ) / + CASE - 44 WHEN SUM ( ALL - 89 ) THEN NULL WHEN - 64 + 12 THEN - COUNT ( * ) - - 73 * - - 76 ELSE NULL END + 68 + + CASE + 66 WHEN - + 70 THEN - 0 ELSE NULL END THEN NULL WHEN + ( + 65 ) THEN - ( - COUNT ( * ) ) WHEN + + ( 31 ) THEN 51 ELSE NULL END AS INTEGER ) + 41 AS col1
----
NULL

query I rowsort
SELECT - 24 * - + 89 col1
----
2136

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - - 61 + - 94 + COUNT( * ) * + 18 * - 45
----
-843

skipif mysql # not compatible
query I rowsort label-2498
SELECT - - 61 + - 94 + COUNT ( * ) * + 18 * - 45
----
-843

query I rowsort
SELECT DISTINCT 73 + + - 61 + + 84 * + 97 AS col0
----
8160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT ALL + CAST( NULL AS SIGNED ) + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL + CAST ( NULL AS INTEGER ) + 75
----
NULL

query I rowsort
SELECT ALL 0 + + ( + 23 ) + ( - 44 ) AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT DISTINCT - - COUNT( ALL - + 71 ) + + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT - - COUNT ( ALL - + 71 ) + + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT - CASE 6 WHEN + 21 THEN - 16 ELSE NULL END * 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT - - NULLIF ( + + 89, - SUM( ALL + 14 ) * + 15 + + 52 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-2504
SELECT - - NULLIF ( + + 89, - SUM ( ALL + 14 ) * + 15 + + 52 ) AS col0
----
89

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

skipif mysql # not compatible
query I rowsort label-2505
SELECT - MIN ( - ( + 84 ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL - MAX( DISTINCT + 68 ) * - 59 AS col2
----
4012

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - MAX ( DISTINCT + 68 ) * - 59 AS col2
----
4012

query I rowsort
SELECT + - 54 + CASE + 35 WHEN - NULLIF ( + + 96, - + 83 + + 65 ) THEN + 76 WHEN - 27 / - 32 + + 21 + - 23 * + 79 + + COALESCE ( 11, + 95 * + AVG ( + + 66 ) ) * - + 58 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 2 - - + 89 AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT DISTINCT 47, + NULLIF ( - + 74, + 72 + COUNT( * ) / - COUNT( * ) * + + COALESCE ( - 57, 76 ) ) * - 10 * - + 59 AS col1
----
47
-43660

skipif mysql # not compatible
query II rowsort label-2509
SELECT DISTINCT 47, + NULLIF ( - + 74, + 72 + COUNT ( * ) / - COUNT ( * ) * + + COALESCE ( - 57, 76 ) ) * - 10 * - + 59 AS col1
----
47
-43660

query I rowsort
SELECT ALL 25 * 37 AS col1
----
925

query I rowsort
SELECT + 37 * - 5
----
-185

query II rowsort
SELECT 78 AS col2, + 66 * COALESCE ( + 73, + 41 + 29 ) AS col2
----
78
4818

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

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

query II rowsort
SELECT 83 AS col2, 34
----
83
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT + CASE WHEN NOT + COALESCE ( COUNT( * ), + 67 ) IS NULL THEN NULL ELSE + + MAX( - 46 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT + CASE WHEN NOT + COALESCE ( COUNT ( * ), + 67 ) IS NULL THEN NULL ELSE + + MAX ( - 46 ) END AS col2
----
NULL

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

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

query I rowsort
SELECT - 41 * + 56 * - 95
----
218120

query I rowsort
SELECT ALL 47 * + 87
----
4089

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2519
SELECT + CAST( + 54 AS SIGNED ), 7 AS col1
----
54
7

skipif mysql # not compatible
query II rowsort label-2519
SELECT + CAST ( + 54 AS INTEGER ), 7 AS col1
----
54
7

query I rowsort
SELECT + 47 * - 61
----
-2867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2521
SELECT ( + CASE + NULLIF ( - CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) / + 41 + - + 35 * 8 THEN + 73 - - 3 ELSE NULL END ), - 59 * + - ( + 83 ) AS col1
----
NULL
4897

skipif mysql # not compatible
query II rowsort label-2521
SELECT ( + CASE + NULLIF ( - CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) / + 41 + - + 35 * 8 THEN + 73 - - 3 ELSE NULL END ), - 59 * + - ( + 83 ) AS col1
----
NULL
4897

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2522
SELECT + CAST( NULL AS SIGNED ) AS col2, - 52
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-2522
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 52
----
NULL
-52

query I rowsort
SELECT DISTINCT + 49 * - ( + 14 ) + 99
----
-587

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2524
SELECT - CAST( + 59 AS SIGNED ) * + 93 - + - 76 + 34 * 24 DIV + 22 AS col0
----
-5374

skipif mysql # not compatible
query I rowsort label-2524
SELECT - CAST ( + 59 AS INTEGER ) * + 93 - + - 76 + 34 * 24 / + 22 AS col0
----
-5374

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT - - 6 + - 74 * - COUNT( * ) * - COALESCE ( 98, ( + 2 ) ) AS col0
----
-7246

skipif mysql # not compatible
query I rowsort label-2526
SELECT - - 6 + - 74 * - COUNT ( * ) * - COALESCE ( 98, ( + 2 ) ) AS col0
----
-7246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2527
SELECT 11 AS col2, CASE - 56 WHEN - + 3 THEN + - COUNT( * ) * + 18 + 32 * + - CAST( + 17 AS SIGNED ) WHEN + + 90 * - - 13 THEN - + MIN( ALL - + 36 ) ELSE 61 END * 34 * - - 96 - - 44 AS col2
----
11
199148

skipif mysql # not compatible
query II rowsort label-2527
SELECT 11 AS col2, CASE - 56 WHEN - + 3 THEN + - COUNT ( * ) * + 18 + 32 * + - CAST ( + 17 AS INTEGER ) WHEN + + 90 * - - 13 THEN - + MIN ( ALL - + 36 ) ELSE 61 END * 34 * - - 96 - - 44 AS col2
----
11
199148

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL - 21 * - COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - 21 * - COUNT ( * ) AS col0
----
21

query II rowsort
SELECT ALL 83 AS col1, 25 - 27
----
83
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT ALL ( NULLIF ( 68, - 96 ) ) * 16 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL ( NULLIF ( 68, - 96 ) ) * 16 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT - 58 - 5 * - + COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-2531
SELECT - 58 - 5 * - + COUNT ( * ) AS col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2532
SELECT ALL - 60 * - - 6 AS col2, COALESCE ( + 99, + 58 - - + 59 DIV + 73 + COUNT( * ) + 33 DIV - 2 ) * + 76 - + 81 AS col1
----
-360
7443

skipif mysql # not compatible
query II rowsort label-2532
SELECT ALL - 60 * - - 6 AS col2, COALESCE ( + 99, + 58 - - + 59 / + 73 + COUNT ( * ) + 33 / - 2 ) * + 76 - + 81 AS col1
----
-360
7443

onlyif mysql # DIV for integer division: 
query II rowsort label-2533
SELECT - 45 AS col1, - 63 DIV + 41
----
-45
-1

skipif mysql # not compatible
query II rowsort label-2533
SELECT - 45 AS col1, - 63 / + 41
----
-45
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL + SUM( + + 26 ) * + 57
----
1482

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL + SUM ( + + 26 ) * + 57
----
1482

query I rowsort
SELECT - - 63 - + 63 * - 29
----
1890

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT + - ( - CAST( NULL AS SIGNED ) ) * - + MAX( DISTINCT - NULLIF ( + 46, 87 ) ) * 59 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT + - ( - CAST ( NULL AS INTEGER ) ) * - + MAX ( DISTINCT - NULLIF ( + 46, 87 ) ) * 59 * + 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2538
SELECT - - 55, 32 * - COUNT( * ) + 5 AS col2
----
55
-27

skipif mysql # not compatible
query II rowsort label-2538
SELECT - - 55, 32 * - COUNT ( * ) + 5 AS col2
----
55
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2539
SELECT + CAST( NULL AS DECIMAL ) / + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT + CAST ( NULL AS REAL ) / + 96 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2540
SELECT - AVG ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT - AVG ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT 47 * - SUM( - ( + ( - 8 ) ) ) + - - COUNT( * )
----
-375

skipif mysql # not compatible
query I rowsort label-2541
SELECT 47 * - SUM ( - ( + ( - 8 ) ) ) + - - COUNT ( * )
----
-375

onlyif mysql # DIV for integer division: 
query II rowsort label-2542
SELECT ALL 80 AS col2, + 16 DIV + 42 AS col0
----
80
0

skipif mysql # not compatible
query II rowsort label-2542
SELECT ALL 80 AS col2, + 16 / + 42 AS col0
----
80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT 93 * + 57 * - COUNT( * ) AS col2
----
-5301

skipif mysql # not compatible
query I rowsort label-2543
SELECT 93 * + 57 * - COUNT ( * ) AS col2
----
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT ALL + 3 - 15 * - 43 * 11 - + 43 + 2 * - 77 + COUNT( * ) AS col2
----
6902

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL + 3 - 15 * - 43 * 11 - + 43 + 2 * - 77 + COUNT ( * ) AS col2
----
6902

query I rowsort
SELECT 90 * - 52
----
-4680

query II rowsort
SELECT 97 + + 47, + 83 AS col2
----
144
83

query I rowsort
SELECT 32 * - + 97 AS col2
----
-3104

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT COUNT( * ) + 60 * COALESCE ( - 15, 92 * + - 77 ) AS col1
----
-899

skipif mysql # not compatible
query I rowsort label-2548
SELECT COUNT ( * ) + 60 * COALESCE ( - 15, 92 * + - 77 ) AS col1
----
-899

query I rowsort
SELECT - 14 * - 61 - - 48 AS col0
----
902

query I rowsort
SELECT 45 * 39
----
1755

query II rowsort
SELECT ALL + 13 + + 53 AS col2, - 10 AS col0
----
66
-10

query I rowsort
SELECT DISTINCT 70 * + 16 * 77
----
86240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2553
SELECT 35 DIV + - 44 AS col2, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-2553
SELECT 35 / + - 44 AS col2, COUNT ( * ) AS col2
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2554
SELECT ALL 94 + + 48 + + - COUNT( * ), CASE + COUNT( * ) WHEN - ( 8 ) * - NULLIF ( - - ( 50 ), 93 ) THEN 79 + 8 ELSE NULL END AS col1
----
141
NULL

skipif mysql # not compatible
query II rowsort label-2554
SELECT ALL 94 + + 48 + + - COUNT ( * ), CASE + COUNT ( * ) WHEN - ( 8 ) * - NULLIF ( - - ( 50 ), 93 ) THEN 79 + 8 ELSE NULL END AS col1
----
141
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT MIN( DISTINCT + 0 ) + + - 58 + + ( 47 ) + - 57 col1
----
-68

skipif mysql # not compatible
query I rowsort label-2555
SELECT MIN ( DISTINCT + 0 ) + + - 58 + + ( 47 ) + - 57 col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2556
SELECT ALL AVG ( ALL - + CAST( NULL AS SIGNED ) ) + - - 79 + + 69 * + CAST( + 25 AS SIGNED ) + - 22 - + 87 * - - COUNT( * ) * - + 78 * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL AVG ( ALL - + CAST ( NULL AS INTEGER ) ) + - - 79 + + 69 * + CAST ( + 25 AS INTEGER ) + - 22 - + 87 * - - COUNT ( * ) * - + 78 * - 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2557
SELECT DISTINCT + 83 + + COUNT( * ) AS col2, + 62
----
84
62

skipif mysql # not compatible
query II rowsort label-2557
SELECT DISTINCT + 83 + + COUNT ( * ) AS col2, + 62
----
84
62

query I rowsort
SELECT DISTINCT + - 7 + ( + + 5 )
----
-2

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

skipif mysql # not compatible
query I rowsort label-2559
SELECT + COUNT ( * ) * COUNT ( * ) + - 29 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT ALL - + COALESCE ( MIN( ALL 73 ), COALESCE ( + CASE + - 78 WHEN - 68 + - 88 / 8 * - + AVG ( 37 ) * + - 33 - + 1 + + - 89 THEN NULL WHEN - NULLIF ( - 95, ( - - 87 ) ) THEN + ( 59 ) WHEN - CAST( NULL AS SIGNED ) + + 85 THEN MIN( DISTINCT - 69 ) * 61 END, - 46 * - - 78 ) - 63, + - 97 - 23 * + - MIN( 1 ) - + + 76 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL - + COALESCE ( MIN ( ALL 73 ), COALESCE ( + CASE + - 78 WHEN - 68 + - 88 / 8 * - + AVG ( 37 ) * + - 33 - + 1 + + - 89 THEN NULL WHEN - NULLIF ( - 95, ( - - 87 ) ) THEN + ( 59 ) WHEN - CAST ( NULL AS INTEGER ) + + 85 THEN MIN ( DISTINCT - 69 ) * 61 END, - 46 * - - 78 ) - 63, + - 97 - 23 * + - MIN ( 1 ) - + + 76 ) AS col2
----
-73

query I rowsort
SELECT DISTINCT ( + 93 ) * + 82
----
7626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT COUNT( * ) * - - NULLIF ( 30, + - 44 ) + - - CAST( - 50 AS SIGNED ) * + 48 * + 19 AS col2
----
-45570

skipif mysql # not compatible
query I rowsort label-2562
SELECT COUNT ( * ) * - - NULLIF ( 30, + - 44 ) + - - CAST ( - 50 AS INTEGER ) * + 48 * + 19 AS col2
----
-45570

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT 23 + NULLIF ( + - 73, + COUNT( * ) / 7 * - 60 )
----
-50

skipif mysql # not compatible
query I rowsort label-2565
SELECT 23 + NULLIF ( + - 73, + COUNT ( * ) / 7 * - 60 )
----
-50

query I rowsort
SELECT 82 * + + 76
----
6232

query I rowsort
SELECT DISTINCT - ( - - ( + 82 ) ) * + 1
----
-82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2569
SELECT ALL - - CAST( - 67 AS SIGNED ) * - + 38
----
2546

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL - - CAST ( - 67 AS INTEGER ) * - + 38
----
2546

query I rowsort
SELECT 92 + + 27 * 23
----
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2571
SELECT DISTINCT - 66 * CAST( ( + 41 ) AS SIGNED )
----
-2706

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT - 66 * CAST ( ( + 41 ) AS INTEGER )
----
-2706

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT COUNT( * ) + + NULLIF ( + - 68, - 14 ) * - - 65 AS col0
----
-4419

skipif mysql # not compatible
query I rowsort label-2573
SELECT COUNT ( * ) + + NULLIF ( + - 68, - 14 ) * - - 65 AS col0
----
-4419

query I rowsort
SELECT 26 + + + 68 * + - 94 * - 63
----
402722

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT - SUM( + 88 ) * 45 + + 32 - - 10 + + + 41
----
-3877

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT - SUM ( + 88 ) * 45 + + 32 - - 10 + + + 41
----
-3877

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

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

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

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

query I rowsort
SELECT ALL 18 + 53 AS col0
----
71

query II rowsort
SELECT 46 AS col1, 13
----
46
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2580
SELECT ALL - 80 AS col2, + 51 * - + 90 * - + COUNT( * ) + - 29 + 16
----
-80
4577

skipif mysql # not compatible
query II rowsort label-2580
SELECT ALL - 80 AS col2, + 51 * - + 90 * - + COUNT ( * ) + - 29 + 16
----
-80
4577

query I rowsort
SELECT 15 * - 24 * - 70
----
25200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT 51 * + ( - CAST( 84 AS SIGNED ) )
----
-4284

skipif mysql # not compatible
query I rowsort label-2582
SELECT 51 * + ( - CAST ( 84 AS INTEGER ) )
----
-4284

query II rowsort
SELECT + 83 AS col2, 50 AS col1
----
83
50

query I rowsort
SELECT ALL + 77 * 28 + + 59
----
2215

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT 31 - + COUNT( - 27 ) + + 82 * 32 * - + 33 * - 44
----
3810078

skipif mysql # not compatible
query I rowsort label-2585
SELECT 31 - + COUNT ( - 27 ) + + 82 * 32 * - + 33 * - 44
----
3810078

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

skipif mysql # not compatible
query I rowsort label-2586
SELECT MAX ( ALL - - 5 )
----
5

query I rowsort
SELECT ALL 52 * + 7
----
364

query I rowsort
SELECT ALL - 19 * - 10 + - 62 + + 33 col0
----
161

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT ALL + + CAST( + - 29 AS SIGNED ) * + + 67 AS col2
----
-1943

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + + CAST ( + - 29 AS INTEGER ) * + + 67 AS col2
----
-1943

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT 61 - 8 - 76 + MAX( DISTINCT 66 ) * + 15 AS col1
----
967

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT 61 - 8 - 76 + MAX ( DISTINCT 66 ) * + 15 AS col1
----
967

query I rowsort
SELECT 15 * - + 24
----
-360

query I rowsort
SELECT 59 * - 44
----
-2596

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT - SUM( 65 ) + + 1
----
-64

skipif mysql # not compatible
query I rowsort label-2594
SELECT - SUM ( 65 ) + + 1
----
-64

query II rowsort
SELECT + - 5 AS col2, 15 col0
----
-5
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT + + CASE + ( + + MIN( 4 ) ) WHEN + 93 * - 1 * NULLIF ( + COUNT( * ), - 80 - 5 + - 95 / - - COUNT( ALL + ( + + 33 ) ) ) + 47 THEN 88 WHEN - - AVG ( DISTINCT - 14 ) + + - 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT + + CASE + ( + + MIN ( 4 ) ) WHEN + 93 * - 1 * NULLIF ( + COUNT ( * ), - 80 - 5 + - 95 / - - COUNT ( ALL + ( + + 33 ) ) ) + 47 THEN 88 WHEN - - AVG ( DISTINCT - 14 ) + + - 57 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2597
SELECT ALL - CASE - - 35 WHEN 20 * - + 40 THEN NULL WHEN + 70 + + 88 THEN NULL ELSE + ( 42 ) DIV + 9 END * - COUNT( - 72 ) DIV - 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - CASE - - 35 WHEN 20 * - + 40 THEN NULL WHEN + 70 + + 88 THEN NULL ELSE + ( 42 ) / + 9 END * - COUNT ( - 72 ) / - 6 AS col0
----
0

query I rowsort
SELECT + - 72 * 44 col1
----
-3168

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT ALL - ( - 55 ) DIV - 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - ( - 55 ) / - 92 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT ALL - CASE - COUNT( * ) WHEN - 92 THEN + - 64 END * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL - CASE - COUNT ( * ) WHEN - 92 THEN + - 64 END * - 88
----
NULL

query II rowsort
SELECT - 64 AS col0, CASE 83 WHEN + - 25 THEN 45 + + 4 ELSE NULL END AS col0
----
-64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT + + NULLIF ( - 67, - MAX( 50 ) ) + - - 84 + - ( - + 15 )
----
32

skipif mysql # not compatible
query I rowsort label-2602
SELECT + + NULLIF ( - 67, - MAX ( 50 ) ) + - - 84 + - ( - + 15 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT + 96 * 78 DIV - - 78 col1
----
96

skipif mysql # not compatible
query I rowsort label-2603
SELECT + 96 * 78 / - - 78 col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2604
SELECT ALL 35 * SUM( 89 ) AS col2, 85 AS col0
----
3115
85

skipif mysql # not compatible
query II rowsort label-2604
SELECT ALL 35 * SUM ( 89 ) AS col2, 85 AS col0
----
3115
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT - 6 DIV + - ( + + 6 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2605
SELECT - 6 / + - ( + + 6 ) col1
----
1

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

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

query I rowsort
SELECT - 24 - - 73
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2608
SELECT ALL 88 + + 39 DIV 31 + + 71 * - COUNT( * ) - + + 68
----
-50

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL 88 + + 39 / 31 + + 71 * - COUNT ( * ) - + + 68
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT - 0 - 77 + - 17 * + + 69 * - COUNT( * )
----
1096

skipif mysql # not compatible
query I rowsort label-2609
SELECT - 0 - 77 + - 17 * + + 69 * - COUNT ( * )
----
1096

query I rowsort
SELECT + 70 + + 77 AS col0
----
147

query I rowsort
SELECT + 88 + 74 * + + 50 * + + ( 55 ) + + + 81
----
203669

query I rowsort
SELECT - 64 + 89
----
25

query I rowsort
SELECT DISTINCT NULLIF ( + - 88, + - 91 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-2614
SELECT - COUNT( * ) + + + 33 + 34 - - 83, + 41 AS col2
----
149
41

skipif mysql # not compatible
query II rowsort label-2614
SELECT - COUNT ( * ) + + + 33 + 34 - - 83, + 41 AS col2
----
149
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT - 16 + - + 6 + + COUNT( * ) + + 64 * + ( - 6 ) col2
----
-405

skipif mysql # not compatible
query I rowsort label-2615
SELECT - 16 + - + 6 + + COUNT ( * ) + + 64 * + ( - 6 ) col2
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT + 68 * + ( - - 70 ) * + 56 * + - 36 * 6 + + - 47 + - 33 - - 72 - - 0 + - COUNT( * )
----
-57576969

skipif mysql # not compatible
query I rowsort label-2616
SELECT + 68 * + ( - - 70 ) * + 56 * + - 36 * 6 + + - 47 + - 33 - - 72 - - 0 + - COUNT ( * )
----
-57576969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL 92 * + 90 - - - 0 - - + 70 - 95 / - - CAST( NULL AS SIGNED ) / - ( + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL 92 * + 90 - - - 0 - - + 70 - 95 / - - CAST ( NULL AS INTEGER ) / - ( + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2618
SELECT + 57 * - 88 + 22 * - COUNT( * ) * + 54 * + - 96 * + + 53 * - 26 + + 45 * - COALESCE ( COUNT( * ), - MIN( ALL - 73 ) ) + - 7 AS col1, + 78 * + 17 + - + 92 AS col0
----
-157163212
1234

skipif mysql # not compatible
query II rowsort label-2618
SELECT + 57 * - 88 + 22 * - COUNT ( * ) * + 54 * + - 96 * + + 53 * - 26 + + 45 * - COALESCE ( COUNT ( * ), - MIN ( ALL - 73 ) ) + - 7 AS col1, + 78 * + 17 + - + 92 AS col0
----
-157163212
1234

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + 70 * 8 + + COUNT( * ) + + 22 * + - 18 + - 30
----
135

skipif mysql # not compatible
query I rowsort label-2619
SELECT + 70 * 8 + + COUNT ( * ) + + 22 * + - 18 + - 30
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT - COUNT( * ) + - - 12 * + 67
----
803

skipif mysql # not compatible
query I rowsort label-2620
SELECT - COUNT ( * ) + - - 12 * + 67
----
803

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + COUNT( * ) + + 49 + + 92 col2
----
142

skipif mysql # not compatible
query I rowsort label-2621
SELECT + COUNT ( * ) + + 49 + + 92 col2
----
142

query I rowsort
SELECT - 77 * + 62 + + 98
----
-4676

query I rowsort
SELECT ALL + 81 * + ( + + 63 )
----
5103

query I rowsort
SELECT - 82 * 98 + - 1 + 97 AS col0
----
-7940

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT ALL + COALESCE ( MAX( ALL - + 60 ), - 71 * + - 20 + 23 DIV 66 ) * - + ( - 55 ) + + COUNT( * ) + - 53
----
-3352

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL + COALESCE ( MAX ( ALL - + 60 ), - 71 * + - 20 + 23 / 66 ) * - + ( - 55 ) + + COUNT ( * ) + - 53
----
-3352

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

query I rowsort
SELECT COALESCE ( - 25, 29 ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT DISTINCT + 88 * + 6 * + + CAST( + 89 AS SIGNED ) + + 66
----
47058

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT + 88 * + 6 * + + CAST ( + 89 AS INTEGER ) + + 66
----
47058

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2630
SELECT - 80 DIV + - ( NULLIF ( + - 18, - - 68 * + + AVG ( DISTINCT ( - - 87 ) ) + - MAX( - + 6 ) - 9 + ( - + 39 ) DIV + 74 * + 35 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2630
SELECT - 80 / + - ( NULLIF ( + - 18, - - 68 * + + AVG ( DISTINCT ( - - 87 ) ) + - MAX ( - + 6 ) - 9 + ( - + 39 ) / + 74 * + 35 ) )
----
-4

query I rowsort
SELECT - - 74 + 66 * 40
----
2714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2632
SELECT ALL - 27 * + SUM( 31 ) * + 72 + COUNT( * ) * + 49 + ( - 78 ) + - CAST( NULL AS SIGNED ) * 95 / 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL - 27 * + SUM ( 31 ) * + 72 + COUNT ( * ) * + 49 + ( - 78 ) + - CAST ( NULL AS INTEGER ) * 95 / 41 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2633
SELECT + 54 + - CAST( NULL AS SIGNED ) - - 10 * - 46 / + - 91 * + 71 AS col0, + 59 col0
----
NULL
59

skipif mysql # not compatible
query II rowsort label-2633
SELECT + 54 + - CAST ( NULL AS INTEGER ) - - 10 * - 46 / + - 91 * + 71 AS col0, + 59 col0
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT + MIN( ALL - - 62 ) - 67 + - 46 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-2634
SELECT + MIN ( ALL - - 62 ) - 67 + - 46 AS col2
----
-51

query I rowsort
SELECT + 30 * ( + 79 ) AS col2
----
2370

query II rowsort
SELECT DISTINCT 53 AS col1, 50
----
53
50

query I rowsort
SELECT - NULLIF ( 54, 23 + + 8 ) AS col1
----
-54

query I rowsort
SELECT + 76 + - 5 + - 13 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2639
SELECT - NULLIF ( CAST( NULL AS DECIMAL ), 44 * 64 * - 33 + - + 28 * + + MIN( + 69 ) * + + 83 + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT - NULLIF ( CAST ( NULL AS REAL ), 44 * 64 * - 33 + - + 28 * + + MIN ( + 69 ) * + + 83 + 12 )
----
NULL

query I rowsort
SELECT + 64 * + 25 AS col0
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT - CASE - 61 WHEN 30 * - COUNT( * ) * + 14 THEN NULL ELSE + 97 - + - 44 END + + 59 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2641
SELECT - CASE - 61 WHEN 30 * - COUNT ( * ) * + 14 THEN NULL ELSE + 97 - + - 44 END + + 59 AS col0
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL + 83 - + - COUNT( ALL NULLIF ( 96, 96 * + ( - 47 ) ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL + 83 - + - COUNT ( ALL NULLIF ( 96, 96 * + ( - 47 ) ) ) AS col2
----
84

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

query I rowsort
SELECT DISTINCT - 65 * 83
----
-5395

query I rowsort
SELECT + 33 * 68 AS col2
----
2244

query I rowsort
SELECT - 39 * + 22
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT 66 - + ( SUM( DISTINCT 92 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-2648
SELECT 66 - + ( SUM ( DISTINCT 92 ) )
----
-26

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

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

query I rowsort
SELECT DISTINCT 91 * + 49 AS col0
----
4459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT 85 * CAST( + 13 AS SIGNED ) col1
----
1105

skipif mysql # not compatible
query I rowsort label-2651
SELECT 85 * CAST ( + 13 AS INTEGER ) col1
----
1105

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT ALL - 21 DIV ( - NULLIF ( ( 89 ), 9 * 69 + + 53 * 89 ) * 6 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL - 21 / ( - NULLIF ( ( 89 ), 9 * 69 + + 53 * 89 ) * 6 ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT 91 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2653
SELECT 91 / 92
----
0

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

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT - COUNT ( * ) / - 28 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT DISTINCT - 30 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - 30 / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT - NULLIF ( - 69, COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - NULLIF ( - 69, COUNT ( * ) )
----
69

query I rowsort
SELECT ALL - ( 66 ) AS col2
----
-66

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2659
SELECT 0 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT 0 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 31 + + 81 * - 18 AS col1
----
-1427

query I rowsort
SELECT 10 + + 70 AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT ALL + 58 + + 16 DIV 61 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL + 58 + + 16 / 61 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL 41 + NULLIF ( MAX( 95 ), - 51 + 35 ) * 34 AS col0
----
3271

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL 41 + NULLIF ( MAX ( 95 ), - 51 + 35 ) * 34 AS col0
----
3271

onlyif mysql # DIV for integer division: 
query I rowsort label-2664
SELECT DISTINCT 94 DIV + 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT 94 / + 65 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL 29 - + CASE COUNT( * ) WHEN - 11 THEN NULL ELSE 53 END AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL 29 - + CASE COUNT ( * ) WHEN - 11 THEN NULL ELSE 53 END AS col2
----
-24

query I rowsort
SELECT ( ( + 85 ) ) - 92
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT 69 DIV + 57 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2667
SELECT 69 / + 57 AS col1
----
1

query I rowsort
SELECT DISTINCT 34 * 16
----
544

query I rowsort
SELECT ALL 93 - 35 * 49
----
-1622

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2670
SELECT CASE + 47 WHEN - 69 * - 8 THEN NULL ELSE 60 * CAST( NULL AS DECIMAL ) + 20 * - 40 END + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT CASE + 47 WHEN - 69 * - 8 THEN NULL ELSE 60 * CAST ( NULL AS REAL ) + 20 * - 40 END + - 0
----
NULL

query I rowsort
SELECT - 46 + - 53 * + 19
----
-1053

query I rowsort
SELECT + 20 * - 32 AS col1
----
-640

query I rowsort
SELECT 13 + 7 * 65
----
468

query I rowsort
SELECT ALL COALESCE ( 0, 99 * - 69, 63 ) * 1 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT DISTINCT - CAST( 54 AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - CAST ( 54 AS INTEGER ) AS col2
----
-54

query I rowsort
SELECT - 73 + 3 col1
----
-70

query I rowsort
SELECT ALL - - 12 AS col2
----
12

query I rowsort
SELECT DISTINCT - + 44 * - 12 AS col2
----
528

query I rowsort
SELECT - 86 * 18 AS col1
----
-1548

query I rowsort
SELECT - 10 * + ( 98 ) + 63
----
-917

query I rowsort
SELECT ALL - 99 * + 38
----
-3762

query I rowsort
SELECT ALL + 40 + - 47
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT - - 62 DIV + COUNT( * ) + ( 51 ) * 25 AS col1
----
1337

skipif mysql # not compatible
query I rowsort label-2683
SELECT - - 62 / + COUNT ( * ) + ( 51 ) * 25 AS col1
----
1337

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

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

query I rowsort
SELECT - + 62 * 74 + 97
----
-4491

query I rowsort
SELECT - 89 * - 27 AS col2
----
2403

query I rowsort
SELECT ALL 59 + + 26
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT - + MAX( ALL 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT - + MAX ( ALL 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL + CASE - 61 WHEN + 31 + - ( + COUNT( * ) - NULLIF ( 71 + 81, 7 * - COUNT( * ) - - 16 ) ) * 15 THEN + 92 * + NULLIF ( + 27 * 68, + 56 / ( 57 ) ) WHEN - 89 THEN NULL END + NULLIF ( + COUNT( * ) - - 44, + 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL + CASE - 61 WHEN + 31 + - ( + COUNT ( * ) - NULLIF ( 71 + 81, 7 * - COUNT ( * ) - - 16 ) ) * 15 THEN + 92 * + NULLIF ( + 27 * 68, + 56 / ( 57 ) ) WHEN - 89 THEN NULL END + NULLIF ( + COUNT ( * ) - - 44, + 92 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2691
SELECT DISTINCT - 55 DIV + NULLIF ( - ( COUNT( * ) ), COALESCE ( - CASE CASE + 40 WHEN - CASE - 27 WHEN 87 * 0 + - 6 THEN NULL WHEN + COUNT( * ) * 3 THEN NULL WHEN - 18 + 96 * 18 THEN 78 END DIV + 5 THEN 45 DIV - 96 END WHEN 29 * 75 + + 74 THEN NULL WHEN MIN( DISTINCT + 22 ) THEN NULL ELSE - 27 DIV + 67 + 8 END, - COUNT( * ) ) DIV + 45 + 73 * - COUNT( * ) ) col1
----
55

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT - 55 / + NULLIF ( - ( COUNT ( * ) ), COALESCE ( - CASE CASE + 40 WHEN - CASE - 27 WHEN 87 * 0 + - 6 THEN NULL WHEN + COUNT ( * ) * 3 THEN NULL WHEN - 18 + 96 * 18 THEN 78 END / + 5 THEN 45 / - 96 END WHEN 29 * 75 + + 74 THEN NULL WHEN MIN ( DISTINCT + 22 ) THEN NULL ELSE - 27 / + 67 + 8 END, - COUNT ( * ) ) / + 45 + 73 * - COUNT ( * ) ) col1
----
55

query I rowsort
SELECT ALL 72 + 64 + + 56
----
192

query I rowsort
SELECT 35 * - 37
----
-1295

query I rowsort
SELECT 41 + + - 34 AS col0
----
7

query I rowsort
SELECT DISTINCT - 82 + - 29 AS col2
----
-111

query I rowsort
SELECT ALL - CASE 25 WHEN + 70 THEN + 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT 31 + SUM( 7 )
----
38

skipif mysql # not compatible
query I rowsort label-2697
SELECT 31 + SUM ( 7 )
----
38

query I rowsort
SELECT 35 - - 56 AS col2
----
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT - 82 - - - 86 * - ( COALESCE ( - COUNT( * ), - 10 - - 79, 65 ) + 77 ) AS col0
----
6454

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT - 82 - - - 86 * - ( COALESCE ( - COUNT ( * ), - 10 - - 79, 65 ) + 77 ) AS col0
----
6454

query I rowsort
SELECT ALL - 65 * + 86 AS col2
----
-5590

query I rowsort
SELECT 60 * - 88 AS col1
----
-5280

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT COUNT( DISTINCT 57 ) + + COUNT( 94 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2704
SELECT COUNT ( DISTINCT 57 ) + + COUNT ( 94 ) AS col2
----
2

query I rowsort
SELECT 50 * - + ( - 33 )
----
1650

query I rowsort
SELECT 85 + - 11 + 27 * 1 AS col1
----
101

query I rowsort
SELECT + 57 + + 58 AS col0
----
115

query I rowsort
SELECT - 44 * 71
----
-3124

query I rowsort
SELECT ALL - ( - 15 ) * - COALESCE ( - 82, - 36, + 19 + - 47 ) AS col0
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT - CASE + ( 82 ) WHEN + 81 * - 16 + COUNT( * ) THEN NULL WHEN + ( - 6 ) + 25 THEN + 4 WHEN + 56 / - COUNT( * ) - - 66 THEN + SUM( ALL - 45 ) ELSE 10 + - 99 END AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT - CASE + ( 82 ) WHEN + 81 * - 16 + COUNT ( * ) THEN NULL WHEN + ( - 6 ) + 25 THEN + 4 WHEN + 56 / - COUNT ( * ) - - 66 THEN + SUM ( ALL - 45 ) ELSE 10 + - 99 END AS col1
----
89

query I rowsort
SELECT ALL - + 75 + 7
----
-68

query I rowsort
SELECT DISTINCT 1 * - + 0 * + 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL + 50 + NULLIF ( 68, + 62 + - MAX( + 58 ) * 4 )
----
118

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL + 50 + NULLIF ( 68, + 62 + - MAX ( + 58 ) * 4 )
----
118

query I rowsort
SELECT DISTINCT - 91 + - 49 AS col0
----
-140

query I rowsort
SELECT ALL + - 62 * + + 85
----
-5270

query I rowsort
SELECT ALL + 69 + + 6 * - 67 col0
----
-333

query I rowsort
SELECT ALL 63 + 90 + 98 * 51 col1
----
5151

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT + - CASE 62 WHEN COUNT( * ) * ( 65 ) THEN NULL ELSE - 51 + 96 END col2
----
-45

skipif mysql # not compatible
query I rowsort label-2719
SELECT + - CASE 62 WHEN COUNT ( * ) * ( 65 ) THEN NULL ELSE - 51 + 96 END col2
----
-45

query I rowsort
SELECT DISTINCT + - 85 AS col2
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2721
SELECT ALL - - COUNT( * ) * 66 DIV - 81 + + 80 + - 97
----
-17

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL - - COUNT ( * ) * 66 / - 81 + + 80 + - 97
----
-17

query I rowsort
SELECT + 60 - + - 61
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2723
SELECT DISTINCT 47 * - - 60 DIV + MIN( DISTINCT + 59 DIV 48 )
----
2820

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT 47 * - - 60 / + MIN ( DISTINCT + 59 / 48 )
----
2820

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT COUNT( * ) * - 78 + + 38
----
-40

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT COUNT ( * ) * - 78 + + 38
----
-40

query I rowsort
SELECT + 60 - - - 24
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT + 72 * - MIN( ALL + 44 ) * + COUNT( * ) AS col2
----
-3168

skipif mysql # not compatible
query I rowsort label-2726
SELECT + 72 * - MIN ( ALL + 44 ) * + COUNT ( * ) AS col2
----
-3168

query I rowsort
SELECT NULLIF ( - 7, + 15 )
----
-7

query I rowsort
SELECT + NULLIF ( - - 20, + 20 / 12 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT NULLIF ( 42, - COALESCE ( 28, 30 * - COALESCE ( 80, 22 ) + 85 * - 93, NULLIF ( + CAST( NULL AS SIGNED ), + 60 ) ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2729
SELECT NULLIF ( 42, - COALESCE ( 28, 30 * - COALESCE ( 80, 22 ) + 85 * - 93, NULLIF ( + CAST ( NULL AS INTEGER ), + 60 ) ) ) AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2730
SELECT + NULLIF ( + - 75, + CAST( NULL AS SIGNED ) / - COUNT( * ) + + 89 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2730
SELECT + NULLIF ( + - 75, + CAST ( NULL AS INTEGER ) / - COUNT ( * ) + + 89 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT + 24 + - COUNT( ALL 66 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2731
SELECT + 24 + - COUNT ( ALL 66 ) AS col2
----
23

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

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

query II rowsort
SELECT ALL + 15, 47 AS col2
----
15
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL 23 * MIN( + 68 ) * MIN( ALL + 54 ) AS col1
----
84456

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL 23 * MIN ( + 68 ) * MIN ( ALL + 54 ) AS col1
----
84456

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT - COUNT( ALL - 68 ) * + + 46
----
-46

skipif mysql # not compatible
query I rowsort label-2735
SELECT - COUNT ( ALL - 68 ) * + + 46
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-2736
SELECT - 69 AS col0, COUNT( + 68 ) - 50 AS col1
----
-69
-49

skipif mysql # not compatible
query II rowsort label-2736
SELECT - 69 AS col0, COUNT ( + 68 ) - 50 AS col1
----
-69
-49

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

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

query I rowsort
SELECT - ( - - ( + 81 ) ) + - 38 col0
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT ALL + 33 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL + 33 / 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2740
SELECT + COUNT( - 65 ) DIV + - 70
----
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT + COUNT ( - 65 ) / + - 70
----
0

query I rowsort
SELECT + 34 * 93
----
3162

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

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

query I rowsort
SELECT - 52 + + 61 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT 75 + + ( 58 ) - COUNT( * ) col1
----
132

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT 75 + + ( 58 ) - COUNT ( * ) col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT - - MIN( - 91 ) * 36 AS col1
----
-3276

skipif mysql # not compatible
query I rowsort label-2745
SELECT - - MIN ( - 91 ) * 36 AS col1
----
-3276

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

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

query I rowsort
SELECT - - ( - 91 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT ALL - - ( 79 ) + COALESCE ( - 14, - 72 / + SUM( 46 ) + + 68 ) - 54 * - CAST( 45 * + CASE + CAST( NULL AS SIGNED ) WHEN 81 - 24 * 32 THEN + 73 * - 99 WHEN ( CAST( 78 AS SIGNED ) ) THEN - CAST( NULL AS SIGNED ) + + 53 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - - ( 79 ) + COALESCE ( - 14, - 72 / + SUM ( 46 ) + + 68 ) - 54 * - CAST ( 45 * + CASE + CAST ( NULL AS INTEGER ) WHEN 81 - 24 * 32 THEN + 73 * - 99 WHEN ( CAST ( 78 AS INTEGER ) ) THEN - CAST ( NULL AS INTEGER ) + + 53 END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 64 - - ( + 81 ) AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT - COUNT( * ) + - 45 + + - 30 + - 42 * 88 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT - COUNT ( * ) + - 45 + + - 30 + - 42 * 88 * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT - 77 - ( ( MAX( 89 ) ) ) * + 47
----
-4260

skipif mysql # not compatible
query I rowsort label-2751
SELECT - 77 - ( ( MAX ( 89 ) ) ) * + 47
----
-4260

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - - 7 + COUNT( * ) - - 78 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2752
SELECT - - 7 + COUNT ( * ) - - 78 AS col0
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-2753
SELECT - 50 AS col2, 58 DIV + 5 AS col2
----
-50
11

skipif mysql # not compatible
query II rowsort label-2753
SELECT - 50 AS col2, 58 / + 5 AS col2
----
-50
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL + + COUNT( + 18 ) + + 23 + 60 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + + COUNT ( + 18 ) + + 23 + 60 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - + COALESCE ( - NULLIF ( + COUNT( * ), 3 ), 53 * 22 ) + 82
----
83

skipif mysql # not compatible
query I rowsort label-2755
SELECT - + COALESCE ( - NULLIF ( + COUNT ( * ), 3 ), 53 * 22 ) + 82
----
83

query I rowsort
SELECT + + 27 - + 52
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT + 10 + + - 46 - + COUNT( * ) + 73 * + 96
----
6971

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT + 10 + + - 46 - + COUNT ( * ) + 73 * + 96
----
6971

onlyif mysql # aggregate syntax: 
query II rowsort label-2758
SELECT ALL 56, COUNT( * ) AS col2
----
56
1

skipif mysql # not compatible
query II rowsort label-2758
SELECT ALL 56, COUNT ( * ) AS col2
----
56
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2759
SELECT DISTINCT + 17 / COUNT( * ) * + 13 * ( - 30 * CASE 44 * NULLIF ( 22, - 9 ) WHEN + 67 THEN CAST( NULL AS SIGNED ) * - 38 - - 88 WHEN 16 THEN NULL ELSE NULL END ) + 14 + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + 17 / COUNT ( * ) * + 13 * ( - 30 * CASE 44 * NULLIF ( 22, - 9 ) WHEN + 67 THEN CAST ( NULL AS INTEGER ) * - 38 - - 88 WHEN 16 THEN NULL ELSE NULL END ) + 14 + - 72
----
NULL

query I rowsort
SELECT DISTINCT 19 * - + 2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2761
SELECT ALL 72 DIV + - COUNT( * ) - - - COUNT( * )
----
-73

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

query II rowsort
SELECT ALL + 12 AS col2, 2 * ( 23 )
----
12
46

query I rowsort
SELECT - 46 * + 68 AS col0
----
-3128

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT DISTINCT + CAST( - 9 AS SIGNED ) * - - NULLIF ( 2, NULLIF ( CAST( - 25 AS SIGNED ), 40 - + 92 ) + - 67 ) + COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT + CAST ( - 9 AS INTEGER ) * - - NULLIF ( 2, NULLIF ( CAST ( - 25 AS INTEGER ), 40 - + 92 ) + - 67 ) + COUNT ( * ) AS col1
----
-17

query II rowsort
SELECT - 48 * - - 51, 89 AS col1
----
-2448
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT CAST( 81 AS SIGNED ) col1
----
81

skipif mysql # not compatible
query I rowsort label-2767
SELECT CAST ( 81 AS INTEGER ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT + CASE + + 24 WHEN 44 - COUNT( * ) THEN NULL ELSE 26 END
----
26

skipif mysql # not compatible
query I rowsort label-2768
SELECT + CASE + + 24 WHEN 44 - COUNT ( * ) THEN NULL ELSE 26 END
----
26

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2771
SELECT + 18 * 12 / - COUNT ( * ) / - COUNT ( * ) / + COUNT ( * )
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2772
SELECT ALL + CASE + + 67 WHEN + COALESCE ( - 11, 18 * ( CAST( NULL AS SIGNED ) * 27 ) ) THEN 2 + ( 89 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL + CASE + + 67 WHEN + COALESCE ( - 11, 18 * ( CAST ( NULL AS INTEGER ) * 27 ) ) THEN 2 + ( 89 ) END
----
NULL

query I rowsort
SELECT ALL 65 * 46 AS col0
----
2990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2774
SELECT + CAST( - + MAX( ALL - 24 ) AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-2774
SELECT + CAST ( - + MAX ( ALL - 24 ) AS INTEGER )
----
24

query I rowsort
SELECT + 82 * ( - 45 ) AS col1
----
-3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2776
SELECT + CASE NULLIF ( - + CAST( 14 AS SIGNED ), 15 ) WHEN - 5 * - 17 THEN NULL ELSE COUNT( * ) END + + 58
----
59

skipif mysql # not compatible
query I rowsort label-2776
SELECT + CASE NULLIF ( - + CAST ( 14 AS INTEGER ), 15 ) WHEN - 5 * - 17 THEN NULL ELSE COUNT ( * ) END + + 58
----
59

query I rowsort
SELECT COALESCE ( 20, - - 91 - 84 ) * - 44 + 51 AS col2
----
-829

query I rowsort
SELECT 38 * + - 14 - - 12 + - 61 col0
----
-581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2779
SELECT DISTINCT 75 + - COUNT( * ) + ( + - 60 ) * - CASE - 45 WHEN + 90 THEN NULL WHEN 90 THEN 6 * - CAST( 45 AS SIGNED ) ELSE + 89 DIV 72 END AS col2
----
134

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT 75 + - COUNT ( * ) + ( + - 60 ) * - CASE - 45 WHEN + 90 THEN NULL WHEN 90 THEN 6 * - CAST ( 45 AS INTEGER ) ELSE + 89 / 72 END AS col2
----
134

query I rowsort
SELECT ALL 34 + - 11 + + - 76 * + + 17
----
-1269

query I rowsort
SELECT DISTINCT 69 + + 57 * 2 AS col2
----
183

query I rowsort
SELECT DISTINCT 28 * + 76 AS col1
----
2128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2783
SELECT - 92 DIV COUNT( * ) AS col1, 80
----
-92
80

skipif mysql # not compatible
query II rowsort label-2783
SELECT - 92 / COUNT ( * ) AS col1, 80
----
-92
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT 88 + - MAX( - + 38 ) AS col1
----
126

skipif mysql # not compatible
query I rowsort label-2784
SELECT 88 + - MAX ( - + 38 ) AS col1
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT DISTINCT - + 70 DIV - + 38 + - 89 * + ( - 73 ) * - 37
----
-240388

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - + 70 / - + 38 + - 89 * + ( - 73 ) * - 37
----
-240388

query I rowsort
SELECT ALL + + 8 + + + NULLIF ( - + 11, - 36 )
----
-3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2788
SELECT ALL 11 - CAST( - + COUNT( + 84 ) AS SIGNED ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL 11 - CAST ( - + COUNT ( + 84 ) AS INTEGER ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT - - MIN( - 94 ) AS col0, - 2
----
-94
-2

skipif mysql # not compatible
query II rowsort label-2789
SELECT - - MIN ( - 94 ) AS col0, - 2
----
-94
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT 37 * - COUNT( - 43 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2790
SELECT 37 * - COUNT ( - 43 ) AS col1
----
-37

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

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL + COUNT ( * ) * MIN ( - 55 ) AS col2
----
-55

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2793
SELECT - 32 DIV 35 - MIN( 28 ) * 15
----
-420

skipif mysql # not compatible
query I rowsort label-2793
SELECT - 32 / 35 - MIN ( 28 ) * 15
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT 35 - + 22 + - ( - 12 ) * - 31 + COUNT( ALL - 36 )
----
-358

skipif mysql # not compatible
query I rowsort label-2794
SELECT 35 - + 22 + - ( - 12 ) * - 31 + COUNT ( ALL - 36 )
----
-358

query I rowsort
SELECT - 88 * 12 - + + ( - 82 ) * - 88 * 5 AS col2
----
-37136

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

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL - ( - - SUM ( - - 99 ) )
----
-99

query II rowsort
SELECT + 50 AS col2, - 29 AS col2
----
50
-29

query I rowsort
SELECT ALL - 33 * + - 59 col2
----
1947

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT 40 DIV + 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2799
SELECT 40 / + 36 AS col1
----
1

query I rowsort
SELECT 76 * + 25
----
1900

query I rowsort
SELECT DISTINCT - 24 * - 93 AS col1
----
2232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2802
SELECT 50 * - 18 * 24 DIV COUNT( * ) AS col2
----
-21600

skipif mysql # not compatible
query I rowsort label-2802
SELECT 50 * - 18 * 24 / COUNT ( * ) AS col2
----
-21600

onlyif mysql # aggregate syntax: 
query II rowsort label-2803
SELECT SUM( DISTINCT - - 20 ) * + 4 AS col1, + 23 AS col2
----
80
23

skipif mysql # not compatible
query II rowsort label-2803
SELECT SUM ( DISTINCT - - 20 ) * + 4 AS col1, + 23 AS col2
----
80
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2804
SELECT ALL + 61 + - 22 DIV + 61 AS col2, CASE - - 36 WHEN 46 THEN NULL WHEN - SUM( ALL 72 ) + 82 DIV - COUNT( + 45 ) THEN COUNT( * ) ELSE + 74 + - COUNT( * ) END * + 60 AS col0
----
61
4380

skipif mysql # not compatible
query II rowsort label-2804
SELECT ALL + 61 + - 22 / + 61 AS col2, CASE - - 36 WHEN 46 THEN NULL WHEN - SUM ( ALL 72 ) + 82 / - COUNT ( + 45 ) THEN COUNT ( * ) ELSE + 74 + - COUNT ( * ) END * + 60 AS col0
----
61
4380

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT DISTINCT - 16 + 82 * + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT - 16 + 82 * + COUNT ( * )
----
66

query I rowsort
SELECT ALL + 61 + 68 + 5 AS col1
----
134

query I rowsort
SELECT ALL - 7 + 70
----
63

query I rowsort
SELECT ALL 16 + - - 53 AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2809
SELECT ( + 89 ) * COUNT( * ) AS col0, 96 + MAX( DISTINCT + 73 ) + 51 col1
----
89
220

skipif mysql # not compatible
query II rowsort label-2809
SELECT ( + 89 ) * COUNT ( * ) AS col0, 96 + MAX ( DISTINCT + 73 ) + 51 col1
----
89
220

query I rowsort
SELECT DISTINCT ( - 86 ) * - + 39
----
3354

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - + CASE + 29 WHEN + COUNT( * ) * - + 21 THEN 50 * 59 WHEN + 22 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT - + CASE + 29 WHEN + COUNT ( * ) * - + 21 THEN 50 * 59 WHEN + 22 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL + 46 + + 98 * + COUNT( * ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + 46 + + 98 * + COUNT ( * ) AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL - 71 + - 62 * + + 17 + + COUNT( * ) AS col2
----
-1124

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL - 71 + - 62 * + + 17 + + COUNT ( * ) AS col2
----
-1124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT - SUM( ALL 47 ) - + 20 + NULLIF ( - 32, 88 ) DIV 96 * - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2814
SELECT - SUM ( ALL 47 ) - + 20 + NULLIF ( - 32, 88 ) / 96 * - COUNT ( * ) AS col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2815
SELECT - COUNT( * ) + + 67 + + 11 * + - 90 * 43 DIV COUNT( * )
----
-42504

skipif mysql # not compatible
query I rowsort label-2815
SELECT - COUNT ( * ) + + 67 + + 11 * + - 90 * 43 / COUNT ( * )
----
-42504

query II rowsort
SELECT 23, + 7 AS col0
----
23
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2817
SELECT ALL 56 * 30 + + + 95 AS col1, 36 + - COUNT( * ) + 31
----
1775
66

skipif mysql # not compatible
query II rowsort label-2817
SELECT ALL 56 * 30 + + + 95 AS col1, 36 + - COUNT ( * ) + 31
----
1775
66

query I rowsort
SELECT 82 + - 59 col2
----
23

query I rowsort
SELECT ALL 96 - - - COALESCE ( - 29, + + 57 ) AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ( - + SUM( ALL - - 66 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-2820
SELECT ( - + SUM ( ALL - - 66 ) ) AS col2
----
-66

query I rowsort
SELECT + 49 - + 14
----
35

query I rowsort
SELECT DISTINCT - 19 * + COALESCE ( + 63, - + 92 ) * 81 * 38
----
-3684366

query I rowsort
SELECT + 6 + - + 56 + + - 82 - - 71 + - - 82 + + 71 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT 51 + + COUNT( * ) + 13 * + + 53 + 80 * - 23 AS col2
----
-1099

skipif mysql # not compatible
query I rowsort label-2824
SELECT 51 + + COUNT ( * ) + 13 * + + 53 + 80 * - 23 AS col2
----
-1099

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ALL - MIN( DISTINCT - - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL - MIN ( DISTINCT - - 31 ) AS col2
----
-31

query II rowsort
SELECT + 15 * + 49 * + + 76, + 38 AS col0
----
55860
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2827
SELECT CASE - 74 WHEN CAST( NULL AS SIGNED ) THEN - 19 + + - MAX( ALL 61 ) END * 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT CASE - 74 WHEN CAST ( NULL AS INTEGER ) THEN - 19 + + - MAX ( ALL 61 ) END * 44 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2828
SELECT + CAST( - + 87 AS SIGNED ) + - - SUM( ALL + 92 ) + + - 4 * + 92 * + 99
----
-36427

skipif mysql # not compatible
query I rowsort label-2828
SELECT + CAST ( - + 87 AS INTEGER ) + - - SUM ( ALL + 92 ) + + - 4 * + 92 * + 99
----
-36427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2829
SELECT ALL + 95 DIV COUNT( - 73 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + 95 / COUNT ( - 73 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT 74 - - COUNT( * ) + + - 28
----
47

skipif mysql # not compatible
query I rowsort label-2830
SELECT 74 - - COUNT ( * ) + + - 28
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT + 22 * - 7 + + - SUM( - - 31 ) AS col1
----
-185

skipif mysql # not compatible
query I rowsort label-2831
SELECT + 22 * - 7 + + - SUM ( - - 31 ) AS col1
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL + 37 * NULLIF ( - SUM( ALL - + 49 ), 60 * + 94 / + 92 + 38 / COUNT( * ) ) col0
----
1813

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + 37 * NULLIF ( - SUM ( ALL - + 49 ), 60 * + 94 / + 92 + 38 / COUNT ( * ) ) col0
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT COALESCE ( + 18, + MAX( DISTINCT + 30 ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2833
SELECT COALESCE ( + 18, + MAX ( DISTINCT + 30 ) ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL + 15 * 60 + 35 * - ( - COUNT( * ) )
----
935

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL + 15 * 60 + 35 * - ( - COUNT ( * ) )
----
935

query I rowsort
SELECT 44 * 43 AS col0
----
1892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2836
SELECT SUM( ALL - 23 ) DIV - + ( COUNT( - 51 ) ) + 35 + COUNT( * ) * - COALESCE ( - 30, 82 - 53 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-2836
SELECT SUM ( ALL - 23 ) / - + ( COUNT ( - 51 ) ) + 35 + COUNT ( * ) * - COALESCE ( - 30, 82 - 53 ) AS col1
----
88

query I rowsort
SELECT ALL - 38 * + ( 62 ) AS col0
----
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT CASE - 9 WHEN 3 + 31 - - 15 + - + 0 + 34 * - 71 THEN 45 / + MIN( DISTINCT + 21 ) WHEN + SUM( ALL - 1 ) THEN NULL WHEN + 85 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT CASE - 9 WHEN 3 + 31 - - 15 + - + 0 + 34 * - 71 THEN 45 / + MIN ( DISTINCT + 21 ) WHEN + SUM ( ALL - 1 ) THEN NULL WHEN + 85 THEN NULL END
----
NULL

query I rowsort
SELECT - 65 * - 17
----
1105

query I rowsort
SELECT ALL 90 * ( 10 ) + 15 + - + 39 * - 76 AS col1
----
3879

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT DISTINCT + 27 AS col1, 95 * + + COUNT( 52 )
----
27
95

skipif mysql # not compatible
query II rowsort label-2841
SELECT DISTINCT + 27 AS col1, 95 * + + COUNT ( 52 )
----
27
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT - CASE - 8 WHEN + - CAST( NULL AS SIGNED ) THEN - COUNT( * ) * - ( + ( AVG ( + 32 ) ) ) + + COUNT( * ) * + ( 26 ) ELSE NULL END + 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT - CASE - 8 WHEN + - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) * - ( + ( AVG ( + 32 ) ) ) + + COUNT ( * ) * + ( 26 ) ELSE NULL END + 4 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT - 11 * - SUM( 45 ) AS col0
----
495

skipif mysql # not compatible
query I rowsort label-2843
SELECT - 11 * - SUM ( 45 ) AS col0
----
495

query I rowsort
SELECT 66 * 60 + - 17 AS col1
----
3943

query I rowsort
SELECT ALL 58 * - 22 + + 33
----
-1243

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL ( + 44 ) * 19 + - 23 - - - COUNT( * ) + - - 72
----
884

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL ( + 44 ) * 19 + - 23 - - - COUNT ( * ) + - - 72
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT ALL - 17 * - - 10 + 54 * + 20 / ( 51 ) + CASE - COUNT( * ) WHEN + 53 + ( ( - AVG ( DISTINCT 15 ) ) + - 50 ) THEN - 79 * - 3 - 99 * 29 WHEN - 58 THEN + 48 * + MAX( DISTINCT 3 ) WHEN - ( + CASE COALESCE ( - 13, 67 / COUNT( * ) ) WHEN 96 THEN + 23 END ) * 69 THEN NULL ELSE NULL END * - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL - 17 * - - 10 + 54 * + 20 / ( 51 ) + CASE - COUNT ( * ) WHEN + 53 + ( ( - AVG ( DISTINCT 15 ) ) + - 50 ) THEN - 79 * - 3 - 99 * 29 WHEN - 58 THEN + 48 * + MAX ( DISTINCT 3 ) WHEN - ( + CASE COALESCE ( - 13, 67 / COUNT ( * ) ) WHEN 96 THEN + 23 END ) * 69 THEN NULL ELSE NULL END * - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL + COUNT( * ) * 26 + + 19 col0
----
45

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL + COUNT ( * ) * 26 + + 19 col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2849
SELECT ALL - 2 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - 2 / + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT DISTINCT 39 * - + 46 * 44 / 79 + + - CASE 20 WHEN - 84 THEN + 54 WHEN + 3 / + ( NULLIF ( + 7, - 3 / + NULLIF ( CASE - 90 WHEN COUNT( ALL - 57 ) * 5 THEN 98 / 57 + + MIN( ALL - 17 ) / 14 END, + 54 ) ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT 39 * - + 46 * 44 / 79 + + - CASE 20 WHEN - 84 THEN + 54 WHEN + 3 / + ( NULLIF ( + 7, - 3 / + NULLIF ( CASE - 90 WHEN COUNT ( ALL - 57 ) * 5 THEN 98 / 57 + + MIN ( ALL - 17 ) / 14 END, + 54 ) ) ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2851
SELECT ALL 13 * COUNT( * ) + + + 64 DIV - MAX( + 27 ) * + COUNT( + 27 ) * COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL 13 * COUNT ( * ) + + + 64 / - MAX ( + 27 ) * + COUNT ( + 27 ) * COUNT ( * ) AS col2
----
11

query I rowsort
SELECT ALL - 76 * + - 32 col2
----
2432

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

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

query I rowsort
SELECT + 37 * - 76 + 81 + - 56 col0
----
-2787

query I rowsort
SELECT ALL + 25 * - 41
----
-1025

query I rowsort
SELECT - 97 + + 29 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT - 24 * + 22 + + - 28 + - 19 + + - 88 * + MAX( 35 ) * 68
----
-210015

skipif mysql # not compatible
query I rowsort label-2857
SELECT - 24 * + 22 + + - 28 + - 19 + + - 88 * + MAX ( 35 ) * 68
----
-210015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2858
SELECT - 1 AS col1, - 17, + 58 * + COUNT( * ) / - CASE - 82 WHEN + CAST( 94 AS SIGNED ) THEN - CAST( - 84 AS SIGNED ) + - NULLIF ( + 10, + 74 ) END col0
----
-1
-17
NULL

skipif mysql # not compatible
query III rowsort label-2858
SELECT - 1 AS col1, - 17, + 58 * + COUNT ( * ) / - CASE - 82 WHEN + CAST ( 94 AS INTEGER ) THEN - CAST ( - 84 AS INTEGER ) + - NULLIF ( + 10, + 74 ) END col0
----
-1
-17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ALL - 81 - + ( - + 95 ) * + + 90 + NULLIF ( COUNT( * ), + 70 )
----
8470

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL - 81 - + ( - + 95 ) * + + 90 + NULLIF ( COUNT ( * ), + 70 )
----
8470

query I rowsort
SELECT DISTINCT NULLIF ( + + 85, - 59 ) AS col1
----
85

query I rowsort
SELECT - 32 * + 49 + - 42 AS col1
----
-1610

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

query I rowsort
SELECT + 60 + + 14 col0
----
74

query II rowsort
SELECT ALL + 64, - 52 AS col1
----
64
-52

query I rowsort
SELECT - 99 * - 61
----
6039

query II rowsort
SELECT - 36 AS col2, + 47 AS col2
----
-36
47

query I rowsort
SELECT DISTINCT + 65 * + 82
----
5330

query I rowsort
SELECT + 87 * + 89
----
7743

query II rowsort
SELECT 37, 26 AS col2
----
37
26

query II rowsort
SELECT + 96 + - 35 col2, 0
----
61
0

query I rowsort
SELECT DISTINCT 14 * 76 AS col0
----
1064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2872
SELECT + 53 * + NULLIF ( + + 38, 29 * + ( - 27 ) * - COALESCE ( 72, + 32 * CASE COALESCE ( - CASE + 31 WHEN - ( 2 ) THEN + 21 WHEN 56 * 28 THEN NULL WHEN 37 THEN NULL ELSE NULL END, COUNT( * ), - 8 ) * - 41 WHEN + CASE ( SUM( + 55 ) ) WHEN + 77 + + 81 THEN NULL WHEN 24 - + CAST( - 15 AS SIGNED ) THEN - 47 * + 82 END THEN NULL ELSE + CAST( NULL AS DECIMAL ) END, 14 / MIN( ALL 15 ) ) ) * 41 AS col2
----
82574

skipif mysql # not compatible
query I rowsort label-2872
SELECT + 53 * + NULLIF ( + + 38, 29 * + ( - 27 ) * - COALESCE ( 72, + 32 * CASE COALESCE ( - CASE + 31 WHEN - ( 2 ) THEN + 21 WHEN 56 * 28 THEN NULL WHEN 37 THEN NULL ELSE NULL END, COUNT ( * ), - 8 ) * - 41 WHEN + CASE ( SUM ( + 55 ) ) WHEN + 77 + + 81 THEN NULL WHEN 24 - + CAST ( - 15 AS INTEGER ) THEN - 47 * + 82 END THEN NULL ELSE + CAST ( NULL AS REAL ) END, 14 / MIN ( ALL 15 ) ) ) * 41 AS col2
----
82574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2873
SELECT ALL COUNT( * ) * + CAST( + - NULLIF ( 67, + ( - 54 ) + + + 55 ) AS SIGNED ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL COUNT ( * ) * + CAST ( + - NULLIF ( 67, + ( - 54 ) + + + 55 ) AS INTEGER ) AS col0
----
-67

query I rowsort
SELECT DISTINCT 18 + + + 26 AS col0
----
44

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

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

query I rowsort
SELECT ALL 53 + + + 92
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT - CASE - COUNT( * ) WHEN - - 76 THEN + 85 WHEN - + 61 THEN + 87 WHEN + - COUNT( * ) THEN NULL ELSE - 65 + 49 * 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT - CASE - COUNT ( * ) WHEN - - 76 THEN + 85 WHEN - + 61 THEN + 87 WHEN + - COUNT ( * ) THEN NULL ELSE - 65 + 49 * 73 END AS col1
----
NULL

query I rowsort
SELECT - 24 * - 97
----
2328

onlyif mysql # aggregate syntax: 
query II rowsort label-2879
SELECT + 35 - 84 AS col0, 91 * - COUNT( * ) - + 90
----
-49
-181

skipif mysql # not compatible
query II rowsort label-2879
SELECT + 35 - 84 AS col0, 91 * - COUNT ( * ) - + 90
----
-49
-181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2880
SELECT ALL 23 DIV + + 40 + - + 94 * - CASE + 17 WHEN + + ( + 95 ) THEN NULL ELSE COUNT( * ) * COUNT( * ) END * 14
----
1316

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL 23 / + + 40 + - + 94 * - CASE + 17 WHEN + + ( + 95 ) THEN NULL ELSE COUNT ( * ) * COUNT ( * ) END * 14
----
1316

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

skipif mysql # not compatible
query I rowsort label-2881
SELECT + COUNT ( * ) - + - 12 + 12 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT ( - + COALESCE ( + CASE - 24 WHEN - ( + 42 ) THEN NULL ELSE + 77 END, - 21 * 61 ) ) * COUNT( * ) + + 3
----
-74

skipif mysql # not compatible
query I rowsort label-2882
SELECT ( - + COALESCE ( + CASE - 24 WHEN - ( + 42 ) THEN NULL ELSE + 77 END, - 21 * 61 ) ) * COUNT ( * ) + + 3
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT DISTINCT - 89 * COUNT( DISTINCT - 20 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT - 89 * COUNT ( DISTINCT - 20 ) AS col1
----
-89

query I rowsort
SELECT DISTINCT 46 * 55 * + 38 AS col2
----
96140

query I rowsort
SELECT DISTINCT 35 * 77 * - + 65 * + 88 + + 95 - + - 90 col0
----
-15415215

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT ( + COUNT( 12 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2886
SELECT ( + COUNT ( 12 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2887
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COALESCE ( 81, + 61 ) - + 16 * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COALESCE ( 81, + 61 ) - + 16 * + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 23, - + 93 ) col1
----
23

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

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

query II rowsort
SELECT ( - 91 ), + 47 AS col2
----
-91
47

query I rowsort
SELECT - 28 * 76 * - 13
----
27664

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - 85 + - + CASE 14 WHEN - - 1 THEN NULL WHEN + SUM( + 1 ) / - 99 + + 1 / MIN( - 15 ) THEN 63 * - 42 WHEN + 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT - 85 + - + CASE 14 WHEN - - 1 THEN NULL WHEN + SUM ( + 1 ) / - 99 + + 1 / MIN ( - 15 ) THEN 63 * - 42 WHEN + 80 THEN NULL END
----
NULL

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

query I rowsort
SELECT - - 99 * - 22
----
-2178

onlyif mysql # DIV for integer division: 
query I rowsort label-2895
SELECT ALL + - 17 * + 93 - + - 98 + + 41 DIV - NULLIF ( - 77, - + 7 ) + NULLIF ( + 47 + + 52, - 74 ) * ( + 92 * + 60 )
----
544997

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL + - 17 * + 93 - + - 98 + + 41 / - NULLIF ( - 77, - + 7 ) + NULLIF ( + 47 + + 52, - 74 ) * ( + 92 * + 60 )
----
544997

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT DISTINCT + + ( - NULLIF ( - 56, + 27 ) ) DIV + 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT + + ( - NULLIF ( - 56, + 27 ) ) / + 7 AS col0
----
8

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

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

query I rowsort
SELECT ALL + - 9 * + - 12 - + 22
----
86

query I rowsort
SELECT - - 47 + + - 16 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2900
SELECT - 2 DIV + - 85 + 20 - - 33 + - COUNT( ALL - + CAST( 89 AS SIGNED ) ) * - CASE 45 WHEN 38 * 41 THEN NULL ELSE + MIN( DISTINCT 17 ) END
----
70

skipif mysql # not compatible
query I rowsort label-2900
SELECT - 2 / + - 85 + 20 - - 33 + - COUNT ( ALL - + CAST ( 89 AS INTEGER ) ) * - CASE 45 WHEN 38 * 41 THEN NULL ELSE + MIN ( DISTINCT 17 ) END
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2901
SELECT + COUNT( - - 37 ) DIV + - 10 * + 51
----
0

skipif mysql # not compatible
query I rowsort label-2901
SELECT + COUNT ( - - 37 ) / + - 10 * + 51
----
0

query I rowsort
SELECT - + 73 + + + NULLIF ( - + 88, 54 ) col1
----
-161

query I rowsort
SELECT DISTINCT - + 4 * 86
----
-344

query I rowsort
SELECT ALL + - 42 + 25 AS col0
----
-17

query II rowsort
SELECT DISTINCT 86 + - 75 AS col0, - ( COALESCE ( + 37, ( + - 13 ) ) ) AS col0
----
11
-37

query I rowsort
SELECT DISTINCT + 84 + - 13 + - - 14 * + 84 + + + 14 AS col1
----
1261

query I rowsort
SELECT ALL 54 + 59
----
113

query II rowsort
SELECT - 47 AS col0, + 5 AS col1
----
-47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT MAX( + - 53 ) + 79 * 23
----
1764

skipif mysql # not compatible
query I rowsort label-2909
SELECT MAX ( + - 53 ) + 79 * 23
----
1764

query I rowsort
SELECT 60 + + - 73 col1
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-2911
SELECT 79 AS col1, + 66 DIV + 17 col2
----
79
3

skipif mysql # not compatible
query II rowsort label-2911
SELECT 79 AS col1, + 66 / + 17 col2
----
79
3

query I rowsort
SELECT ALL 6 + 30
----
36

query I rowsort
SELECT DISTINCT 65 + + 76 AS col2
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT DISTINCT + 20 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + 20 / + 85 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2915
SELECT COUNT( - 98 ) + - 11 DIV + 12 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2915
SELECT COUNT ( - 98 ) + - 11 / + 12 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL COUNT( * ) * + - COALESCE ( + + COUNT( * ), 7 + CASE + - CASE - 55 WHEN + + 76 THEN NULL WHEN - 67 - - COUNT( ALL 73 ) THEN NULL ELSE 84 * - ( + ( 34 ) ) END WHEN + 43 THEN COUNT( * ) * - ( 17 ) WHEN + 87 THEN NULL ELSE NULL END + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL COUNT ( * ) * + - COALESCE ( + + COUNT ( * ), 7 + CASE + - CASE - 55 WHEN + + 76 THEN NULL WHEN - 67 - - COUNT ( ALL 73 ) THEN NULL ELSE 84 * - ( + ( 34 ) ) END WHEN + 43 THEN COUNT ( * ) * - ( 17 ) WHEN + 87 THEN NULL ELSE NULL END + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL 11 * - 88 col0
----
-968

onlyif mysql # aggregate syntax: 
query II rowsort label-2918
SELECT 73, COUNT( * ) * + 19 * + + 21 + - 24 AS col1
----
73
375

skipif mysql # not compatible
query II rowsort label-2918
SELECT 73, COUNT ( * ) * + 19 * + + 21 + - 24 AS col1
----
73
375

onlyif mysql # DIV for integer division: 
query I rowsort label-2919
SELECT 48 DIV - 91 + - 74 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2919
SELECT 48 / - 91 + - 74 AS col1
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2920
SELECT ALL 40 - - 81 + - + 22 + - CAST( NULL AS DECIMAL ) + 3 * + 81 * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL 40 - - 81 + - + 22 + - CAST ( NULL AS REAL ) + 3 * + 81 * 54
----
NULL

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

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

query I rowsort
SELECT - 93 * - 93 + - 31 + 22 AS col2
----
8640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2923
SELECT + 36, - 25 + CAST( NULL AS SIGNED ) AS col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-2923
SELECT + 36, - 25 + CAST ( NULL AS INTEGER ) AS col1
----
36
NULL

query I rowsort
SELECT 40 * - 12 + + + CASE + 99 WHEN - 29 - - 86 / 64 THEN + 93 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 92 * 20 AS col2
----
-1840

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2927
SELECT 80 * COALESCE ( + - SUM( ALL + 6 ), - - 28 * + AVG ( DISTINCT - 12 ), + 43 * + COALESCE ( 53 * + 36, + CAST( NULL AS SIGNED ) ) ) DIV + 17 + - 50 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2927
SELECT 80 * COALESCE ( + - SUM ( ALL + 6 ), - - 28 * + AVG ( DISTINCT - 12 ), + 43 * + COALESCE ( 53 * + 36, + CAST ( NULL AS INTEGER ) ) ) / + 17 + - 50 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT ALL + COUNT( * ) * - + NULLIF ( + + 61, 81 ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + COUNT ( * ) * - + NULLIF ( + + 61, 81 ) col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2929
SELECT ALL 3 * - - CAST( 11 AS SIGNED ) * + + COUNT( ALL 26 ) col0
----
33

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL 3 * - - CAST ( 11 AS INTEGER ) * + + COUNT ( ALL 26 ) col0
----
33

query I rowsort
SELECT 60 * + 87 AS col0
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT + MIN( DISTINCT 12 ) * 3 + + - 11 + 63 * - ( 70 ) AS col0
----
-4385

skipif mysql # not compatible
query I rowsort label-2931
SELECT + MIN ( DISTINCT 12 ) * 3 + + - 11 + 63 * - ( 70 ) AS col0
----
-4385

query I rowsort
SELECT ALL - NULLIF ( + - 57, + 74 + + 43 ) AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2933
SELECT ALL - 7 + - 75 DIV 65 AS col2, COUNT( * ) AS col2
----
-8
1

skipif mysql # not compatible
query II rowsort label-2933
SELECT ALL - 7 + - 75 / 65 AS col2, COUNT ( * ) AS col2
----
-8
1

query II rowsort
SELECT 91, 87 AS col0
----
91
87

query I rowsort
SELECT ALL - ( 0 ) * - 38 * + - 42 + + COALESCE ( + 64, - 95 * + 65 ) AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT DISTINCT 73 + + 62 * 86 * - CAST( - CAST( CAST( - ( COALESCE ( + 35, + 97 ) ) AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col1
----
-186547

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT 73 + + 62 * 86 * - CAST ( - CAST ( CAST ( - ( COALESCE ( + 35, + 97 ) ) AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col1
----
-186547

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2938
SELECT ALL + 85 AS col2, NULLIF ( - 87, + 99 * + 83 + 34 * 37 * - 89 + COUNT( * ) ) AS col0
----
85
-87

skipif mysql # not compatible
query II rowsort label-2938
SELECT ALL + 85 AS col2, NULLIF ( - 87, + 99 * + 83 + 34 * 37 * - 89 + COUNT ( * ) ) AS col0
----
85
-87

query I rowsort
SELECT ALL + + COALESCE ( 62, + CASE 85 WHEN + 79 THEN 97 END * 58 + - 7 ) + - 52
----
10

query I rowsort
SELECT 6 + - + 23 AS col0
----
-17

query I rowsort
SELECT ALL + 55 + + 29 + - + 13 * + - 27
----
435

query I rowsort
SELECT DISTINCT + 88 * 19
----
1672

query II rowsort
SELECT ALL + 79 + 76 AS col2, 0 + + 34 - - 24 + 20
----
155
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT CASE - 57 WHEN - 19 THEN MAX( DISTINCT + 5 ) * - 13 + + + COALESCE ( + 30, - 91, COALESCE ( - COUNT( * ), + 86 ) * - CASE - 8 WHEN + 82 THEN + 53 ELSE 79 * 98 END, 69 ) WHEN ( 84 ) THEN 63 END * - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT CASE - 57 WHEN - 19 THEN MAX ( DISTINCT + 5 ) * - 13 + + + COALESCE ( + 30, - 91, COALESCE ( - COUNT ( * ), + 86 ) * - CASE - 8 WHEN + 82 THEN + 53 ELSE 79 * 98 END, 69 ) WHEN ( 84 ) THEN 63 END * - 15 AS col0
----
NULL

query I rowsort
SELECT ALL - 15 * + - 28 AS col2
----
420

query I rowsort
SELECT ALL - 43 + + + 26 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL 0 + + MAX( - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL 0 + + MAX ( - 9 )
----
-9

query II rowsort
SELECT ALL + 16 * 68 AS col1, + 11 * - 75 col0
----
1088
-825

query I rowsort
SELECT DISTINCT - 61 - - - 33 AS col0
----
-94

query I rowsort
SELECT 69 + 39 col0
----
108

query I rowsort
SELECT 85 * 79 AS col1
----
6715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT COALESCE ( - CAST( NULL AS SIGNED ), + - 70 * 9 * 55 ) * + NULLIF ( - + 13, - 80 ) + 2 + + 51 AS col2
----
450503

skipif mysql # not compatible
query I rowsort label-2952
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), + - 70 * 9 * 55 ) * + NULLIF ( - + 13, - 80 ) + 2 + + 51 AS col2
----
450503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT DISTINCT - CAST( + 12 AS SIGNED ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT - CAST ( + 12 AS INTEGER ) AS col0
----
-12

query I rowsort
SELECT 94 - + + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL CASE 8 WHEN 99 THEN COUNT( * ) - - 63 ELSE 38 END * COUNT( * ) - + + 0 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL CASE 8 WHEN 99 THEN COUNT ( * ) - - 63 ELSE 38 END * COUNT ( * ) - + + 0 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL ( - - 96 ) * - + 62 * + COUNT( * ) + + 51 AS col0
----
-5901

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL ( - - 96 ) * - + 62 * + COUNT ( * ) + + 51 AS col0
----
-5901

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT ALL + 72 DIV 23
----
3

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + 72 / 23
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT ALL + SUM( DISTINCT + 47 ) * + - CAST( NULL AS SIGNED ) / + + CAST( - 74 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + SUM ( DISTINCT + 47 ) * + - CAST ( NULL AS INTEGER ) / + + CAST ( - 74 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 99 * - 37 * + 27 col2
----
-98901

onlyif mysql # aggregate syntax: 
query II rowsort label-2960
SELECT DISTINCT - 61 * + COUNT( * ), + 71 + 51 col0
----
-61
122

skipif mysql # not compatible
query II rowsort label-2960
SELECT DISTINCT - 61 * + COUNT ( * ), + 71 + 51 col0
----
-61
122

query I rowsort
SELECT - 75 * + 27 * + 57 - - - 33 + - - 28 * - 32
----
-116354

onlyif mysql # DIV for integer division: 
query I rowsort label-2962
SELECT 72 DIV - 69 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2962
SELECT 72 / - 69 AS col0
----
-1

query I rowsort
SELECT ALL 96 + 62 AS col1
----
158

query I rowsort
SELECT - 66 * + 36 AS col2
----
-2376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2965
SELECT + CAST( 85 AS SIGNED ), COUNT( ALL + ( - - 8 ) ) AS col2, + 26 - + 77 DIV + + CAST( + 15 AS SIGNED ) + + 56 * + 77 AS col0
----
85
1
4333

skipif mysql # not compatible
query III rowsort label-2965
SELECT + CAST ( 85 AS INTEGER ), COUNT ( ALL + ( - - 8 ) ) AS col2, + 26 - + 77 / + + CAST ( + 15 AS INTEGER ) + + 56 * + 77 AS col0
----
85
1
4333

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2966
SELECT + 84 + + 30 + + CAST( NULL AS DECIMAL ) * - 10, 3 * - 27 * 66 - + + 53 * + COALESCE ( 58, - 27 ) - + 19 * 64 AS col0
----
NULL
-9636

skipif mysql # not compatible
query II rowsort label-2966
SELECT + 84 + + 30 + + CAST ( NULL AS REAL ) * - 10, 3 * - 27 * 66 - + + 53 * + COALESCE ( 58, - 27 ) - + 19 * 64 AS col0
----
NULL
-9636

query I rowsort
SELECT ALL 23 * + + 23 AS col2
----
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT + - CASE - COUNT( * ) WHEN COUNT( * ) THEN - + 90 WHEN + COUNT( * ) + - COUNT( * ) / + 80 THEN - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT + - CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - + 90 WHEN + COUNT ( * ) + - COUNT ( * ) / + 80 THEN - 39 END
----
NULL

query I rowsort
SELECT ALL + 26 * + - 12 - - 8 AS col0
----
-304

query I rowsort
SELECT - - 15 * + 81
----
1215

query I rowsort
SELECT + 82 + + 45 + - + 20 + - 51
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2972
SELECT DISTINCT COALESCE ( - 25, + 23 + ( - + 86 ) * ( + 39 ) * + 45 DIV - COUNT( * ) * CAST( NULL AS SIGNED ), MIN( + ( 68 ) ) - + SUM( ALL - 66 ) ) * 65
----
-1625

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT COALESCE ( - 25, + 23 + ( - + 86 ) * ( + 39 ) * + 45 / - COUNT ( * ) * CAST ( NULL AS INTEGER ), MIN ( + ( 68 ) ) - + SUM ( ALL - 66 ) ) * 65
----
-1625

query II rowsort
SELECT ALL + 35 + - 84, + 16 AS col2
----
-49
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL MIN( 8 )
----
8

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL MIN ( 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT 36 * 61 * COUNT( * ) col1
----
2196

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT 36 * 61 * COUNT ( * ) col1
----
2196

query I rowsort
SELECT ALL 94 - + + 5 - 80
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL - COALESCE ( - 11, + 96 * 37 * - 30, + + 35 * - ( - 64 ) ) - + 12 - + MAX( ALL 7 ) * 4 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL - COALESCE ( - 11, + 96 * 37 * - 30, + + 35 * - ( - 64 ) ) - + 12 - + MAX ( ALL 7 ) * 4 AS col1
----
-29

query I rowsort
SELECT - 82 + - 52 + - 52 AS col0
----
-186

query II rowsort
SELECT ALL 4, 86 * - 33 AS col2
----
4
-2838

query I rowsort
SELECT - 59 + - - 79 + - 28 * - - 89 * - + ( ( 61 ) ) + - ( + CASE 74 WHEN + 44 + + 97 * - 91 THEN NULL WHEN 98 THEN + 47 ELSE 56 * - 5 END )
----
152312

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2982
SELECT ALL - 57 DIV - - 42 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - 57 / - - 42 AS col1
----
-1

query I rowsort
SELECT + 29 * 36
----
1044

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT + 46 DIV 3
----
15

skipif mysql # not compatible
query I rowsort label-2984
SELECT + 46 / 3
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL CASE - - NULLIF ( 15, NULLIF ( - 97, + COUNT( * ) * - 79 ) ) WHEN 70 THEN + COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL CASE - - NULLIF ( 15, NULLIF ( - 97, + COUNT ( * ) * - 79 ) ) WHEN 70 THEN + COUNT ( * ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT - ( 70 ) + - 94 AS col2
----
-164

query I rowsort
SELECT - 99 + + 50
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT - 16 DIV + - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT - 16 / + - 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL + MAX( DISTINCT - 77 ) * 74 * - CASE - - 37 WHEN 95 + - 95 THEN + 15 ELSE 49 END + - + COALESCE ( 92, - 43, + 19 * ( 41 * - 92 ), - 22 + 86 ) + COUNT( * )
----
279111

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL + MAX ( DISTINCT - 77 ) * 74 * - CASE - - 37 WHEN 95 + - 95 THEN + 15 ELSE 49 END + - + COALESCE ( 92, - 43, + 19 * ( 41 * - 92 ), - 22 + 86 ) + COUNT ( * )
----
279111

query I rowsort
SELECT - 92 * 78 * NULLIF ( - - CASE - 77 WHEN - + 49 THEN + 80 * - + 36 + 4 END, + 43 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 67 * - 98
----
-6566

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT - 97 * COUNT( * ) + - - 53 AS col2, 66 * - COUNT( * )
----
-44
-66

skipif mysql # not compatible
query II rowsort label-2994
SELECT - 97 * COUNT ( * ) + - - 53 AS col2, 66 * - COUNT ( * )
----
-44
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT ALL - - 33 * CAST( + 67 AS SIGNED ) + + - 87 + + 14 * - 65 + - - 82 + + 69 + - 65
----
1300

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL - - 33 * CAST ( + 67 AS INTEGER ) + + - 87 + + 14 * - 65 + - - 82 + + 69 + - 65
----
1300

onlyif mysql # aggregate syntax: 
query II rowsort label-2996
SELECT ALL - + 67 * - 49 + - + NULLIF ( + 76, - ( - 14 ) ) * - - 27 + + 29, - COUNT( * ) AS col2
----
1260
-1

skipif mysql # not compatible
query II rowsort label-2996
SELECT ALL - + 67 * - 49 + - + NULLIF ( + 76, - ( - 14 ) ) * - - 27 + + 29, - COUNT ( * ) AS col2
----
1260
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT DISTINCT + 95 * + 43 * - - COUNT( * ) + - COUNT( * ) AS col1
----
4084

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT + 95 * + 43 * - - COUNT ( * ) + - COUNT ( * ) AS col1
----
4084

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2998
SELECT + - 89 AS col2, 75 * + + CAST( 4 AS SIGNED )
----
-89
300

skipif mysql # not compatible
query II rowsort label-2998
SELECT + - 89 AS col2, 75 * + + CAST ( 4 AS INTEGER )
----
-89
300

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL + - COALESCE ( - 41, + 39, - 32, - 34 * - COALESCE ( COUNT( * ), + 2 ) * + + 65 * - 34 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL + - COALESCE ( - 41, + 39, - 32, - 34 * - COALESCE ( COUNT ( * ), + 2 ) * + + 65 * - 34 ) AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT - ( + + 26 ) * - 90 * + CAST( NULL AS SIGNED ) * 60 + + 25 * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT - ( + + 26 ) * - 90 * + CAST ( NULL AS INTEGER ) * 60 + + 25 * + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL - 52 * + 95 + + - 70 + - - COUNT( * ) + - 27
----
-5036

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL - 52 * + 95 + + - 70 + - - COUNT ( * ) + - 27
----
-5036

query I rowsort
SELECT ALL + - 47 * + + 83 + 55 + + 45 + 22 * 58 + - + 57 AS col1
----
-2582

query I rowsort
SELECT + - 61 * + ( 89 ) AS col1
----
-5429

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + CASE - + COUNT( * ) WHEN 40 * + - COUNT( * ) * + + 10 - 53 THEN + + 89 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT + CASE - + COUNT ( * ) WHEN 40 * + - COUNT ( * ) * + + 10 - 53 THEN + + 89 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3005
SELECT + 30 * - 76 + + 34 AS col0, CAST( NULL AS SIGNED ) / - CASE + 20 WHEN - - ( 57 ) THEN + - 70 + + MAX( DISTINCT + ( 28 ) ) + - 94 WHEN 13 + + 3 THEN - 65 END AS col1
----
-2246
NULL

skipif mysql # not compatible
query II rowsort label-3005
SELECT + 30 * - 76 + + 34 AS col0, CAST ( NULL AS INTEGER ) / - CASE + 20 WHEN - - ( 57 ) THEN + - 70 + + MAX ( DISTINCT + ( 28 ) ) + - 94 WHEN 13 + + 3 THEN - 65 END AS col1
----
-2246
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3006
SELECT DISTINCT - 73 DIV + SUM( ALL - + ( + 18 ) ) + 91
----
95

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT - 73 / + SUM ( ALL - + ( + 18 ) ) + 91
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3007
SELECT ALL 89, CAST( 37 AS SIGNED ) AS col2
----
89
37

skipif mysql # not compatible
query II rowsort label-3007
SELECT ALL 89, CAST ( 37 AS INTEGER ) AS col2
----
89
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT DISTINCT COUNT( * ) * + SUM( ALL 56 ) / 89 + + MAX( ALL 80 ) - ( - - ( COUNT( * ) ) ) - - ( + CAST( NULL AS SIGNED ) ) * 91 / 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT COUNT ( * ) * + SUM ( ALL 56 ) / 89 + + MAX ( ALL 80 ) - ( - - ( COUNT ( * ) ) ) - - ( + CAST ( NULL AS INTEGER ) ) * 91 / 43 AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 17, - - 87 ) * - - ( + 96 ) AS col2
----
-1632

onlyif mysql # aggregate syntax: 
query II rowsort label-3010
SELECT DISTINCT 96, 58 * 80 / + CASE - 31 WHEN COUNT( * ) - + + 41 THEN NULL WHEN + - CASE - 17 WHEN + ( - - AVG ( ALL 64 ) ) THEN MIN( + 58 ) ELSE NULL END / + COUNT( * ) THEN - 51 + 43 ELSE NULL END AS col1
----
96
NULL

skipif mysql # not compatible
query II rowsort label-3010
SELECT DISTINCT 96, 58 * 80 / + CASE - 31 WHEN COUNT ( * ) - + + 41 THEN NULL WHEN + - CASE - 17 WHEN + ( - - AVG ( ALL 64 ) ) THEN MIN ( + 58 ) ELSE NULL END / + COUNT ( * ) THEN - 51 + 43 ELSE NULL END AS col1
----
96
NULL

query II rowsort
SELECT ALL 99, 41 * NULLIF ( + - 36, - 74 * 17 * - 83 ) AS col0
----
99
-1476

query I rowsort
SELECT + 70 * 25 AS col2
----
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT - CASE + 2 WHEN - + 56 * + COUNT( * ) + - 3 THEN + - 77 * 48 * + COUNT( * ) * + 86 * 90 WHEN + - 0 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT - CASE + 2 WHEN - + 56 * + COUNT ( * ) + - 3 THEN + - 77 * 48 * + COUNT ( * ) * + 86 * 90 WHEN + - 0 THEN NULL ELSE NULL END AS col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT SUM( DISTINCT + 4 ) col1
----
4

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT SUM ( DISTINCT + 4 ) col1
----
4

query II rowsort
SELECT 89 AS col1, + COALESCE ( + 35, 12, 22 ) + - 54 AS col0
----
89
-19

query I rowsort
SELECT + 75 * + - 78
----
-5850

query II rowsort
SELECT 0 AS col0, + 81 + - 1
----
0
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT - 69 - + - COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3020
SELECT - 69 - + - COUNT ( * ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL SUM( DISTINCT - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL SUM ( DISTINCT - 97 )
----
-97

query I rowsort
SELECT ALL 34 + - ( + 84 ) AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3023
SELECT - 45 * + - 15 * - + 90 / + 87 / - CAST( + 1 AS DECIMAL ) * 33 + - - CASE WHEN NOT 80 IS NOT NULL THEN + 27 * 80 + CAST( - 22 AS SIGNED ) / 67 END * 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT - 45 * + - 15 * - + 90 / + 87 / - CAST ( + 1 AS REAL ) * 33 + - - CASE WHEN NOT 80 IS NOT NULL THEN + 27 * 80 + CAST ( - 22 AS INTEGER ) / 67 END * 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT + 16 + - CASE + + COUNT( * ) WHEN - 19 THEN + 76 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT + 16 + - CASE + + COUNT ( * ) WHEN - 19 THEN + 76 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT - 5 AS col2, + 36 AS col2
----
-5
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3026
SELECT - 99 DIV 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3026
SELECT - 99 / 71 AS col0
----
-1

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

skipif mysql # not compatible
query II rowsort label-3027
SELECT + 66 AS col2, + CAST ( COUNT ( * ) AS INTEGER )
----
66
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT ALL - + CAST( 70 AS SIGNED ) * COUNT( 91 ) * + 9 AS col2
----
-630

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - + CAST ( 70 AS INTEGER ) * COUNT ( 91 ) * + 9 AS col2
----
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-3029
SELECT - + 89 DIV + + COALESCE ( - 97, + 24, + + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-3029
SELECT - + 89 / + + COALESCE ( - 97, + 24, + + 32 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3030
SELECT DISTINCT - NULLIF ( + - COUNT( * ), + + 34 ) DIV - 76 + 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), + + 34 ) / - 76 + 89 AS col1
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT - + COUNT( * ) * 27 * CASE + ( + + SUM( ALL 99 ) ) WHEN - 31 THEN + 26 END * + - AVG ( DISTINCT - 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - + COUNT ( * ) * 27 * CASE + ( + + SUM ( ALL 99 ) ) WHEN - 31 THEN + 26 END * + - AVG ( DISTINCT - 58 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3033
SELECT ALL 74 / CASE + - COUNT( * ) WHEN + COUNT( * ) THEN + COUNT( * ) * - CAST( NULL AS SIGNED ) WHEN - 39 THEN + COUNT( * ) ELSE NULL END + + COALESCE ( - 85, + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL 74 / CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN + COUNT ( * ) * - CAST ( NULL AS INTEGER ) WHEN - 39 THEN + COUNT ( * ) ELSE NULL END + + COALESCE ( - 85, + - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT COALESCE ( COUNT( * ), - - ( - COUNT( * ) ) * - - 28 * 17 )
----
1

skipif mysql # not compatible
query I rowsort label-3034
SELECT COALESCE ( COUNT ( * ), - - ( - COUNT ( * ) ) * - - 28 * 17 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT + 2 - COALESCE ( + 68, 65 + 97 ) + CASE + - 47 WHEN + 84 - - 1 THEN 39 + - 3 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT + 2 - COALESCE ( + 68, 65 + 97 ) + CASE + - 47 WHEN + 84 - - 1 THEN 39 + - 3 END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3036
SELECT ALL + 68 - CAST( - SUM( + 3 ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL + 68 - CAST ( - SUM ( + 3 ) AS INTEGER )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT - AVG ( - + CAST( NULL AS SIGNED ) ) * + + 11 * - 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3037
SELECT - AVG ( - + CAST ( NULL AS INTEGER ) ) * + + 11 * - 47 col0
----
NULL

query I rowsort
SELECT ( - - 84 ) * - - 55
----
4620

query I rowsort
SELECT ALL + 43 * 44 * + 68
----
128656

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT + 96 AS col0, COALESCE ( 36, COUNT( * ), + 94 * - + 79 ) - - 86 + - MAX( ALL + - 29 ) AS col2
----
96
151

skipif mysql # not compatible
query II rowsort label-3040
SELECT + 96 AS col0, COALESCE ( 36, COUNT ( * ), + 94 * - + 79 ) - - 86 + - MAX ( ALL + - 29 ) AS col2
----
96
151

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3042
SELECT 98 * 39 DIV + - 54
----
-70

skipif mysql # not compatible
query I rowsort label-3042
SELECT 98 * 39 / + - 54
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3043
SELECT 69 + CAST( + 98 AS SIGNED )
----
167

skipif mysql # not compatible
query I rowsort label-3043
SELECT 69 + CAST ( + 98 AS INTEGER )
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT 85 + - COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3044
SELECT 85 + - COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT 88 DIV - COUNT( - 76 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3045
SELECT 88 / - COUNT ( - 76 ) AS col1
----
-88

query I rowsort
SELECT 94 + + + 96 - - 55 + + 73
----
318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3047
SELECT NULLIF ( 21, 66 * NULLIF ( + ( 45 ), + - 92 ) + CASE + 24 WHEN 90 + + - COALESCE ( + 98, 49 ) * - 2 THEN 20 * COUNT( CAST( NULL AS SIGNED ) ) ELSE NULL END ) - + ( 50 + - 21 ) * 91
----
-2618

skipif mysql # not compatible
query I rowsort label-3047
SELECT NULLIF ( 21, 66 * NULLIF ( + ( 45 ), + - 92 ) + CASE + 24 WHEN 90 + + - COALESCE ( + 98, 49 ) * - 2 THEN 20 * COUNT ( CAST ( NULL AS INTEGER ) ) ELSE NULL END ) - + ( 50 + - 21 ) * 91
----
-2618

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

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT COUNT ( * ) / 28
----
0

query I rowsort
SELECT 4 + - CASE 7 WHEN + 67 + 94 THEN - - 90 + + 28 ELSE + - 78 END
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT COUNT( * ) + - + 16 * + ( - + 49 ) + - 27 + + 6 + - NULLIF ( - + MIN( ALL + 98 ), + 37 * 71 )
----
862

skipif mysql # not compatible
query I rowsort label-3050
SELECT COUNT ( * ) + - + 16 * + ( - + 49 ) + - 27 + + 6 + - NULLIF ( - + MIN ( ALL + 98 ), + 37 * 71 )
----
862

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT ALL + COUNT( * ) + - 53 * - 87
----
4612

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL + COUNT ( * ) + - 53 * - 87
----
4612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3052
SELECT ALL CASE - + 60 WHEN + 45 * + CASE + ( + 45 ) WHEN - - 41 THEN NULL WHEN + 40 - - - 70 * - 39 THEN - 88 - - 21 + 15 WHEN 0 * - CAST( CASE CASE WHEN NOT NULL IS NOT NULL THEN NULLIF ( - 69, - 27 * + 28 ) END WHEN - ( 79 ) THEN NULL ELSE + 91 END AS SIGNED ) THEN NULL END / 20 + - 15 THEN NULL WHEN COUNT( * ) THEN - 70 END * + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL CASE - + 60 WHEN + 45 * + CASE + ( + 45 ) WHEN - - 41 THEN NULL WHEN + 40 - - - 70 * - 39 THEN - 88 - - 21 + 15 WHEN 0 * - CAST ( CASE CASE WHEN NOT NULL IS NOT NULL THEN NULLIF ( - 69, - 27 * + 28 ) END WHEN - ( 79 ) THEN NULL ELSE + 91 END AS INTEGER ) THEN NULL END / 20 + - 15 THEN NULL WHEN COUNT ( * ) THEN - 70 END * + 48 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 63 + - 61
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3055
SELECT 29 + - - 49 * + CAST( 62 AS SIGNED ) AS col1
----
3067

skipif mysql # not compatible
query I rowsort label-3055
SELECT 29 + - - 49 * + CAST ( 62 AS INTEGER ) AS col1
----
3067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3056
SELECT ALL COALESCE ( - + 0, + 85 + - MAX( + - COALESCE ( - 2, - 59 + + 75 * - ( + CAST( NULL AS SIGNED ) ) ) ), - COALESCE ( + ( CASE 51 WHEN - COUNT( * ) + 40 THEN NULL ELSE 72 DIV - 46 END ), 61 + + 96 ) * 57, 35 ) + + 13 * - COALESCE ( + 96, 67, - ( 90 ) * CASE 86 WHEN COUNT( ALL - 2 ) * ( - SUM( 5 ) ) THEN 9 ELSE NULL END )
----
-1248

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL COALESCE ( - + 0, + 85 + - MAX ( + - COALESCE ( - 2, - 59 + + 75 * - ( + CAST ( NULL AS INTEGER ) ) ) ), - COALESCE ( + ( CASE 51 WHEN - COUNT ( * ) + 40 THEN NULL ELSE 72 / - 46 END ), 61 + + 96 ) * 57, 35 ) + + 13 * - COALESCE ( + 96, 67, - ( 90 ) * CASE 86 WHEN COUNT ( ALL - 2 ) * ( - SUM ( 5 ) ) THEN 9 ELSE NULL END )
----
-1248

query II rowsort
SELECT 13 * 58, - 18 * + 60 AS col0
----
754
-1080

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

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

query I rowsort
SELECT ALL 28 + - 94 + 3
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3060
SELECT CAST( - 29 AS SIGNED ) + + + MAX( - 39 )
----
-68

skipif mysql # not compatible
query I rowsort label-3060
SELECT CAST ( - 29 AS INTEGER ) + + + MAX ( - 39 )
----
-68

query II rowsort
SELECT + 36 * + - 39 col2, ( - 99 )
----
-1404
-99

query I rowsort
SELECT ALL + 54 + - - 0 + 53
----
107

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT ALL - 80 + - 26 AS col0, 38 * NULLIF ( + 56, 37 * + 74 + + ( - COALESCE ( - - ( - COUNT( ALL - - 55 ) ), - COUNT( * ) ) ) / + 60 )
----
-106
2128

skipif mysql # not compatible
query II rowsort label-3064
SELECT ALL - 80 + - 26 AS col0, 38 * NULLIF ( + 56, 37 * + 74 + + ( - COALESCE ( - - ( - COUNT ( ALL - - 55 ) ), - COUNT ( * ) ) ) / + 60 )
----
-106
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT ALL + CASE COUNT( * ) WHEN + 40 THEN - 28 * + 83 END + + + 70 + + + 18 * + + 19 * 85 * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + CASE COUNT ( * ) WHEN + 40 THEN - 28 * + 83 END + + + 70 + + + 18 * + + 19 * 85 * 86 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 72 - 49 AS col2, 30
----
-121
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT SUM( ALL - + NULLIF ( 98, + - CAST( NULL AS SIGNED ) ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3067
SELECT SUM ( ALL - + NULLIF ( 98, + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-98

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

skipif mysql # not compatible
query I rowsort label-3068
SELECT 29 * COUNT ( * )
----
29

query I rowsort
SELECT + 9 * + 78
----
702

query I rowsort
SELECT ALL - + CASE - - 3 WHEN + 76 / - + 71 THEN 81 WHEN 89 * + COALESCE ( - 53, - + 57 ) + 99 * 54 THEN NULL WHEN 14 THEN NULL END * - 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT 42 * + - CAST( + 40 AS SIGNED ) + 30
----
-1650

skipif mysql # not compatible
query I rowsort label-3071
SELECT 42 * + - CAST ( + 40 AS INTEGER ) + 30
----
-1650

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

query II rowsort
SELECT ALL + 3 * 77 + + - 40 - - + 54 * 8, 52 AS col2
----
623
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3074
SELECT 98 * + - COUNT( DISTINCT + 31 ) * + COALESCE ( COUNT( * ), CASE 88 WHEN + 74 + - - 57 THEN + 45 END - - 66 ) DIV - - COUNT( * ) + + 64 col1
----
-34

skipif mysql # not compatible
query I rowsort label-3074
SELECT 98 * + - COUNT ( DISTINCT + 31 ) * + COALESCE ( COUNT ( * ), CASE 88 WHEN + 74 + - - 57 THEN + 45 END - - 66 ) / - - COUNT ( * ) + + 64 col1
----
-34

query I rowsort
SELECT ALL - 87 * - + NULLIF ( + 21, + + 25 * + + 86 * 23 + 93 * - 51 ) AS col0
----
1827

query I rowsort
SELECT ALL - NULLIF ( + 63, - - 69 ) AS col0
----
-63

query I rowsort
SELECT 4 + + + 0 col0
----
4

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

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

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

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

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

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

query II rowsort
SELECT 9 AS col1, + 81
----
9
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3082
SELECT 16 * + 19 + - 89, - MIN( + 44 ) AS col1
----
215
-44

skipif mysql # not compatible
query II rowsort label-3082
SELECT 16 * + 19 + - 89, - MIN ( + 44 ) AS col1
----
215
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT 4 * + CASE + 18 WHEN - 16 / - MAX( ALL - 37 ) THEN ( 14 ) ELSE - - 40 END AS col2
----
160

skipif mysql # not compatible
query I rowsort label-3083
SELECT 4 * + CASE + 18 WHEN - 16 / - MAX ( ALL - 37 ) THEN ( 14 ) ELSE - - 40 END AS col2
----
160

query I rowsort
SELECT ALL + 53 + ( + 52 ) + 26
----
131

query I rowsort
SELECT DISTINCT + 8 + 61
----
69

query I rowsort
SELECT ALL 88 + 19
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT 23 DIV + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3087
SELECT 23 / + 75 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3089
SELECT 25 AS col1, CASE + 83 WHEN 9 THEN 75 * 38 / + 37 + - ( + 91 ) + 19 + - 39 * + SUM( ALL 80 ) * 16 WHEN ( - 64 ) THEN 68 END
----
25
NULL

skipif mysql # not compatible
query II rowsort label-3089
SELECT 25 AS col1, CASE + 83 WHEN 9 THEN 75 * 38 / + 37 + - ( + 91 ) + 19 + - 39 * + SUM ( ALL 80 ) * 16 WHEN ( - 64 ) THEN 68 END
----
25
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3090
SELECT NULLIF ( - - 11, + SUM( + - 66 ) ) DIV + COALESCE ( - - 77, CASE - 73 WHEN ( - 10 ) THEN - 36 + + 97 + + 52 ELSE 18 END )
----
0

skipif mysql # not compatible
query I rowsort label-3090
SELECT NULLIF ( - - 11, + SUM ( + - 66 ) ) / + COALESCE ( - - 77, CASE - 73 WHEN ( - 10 ) THEN - 36 + + 97 + + 52 ELSE 18 END )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL + 90 + - - CASE 88 WHEN 74 THEN - MIN( ALL - - NULLIF ( - NULLIF ( - 27, - + 75 ), + 86 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL + 90 + - - CASE 88 WHEN 74 THEN - MIN ( ALL - - NULLIF ( - NULLIF ( - 27, - + 75 ), + 86 ) ) END AS col2
----
NULL

query I rowsort
SELECT 19 - - 65 AS col0
----
84

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

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

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

skipif mysql # not compatible
query I rowsort label-3094
SELECT COUNT ( * ) / - - 27
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ALL 73 + - + 83 + + COUNT( * ) * - 8
----
-18

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL 73 + - + 83 + + COUNT ( * ) * - 8
----
-18

query I rowsort
SELECT - 1 + - 1 + + 31 col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL - 43 * + 44 + - 0 + + COUNT( * ) + + - 32 AS col0
----
-1923

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL - 43 * + 44 + - 0 + + COUNT ( * ) + + - 32 AS col0
----
-1923

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3099
SELECT + 35 AS col0, COALESCE ( 17, CAST( NULL AS SIGNED ) ) AS col2
----
35
17

skipif mysql # not compatible
query II rowsort label-3099
SELECT + 35 AS col0, COALESCE ( 17, CAST ( NULL AS INTEGER ) ) AS col2
----
35
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3100
SELECT ALL + MIN( DISTINCT + CAST( - 19 AS SIGNED ) ) - + - 99 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL + MIN ( DISTINCT + CAST ( - 19 AS INTEGER ) ) - + - 99 AS col1
----
80

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

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

query II rowsort
SELECT ALL 96 AS col0, - 33 AS col1
----
96
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT + - 87 + + 13 * - ( MAX( ALL + 73 ) )
----
-1036

skipif mysql # not compatible
query I rowsort label-3103
SELECT + - 87 + + 13 * - ( MAX ( ALL + 73 ) )
----
-1036

query I rowsort
SELECT DISTINCT - 49 * + + 57
----
-2793

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT DISTINCT + + CASE 75 WHEN ( - 2 ) THEN NULL ELSE + - COUNT( * ) END col1
----
-1

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT + + CASE 75 WHEN ( - 2 ) THEN NULL ELSE + - COUNT ( * ) END col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3106
SELECT ALL + 66 DIV - - 80 * 67 AS col0, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-3106
SELECT ALL + 66 / - - 80 * 67 AS col0, - COUNT ( * )
----
0
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3107
SELECT + + 61 DIV + + NULLIF ( - COALESCE ( + 47, - 10 * 47 - - 46 - 85 DIV - - 16, - 28 * - 91 ), + + NULLIF ( + 89, - 65 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3107
SELECT + + 61 / + + NULLIF ( - COALESCE ( + 47, - 10 * 47 - - 46 - 85 / - - 16, - 28 * - 91 ), + + NULLIF ( + 89, - 65 ) )
----
-1

query I rowsort
SELECT - 36 * + 3
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT + COALESCE ( + - 77, - COUNT( * ) - 15 * + 9 )
----
-77

skipif mysql # not compatible
query I rowsort label-3109
SELECT + COALESCE ( + - 77, - COUNT ( * ) - 15 * + 9 )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3110
SELECT ALL - 54 * + - 88 + - - SUM( DISTINCT 34 ) - - 11 + + 35 DIV + + 25
----
4798

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL - 54 * + - 88 + - - SUM ( DISTINCT 34 ) - - 11 + + 35 / + + 25
----
4798

query II rowsort
SELECT 21 * - 25 * 92 - - - 81 AS col1, + 56
----
-48381
56

query I rowsort
SELECT ALL + 4 * 61 + + 74 col2
----
318

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3114
SELECT DISTINCT - COALESCE ( - - 14, - CAST( + 5 AS SIGNED ) ) * + - 84 + ( COUNT( * ) ) + - 12 + - 10 + 13
----
1168

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT - COALESCE ( - - 14, - CAST ( + 5 AS INTEGER ) ) * + - 84 + ( COUNT ( * ) ) + - 12 + - 10 + 13
----
1168

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT - 76 * - + NULLIF ( + 68, + MIN( DISTINCT 85 ) ) AS col1
----
5168

skipif mysql # not compatible
query I rowsort label-3115
SELECT - 76 * - + NULLIF ( + 68, + MIN ( DISTINCT 85 ) ) AS col1
----
5168

query I rowsort
SELECT ALL + 88 * 81 * - 87 + 84
----
-620052

query I rowsort
SELECT DISTINCT - 44 * 18 + 49 AS col0
----
-743

query I rowsort
SELECT + 40 + + 93 + - + 70 * + 48 * - NULLIF ( - 10, + 24 ) AS col1
----
-33467

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3120
SELECT SUM( - - 53 ) AS col2, - 31 col0
----
53
-31

skipif mysql # not compatible
query II rowsort label-3120
SELECT SUM ( - - 53 ) AS col2, - 31 col0
----
53
-31

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

query I rowsort
SELECT DISTINCT COALESCE ( 24, + + 19 ) AS col1
----
24

query I rowsort
SELECT ALL + 95 + - 99 - + - 68
----
64

query I rowsort
SELECT - 10 + - 26 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT ALL ( - - CAST( 69 AS SIGNED ) )
----
69

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL ( - - CAST ( 69 AS INTEGER ) )
----
69

query I rowsort
SELECT - 86 + + 79 AS col0
----
-7

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

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

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

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

query I rowsort
SELECT DISTINCT + 5 - + 37 AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3130
SELECT - + 77 + - - 66 DIV 31
----
-75

skipif mysql # not compatible
query I rowsort label-3130
SELECT - + 77 + - - 66 / 31
----
-75

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

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

query I rowsort
SELECT + ( - 60 ) * + 93 * - ( - - 62 )
----
345960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3133
SELECT + - NULLIF ( 22, + - COUNT( * ) * - + 56 ) + 25 - - 79 DIV 24 DIV - 72 * - ( + 85 )
----
3

skipif mysql # not compatible
query I rowsort label-3133
SELECT + - NULLIF ( 22, + - COUNT ( * ) * - + 56 ) + 25 - - 79 / 24 / - 72 * - ( + 85 )
----
3

query I rowsort
SELECT ALL - + 96 * + + 41 * 46 AS col1
----
-181056

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT DISTINCT - 89 DIV + - 67 + - - 61 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT - 89 / + - 67 + - - 61 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3136
SELECT ALL - CAST( + - 55 AS SIGNED ) * - 52 AS col1
----
-2860

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL - CAST ( + - 55 AS INTEGER ) * - 52 AS col1
----
-2860

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT + - 50 DIV - 32 + - 96 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3137
SELECT + - 50 / - 32 + - 96 AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3138
SELECT ALL - 39 * - - CASE + + ( + 98 ) WHEN - SUM( ALL - 43 ) * + + COUNT( * ) THEN + 64 / + 77 * 13 + - 16 / 1 WHEN - AVG ( DISTINCT COALESCE ( - 70, CAST( 71 AS SIGNED ) ) ) + 44 THEN + 72 WHEN CASE - 48 WHEN 2 THEN 35 WHEN 98 THEN + 3 + ( + 79 ) ELSE NULL END * - 8 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL - 39 * - - CASE + + ( + 98 ) WHEN - SUM ( ALL - 43 ) * + + COUNT ( * ) THEN + 64 / + 77 * 13 + - 16 / 1 WHEN - AVG ( DISTINCT COALESCE ( - 70, CAST ( 71 AS INTEGER ) ) ) + 44 THEN + 72 WHEN CASE - 48 WHEN 2 THEN 35 WHEN 98 THEN + 3 + ( + 79 ) ELSE NULL END * - 8 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3139
SELECT ALL - 10 / 11 + CAST( NULL AS SIGNED ) AS col0, NULLIF ( + 10, - NULLIF ( + - CAST( - 72 AS SIGNED ), - 60 / + - COUNT( * ) + + COUNT( * ) ) + - + 85 + 56 * + + 22 ) AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-3139
SELECT ALL - 10 / 11 + CAST ( NULL AS INTEGER ) AS col0, NULLIF ( + 10, - NULLIF ( + - CAST ( - 72 AS INTEGER ), - 60 / + - COUNT ( * ) + + COUNT ( * ) ) + - + 85 + 56 * + + 22 ) AS col1
----
NULL
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT 26 * + 54 + + + SUM( - 93 ) * + 93
----
-7245

skipif mysql # not compatible
query I rowsort label-3141
SELECT 26 * + 54 + + + SUM ( - 93 ) * + 93
----
-7245

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT ALL 71 DIV - ( 52 ) + + 90
----
89

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL 71 / - ( 52 ) + + 90
----
89

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

query I rowsort
SELECT ALL + 94 * + ( - 79 ) + + + 82 col2
----
-7344

onlyif mysql # aggregate syntax: 
query II rowsort label-3146
SELECT + 70 + 95 + + 19 AS col1, - COUNT( COALESCE ( - 13, + ( - 49 ) * + 91 ) ) * 59 * + 42 AS col2
----
184
-2478

skipif mysql # not compatible
query II rowsort label-3146
SELECT + 70 + 95 + + 19 AS col1, - COUNT ( COALESCE ( - 13, + ( - 49 ) * + 91 ) ) * 59 * + 42 AS col2
----
184
-2478

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT DISTINCT + 17 * - MIN( DISTINCT 98 ) + - + 92 AS col2
----
-1758

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT + 17 * - MIN ( DISTINCT 98 ) + - + 92 AS col2
----
-1758

query I rowsort
SELECT + 46 + - - 70 AS col2
----
116

query I rowsort
SELECT ( 74 ) col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - 14 * SUM( + - 71 ) + + COUNT( * )
----
995

skipif mysql # not compatible
query I rowsort label-3150
SELECT - 14 * SUM ( + - 71 ) + + COUNT ( * )
----
995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3151
SELECT + 93 * - COUNT( * ) * + - CASE ( + - 26 ) WHEN - + 41 * - CAST( + + 8 AS SIGNED ) + - - 82 THEN - 11 END * - 92 AS col1, COUNT( * ) + + + 61 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3151
SELECT + 93 * - COUNT ( * ) * + - CASE ( + - 26 ) WHEN - + 41 * - CAST ( + + 8 AS INTEGER ) + - - 82 THEN - 11 END * - 92 AS col1, COUNT ( * ) + + + 61 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3152
SELECT ALL 5 * - ( + 96 ), 30 DIV - + 63 AS col0
----
-480
0

skipif mysql # not compatible
query II rowsort label-3152
SELECT ALL 5 * - ( + 96 ), 30 / - + 63 AS col0
----
-480
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3153
SELECT + 10 / NULLIF ( + - CAST( NULL AS SIGNED ), 24 ) * + + 67 / 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT + 10 / NULLIF ( + - CAST ( NULL AS INTEGER ), 24 ) * + + 67 / 73 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 45 * - 81
----
3645

query I rowsort
SELECT ALL 69 * + + 51 * - - 2 AS col2
----
7038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3156
SELECT COUNT( DISTINCT - NULLIF ( - 31, + + 9 ) ) DIV - 12 DIV - - COUNT( * ) + 63
----
63

skipif mysql # not compatible
query I rowsort label-3156
SELECT COUNT ( DISTINCT - NULLIF ( - 31, + + 9 ) ) / - 12 / - - COUNT ( * ) + 63
----
63

query I rowsort
SELECT 64 * - - 94 AS col0
----
6016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3158
SELECT ALL CAST( + 3 AS SIGNED ) * - ( 21 )
----
-63

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL CAST ( + 3 AS INTEGER ) * - ( 21 )
----
-63

query II rowsort
SELECT 1 AS col1, - 95 * + 91
----
1
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT COUNT( * ) - + MIN( DISTINCT 87 )
----
-86

skipif mysql # not compatible
query I rowsort label-3160
SELECT COUNT ( * ) - + MIN ( DISTINCT 87 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT - - NULLIF ( - COUNT( * ), - - 84 * 15 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3161
SELECT - - NULLIF ( - COUNT ( * ), - - 84 * 15 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT + 28 * + MAX( DISTINCT + 1 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3162
SELECT + 28 * + MAX ( DISTINCT + 1 ) AS col1
----
28

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

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

query I rowsort
SELECT 6 + + 60 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT - 55 - + - MAX( DISTINCT 19 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-3165
SELECT - 55 - + - MAX ( DISTINCT 19 ) col0
----
-36

query I rowsort
SELECT ALL - 99 * - - 20
----
-1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT - CASE + - 77 WHEN MAX( - - 83 ) * + - ( - - CAST( NULL AS SIGNED ) ) THEN + 26 ELSE + - 41 * + 72 END + 53
----
3005

skipif mysql # not compatible
query I rowsort label-3167
SELECT - CASE + - 77 WHEN MAX ( - - 83 ) * + - ( - - CAST ( NULL AS INTEGER ) ) THEN + 26 ELSE + - 41 * + 72 END + 53
----
3005

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL + COUNT( * ) + - + 58 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + COUNT ( * ) + - + 58 AS col0
----
-57

query I rowsort
SELECT ALL - - 68 + + 45
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT MAX( DISTINCT 91 ) + - + 63
----
28

skipif mysql # not compatible
query I rowsort label-3170
SELECT MAX ( DISTINCT 91 ) + - + 63
----
28

query I rowsort
SELECT ALL + 64 * - 63 + + 65 + + 90 col0
----
-3877

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT 4 * MIN( - - 17 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3172
SELECT 4 * MIN ( - - 17 ) AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3173
SELECT 39 * - 19 * - - COUNT( * ) + - COUNT( * ) + + - 80 + - + 22 DIV - + 77
----
-822

skipif mysql # not compatible
query I rowsort label-3173
SELECT 39 * - 19 * - - COUNT ( * ) + - COUNT ( * ) + + - 80 + - + 22 / - + 77
----
-822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3174
SELECT ALL SUM( DISTINCT - 26 ) DIV - 39 + - 34 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL SUM ( DISTINCT - 26 ) / - 39 + - 34 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT ALL - COUNT( DISTINCT + + 58 ) + - + 44 + - 74 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL - COUNT ( DISTINCT + + 58 ) + - + 44 + - 74 AS col2
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3176
SELECT + 94, 76 - - 29 + - NULLIF ( + MAX( + - 32 ), + + CAST( NULL AS SIGNED ) ) * + 46 AS col0
----
94
1577

skipif mysql # not compatible
query II rowsort label-3176
SELECT + 94, 76 - - 29 + - NULLIF ( + MAX ( + - 32 ), + + CAST ( NULL AS INTEGER ) ) * + 46 AS col0
----
94
1577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3177
SELECT COALESCE ( + + CAST( NULL AS SIGNED ), + + 51, - NULLIF ( + + 43, - NULLIF ( AVG ( + + 56 ), 33 * 50 + - 13 ) + + COUNT( * ) * ( + 38 ) + - 14 ) + COUNT( * ) + 51 * - 28, COUNT( ALL 77 ) * + COUNT( ALL 4 - 9 ) ) * - 60 AS col0
----
-3060

skipif mysql # not compatible
query I rowsort label-3177
SELECT COALESCE ( + + CAST ( NULL AS INTEGER ), + + 51, - NULLIF ( + + 43, - NULLIF ( AVG ( + + 56 ), 33 * 50 + - 13 ) + + COUNT ( * ) * ( + 38 ) + - 14 ) + COUNT ( * ) + 51 * - 28, COUNT ( ALL 77 ) * + COUNT ( ALL 4 - 9 ) ) * - 60 AS col0
----
-3060

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT ALL - 67 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL - 67 / 81
----
0

query I rowsort
SELECT 42 + 17 AS col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3180
SELECT DISTINCT - 81 AS col1, 51 + + - COUNT( * ) - + 24 * + - COUNT( + 2 ) + - ( - + 54 ) * - 33
----
-81
-1708

skipif mysql # not compatible
query II rowsort label-3180
SELECT DISTINCT - 81 AS col1, 51 + + - COUNT ( * ) - + 24 * + - COUNT ( + 2 ) + - ( - + 54 ) * - 33
----
-81
-1708

query I rowsort
SELECT ALL 29 * + - 6 AS col2
----
-174

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3182
SELECT 59 * + + 80 - - - CAST( - 40 AS SIGNED ) + 23 DIV - - 56
----
4760

skipif mysql # not compatible
query I rowsort label-3182
SELECT 59 * + + 80 - - - CAST ( - 40 AS INTEGER ) + 23 / - - 56
----
4760

query I rowsort
SELECT ALL 99 - ( + + 31 )
----
68

query II rowsort
SELECT 62 AS col2, 44 * - - 90
----
62
3960

query II rowsort
SELECT ALL - ( + 14 ) AS col2, 3 * 67 + 4
----
-14
205

query I rowsort
SELECT DISTINCT 28 - - 40 * - 48 * + - 15 col2
----
28828

onlyif mysql # aggregate syntax: 
query II rowsort label-3187
SELECT ALL - 99 AS col0, - 41 * NULLIF ( + COUNT( * ), - 30 )
----
-99
-41

skipif mysql # not compatible
query II rowsort label-3187
SELECT ALL - 99 AS col0, - 41 * NULLIF ( + COUNT ( * ), - 30 )
----
-99
-41

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

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

query I rowsort
SELECT + 34 * + + 85 - 15 AS col2
----
2875

onlyif mysql # aggregate syntax: 
query II rowsort label-3190
SELECT - 37 * - 75 * + + 29 + + ( SUM( ALL 48 ) ), - 71 * - 61 AS col2
----
80523
4331

skipif mysql # not compatible
query II rowsort label-3190
SELECT - 37 * - 75 * + + 29 + + ( SUM ( ALL 48 ) ), - 71 * - 61 AS col2
----
80523
4331

query I rowsort
SELECT + 76 + - ( + 35 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT - - MIN( ALL 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3192
SELECT - - MIN ( ALL 50 ) AS col0
----
50

query I rowsort
SELECT ALL + NULLIF ( + + 63, + - 41 )
----
63

query I rowsort
SELECT + ( + 75 ) * - ( 51 ) + 5 AS col1
----
-3820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT ALL - 11 DIV - ( MAX( ALL + - 83 ) ) + + ( - COUNT( + - 56 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - 11 / - ( MAX ( ALL + - 83 ) ) + + ( - COUNT ( + - 56 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT - 12 DIV - 3
----
4

skipif mysql # not compatible
query I rowsort label-3196
SELECT - 12 / - 3
----
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT DISTINCT - 61 * - - 23 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT - 61 * - - 23 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3199
SELECT 19 + 68 AS col1, - 46 DIV + + 15
----
87
-3

skipif mysql # not compatible
query II rowsort label-3199
SELECT 19 + 68 AS col1, - 46 / + + 15
----
87
-3

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

query I rowsort
SELECT - 53 + 61 AS col1
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL + + SUM( + 81 ) + - 56 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL + + SUM ( + 81 ) + - 56 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3204
SELECT 77, 90 + + 76 + + 63 + - COUNT( * ) / - NULLIF ( + CAST( NULL AS SIGNED ), 16 / - 9 / + COUNT( * ) + 94 ) * 21 + 79 + 24 col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-3204
SELECT 77, 90 + + 76 + + 63 + - COUNT ( * ) / - NULLIF ( + CAST ( NULL AS INTEGER ), 16 / - 9 / + COUNT ( * ) + 94 ) * 21 + 79 + 24 col2
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL - 4 + - 71 * - + MIN( ALL - 37 ) AS col0
----
-2631

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL - 4 + - 71 * - + MIN ( ALL - 37 ) AS col0
----
-2631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3206
SELECT + 19 * + + CAST( NULL AS SIGNED ) * + + CASE + + COUNT( * ) WHEN - 35 THEN NULL WHEN - 95 + 98 * - 36 THEN + ( - + COALESCE ( + 52, - CASE COUNT( ALL - 8 ) WHEN + AVG ( + + CAST( NULL AS SIGNED ) ) THEN NULL ELSE + 20 * + 12 END + 30, - 59 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT + 19 * + + CAST ( NULL AS INTEGER ) * + + CASE + + COUNT ( * ) WHEN - 35 THEN NULL WHEN - 95 + 98 * - 36 THEN + ( - + COALESCE ( + 52, - CASE COUNT ( ALL - 8 ) WHEN + AVG ( + + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + 20 * + 12 END + 30, - 59 ) ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 98 + + - 68 AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT DISTINCT - CAST( + - CAST( + - 60 AS SIGNED ) AS SIGNED ) * + 32 AS col2
----
-1920

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT - CAST ( + - CAST ( + - 60 AS INTEGER ) AS INTEGER ) * + 32 AS col2
----
-1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3209
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - NULLIF ( - - AVG ( DISTINCT 67 ), - + COUNT( * ) / + - COALESCE ( 92, MAX( + 40 ) + + + NULLIF ( + 99, - 7 * + + MIN( 27 ) ) + - + 99, NULLIF ( + COUNT( * ), + 31 * 73 + ( - 0 ) * 96 ) + CAST( 57 + + 13 AS DECIMAL ) / ( + COUNT( * ) ) ) + - COUNT( * ) * - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - NULLIF ( - - AVG ( DISTINCT 67 ), - + COUNT ( * ) / + - COALESCE ( 92, MAX ( + 40 ) + + + NULLIF ( + 99, - 7 * + + MIN ( 27 ) ) + - + 99, NULLIF ( + COUNT ( * ), + 31 * 73 + ( - 0 ) * 96 ) + CAST ( 57 + + 13 AS REAL ) / ( + COUNT ( * ) ) ) + - COUNT ( * ) * - 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT 42 * - ( + 32 ) * + COUNT( + 65 ) + - COUNT( * )
----
-1345

skipif mysql # not compatible
query I rowsort label-3210
SELECT 42 * - ( + 32 ) * + COUNT ( + 65 ) + - COUNT ( * )
----
-1345

query I rowsort
SELECT 13 * CASE - 22 WHEN + 45 + 86 THEN + 58 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 63 * - - ( + 58 ) AS col1
----
3654

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT ALL + 46 * + COUNT( * ) - - 4, 33 AS col0
----
50
33

skipif mysql # not compatible
query II rowsort label-3213
SELECT ALL + 46 * + COUNT ( * ) - - 4, 33 AS col0
----
50
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT 63 * 35 * + 37 + - + ( + - 34 ) + - - COUNT( * ) + + 39 AS col2
----
81659

skipif mysql # not compatible
query I rowsort label-3214
SELECT 63 * 35 * + 37 + - + ( + - 34 ) + - - COUNT ( * ) + + 39 AS col2
----
81659

query I rowsort
SELECT - 6 * 97 + + 61 * + 77
----
4115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3216
SELECT ALL - COUNT( ALL 25 ), - COUNT( * ) DIV - 78 - - SUM( 44 ) AS col2
----
-1
44

skipif mysql # not compatible
query II rowsort label-3216
SELECT ALL - COUNT ( ALL 25 ), - COUNT ( * ) / - 78 - - SUM ( 44 ) AS col2
----
-1
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT DISTINCT + 18 DIV + COALESCE ( + 47, 96 * 52 DIV 1 )
----
0

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT + 18 / + COALESCE ( + 47, 96 * 52 / 1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3218
SELECT DISTINCT + CASE + 99 WHEN 67 * 72 / COUNT( 54 ) + ( COUNT( * ) ) THEN NULL WHEN + 21 + 72 + + NULLIF ( - 62, CAST( ( 35 ) AS SIGNED ) * + COUNT( * ) + - - COUNT( * ) + - 3 / 52 ) - - COUNT( * ) THEN + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT + CASE + 99 WHEN 67 * 72 / COUNT ( 54 ) + ( COUNT ( * ) ) THEN NULL WHEN + 21 + 72 + + NULLIF ( - 62, CAST ( ( 35 ) AS INTEGER ) * + COUNT ( * ) + - - COUNT ( * ) + - 3 / 52 ) - - COUNT ( * ) THEN + 12 END
----
NULL

query I rowsort
SELECT - 16 * - 52 AS col0
----
832

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3220
SELECT DISTINCT + 19 DIV COUNT( * ) AS col0, + MAX( + 86 )
----
19
86

skipif mysql # not compatible
query II rowsort label-3220
SELECT DISTINCT + 19 / COUNT ( * ) AS col0, + MAX ( + 86 )
----
19
86

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

skipif mysql # not compatible
query I rowsort label-3221
SELECT + 68 * + + COUNT ( * ) + + 55 AS col2
----
123

query I rowsort
SELECT DISTINCT - 46 * 27 AS col1
----
-1242

query I rowsort
SELECT - - ( + ( 25 ) ) * + 50
----
1250

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT - + CASE + 48 WHEN 65 THEN - + 58 END + + 0 + 68 + SUM( ALL + 59 ) + + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - + CASE + 48 WHEN 65 THEN - + 58 END + + 0 + 68 + SUM ( ALL + 59 ) + + + 82
----
NULL

query I rowsort
SELECT ALL + 24 + + + 0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL ( + SUM( ALL - 90 ) ) + + 97 + - CASE + ( 66 ) WHEN - 77 THEN NULL ELSE - 95 + 3 END col0
----
99

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL ( + SUM ( ALL - 90 ) ) + + 97 + - CASE + ( 66 ) WHEN - 77 THEN NULL ELSE - 95 + 3 END col0
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3227
SELECT ALL + + 77 * 92 * - 52 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL + + 77 * 92 * - 52 / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - 54 + + COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3228
SELECT - 54 + + COUNT ( * ) AS col1
----
-53

query I rowsort
SELECT - ( - 69 ) * - 62 + 4 AS col1
----
-4274

onlyif mysql # aggregate syntax: 
query II rowsort label-3230
SELECT ALL - 8 + CASE + - 83 WHEN + MAX( DISTINCT - 1 ) THEN NULL ELSE - 40 * + 29 END AS col0, 18
----
-1168
18

skipif mysql # not compatible
query II rowsort label-3230
SELECT ALL - 8 + CASE + - 83 WHEN + MAX ( DISTINCT - 1 ) THEN NULL ELSE - 40 * + 29 END AS col0, 18
----
-1168
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT + + ( - NULLIF ( - + COUNT( * ), + 65 ) ) - COUNT( * ) + + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3231
SELECT + + ( - NULLIF ( - + COUNT ( * ), + 65 ) ) - COUNT ( * ) + + 57 AS col0
----
57

query II rowsort
SELECT ALL - ( - 61 ) AS col0, - 54 + - - 77 * + 1 AS col2
----
61
23

query I rowsort
SELECT + - 28 - ( - 77 )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3234
SELECT DISTINCT CASE 13 WHEN - 93 THEN + + 38 END + - COUNT( * ) AS col0, + 71
----
NULL
71

skipif mysql # not compatible
query II rowsort label-3234
SELECT DISTINCT CASE 13 WHEN - 93 THEN + + 38 END + - COUNT ( * ) AS col0, + 71
----
NULL
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3235
SELECT ALL 87 + - ( + MAX( - CAST( - CASE - - 58 WHEN + 88 THEN + - NULLIF ( 83, - 11 ) END AS SIGNED ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL 87 + - ( + MAX ( - CAST ( - CASE - - 58 WHEN + 88 THEN + - NULLIF ( 83, - 11 ) END AS INTEGER ) ) ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL + ( + - 0 ) - - 87 - + 49 * - - CAST( 2 AS SIGNED ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL + ( + - 0 ) - - 87 - + 49 * - - CAST ( 2 AS INTEGER ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT + 39 * - 44 + - 56 + 26 + NULLIF ( + 24, COUNT( - - 69 ) ) + 83 * + MAX( ALL - - 45 ) + + COUNT( * ) * 73 * 35 * + 68 AS col0
----
175753

skipif mysql # not compatible
query I rowsort label-3237
SELECT + 39 * - 44 + - 56 + 26 + NULLIF ( + 24, COUNT ( - - 69 ) ) + 83 * + MAX ( ALL - - 45 ) + + COUNT ( * ) * 73 * 35 * + 68 AS col0
----
175753

query I rowsort
SELECT ALL + 56 * + 49
----
2744

query II rowsort
SELECT 7 AS col2, - 68 * - 67 * + 43
----
7
195908

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3240
SELECT - 44 AS col1, 61 DIV + SUM( DISTINCT - + 11 )
----
-44
-5

skipif mysql # not compatible
query II rowsort label-3240
SELECT - 44 AS col1, 61 / + SUM ( DISTINCT - + 11 )
----
-44
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT ALL SUM( ALL - + 36 ) - - CASE - 87 WHEN - - CASE - 87 WHEN - 25 * + 78 THEN - 87 END - + 25 THEN + - ( - 92 ) ELSE 52 + 58 END + + COUNT( * ) DIV - - 7 + - 2 + - 50 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL SUM ( ALL - + 36 ) - - CASE - 87 WHEN - - CASE - 87 WHEN - 25 * + 78 THEN - 87 END - + 25 THEN + - ( - 92 ) ELSE 52 + 58 END + + COUNT ( * ) / - - 7 + - 2 + - 50 AS col2
----
22

query I rowsort
SELECT + 94 * 71
----
6674

query I rowsort
SELECT - 0 * 60 AS col0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3245
SELECT - 2 * SUM( DISTINCT - 30 ) * 64 DIV 35 DIV 77 + + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3245
SELECT - 2 * SUM ( DISTINCT - 30 ) * 64 / 35 / 77 + + 88 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - 64 * 73 * + COUNT( + 65 )
----
-4672

skipif mysql # not compatible
query I rowsort label-3246
SELECT - 64 * 73 * + COUNT ( + 65 )
----
-4672

query I rowsort
SELECT ALL + 32 * + 33
----
1056

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

query I rowsort
SELECT + 28 * - 65
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT 33 * SUM( - + 50 ) - + 0 * - 50
----
-1650

skipif mysql # not compatible
query I rowsort label-3250
SELECT 33 * SUM ( - + 50 ) - + 0 * - 50
----
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3251
SELECT ALL + 89, CAST( NULL AS SIGNED ) col1
----
89
NULL

skipif mysql # not compatible
query II rowsort label-3251
SELECT ALL + 89, CAST ( NULL AS INTEGER ) col1
----
89
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3252
SELECT - 72 + - 18 * - 75 + - 29 * - 56 * - - 88 DIV - COUNT( * ) AS col2
----
-141634

skipif mysql # not compatible
query I rowsort label-3252
SELECT - 72 + - 18 * - 75 + - 29 * - 56 * - - 88 / - COUNT ( * ) AS col2
----
-141634

query I rowsort
SELECT ALL - 60 * - 49 + + 98 AS col2
----
3038

onlyif mysql # DIV for integer division: 
query I rowsort label-3254
SELECT - 85 DIV + - 96
----
0

skipif mysql # not compatible
query I rowsort label-3254
SELECT - 85 / + - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL + SUM( + 88 ) * 93 * COUNT( * ) + 26
----
8210

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL + SUM ( + 88 ) * 93 * COUNT ( * ) + 26
----
8210

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT ALL + 46 * + - COALESCE ( - 5, 13 * ( 44 ) * 90 + + 91 DIV - 21 DIV - ( - 84 ), - 49 ) + - 6
----
224

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL + 46 * + - COALESCE ( - 5, 13 * ( 44 ) * 90 + + 91 / - 21 / - ( - 84 ), - 49 ) + - 6
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT - + 98 + - - 41 * + + 44 * 71 + - 25 DIV + 53
----
127986

skipif mysql # not compatible
query I rowsort label-3258
SELECT - + 98 + - - 41 * + + 44 * 71 + - 25 / + 53
----
127986

query I rowsort
SELECT + 58 * 60 * + - 90 + - + 64 - - ( - - 53 ) + 52
----
-313159

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

skipif mysql # not compatible
query I rowsort label-3260
SELECT - - COUNT ( * ) + + 32 * + 89 AS col1
----
2849

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

query I rowsort
SELECT + + 43 * - - 91 + 46 * - 70 AS col2
----
693

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3264
SELECT DISTINCT + 21 * ( - 0 ) AS col1, CAST( NULL AS SIGNED ) col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3264
SELECT DISTINCT + 21 * ( - 0 ) AS col1, CAST ( NULL AS INTEGER ) col1
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT DISTINCT 33 * + 16 + + COALESCE ( + + 83, + 59 DIV + - 95 * 5 + - + 71 ) col2
----
611

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT 33 * + 16 + + COALESCE ( + + 83, + 59 / + - 95 * 5 + - + 71 ) col2
----
611

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL - MAX( + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - MAX ( + 73 )
----
-73

query I rowsort
SELECT ALL 31 * + 56 * + + 89 AS col0
----
154504

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT COUNT( 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3269
SELECT COUNT ( 93 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3270
SELECT + - 16 + + CAST( NULL AS SIGNED ) + - 90 + COUNT( * ) - - COUNT( ALL 81 ) + 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT + - 16 + + CAST ( NULL AS INTEGER ) + - 90 + COUNT ( * ) - - COUNT ( ALL 81 ) + 45 col1
----
NULL

query I rowsort
SELECT + 6 + - + 98 * - 75 AS col0
----
7356

query I rowsort
SELECT ALL 12 - 87 AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT - 94 DIV + ( ( 72 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3273
SELECT - 94 / + ( ( 72 ) ) AS col2
----
-1

query I rowsort
SELECT + 12 + ( + 27 ) AS col2
----
39

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

skipif mysql # not compatible
query I rowsort label-3275
SELECT COUNT ( * ) + + + CAST ( 24 AS INTEGER )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT ALL 52 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL 52 / 85 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT DISTINCT 5 * - CAST( - - 12 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT 5 * - CAST ( - - 12 AS INTEGER )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT 32 - + COUNT( * ) AS col2, 64
----
31
64

skipif mysql # not compatible
query II rowsort label-3278
SELECT 32 - + COUNT ( * ) AS col2, 64
----
31
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3279
SELECT 37 * - 24 + - 40 + + 24 + - + 13 DIV + 60 * + COUNT( * ) * + 26 AS col2
----
-904

skipif mysql # not compatible
query I rowsort label-3279
SELECT 37 * - 24 + - 40 + + 24 + - + 13 / + 60 * + COUNT ( * ) * + 26 AS col2
----
-904

query I rowsort
SELECT 83 * - 34
----
-2822

query II rowsort
SELECT ALL 92 + 24 AS col1, + 95 AS col1
----
116
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3282
SELECT ( - - COUNT( * ) ) * - - COALESCE ( 51, 89 ) + CAST( 96 AS SIGNED )
----
147

skipif mysql # not compatible
query I rowsort label-3282
SELECT ( - - COUNT ( * ) ) * - - COALESCE ( 51, 89 ) + CAST ( 96 AS INTEGER )
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT ALL - - 14 + - 70 * - MAX( ( - 21 ) ) AS col0
----
-1456

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL - - 14 + - 70 * - MAX ( ( - 21 ) ) AS col0
----
-1456

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT ALL + 83 * + + CASE - 64 WHEN COUNT( * ) THEN - 13 + - 1 * + 45 WHEN + MAX( ALL 35 ) THEN - + 51 / - NULLIF ( 97, + 18 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL + 83 * + + CASE - 64 WHEN COUNT ( * ) THEN - 13 + - 1 * + 45 WHEN + MAX ( ALL 35 ) THEN - + 51 / - NULLIF ( 97, + 18 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT NULLIF ( - + SUM( ALL + + 42 ), - + 66 / 50 + 49 + + 46 + COUNT( * ) * - 87 ) * - 48 * - 62
----
-124992

skipif mysql # not compatible
query I rowsort label-3287
SELECT NULLIF ( - + SUM ( ALL + + 42 ), - + 66 / 50 + 49 + + 46 + COUNT ( * ) * - 87 ) * - 48 * - 62
----
-124992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT DISTINCT - + CAST( - + COALESCE ( + ( - 24 ), + ( + COALESCE ( 98, + 85 ) ), - - 13 ) AS SIGNED ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT - + CAST ( - + COALESCE ( + ( - 24 ), + ( + COALESCE ( 98, + 85 ) ), - - 13 ) AS INTEGER ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT - COUNT( * ) * - + SUM( DISTINCT 66 )
----
66

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT - COUNT ( * ) * - + SUM ( DISTINCT 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT + - COUNT( + 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-3290
SELECT + - COUNT ( + 90 )
----
-1

query I rowsort
SELECT ALL - + 34 - + - 19
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3292
SELECT ALL + 25 - COUNT( * ) AS col2, + MIN( + 64 ) AS col0
----
24
64

skipif mysql # not compatible
query II rowsort label-3292
SELECT ALL + 25 - COUNT ( * ) AS col2, + MIN ( + 64 ) AS col0
----
24
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT - 21 DIV - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3293
SELECT - 21 / - 47 AS col0
----
0

query I rowsort
SELECT 6 * - 47 AS col1
----
-282

onlyif mysql # aggregate syntax: 
query II rowsort label-3295
SELECT SUM( ALL - 84 ) * 93 + - 57 AS col1, - 81 + - 23 + + 12 * + 57 AS col2
----
-7869
580

skipif mysql # not compatible
query II rowsort label-3295
SELECT SUM ( ALL - 84 ) * 93 + - 57 AS col1, - 81 + - 23 + + 12 * + 57 AS col2
----
-7869
580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3296
SELECT 23 - + NULLIF ( + - SUM( + + 85 ), + - CAST( NULL AS SIGNED ) ) + + - 12 DIV - 67
----
108

skipif mysql # not compatible
query I rowsort label-3296
SELECT 23 - + NULLIF ( + - SUM ( + + 85 ), + - CAST ( NULL AS INTEGER ) ) + + - 12 / - 67
----
108

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

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

query I rowsort
SELECT 32 - + 78 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-3299
SELECT ALL 89 col1, 11 + - ( + - MAX( ALL - 62 ) ) col2
----
89
-51

skipif mysql # not compatible
query II rowsort label-3299
SELECT ALL 89 col1, 11 + - ( + - MAX ( ALL - 62 ) ) col2
----
89
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT COUNT( * ) * - - SUM( ALL 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3300
SELECT COUNT ( * ) * - - SUM ( ALL 16 ) AS col2
----
16

query I rowsort
SELECT 42 + - 63
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT 32 + - CASE + 25 WHEN - 45 + - COUNT( * ) THEN NULL ELSE + - ( - - 25 ) + + + 86 END + 82
----
53

skipif mysql # not compatible
query I rowsort label-3302
SELECT 32 + - CASE + 25 WHEN - 45 + - COUNT ( * ) THEN NULL ELSE + - ( - - 25 ) + + + 86 END + 82
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3303
SELECT AVG ( - + 17 ) - 94 + - 80 * 18 * + 1 + - ( - + COUNT( * ) ) + 91 * + + 32 * 52 * + 26 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3303
SELECT AVG ( - + 17 ) - 94 + - 80 * 18 * + 1 + - ( - + COUNT ( * ) ) + 91 * + + 32 * 52 * + 26 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT 83 DIV - CASE - 56 WHEN SUM( ALL - - 5 ) * + 87 THEN NULL WHEN 78 THEN 56 ELSE 90 END * + + 33 + 24 * 63
----
1512

skipif mysql # not compatible
query I rowsort label-3304
SELECT 83 / - CASE - 56 WHEN SUM ( ALL - - 5 ) * + 87 THEN NULL WHEN 78 THEN 56 ELSE 90 END * + + 33 + 24 * 63
----
1512

onlyif mysql # aggregate syntax: 
query II rowsort label-3305
SELECT MIN( - 90 ) * ( + + MIN( 44 ) ) + - - 41 AS col0, + 59 AS col0
----
-3919
59

skipif mysql # not compatible
query II rowsort label-3305
SELECT MIN ( - 90 ) * ( + + MIN ( 44 ) ) + - - 41 AS col0, + 59 AS col0
----
-3919
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT 73 DIV - 37
----
-1

skipif mysql # not compatible
query I rowsort label-3306
SELECT 73 / - 37
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT DISTINCT ( + 56 ) * + 4 + - 78 + COUNT( * ) AS col0
----
147

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT ( + 56 ) * + 4 + - 78 + COUNT ( * ) AS col0
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-3308
SELECT ALL COUNT( * ) * - ( - + 87 ) * + + 89 * + 81, + 90 AS col0
----
627183
90

skipif mysql # not compatible
query II rowsort label-3308
SELECT ALL COUNT ( * ) * - ( - + 87 ) * + + 89 * + 81, + 90 AS col0
----
627183
90

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

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

query I rowsort
SELECT 49 + + + 26 AS col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT 93 DIV + - 91
----
-1

skipif mysql # not compatible
query I rowsort label-3311
SELECT 93 / + - 91
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3312
SELECT DISTINCT 46 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT 46 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3313
SELECT ALL - - CAST( 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL - - CAST ( 27 AS INTEGER )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT COUNT( DISTINCT + + 48 ) * + CAST( NULL AS SIGNED ) * - 88 * + 27 + - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT COUNT ( DISTINCT + + 48 ) * + CAST ( NULL AS INTEGER ) * - 88 * + 27 + - + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL - + CASE 7 WHEN COUNT( * ) THEN NULL WHEN - 29 THEN NULL WHEN + - 71 THEN + 85 ELSE 51 END
----
-51

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - + CASE 7 WHEN COUNT ( * ) THEN NULL WHEN - 29 THEN NULL WHEN + - 71 THEN + 85 ELSE 51 END
----
-51

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

query I rowsort
SELECT + 70 + + 34 - - 84 * + + 82
----
6992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT 41 - - 10 + + 8 + 8 * CAST( - 1 AS SIGNED ) * - 0 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3318
SELECT 41 - - 10 + + 8 + 8 * CAST ( - 1 AS INTEGER ) * - 0 AS col0
----
59

query I rowsort
SELECT - 36 + + 47
----
11

query I rowsort
SELECT ALL 75 - - 41 + - 59
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT COUNT( ALL 49 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3321
SELECT COUNT ( ALL 49 ) col1
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3323
SELECT 21 / + + CASE + - 18 WHEN + + 20 THEN 82 * + CAST( + 50 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT 21 / + + CASE + - 18 WHEN + + 20 THEN 82 * + CAST ( + 50 AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT + 28 * + - 42 AS col0
----
-1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3325
SELECT ( CAST( + COUNT( + + 2 ) AS SIGNED ) ) + + 46 AS col2, 32 + 10
----
47
42

skipif mysql # not compatible
query II rowsort label-3325
SELECT ( CAST ( + COUNT ( + + 2 ) AS INTEGER ) ) + + 46 AS col2, 32 + 10
----
47
42

query II rowsort
SELECT ALL 77 * 29, 10 AS col1
----
2233
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3327
SELECT DISTINCT 84 AS col1, ( - - ( - - 7 ) ) * - 87 + 98 * + - 65 * - 38 * COALESCE ( ( + 29 ), + SUM( 76 ) ) AS col0
----
84
7019131

skipif mysql # not compatible
query II rowsort label-3327
SELECT DISTINCT 84 AS col1, ( - - ( - - 7 ) ) * - 87 + 98 * + - 65 * - 38 * COALESCE ( ( + 29 ), + SUM ( 76 ) ) AS col0
----
84
7019131

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

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

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

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

query I rowsort
SELECT - 23 * + - 39
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL COUNT( * ) + 25 + - 36 + + COUNT( DISTINCT 31 ) * + - ( - 50 )
----
40

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL COUNT ( * ) + 25 + - 36 + + COUNT ( DISTINCT 31 ) * + - ( - 50 )
----
40

query I rowsort
SELECT DISTINCT - ( + ( - 46 ) ) + + + 83
----
129

query I rowsort
SELECT - 35 * + + 4 * ( - 84 ) col1
----
11760

query II rowsort
SELECT - 56 AS col2, + 90 * - - 35 AS col0
----
-56
3150

query I rowsort
SELECT ALL + 73 + - 39 AS col2
----
34

query I rowsort
SELECT DISTINCT NULLIF ( 56, + + 1 ) + 33 * - - NULLIF ( - 22, - - 93 )
----
-670

query I rowsort
SELECT - 99 + + - 75 AS col1
----
-174

query I rowsort
SELECT DISTINCT - 1 + + ( ( - - 79 ) )
----
78

query I rowsort
SELECT - 34 * + - 16 AS col0
----
544

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3340
SELECT 33, - 24 + COUNT( * ) DIV - 69 AS col2
----
33
-24

skipif mysql # not compatible
query II rowsort label-3340
SELECT 33, - 24 + COUNT ( * ) / - 69 AS col2
----
33
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3341
SELECT ALL - 11 * CASE + 13 WHEN 84 THEN NULL ELSE - CAST( NULL AS DECIMAL ) + - 5 - + 74 * + 68 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL - 11 * CASE + 13 WHEN 84 THEN NULL ELSE - CAST ( NULL AS REAL ) + - 5 - + 74 * + 68 + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 56 + + 76
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - COUNT( * ) - + 34 - 45 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3343
SELECT - COUNT ( * ) - + 34 - 45 AS col1
----
-80

query I rowsort
SELECT DISTINCT 76 * - 24 + - 18
----
-1842

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT - + 54 DIV + 91 + + 56 DIV - 10 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3345
SELECT - + 54 / + 91 + + 56 / - 10 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT - COUNT( * ) + - 81, 13 col1
----
-82
13

skipif mysql # not compatible
query II rowsort label-3346
SELECT - COUNT ( * ) + - 81, 13 col1
----
-82
13

query I rowsort
SELECT DISTINCT + 83 * - ( - - 99 ) - 77 * 24 AS col0
----
-10065

query II rowsort
SELECT DISTINCT + - 89 * - 29 * ( + - 65 ) + - 84 + + - 65 - - 85 * + 21 - 91 AS col1, - 81 AS col2
----
-166220
-81

query I rowsort
SELECT DISTINCT + + NULLIF ( + 55, - 79 )
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT + + 78 + + + MIN( - 49 ) + + - 24
----
5

skipif mysql # not compatible
query I rowsort label-3351
SELECT + + 78 + + + MIN ( - 49 ) + + - 24
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL - 98 * + + 25 * + 49 + - - CASE + + 40 WHEN + MAX( + 29 ) THEN + 4 - + + CASE 50 WHEN - + COUNT( * ) + - - COUNT( * ) THEN - ( + 99 ) WHEN + 74 THEN + 7 END + 28 WHEN + MIN( 73 ) THEN - - 49 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL - 98 * + + 25 * + 49 + - - CASE + + 40 WHEN + MAX ( + 29 ) THEN + 4 - + + CASE 50 WHEN - + COUNT ( * ) + - - COUNT ( * ) THEN - ( + 99 ) WHEN + 74 THEN + 7 END + 28 WHEN + MIN ( 73 ) THEN - - 49 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL 64 * + 54 col0
----
3456

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3355
SELECT - 84 * - 46 - - 90 * - CASE - + 20 WHEN - - AVG ( + + 66 ) - - COUNT( * ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END + CASE - + 18 WHEN + - CAST( NULL AS SIGNED ) * + MAX( ALL 94 ) * + 99 * + - 11 * + - COUNT( * ) THEN + MAX( + 27 ) ELSE - COUNT( * ) END * - + 13 + - 10 * + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT - 84 * - 46 - - 90 * - CASE - + 20 WHEN - - AVG ( + + 66 ) - - COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END + CASE - + 18 WHEN + - CAST ( NULL AS INTEGER ) * + MAX ( ALL 94 ) * + 99 * + - 11 * + - COUNT ( * ) THEN + MAX ( + 27 ) ELSE - COUNT ( * ) END * - + 13 + - 10 * + 87 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT + - 59 * COALESCE ( - + 46, + CASE - - 14 WHEN - MIN( + 56 ) THEN 52 WHEN + 58 THEN NULL ELSE NULL END * - 10, + COUNT( * ) * + 95 ) - 5
----
2709

skipif mysql # not compatible
query I rowsort label-3357
SELECT + - 59 * COALESCE ( - + 46, + CASE - - 14 WHEN - MIN ( + 56 ) THEN 52 WHEN + 58 THEN NULL ELSE NULL END * - 10, + COUNT ( * ) * + 95 ) - 5
----
2709

query II rowsort
SELECT ALL + 92 AS col2, 59 * - 43 AS col1
----
92
-2537

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL - 37 * + 86 + - - 37 + + 78 - + ( + 47 ) * + 99 * COUNT( * ) * 54
----
-254329

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL - 37 * + 86 + - - 37 + + 78 - + ( + 47 ) * + 99 * COUNT ( * ) * 54
----
-254329

query I rowsort
SELECT + - 82 col0
----
-82

query I rowsort
SELECT ALL + - 9 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT COUNT( ALL 62 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3362
SELECT COUNT ( ALL 62 ) AS col1
----
1

query I rowsort
SELECT + 35 + - ( ( - + 81 ) ) col2
----
116

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

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

query I rowsort
SELECT + 12 + - + 76 * - 6
----
468

query II rowsort
SELECT DISTINCT 17 + + - 3 AS col0, + 87 * 64
----
14
5568

onlyif mysql # DIV for integer division: 
query I rowsort label-3367
SELECT ALL 76 + 95 DIV 40 + - 93
----
-15

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL 76 + 95 / 40 + - 93
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT + MIN( DISTINCT + 52 ) - - 30 + 18
----
100

skipif mysql # not compatible
query I rowsort label-3368
SELECT + MIN ( DISTINCT + 52 ) - - 30 + 18
----
100

query I rowsort
SELECT + 58 - - 18
----
76

query I rowsort
SELECT ALL NULLIF ( 52, ( - + 80 ) * + + 87 ) AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3371
SELECT + NULLIF ( + 80, - NULLIF ( - COALESCE ( + 39, + + 82 * - ( - 87 ) + CAST( - - CAST( - 17 AS DECIMAL ) AS SIGNED ), - 19 ), + - 16 / + + 26 * - 18 + COALESCE ( - MIN( - 21 ), - 28 ) + + - 98 + + 75 - - ( - 53 ) * - COUNT( * ) ) ) * ( + 67 ) AS col2
----
5360

skipif mysql # not compatible
query I rowsort label-3371
SELECT + NULLIF ( + 80, - NULLIF ( - COALESCE ( + 39, + + 82 * - ( - 87 ) + CAST ( - - CAST ( - 17 AS REAL ) AS INTEGER ), - 19 ), + - 16 / + + 26 * - 18 + COALESCE ( - MIN ( - 21 ), - 28 ) + + - 98 + + 75 - - ( - 53 ) * - COUNT ( * ) ) ) * ( + 67 ) AS col2
----
5360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3372
SELECT - 80 - + - 63 + + - 16 + - 37 * - 6 + + ( - 49 ) + - 0 + + 93 + + 45 * - 97 * - CAST( - - 24 AS SIGNED ) DIV COUNT( ALL - - 15 )
----
104993

skipif mysql # not compatible
query I rowsort label-3372
SELECT - 80 - + - 63 + + - 16 + - 37 * - 6 + + ( - 49 ) + - 0 + + 93 + + 45 * - 97 * - CAST ( - - 24 AS INTEGER ) / COUNT ( ALL - - 15 )
----
104993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3373
SELECT ALL CASE + + CASE - 47 WHEN COALESCE ( + 99, - + 75 ) - - 17 THEN + COUNT( * ) + - COALESCE ( - - ( CAST( - ( - - COUNT( * ) ) AS SIGNED ) ), - + 92, 38 + - 53 ) + - CAST( - 3 AS SIGNED ) ELSE NULL END WHEN - CASE + COUNT( * ) WHEN + 76 DIV CASE + 96 WHEN 25 + + COUNT( * ) THEN NULLIF ( - 94, 73 ) - - ( + ( ( 8 ) ) ) DIV COUNT( * ) END * - 46 THEN 89 ELSE 96 + ( + 32 ) DIV - CASE 89 WHEN 3 THEN NULL WHEN + 83 THEN NULL WHEN + 35 THEN + 11 DIV - 92 + + 2 WHEN CAST( NULL AS SIGNED ) THEN NULL END END + 9 * - NULLIF ( + 24, COUNT( * ) ) THEN NULL WHEN NULLIF ( COUNT( * ), - 75 ) THEN NULL ELSE 37 + - 16 END DIV 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL CASE + + CASE - 47 WHEN COALESCE ( + 99, - + 75 ) - - 17 THEN + COUNT ( * ) + - COALESCE ( - - ( CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) ), - + 92, 38 + - 53 ) + - CAST ( - 3 AS INTEGER ) ELSE NULL END WHEN - CASE + COUNT ( * ) WHEN + 76 / CASE + 96 WHEN 25 + + COUNT ( * ) THEN NULLIF ( - 94, 73 ) - - ( + ( ( 8 ) ) ) / COUNT ( * ) END * - 46 THEN 89 ELSE 96 + ( + 32 ) / - CASE 89 WHEN 3 THEN NULL WHEN + 83 THEN NULL WHEN + 35 THEN + 11 / - 92 + + 2 WHEN CAST ( NULL AS INTEGER ) THEN NULL END END + 9 * - NULLIF ( + 24, COUNT ( * ) ) THEN NULL WHEN NULLIF ( COUNT ( * ), - 75 ) THEN NULL ELSE 37 + - 16 END / 50 AS col2
----
0

query I rowsort
SELECT - 29 + - 62 + + - 17 AS col2
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT + 28 DIV + 34 + - - 60 * - + 19 + + 74 DIV - 81
----
-1140

skipif mysql # not compatible
query I rowsort label-3375
SELECT + 28 / + 34 + - - 60 * - + 19 + + 74 / - 81
----
-1140

query I rowsort
SELECT - + 38 + 17 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT - + SUM( + 17 ) + 69
----
52

skipif mysql # not compatible
query I rowsort label-3377
SELECT - + SUM ( + 17 ) + 69
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT 63 * - 86 / - - CASE + - ( + + 46 ) WHEN + 13 + 19 THEN - 12 END + - - MIN( 91 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT 63 * - 86 / - - CASE + - ( + + 46 ) WHEN + 13 + 19 THEN - 12 END + - - MIN ( 91 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT - + 88 * - + CAST( 56 AS SIGNED ) * - 81 * 4 AS col1
----
-1596672

skipif mysql # not compatible
query I rowsort label-3379
SELECT - + 88 * - + CAST ( 56 AS INTEGER ) * - 81 * 4 AS col1
----
-1596672

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3381
SELECT ALL + + 95 DIV 6 + + 46 * - COUNT( * ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + + 95 / 6 + + 46 * - COUNT ( * ) col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3382
SELECT 50 + - 69 * - 70, - 54 + - CAST( NULL AS SIGNED ) * - - AVG ( 56 ) * - + 33 * 7 AS col2
----
4880
NULL

skipif mysql # not compatible
query II rowsort label-3382
SELECT 50 + - 69 * - 70, - 54 + - CAST ( NULL AS INTEGER ) * - - AVG ( 56 ) * - + 33 * 7 AS col2
----
4880
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL + 17 + + + COUNT( ALL + - 79 ) + - 0 * - + ( + 68 ) + + MIN( DISTINCT - + 43 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL + 17 + + + COUNT ( ALL + - 79 ) + - 0 * - + ( + 68 ) + + MIN ( DISTINCT - + 43 ) AS col1
----
-25

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

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL - MIN ( 61 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT 32 + - SUM( ALL + - 78 ) AS col0, 19 * + 57 * + COUNT( * ) * + 76
----
110
82308

skipif mysql # not compatible
query II rowsort label-3385
SELECT 32 + - SUM ( ALL + - 78 ) AS col0, 19 * + 57 * + COUNT ( * ) * + 76
----
110
82308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3386
SELECT + 88 * ( - - COUNT( * ) ) * 72 * + 48 * + - CAST( NULL AS SIGNED ) - COUNT( * ) - 90 + - 10 * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT + 88 * ( - - COUNT ( * ) ) * 72 * + 48 * + - CAST ( NULL AS INTEGER ) - COUNT ( * ) - 90 + - 10 * - 2
----
NULL

query I rowsort
SELECT DISTINCT 82 * + 14 * - 95
----
-109060

query I rowsort
SELECT 41 * + + 59 AS col2
----
2419

onlyif mysql # aggregate syntax: 
query II rowsort label-3389
SELECT COUNT( DISTINCT 66 ) + 20 AS col2, + 85
----
21
85

skipif mysql # not compatible
query II rowsort label-3389
SELECT COUNT ( DISTINCT 66 ) + 20 AS col2, + 85
----
21
85

query I rowsort
SELECT + 25 * + 69 + - 2 AS col1
----
1723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT ALL + CAST( + - 43 AS SIGNED ) * + 7 * + - 39
----
11739

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL + CAST ( + - 43 AS INTEGER ) * + 7 * + - 39
----
11739

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT DISTINCT - NULLIF ( - 71, ( + 69 ) ) * + 34 - COUNT( * )
----
2413

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - NULLIF ( - 71, ( + 69 ) ) * + 34 - COUNT ( * )
----
2413

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT MIN( ALL + 41 ) + + - 74 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3393
SELECT MIN ( ALL + 41 ) + + - 74 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT 76 + ( - 52 ) + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3394
SELECT 76 + ( - 52 ) + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT ALL 40 - - 74
----
114

query II rowsort
SELECT 72, - 87 AS col1
----
72
-87

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT CASE - 33 WHEN 76 THEN + - COUNT( * ) + + 34 WHEN - 14 THEN NULL ELSE + 36 END * - 51 + 1 + - NULLIF ( NULLIF ( + 98, + 7 ), - + 95 ) * + - CASE 48 WHEN - 12 THEN + 91 + - 78 * + + 90 + - + 86 * + 48 * + + 49 WHEN - 70 * MIN( + 89 ) + 40 THEN - COUNT( * ) END / 67 + + CAST( + 94 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT CASE - 33 WHEN 76 THEN + - COUNT ( * ) + + 34 WHEN - 14 THEN NULL ELSE + 36 END * - 51 + 1 + - NULLIF ( NULLIF ( + 98, + 7 ), - + 95 ) * + - CASE 48 WHEN - 12 THEN + 91 + - 78 * + + 90 + - + 86 * + 48 * + + 49 WHEN - 70 * MIN ( + 89 ) + 40 THEN - COUNT ( * ) END / 67 + + CAST ( + 94 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 53, 80 + + + 66 AS col0
----
53
146

query I rowsort
SELECT 2 + + 57 AS col0
----
59

query I rowsort
SELECT DISTINCT 69 * + 51 AS col1
----
3519

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3402
SELECT ALL 27 col0, CAST( NULL AS DECIMAL ) * - 15 AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-3402
SELECT ALL 27 col0, CAST ( NULL AS REAL ) * - 15 AS col0
----
27
NULL

query I rowsort
SELECT DISTINCT 74 * - 59 AS col2
----
-4366

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT ALL - COALESCE ( - 87, - + CASE + + 55 WHEN 72 THEN - - 26 + - 79 WHEN 12 THEN NULL ELSE + + 78 DIV + 2 END )
----
87

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL - COALESCE ( - 87, - + CASE + + 55 WHEN 72 THEN - - 26 + - 79 WHEN 12 THEN NULL ELSE + + 78 / + 2 END )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3405
SELECT ALL - 22 * + 71 * 65 + - 80 + - - 68 + 12 - - COUNT( * ) * 51 DIV - 63 AS col1
----
-101530

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - 22 * + 71 * 65 + - 80 + - - 68 + 12 - - COUNT ( * ) * 51 / - 63 AS col1
----
-101530

query I rowsort
SELECT ALL NULLIF ( - 84, + 71 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT 93 + COUNT( * ) * - 31 - + + 40 - - + 35 - ( + 78 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3407
SELECT 93 + COUNT ( * ) * - 31 - + + 40 - - + 35 - ( + 78 ) AS col0
----
-21

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

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

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

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

query I rowsort
SELECT NULLIF ( 17, + - ( + 55 ) * - 80 ) AS col1
----
17

query I rowsort
SELECT 86 + - 9
----
77

query I rowsort
SELECT 73 * + 98 AS col2
----
7154

query I rowsort
SELECT DISTINCT - + ( + 47 ) * + 12 * - - 73 AS col1
----
-41172

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT COALESCE ( + 72, + COUNT( * ), - + 11 + + MIN( ALL - 75 ) - ( - 32 ) + - MAX( DISTINCT - 30 ) * + 40 * - 69 - + 93 ) + - ( + 82 )
----
-10

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT COALESCE ( + 72, + COUNT ( * ), - + 11 + + MIN ( ALL - 75 ) - ( - 32 ) + - MAX ( DISTINCT - 30 ) * + 40 * - 69 - + 93 ) + - ( + 82 )
----
-10

query I rowsort
SELECT DISTINCT 26 + + + 0 * + 80 * + 92 * + 54 * - 92 + - 73
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT - CASE 63 WHEN + 65 * 71 * - COUNT( * ) * + 72 + 33 THEN + ( + - ( + ( + 70 ) ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT - CASE 63 WHEN + 65 * 71 * - COUNT ( * ) * + 72 + 33 THEN + ( + - ( + ( + 70 ) ) ) END col2
----
NULL

query II rowsort
SELECT - 33, + ( + 42 ) - + 94 AS col0
----
-33
-52

query II rowsort
SELECT ALL + 87 + + - 95 AS col1, 64 AS col1
----
-8
64

query I rowsort
SELECT 48 * 79 AS col0
----
3792

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

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT + 69 + - 67 + - COUNT ( * ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-3421
SELECT 67 / - - COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT DISTINCT - 69 DIV + 12
----
-5

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT - 69 / + 12
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT 57 + + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3423
SELECT 57 + + COUNT ( * )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT 92 DIV 58 * - - 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-3424
SELECT 92 / 58 * - - 30 AS col0
----
30

query I rowsort
SELECT ALL - 52 * 31 * + 73 * 15 * - + 17
----
30007380

query I rowsort
SELECT 63 * 64
----
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3427
SELECT + ( - 76 ) * + + 77 * - - 16 * - - 85 * + 49 + COALESCE ( - + 12, + - 90 + COALESCE ( + 64, 66 + - - COUNT( * ), + 76, + 92 * 32 ) + 99 - - 51 - + ( + 88 ), + 25 DIV + - 6 + + 40 + + CAST( NULL AS SIGNED ), - 25 )
----
-389977292

skipif mysql # not compatible
query I rowsort label-3427
SELECT + ( - 76 ) * + + 77 * - - 16 * - - 85 * + 49 + COALESCE ( - + 12, + - 90 + COALESCE ( + 64, 66 + - - COUNT ( * ), + 76, + 92 * 32 ) + 99 - - 51 - + ( + 88 ), + 25 / + - 6 + + 40 + + CAST ( NULL AS INTEGER ), - 25 )
----
-389977292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3428
SELECT 76 + + - 27 DIV 65 + + 96 + + COUNT( DISTINCT + 11 ) col1
----
173

skipif mysql # not compatible
query I rowsort label-3428
SELECT 76 + + - 27 / 65 + + 96 + + COUNT ( DISTINCT + 11 ) col1
----
173

onlyif mysql # DIV for integer division: 
query II rowsort label-3429
SELECT 82 DIV + 10, 93 AS col0
----
8
93

skipif mysql # not compatible
query II rowsort label-3429
SELECT 82 / + 10, 93 AS col0
----
8
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL MAX( DISTINCT + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL MAX ( DISTINCT + 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT SUM( - 24 ) - - MIN( 78 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3431
SELECT SUM ( - 24 ) - - MIN ( 78 ) AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3432
SELECT + COUNT( * ) + + 38 + + 71 DIV + 91 AS col1, 96 + - 30 - + COALESCE ( + + 38, - 79, - + 17 - - 12 )
----
39
28

skipif mysql # not compatible
query II rowsort label-3432
SELECT + COUNT ( * ) + + 38 + + 71 / + 91 AS col1, 96 + - 30 - + COALESCE ( + + 38, - 79, - + 17 - - 12 )
----
39
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3433
SELECT - CAST( NULL AS DECIMAL ) * + - 79 * + + 66 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT + 43 + - 22 + - 5 + + COUNT( * ) * - 88 + 43 col0
----
-29

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT + 43 + - 22 + - 5 + + COUNT ( * ) * - 88 + 43 col0
----
-29

query I rowsort
SELECT - 87 * 91 * + - 72
----
570024

query I rowsort
SELECT ALL - 10 + - 68
----
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3437
SELECT - + CASE + 82 WHEN + - 19 + - CAST( CASE 41 WHEN - 93 THEN + COUNT( * ) END AS DECIMAL ) + - 60 * - + 46 * + 26 THEN 47 * - 85 WHEN - SUM( 11 ) * - 92 + - 56 + + + 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT - + CASE + 82 WHEN + - 19 + - CAST ( CASE 41 WHEN - 93 THEN + COUNT ( * ) END AS REAL ) + - 60 * - + 46 * + 26 THEN 47 * - 85 WHEN - SUM ( 11 ) * - 92 + - 56 + + + 66 THEN NULL END
----
NULL

query I rowsort
SELECT + - 72 + + 67 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT + + 55 * - - MAX( - + 29 )
----
-1595

skipif mysql # not compatible
query I rowsort label-3439
SELECT + + 55 * - - MAX ( - + 29 )
----
-1595

query I rowsort
SELECT ALL 92 + - 75 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL CASE 72 WHEN - + COUNT( * ) THEN 32 - - 30 + + 44 / 15 END * 11 + + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL CASE 72 WHEN - + COUNT ( * ) THEN 32 - - 30 + + 44 / 15 END * 11 + + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT + 59 * + 11 / CASE - - 75 WHEN + - COUNT( * ) + 98 THEN 96 * - 83 + - 50 + 42 + - + 49 * + 50 * - 76 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT + 59 * + 11 / CASE - - 75 WHEN + - COUNT ( * ) + 98 THEN 96 * - 83 + - 50 + 42 + - + 49 * + 50 * - 76 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3443
SELECT + 3 + COUNT( * ), 54 * - 35 col0
----
4
-1890

skipif mysql # not compatible
query II rowsort label-3443
SELECT + 3 + COUNT ( * ), 54 * - 35 col0
----
4
-1890

onlyif mysql # aggregate syntax: 
query II rowsort label-3444
SELECT + CASE - - 27 WHEN - 81 / - NULLIF ( 87, - 14 * - - 70 * + ( 86 ) ) * - 21 + 83 / + COUNT( * ) + + COUNT( * ) THEN + - 2 WHEN - 99 * COUNT( * ) THEN + - 52 * - 79 - - AVG ( - 15 ) / COUNT( * ) * 69 ELSE NULL END, + 48 * + 85 + - 21 AS col0
----
NULL
4059

skipif mysql # not compatible
query II rowsort label-3444
SELECT + CASE - - 27 WHEN - 81 / - NULLIF ( 87, - 14 * - - 70 * + ( 86 ) ) * - 21 + 83 / + COUNT ( * ) + + COUNT ( * ) THEN + - 2 WHEN - 99 * COUNT ( * ) THEN + - 52 * - 79 - - AVG ( - 15 ) / COUNT ( * ) * 69 ELSE NULL END, + 48 * + 85 + - 21 AS col0
----
NULL
4059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT ALL 89 * + + 28 * 71 + - + CAST( NULL AS SIGNED ) + + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL 89 * + + 28 * 71 + - + CAST ( NULL AS INTEGER ) + + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT 28 * - + 46 + MAX( DISTINCT 84 )
----
-1204

skipif mysql # not compatible
query I rowsort label-3446
SELECT 28 * - + 46 + MAX ( DISTINCT 84 )
----
-1204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3447
SELECT DISTINCT - 56 * - 80 * 88 + + 84 - CASE - - 11 WHEN + COUNT( DISTINCT + - 19 ) + + - 19 THEN 37 / - 9 + + 65 + - 88 + - 1 + CAST( - - COALESCE ( + - ( - - 30 ), + 66 - + 40 * - 61 / 2, - - 76 ) AS SIGNED ) WHEN + CASE + + MIN( - 25 ) WHEN ( COUNT( * ) ) + 83 / + 54 THEN 65 WHEN ( 72 ) + 7 THEN NULL END THEN - 42 / COALESCE ( 21, + 8 - + 60 * 34 ) + 69 * + 36 ELSE NULL END + 59 * 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT - 56 * - 80 * 88 + + 84 - CASE - - 11 WHEN + COUNT ( DISTINCT + - 19 ) + + - 19 THEN 37 / - 9 + + 65 + - 88 + - 1 + CAST ( - - COALESCE ( + - ( - - 30 ), + 66 - + 40 * - 61 / 2, - - 76 ) AS INTEGER ) WHEN + CASE + + MIN ( - 25 ) WHEN ( COUNT ( * ) ) + 83 / + 54 THEN 65 WHEN ( 72 ) + 7 THEN NULL END THEN - 42 / COALESCE ( 21, + 8 - + 60 * 34 ) + 69 * + 36 ELSE NULL END + 59 * 89 AS col1
----
NULL

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

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

query I rowsort
SELECT + 36 * 53 + + 20
----
1928

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT 93 * 40 + COUNT( * ) + COUNT( * )
----
3722

skipif mysql # not compatible
query I rowsort label-3450
SELECT 93 * 40 + COUNT ( * ) + COUNT ( * )
----
3722

query I rowsort
SELECT + 16 * 32 col1
----
512

query I rowsort
SELECT - 81 + 23
----
-58

query II rowsort
SELECT + 61 col2, - 92
----
61
-92

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

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

query I rowsort
SELECT ALL 57 * + 47
----
2679

query I rowsort
SELECT - 45 + + COALESCE ( 10, + 8 )
----
-35

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

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

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

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

query I rowsort
SELECT ALL - 94 * 25 col2
----
-2350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3460
SELECT ALL - 21 / MIN( CAST( NULL AS SIGNED ) ), 81 AS col0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-3460
SELECT ALL - 21 / MIN ( CAST ( NULL AS INTEGER ) ), 81 AS col0
----
NULL
81

query I rowsort
SELECT - + 0 + - 76 col0
----
-76

query I rowsort
SELECT - 18 + - + 68
----
-86

query II rowsort
SELECT - 26 AS col0, 56 AS col2
----
-26
56

query I rowsort
SELECT - 62 * + 41 AS col0
----
-2542

query I rowsort
SELECT + 32 + - 35 AS col2
----
-3

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

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

query I rowsort
SELECT ALL + 81 + + - 22 AS col2
----
59

query I rowsort
SELECT DISTINCT - - 75 + 87
----
162

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

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT + + COUNT ( * ) + 57 + COUNT ( * ) AS col2
----
59

query I rowsort
SELECT DISTINCT - 32 + + + 56 + ( 78 )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + - COUNT( * ) + - 32 + + ( 90 )
----
57

skipif mysql # not compatible
query I rowsort label-3471
SELECT + - COUNT ( * ) + - 32 + + ( 90 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT - COUNT( ALL + 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3472
SELECT - COUNT ( ALL + 44 ) AS col2
----
-1

query I rowsort
SELECT ALL - 38 + - 19
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-3474
SELECT + + 99 * - + 93 + + COUNT( * ) AS col1, 38 + + + 23
----
-9206
61

skipif mysql # not compatible
query II rowsort label-3474
SELECT + + 99 * - + 93 + + COUNT ( * ) AS col1, 38 + + + 23
----
-9206
61

query I rowsort
SELECT ALL + + 84 col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT ALL + + 94 DIV - 7 + - + 77 - + 29
----
-119

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + + 94 / - 7 + - + 77 - + 29
----
-119

query I rowsort
SELECT ALL 23 * + + 7 AS col1
----
161

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3479
SELECT + COUNT( DISTINCT - 73 ) DIV + 9 col0
----
0

skipif mysql # not compatible
query I rowsort label-3479
SELECT + COUNT ( DISTINCT - 73 ) / + 9 col0
----
0

query I rowsort
SELECT DISTINCT 58 * + 78 AS col0
----
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT + CASE 23 WHEN + - 75 / + 46 + - NULLIF ( - 39, + 75 + - - COUNT( * ) + - 13 / 20 / 22 ) + 6 * - CASE - 86 WHEN + - 74 * + 83 + + + 58 + - 39 * - MAX( DISTINCT - COALESCE ( + 82, - - 1 ) ) THEN + COUNT( * ) + 13 / - 7 + - 6 - - 59 WHEN + ( + 76 ) * - ( 58 * 21 + + 73 ) THEN - 13 ELSE NULL END THEN + NULLIF ( + COUNT( * ), 6 ) WHEN 30 THEN NULL WHEN NULLIF ( 43, MIN( - 98 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT + CASE 23 WHEN + - 75 / + 46 + - NULLIF ( - 39, + 75 + - - COUNT ( * ) + - 13 / 20 / 22 ) + 6 * - CASE - 86 WHEN + - 74 * + 83 + + + 58 + - 39 * - MAX ( DISTINCT - COALESCE ( + 82, - - 1 ) ) THEN + COUNT ( * ) + 13 / - 7 + - 6 - - 59 WHEN + ( + 76 ) * - ( 58 * 21 + + 73 ) THEN - 13 ELSE NULL END THEN + NULLIF ( + COUNT ( * ), 6 ) WHEN 30 THEN NULL WHEN NULLIF ( 43, MIN ( - 98 ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + CASE 0 WHEN - ( + ( - 16 ) ) THEN NULL WHEN - COALESCE ( + 57, + COUNT( * ) ) THEN - - 51 + + 25 * ( + 85 ) * + + 44 * - 81 END * - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3482
SELECT + CASE 0 WHEN - ( + ( - 16 ) ) THEN NULL WHEN - COALESCE ( + 57, + COUNT ( * ) ) THEN - - 51 + + 25 * ( + 85 ) * + + 44 * - 81 END * - 87 AS col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3485
SELECT ( + CASE - MAX( DISTINCT 98 ) WHEN + MIN( ALL - CAST( NULL AS DECIMAL ) ) + - + 82 / - + 89 + - - 66 + + + 81 / 2 THEN CASE - COUNT( 75 ) WHEN CASE 69 WHEN CAST( + 45 AS SIGNED ) THEN COUNT( * ) WHEN - 43 THEN NULL END * - 43 THEN - COUNT( * ) END ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT ( + CASE - MAX ( DISTINCT 98 ) WHEN + MIN ( ALL - CAST ( NULL AS REAL ) ) + - + 82 / - + 89 + - - 66 + + + 81 / 2 THEN CASE - COUNT ( 75 ) WHEN CASE 69 WHEN CAST ( + 45 AS INTEGER ) THEN COUNT ( * ) WHEN - 43 THEN NULL END * - 43 THEN - COUNT ( * ) END ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + 93 - MIN( ALL - - ( - + NULLIF ( 90, 14 ) ) ) AS col1
----
183

skipif mysql # not compatible
query I rowsort label-3486
SELECT + 93 - MIN ( ALL - - ( - + NULLIF ( 90, 14 ) ) ) AS col1
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-3487
SELECT ALL 75 DIV ( - 22 )
----
-3

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL 75 / ( - 22 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT DISTINCT 10 DIV - 33 col1
----
0

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT 10 / - 33 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT ALL + CASE - 25 WHEN - - 63 THEN - 24 WHEN - 62 + - 26 THEN - ( - ( + - 60 ) ) ELSE NULL END, - 32 * SUM( DISTINCT ( - 8 ) ) AS col2
----
NULL
256

skipif mysql # not compatible
query II rowsort label-3489
SELECT ALL + CASE - 25 WHEN - - 63 THEN - 24 WHEN - 62 + - 26 THEN - ( - ( + - 60 ) ) ELSE NULL END, - 32 * SUM ( DISTINCT ( - 8 ) ) AS col2
----
NULL
256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT NULLIF ( - - COUNT( * ), - 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3491
SELECT NULLIF ( - - COUNT ( * ), - 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3492
SELECT + 27 * + - 65 col1, MAX( + + 43 ) AS col1
----
-1755
43

skipif mysql # not compatible
query II rowsort label-3492
SELECT + 27 * + - 65 col1, MAX ( + + 43 ) AS col1
----
-1755
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT - - 90 * + CAST( + 9 AS SIGNED ) + - + ( + + 36 ) + 18 - - + 7 * 9 - - 96 * + 52 * 97 - SUM( + + 88 ) col0
----
484991

skipif mysql # not compatible
query I rowsort label-3493
SELECT - - 90 * + CAST ( + 9 AS INTEGER ) + - + ( + + 36 ) + 18 - - + 7 * 9 - - 96 * + 52 * 97 - SUM ( + + 88 ) col0
----
484991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT ALL + + 18 * 66 + 61 + + - 97 * - 94 + + - CAST( NULL AS SIGNED ) + + - 88 * + - 72 * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + + 18 * 66 + 61 + + - 97 * - 94 + + - CAST ( NULL AS INTEGER ) + + - 88 * + - 72 * 8
----
NULL

query I rowsort
SELECT CASE 29 WHEN - 78 THEN - 43 WHEN + 63 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3496
SELECT ALL + 38 AS col1, 3 DIV 49 + - + COUNT( * ) + - SUM( ALL + 13 ) + COUNT( * ) DIV - - 45
----
38
-14

skipif mysql # not compatible
query II rowsort label-3496
SELECT ALL + 38 AS col1, 3 / 49 + - + COUNT ( * ) + - SUM ( ALL + 13 ) + COUNT ( * ) / - - 45
----
38
-14

query I rowsort
SELECT ( - - 61 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3498
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - NULLIF ( - 10, MIN( ALL + - 61 ) ) * + + AVG ( + 46 ) * + + 61 * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - NULLIF ( - 10, MIN ( ALL + - 61 ) ) * + + AVG ( + 46 ) * + + 61 * + 89
----
NULL

query II rowsort
SELECT DISTINCT - 99 col0, 33 AS col1
----
-99
33

query II rowsort
SELECT ALL + 15 AS col2, NULLIF ( - - 79, 60 / - 6 + + 40 ) AS col0
----
15
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3501
SELECT ALL - + COUNT( * ) + 1 DIV - 31 + - - 2 + 97 + + + COUNT( * ) * + 39 col1
----
137

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL - + COUNT ( * ) + 1 / - 31 + - - 2 + 97 + + + COUNT ( * ) * + 39 col1
----
137

query II rowsort
SELECT ALL 78 col0, 50 AS col1
----
78
50

query I rowsort
SELECT 20 + + - 21 * + 58
----
-1198

onlyif mysql # aggregate syntax: 
query II rowsort label-3504
SELECT 85, - 40 + NULLIF ( + 29, + COUNT( DISTINCT + + ( + 52 ) ) * - + ( - + COALESCE ( SUM( + + 60 ), - 7 ) ) * 47 ) AS col0
----
85
-11

skipif mysql # not compatible
query II rowsort label-3504
SELECT 85, - 40 + NULLIF ( + 29, + COUNT ( DISTINCT + + ( + 52 ) ) * - + ( - + COALESCE ( SUM ( + + 60 ), - 7 ) ) * 47 ) AS col0
----
85
-11

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT COUNT( * ) * - + CAST( NULL AS SIGNED ) * - SUM( ALL + - 48 ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * - SUM ( ALL + - 48 ) * - 59
----
NULL

query I rowsort
SELECT DISTINCT + - 5 - + ( - + 95 )
----
90

query I rowsort
SELECT ALL - 48 * 96 AS col0
----
-4608

onlyif mysql # aggregate syntax: 
query II rowsort label-3509
SELECT DISTINCT - 26 - + 44, - COUNT( * ) AS col1
----
-70
-1

skipif mysql # not compatible
query II rowsort label-3509
SELECT DISTINCT - 26 - + 44, - COUNT ( * ) AS col1
----
-70
-1

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

skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT - 83 * + + COALESCE ( + COUNT ( * ), CAST ( NULL AS INTEGER ) )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT 57 + - 20 - - + ( COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-3511
SELECT 57 + - 20 - - + ( COUNT ( * ) )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3512
SELECT + ( + 49 ) * + 55 + MIN( ALL - + 76 ) - + + 79 * 46 * - + 0 DIV + COUNT( * ) AS col1
----
2619

skipif mysql # not compatible
query I rowsort label-3512
SELECT + ( + 49 ) * + 55 + MIN ( ALL - + 76 ) - + + 79 * 46 * - + 0 / + COUNT ( * ) AS col1
----
2619

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT DISTINCT 5 * - MAX( - - 17 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT 5 * - MAX ( - - 17 ) AS col0
----
-85

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

query I rowsort
SELECT DISTINCT 98 + - 56 * 75 AS col2
----
-4102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3516
SELECT COALESCE ( 13, COUNT( * ) + - + 22 - 84 DIV 24 ) DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-3516
SELECT COALESCE ( 13, COUNT ( * ) + - + 22 - 84 / 24 ) / + 99
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT 36 + - + 47 * - COUNT( - - 21 ) * - 28 AS col0
----
-1280

skipif mysql # not compatible
query I rowsort label-3518
SELECT 36 + - + 47 * - COUNT ( - - 21 ) * - 28 AS col0
----
-1280

query I rowsort
SELECT ALL 97 + - 10 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT 17 * - 45 + 27 * 32 * 20 * - COUNT( 21 ) col0
----
-18045

skipif mysql # not compatible
query I rowsort label-3520
SELECT 17 * - 45 + 27 * 32 * 20 * - COUNT ( 21 ) col0
----
-18045

query I rowsort
SELECT ALL 97 + COALESCE ( + 36, 90 ) * + + 39 + + 5 AS col1
----
1506

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT - + SUM( DISTINCT - - 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3522
SELECT - + SUM ( DISTINCT - - 30 ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT DISTINCT 41 DIV - - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT 41 / - - 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3524
SELECT + 33 * + COUNT( * ), - 10 AS col1
----
33
-10

skipif mysql # not compatible
query II rowsort label-3524
SELECT + 33 * + COUNT ( * ), - 10 AS col1
----
33
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT - COUNT( * ) + - 85 * - 43 + ( - 45 ) AS col2
----
3609

skipif mysql # not compatible
query I rowsort label-3525
SELECT - COUNT ( * ) + - 85 * - 43 + ( - 45 ) AS col2
----
3609

query I rowsort
SELECT 78 + 7
----
85

query I rowsort
SELECT ALL 99 * 64 - - 9 AS col1
----
6345

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT 65 * - + COUNT( ALL - 21 ) * - - 73 * + + 50 * - 60
----
14235000

skipif mysql # not compatible
query I rowsort label-3528
SELECT 65 * - + COUNT ( ALL - 21 ) * - - 73 * + + 50 * - 60
----
14235000

onlyif mysql # aggregate syntax: 
query II rowsort label-3529
SELECT DISTINCT + 10 - - 8 AS col2, - CASE - + ( + MAX( ALL 35 ) ) WHEN + 36 THEN + COUNT( * ) * - + 57 * + 57 + - + COUNT( * ) ELSE NULL END
----
18
NULL

skipif mysql # not compatible
query II rowsort label-3529
SELECT DISTINCT + 10 - - 8 AS col2, - CASE - + ( + MAX ( ALL 35 ) ) WHEN + 36 THEN + COUNT ( * ) * - + 57 * + 57 + - + COUNT ( * ) ELSE NULL END
----
18
NULL

query I rowsort
SELECT ALL 66 * - 47 + + 83 + 61
----
-2958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3531
SELECT + ( + 58 ) + + NULLIF ( + CAST( - + COALESCE ( - 38, COALESCE ( - - COUNT( * ), AVG ( ALL 51 ) + + 57 + 97 ) ) AS SIGNED ), - 88 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3531
SELECT + ( + 58 ) + + NULLIF ( + CAST ( - + COALESCE ( - 38, COALESCE ( - - COUNT ( * ), AVG ( ALL 51 ) + + 57 + 97 ) ) AS INTEGER ), - 88 ) AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3532
SELECT DISTINCT + SUM( - 64 ) DIV - + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT + SUM ( - 64 ) / - + 71 AS col0
----
0

query I rowsort
SELECT ALL COALESCE ( - - 14, + - 94, 86 )
----
14

query I rowsort
SELECT 86 * 69 * ( - + 35 )
----
-207690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3535
SELECT CAST( - - SUM( DISTINCT + - 11 ) AS SIGNED ) * - 77 - - COUNT( * ) - - 81 * + - COUNT( * ) DIV - COUNT( * ) AS col1
----
929

skipif mysql # not compatible
query I rowsort label-3535
SELECT CAST ( - - SUM ( DISTINCT + - 11 ) AS INTEGER ) * - 77 - - COUNT ( * ) - - 81 * + - COUNT ( * ) / - COUNT ( * ) AS col1
----
929

query I rowsort
SELECT 92 + + 24
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT DISTINCT + 24 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT + 24 / - 54
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT - 30 DIV 94 + - + 90 * + 18
----
-1620

skipif mysql # not compatible
query I rowsort label-3538
SELECT - 30 / 94 + - + 90 * + 18
----
-1620

query I rowsort
SELECT DISTINCT 99 * ( - 79 )
----
-7821

query I rowsort
SELECT ALL + 76 * + - 67 + - 58 AS col2
----
-5150

query II rowsort
SELECT ALL - 27 AS col2, 40 + 62
----
-27
102

query I rowsort
SELECT ALL + 7 * 86 AS col0
----
602

query I rowsort
SELECT 11 * 11
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ALL 85 * + + 0 + - + SUM( - 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL 85 * + + 0 + - + SUM ( - 80 ) AS col2
----
80

query II rowsort
SELECT + 11 AS col0, 88 * - 63 AS col2
----
11
-5544

query I rowsort
SELECT 1 * + - ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3547
SELECT DISTINCT 97 * - - 62 * + - ( - COUNT( * ) ) + + COUNT( - - 43 ), 48 AS col2
----
6015
48

skipif mysql # not compatible
query II rowsort label-3547
SELECT DISTINCT 97 * - - 62 * + - ( - COUNT ( * ) ) + + COUNT ( - - 43 ), 48 AS col2
----
6015
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3548
SELECT ALL + COUNT( * ) * + COUNT( * ) * + MIN( DISTINCT 30 ) * - ( MAX( DISTINCT 90 ) ) - - 14 * 30 DIV - 88 + + 74 * + 2 AS col1
----
-2556

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * + MIN ( DISTINCT 30 ) * - ( MAX ( DISTINCT 90 ) ) - - 14 * 30 / - 88 + + 74 * + 2 AS col1
----
-2556

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

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

query I rowsort
SELECT DISTINCT + - 6 * - - 32
----
-192

query I rowsort
SELECT ALL + + 55 * - 26 col2
----
-1430

query I rowsort
SELECT - + 28 + 11
----
-17

query I rowsort
SELECT - 31 + - 94
----
-125

query I rowsort
SELECT + 0 - 46 col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT - MIN( 30 ) * + 96 + - 35 col1
----
-2915

skipif mysql # not compatible
query I rowsort label-3555
SELECT - MIN ( 30 ) * + 96 + - 35 col1
----
-2915

query II rowsort
SELECT - + 47, - 1 AS col1
----
-47
-1

query I rowsort
SELECT + 53 * - 75 AS col2
----
-3975

query I rowsort
SELECT + - 56 * 93
----
-5208

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3559
SELECT ALL 24, 60 * + - NULLIF ( MAX( + 39 ), COUNT( * ) ) + 91 DIV 99 AS col0
----
24
-2340

skipif mysql # not compatible
query II rowsort label-3559
SELECT ALL 24, 60 * + - NULLIF ( MAX ( + 39 ), COUNT ( * ) ) + 91 / 99 AS col0
----
24
-2340

query I rowsort
SELECT DISTINCT - 39 - - 43
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT ALL CAST( NULL AS SIGNED ) / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL CAST ( NULL AS INTEGER ) / 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT + - 12 + - - CASE - 0 WHEN - 49 THEN - 2 * - + CAST( NULL AS SIGNED ) + + 13 ELSE + - CAST( NULL AS SIGNED ) END + ( - 85 ) * 35 / - - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT + - 12 + - - CASE - 0 WHEN - 49 THEN - 2 * - + CAST ( NULL AS INTEGER ) + + 13 ELSE + - CAST ( NULL AS INTEGER ) END + ( - 85 ) * 35 / - - 11 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3563
SELECT ALL 59 DIV - 13 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL 59 / - 13 AS col2
----
-4

query II rowsort
SELECT - - 52 col0, 78 col2
----
52
78

query II rowsort
SELECT + 87 AS col2, - 70 AS col1
----
87
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3567
SELECT + NULLIF ( + COALESCE ( - ( 11 ), - + 74 * + + 56 ), 10 + + - 27 + - CASE + + 27 WHEN - 66 THEN NULL WHEN - - 58 THEN + - 27 ELSE - - 0 * - 27 * + - COALESCE ( - 60, + - CAST( NULL AS SIGNED ) * COALESCE ( - COALESCE ( - 65, + + 5, 31 + - + 66 ), COALESCE ( 48, - MAX( ALL - + ( 91 ) ) ) * - CASE WHEN NOT NULL <= 53 + - 72 THEN NULL WHEN NULL >= NULL THEN - NULLIF ( SUM( DISTINCT + 56 ), - 55 ) END, 86 / - 56 ) ) END * + 71 * + 58 ) * 13 AS col0
----
-143

skipif mysql # not compatible
query I rowsort label-3567
SELECT + NULLIF ( + COALESCE ( - ( 11 ), - + 74 * + + 56 ), 10 + + - 27 + - CASE + + 27 WHEN - 66 THEN NULL WHEN - - 58 THEN + - 27 ELSE - - 0 * - 27 * + - COALESCE ( - 60, + - CAST ( NULL AS INTEGER ) * COALESCE ( - COALESCE ( - 65, + + 5, 31 + - + 66 ), COALESCE ( 48, - MAX ( ALL - + ( 91 ) ) ) * - CASE WHEN NOT NULL <= 53 + - 72 THEN NULL WHEN NULL >= NULL THEN - NULLIF ( SUM ( DISTINCT + 56 ), - 55 ) END, 86 / - 56 ) ) END * + 71 * + 58 ) * 13 AS col0
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT - 6 * + - 99 col2, + ( + COUNT( * ) ) AS col1
----
594
1

skipif mysql # not compatible
query II rowsort label-3568
SELECT - 6 * + - 99 col2, + ( + COUNT ( * ) ) AS col1
----
594
1

query I rowsort
SELECT - COALESCE ( + + 61, + + 55 * 28 * - 5 ) AS col2
----
-61

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT ALL + 75 DIV - 70
----
-1

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL + 75 / - 70
----
-1

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

skipif mysql # not compatible
query I rowsort label-3573
SELECT 66 / - 61 + + COUNT ( * )
----
0

query I rowsort
SELECT 30 * + 91 - + 53 col0
----
2677

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT - 44 / CASE - - 95 WHEN + + 1 + + 63 THEN NULL WHEN + 57 THEN 99 END * 46 + - - 72 - + COALESCE ( 86, + 71, ( - + 60 ) + - - SUM( DISTINCT + - 8 ) ) + + - COALESCE ( + - COUNT( * ), + 93 + - 53, - 5 + 50 ) * + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT - 44 / CASE - - 95 WHEN + + 1 + + 63 THEN NULL WHEN + 57 THEN 99 END * 46 + - - 72 - + COALESCE ( 86, + 71, ( - + 60 ) + - - SUM ( DISTINCT + - 8 ) ) + + - COALESCE ( + - COUNT ( * ), + 93 + - 53, - 5 + 50 ) * + - 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT 39 * 15 / - CAST( NULL AS SIGNED ) * + + 99 + - + ( + - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT 39 * 15 / - CAST ( NULL AS INTEGER ) * + + 99 + - + ( + - 51 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT - 92 DIV + ( + 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 92 / + ( + 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL + 39 * + CASE - + 74 WHEN - + 68 + + MIN( ALL + 2 ) THEN - 35 END + ( - + ( - 58 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL + 39 * + CASE - + 74 WHEN - + 68 + + MIN ( ALL + 2 ) THEN - 35 END + ( - + ( - 58 ) ) AS col0
----
NULL

query I rowsort
SELECT - 39 * 10 AS col0
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL 45 * + NULLIF ( MAX( 89 ), + 67 - - 66 + + 64 - ( + MIN( 81 ) ) )
----
4005

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL 45 * + NULLIF ( MAX ( 89 ), + 67 - - 66 + + 64 - ( + MIN ( 81 ) ) )
----
4005

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

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

query II rowsort
SELECT DISTINCT - CASE 51 WHEN - 61 THEN NULL WHEN + 83 - - 59 THEN - 99 END * + - 84 AS col2, 39 AS col1
----
NULL
39

query I rowsort
SELECT ALL - 77 * - - 18 - + 70
----
-1456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3584
SELECT DISTINCT - - ( + SUM( 87 ) ) DIV 9 col0
----
9

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT - - ( + SUM ( 87 ) ) / 9 col0
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3585
SELECT - 1 DIV - CAST( - - 69 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3585
SELECT - 1 / - CAST ( - - 69 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + + 48 * + 29 + + + COUNT( ALL - + 83 ) + - ( 52 )
----
1341

skipif mysql # not compatible
query I rowsort label-3586
SELECT + + 48 * + 29 + + + COUNT ( ALL - + 83 ) + - ( 52 )
----
1341

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT NULLIF ( - + 87, - COUNT( + ( - 81 ) ) * - - 57 * + AVG ( - 60 ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3587
SELECT NULLIF ( - + 87, - COUNT ( + ( - 81 ) ) * - - 57 * + AVG ( - 60 ) ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT + 98 + - MAX( + 64 ) + - 17 AS col1, - 56 + - COUNT( * )
----
17
-57

skipif mysql # not compatible
query II rowsort label-3588
SELECT + 98 + - MAX ( + 64 ) + - 17 AS col1, - 56 + - COUNT ( * )
----
17
-57

query I rowsort
SELECT ( 6 ) AS col0
----
6

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

query I rowsort
SELECT ALL + ( 64 ) col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3592
SELECT + MIN( CAST( + CASE - + 23 WHEN + - 5 THEN + 61 WHEN + - 8 THEN 69 ELSE NULL END AS SIGNED ) ) * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT + MIN ( CAST ( + CASE - + 23 WHEN + - 5 THEN + 61 WHEN + - 8 THEN 69 ELSE NULL END AS INTEGER ) ) * 36 AS col2
----
NULL

query I rowsort
SELECT - ( + + ( + 34 ) ) - - 38 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3594
SELECT - + 89 DIV 5 * + - 33 col2
----
561

skipif mysql # not compatible
query I rowsort label-3594
SELECT - + 89 / 5 * + - 33 col2
----
561

query I rowsort
SELECT + + 83 * 28 AS col2
----
2324

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

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT + 61 + - COUNT ( * ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3597
SELECT ALL CAST( NULL AS SIGNED ), 96 AS col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-3597
SELECT ALL CAST ( NULL AS INTEGER ), 96 AS col1
----
NULL
96

query I rowsort
SELECT DISTINCT + 52 + + + 7 * + COALESCE ( + 75, + + 10 )
----
577

query I rowsort
SELECT DISTINCT 82 + 81
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT + 46 + COUNT( * ) col0
----
47

skipif mysql # not compatible
query I rowsort label-3600
SELECT + 46 + COUNT ( * ) col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3601
SELECT ALL MAX( - - CAST( NULL AS SIGNED ) ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL MAX ( - - CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 11 + + 78 + - 76 * - 75 * 72 AS col2
----
410489

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3603
SELECT - COUNT( * ) DIV - 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3603
SELECT - COUNT ( * ) / - 17 AS col2
----
0

query I rowsort
SELECT + 16 + - ( - 0 ) col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT DISTINCT 40 * - CAST( - 53 AS SIGNED )
----
2120

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT 40 * - CAST ( - 53 AS INTEGER )
----
2120

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL MAX( ALL 96 ) + NULLIF ( + 20, + 58 )
----
116

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL MAX ( ALL 96 ) + NULLIF ( + 20, + 58 )
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3607
SELECT COUNT( * ) DIV + 37 + + 28 * COUNT( * ) + - ( + 94 )
----
-66

skipif mysql # not compatible
query I rowsort label-3607
SELECT COUNT ( * ) / + 37 + + 28 * COUNT ( * ) + - ( + 94 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3608
SELECT ALL 86 * - MAX( DISTINCT + 10 ), + 29 AS col2
----
-860
29

skipif mysql # not compatible
query II rowsort label-3608
SELECT ALL 86 * - MAX ( DISTINCT + 10 ), + 29 AS col2
----
-860
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3609
SELECT DISTINCT 4 * + - 39 DIV - 39, - 76 * + 78 + + 71 AS col0, - + COUNT( * ) col0
----
4
-5857
-1

skipif mysql # not compatible
query III rowsort label-3609
SELECT DISTINCT 4 * + - 39 / - 39, - 76 * + 78 + + 71 AS col0, - + COUNT ( * ) col0
----
4
-5857
-1

query I rowsort
SELECT 42 * + - 41 AS col0
----
-1722

query I rowsort
SELECT NULLIF ( + 17, - - 58 ) - - 22 AS col2
----
39

query I rowsort
SELECT - 60 * + 94 + 1
----
-5639

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT - NULLIF ( 63, - COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-3613
SELECT - NULLIF ( 63, - COUNT ( * ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ( + 77 ) * + ( + NULLIF ( + COUNT( * ), - 99 ) ) * 63
----
4851

skipif mysql # not compatible
query I rowsort label-3614
SELECT ( + 77 ) * + ( + NULLIF ( + COUNT ( * ), - 99 ) ) * 63
----
4851

query I rowsort
SELECT + - NULLIF ( - 72, + + 32 / - 39 )
----
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT + 26 * - COUNT( * ) * 34
----
-884

skipif mysql # not compatible
query I rowsort label-3617
SELECT + 26 * - COUNT ( * ) * 34
----
-884

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT ALL NULLIF ( - 98, 27 ) DIV + 23
----
-4

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL NULLIF ( - 98, 27 ) / + 23
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT - 23 * ( + COUNT( * ) ) * + COUNT( * ) * - 33 + + 14 - ( 1 )
----
772

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT - 23 * ( + COUNT ( * ) ) * + COUNT ( * ) * - 33 + + 14 - ( 1 )
----
772

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT 9 * + - 50 * COALESCE ( COUNT( * ), ( - COALESCE ( - + 59, - - 79 ) ) ) * - - 92
----
-41400

skipif mysql # not compatible
query I rowsort label-3620
SELECT 9 * + - 50 * COALESCE ( COUNT ( * ), ( - COALESCE ( - + 59, - - 79 ) ) ) * - - 92
----
-41400

onlyif mysql # aggregate syntax: 
query II rowsort label-3621
SELECT ALL + + COUNT( 1 ) * + 53 AS col0, 30 - 95
----
53
-65

skipif mysql # not compatible
query II rowsort label-3621
SELECT ALL + + COUNT ( 1 ) * + 53 AS col0, 30 - 95
----
53
-65

query I rowsort
SELECT DISTINCT - + 34 * + ( 45 ) + + 91 AS col0
----
-1439

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT + COALESCE ( ( + 31 ), + - COUNT( * ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3623
SELECT + COALESCE ( ( + 31 ), + - COUNT ( * ) ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL - COALESCE ( 19, COUNT( * ) * + + 35 - - 65 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - COALESCE ( 19, COUNT ( * ) * + + 35 - - 65 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ( 58 ) * - COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3625
SELECT ( 58 ) * - COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT + - 21 * + 29 + + 31 * 36 * ( 29 )
----
31755

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ( 70 ) - + 29 / - CASE 11 WHEN - ( - 2 ) * COUNT( * ) + ( + 88 ) THEN - + 68 ELSE NULL END * + + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT ( 70 ) - + 29 / - CASE 11 WHEN - ( - 2 ) * COUNT ( * ) + ( + 88 ) THEN - + 68 ELSE NULL END * + + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL - - COUNT( * ) + - + 96 + 16 - + - ( + + NULLIF ( - 66, - 97 ) ) * - 37 * - - 20 + - 33 + + + CASE - 27 WHEN + - COUNT( * ) THEN NULL WHEN + 87 THEN 89 * + + COUNT( * ) + - COUNT( ALL 80 ) + + 86 ELSE COUNT( * ) * - SUM( ALL - 13 ) + + 47 - - 71 END + + 34 * + + COUNT( 69 )
----
48893

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL - - COUNT ( * ) + - + 96 + 16 - + - ( + + NULLIF ( - 66, - 97 ) ) * - 37 * - - 20 + - 33 + + + CASE - 27 WHEN + - COUNT ( * ) THEN NULL WHEN + 87 THEN 89 * + + COUNT ( * ) + - COUNT ( ALL 80 ) + + 86 ELSE COUNT ( * ) * - SUM ( ALL - 13 ) + + 47 - - 71 END + + 34 * + + COUNT ( 69 )
----
48893

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3630
SELECT COUNT( * ) AS col1, 81 + ( - - ( - 90 ) )
----
1
-9

skipif mysql # not compatible
query II rowsort label-3630
SELECT COUNT ( * ) AS col1, 81 + ( - - ( - 90 ) )
----
1
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3631
SELECT 12 + - 13 * + - 29 * - ( + COUNT( * ) ) * + + CAST( NULL AS SIGNED ) * + 92 + CASE + COUNT( * ) WHEN - 31 + - + COUNT( * ) + + 87 * - 96 THEN NULL WHEN - 20 + + 70 - + - 62 * CAST( NULL AS SIGNED ) THEN NULL ELSE - CASE + 5 WHEN - 63 / SUM( DISTINCT + 6 ) * 86 + + - 14 THEN 78 + - CAST( - - 79 AS SIGNED ) ELSE - + 90 + - 10 END END + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT 12 + - 13 * + - 29 * - ( + COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) * + 92 + CASE + COUNT ( * ) WHEN - 31 + - + COUNT ( * ) + + 87 * - 96 THEN NULL WHEN - 20 + + 70 - + - 62 * CAST ( NULL AS INTEGER ) THEN NULL ELSE - CASE + 5 WHEN - 63 / SUM ( DISTINCT + 6 ) * 86 + + - 14 THEN 78 + - CAST ( - - 79 AS INTEGER ) ELSE - + 90 + - 10 END END + - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT DISTINCT - 20 + COUNT( * ) * + CASE - - 55 WHEN + SUM( DISTINCT 70 ) * + 87 + 10 + 18 THEN + 44 WHEN - 57 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT - 20 + COUNT ( * ) * + CASE - - 55 WHEN + SUM ( DISTINCT 70 ) * + 87 + 10 + 18 THEN + 44 WHEN - 57 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 66 + 89 * + 73 AS col0
----
6563

query I rowsort
SELECT ALL 41 * - 90 col0
----
-3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3635
SELECT ALL + 48 + - 8, CAST( 72 AS SIGNED ) + + 61 + COUNT( * ) AS col1
----
40
134

skipif mysql # not compatible
query II rowsort label-3635
SELECT ALL + 48 + - 8, CAST ( 72 AS INTEGER ) + + 61 + COUNT ( * ) AS col1
----
40
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3636
SELECT DISTINCT - COUNT( DISTINCT NULLIF ( 80, + 70 ) ) * + + MAX( DISTINCT 80 ) AS col2, COUNT( * ) + + ( - 3 ) AS col2, + 85 DIV 50 + - 41 + - 40 + + - 31 * + MAX( DISTINCT - 67 ) + + + 76
----
-80
-2
2073

skipif mysql # not compatible
query III rowsort label-3636
SELECT DISTINCT - COUNT ( DISTINCT NULLIF ( 80, + 70 ) ) * + + MAX ( DISTINCT 80 ) AS col2, COUNT ( * ) + + ( - 3 ) AS col2, + 85 / 50 + - 41 + - 40 + + - 31 * + MAX ( DISTINCT - 67 ) + + + 76
----
-80
-2
2073

onlyif mysql # aggregate syntax: 
query II rowsort label-3637
SELECT 82 + + NULLIF ( 98, - 35 * - - COUNT( * ) + COUNT( ALL 9 ) ) AS col2, + 0
----
180
0

skipif mysql # not compatible
query II rowsort label-3637
SELECT 82 + + NULLIF ( 98, - 35 * - - COUNT ( * ) + COUNT ( ALL 9 ) ) AS col2, + 0
----
180
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT 85 * - COUNT( - 53 ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-3638
SELECT 85 * - COUNT ( - 53 ) col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL - 75 * - + SUM( ALL - 34 )
----
-2550

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL - 75 * - + SUM ( ALL - 34 )
----
-2550

query I rowsort
SELECT ( + 79 ) + + 87
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT ALL CAST( - 63 AS SIGNED ) - + 73 * 7 + - 14 AS col1
----
-588

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL CAST ( - 63 AS INTEGER ) - + 73 * 7 + - 14 AS col1
----
-588

query I rowsort
SELECT 11 * - 97 * + 32 col1
----
-34144

query I rowsort
SELECT 26 + 13 AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT ALL - COUNT( * ) - + - 71 AS col1, - 69 col1
----
70
-69

skipif mysql # not compatible
query II rowsort label-3644
SELECT ALL - COUNT ( * ) - + - 71 AS col1, - 69 col1
----
70
-69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3646
SELECT 61 AS col2, NULLIF ( - COUNT( * ), + 21 )
----
61
-1

skipif mysql # not compatible
query II rowsort label-3646
SELECT 61 AS col2, NULLIF ( - COUNT ( * ), + 21 )
----
61
-1

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

skipif mysql # not compatible
query II rowsort label-3647
SELECT DISTINCT - CAST ( - - ( + - COUNT ( * ) ) AS INTEGER ) - - 71 AS col0, - 83 AS col1
----
72
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT 4 * - 33 - + ( - + SUM( + 44 ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3648
SELECT 4 * - 33 - + ( - + SUM ( + 44 ) ) AS col1
----
-88

query II rowsort
SELECT + 47 AS col1, 48
----
47
48

onlyif mysql # DIV for integer division: 
query II rowsort label-3650
SELECT DISTINCT - + 41 AS col0, - 76 + 56 + 57 + + - 1 DIV - 19
----
-41
37

skipif mysql # not compatible
query II rowsort label-3650
SELECT DISTINCT - + 41 AS col0, - 76 + 56 + 57 + + - 1 / - 19
----
-41
37

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

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

query II rowsort
SELECT ALL - 99 AS col0, - 46
----
-99
-46

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

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

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

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

query I rowsort
SELECT 78 + + 37 + - 87
----
28

query I rowsort
SELECT ALL - 19 + - + 97 + 63 AS col1
----
-53

query II rowsort
SELECT DISTINCT - 37, + 29 AS col1
----
-37
29

query I rowsort
SELECT ALL - 69 + + + 8 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query III rowsort label-3659
SELECT + 43 AS col2, 16 AS col0, - 70 + 47 - + 40 + + - 74 * - NULLIF ( 40, + MAX( - 25 ) + 84 ) * ( - 66 )
----
43
16
-195423

skipif mysql # not compatible
query III rowsort label-3659
SELECT + 43 AS col2, 16 AS col0, - 70 + 47 - + 40 + + - 74 * - NULLIF ( 40, + MAX ( - 25 ) + 84 ) * ( - 66 )
----
43
16
-195423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3660
SELECT DISTINCT CAST( - 46 AS DECIMAL ) + - + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT CAST ( - 46 AS REAL ) + - + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 66 + + + 33 * COALESCE ( - 46, + + 98 ) AS col1
----
-1452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT ALL NULLIF ( - 48, 33 ) + COALESCE ( + 23, - + 24, - COUNT( * ) - + 32, 59 + - 52 + - 41 ) + MAX( DISTINCT - + 60 ) + + + 19 / CASE + 82 WHEN - 85 / + NULLIF ( + COUNT( * ), - + COUNT( DISTINCT + + 2 ) ) THEN + + 67 + - 12 * 83 - CAST( + 83 AS SIGNED ) + - + 27 * - 72 WHEN + 43 + + + 3 THEN NULL END + + + COUNT( * ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL NULLIF ( - 48, 33 ) + COALESCE ( + 23, - + 24, - COUNT ( * ) - + 32, 59 + - 52 + - 41 ) + MAX ( DISTINCT - + 60 ) + + + 19 / CASE + 82 WHEN - 85 / + NULLIF ( + COUNT ( * ), - + COUNT ( DISTINCT + + 2 ) ) THEN + + 67 + - 12 * 83 - CAST ( + 83 AS INTEGER ) + - + 27 * - 72 WHEN + 43 + + + 3 THEN NULL END + + + COUNT ( * ) * + 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3663
SELECT DISTINCT - 76 + + ( + COALESCE ( - - 9, - + 84 DIV - - 42 + + COUNT( * ), - - 24 * + 79 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT - 76 + + ( + COALESCE ( - - 9, - + 84 / - - 42 + + COUNT ( * ), - - 24 * + 79 ) )
----
-67

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

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

query I rowsort
SELECT ALL 12 + - 16 AS col1
----
-4

query I rowsort
SELECT ALL 29 * 85
----
2465

onlyif mysql # aggregate syntax: 
query II rowsort label-3667
SELECT 21 * + + 70 * - NULLIF ( - - 62, - 99 ) AS col0, COUNT( * ) - + + 10
----
-91140
-9

skipif mysql # not compatible
query II rowsort label-3667
SELECT 21 * + + 70 * - NULLIF ( - - 62, - 99 ) AS col0, COUNT ( * ) - + + 10
----
-91140
-9

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

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL MIN ( + - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT DISTINCT + 35 - - NULLIF ( 32, + 42 * - 18 + + 29 * MIN( DISTINCT - 36 ) * - 94 + ( - COUNT( * ) ) + NULLIF ( + + ( ( - + 86 ) ), + 89 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT + 35 - - NULLIF ( 32, + 42 * - 18 + + 29 * MIN ( DISTINCT - 36 ) * - 94 + ( - COUNT ( * ) ) + NULLIF ( + + ( ( - + 86 ) ), + 89 ) ) AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3670
SELECT - 81 + + COUNT( * ) + COUNT( DISTINCT - - ( - NULLIF ( + - 41, + 26 ) ) ) * + 80 DIV - - 98 * - - 41 * - 99 DIV COUNT( * ) * + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-3670
SELECT - 81 + + COUNT ( * ) + COUNT ( DISTINCT - - ( - NULLIF ( + - 41, + 26 ) ) ) * + 80 / - - 98 * - - 41 * - 99 / COUNT ( * ) * + COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT ALL + COALESCE ( CASE - 44 WHEN + ( 64 ) * - + 31 / + 93 THEN NULL WHEN - - 30 THEN NULL ELSE COUNT( * ) END, + COUNT( * ) ) * + COUNT( * ) * - - 25 col1, + 30
----
25
30

skipif mysql # not compatible
query II rowsort label-3671
SELECT ALL + COALESCE ( CASE - 44 WHEN + ( 64 ) * - + 31 / + 93 THEN NULL WHEN - - 30 THEN NULL ELSE COUNT ( * ) END, + COUNT ( * ) ) * + COUNT ( * ) * - - 25 col1, + 30
----
25
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT - 57 + - ( - COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-3672
SELECT - 57 + - ( - COUNT ( * ) )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3673
SELECT ALL SUM( DISTINCT - - 2 ) AS col0, + CAST( NULL AS SIGNED ) AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-3673
SELECT ALL SUM ( DISTINCT - - 2 ) AS col0, + CAST ( NULL AS INTEGER ) AS col1
----
2
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT DISTINCT + 26 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + 26 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT ALL + CAST( 5 AS SIGNED ) * 58 col2
----
290

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL + CAST ( 5 AS INTEGER ) * 58 col2
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT - 10 * + MAX( + + 18 )
----
-180

skipif mysql # not compatible
query I rowsort label-3676
SELECT - 10 * + MAX ( + + 18 )
----
-180

query I rowsort
SELECT ALL + 45 * + + 48 * + 39 AS col2
----
84240

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT + COALESCE ( + + MAX( ALL ( + + ( - - 71 ) ) ), - COUNT( * ), + 53, + COUNT( * ) ) * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + COALESCE ( + + MAX ( ALL ( + + ( - - 71 ) ) ), - COUNT ( * ), + 53, + COUNT ( * ) ) * - COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT + MAX( DISTINCT - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT + MAX ( DISTINCT - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT DISTINCT + + MAX( ALL - ( 63 ) ) * + 24
----
-1512

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + + MAX ( ALL - ( 63 ) ) * + 24
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT - - 28 * + 65 + MIN( 10 ) AS col2
----
1830

skipif mysql # not compatible
query I rowsort label-3681
SELECT - - 28 * + 65 + MIN ( 10 ) AS col2
----
1830

onlyif mysql # aggregate syntax: 
query II rowsort label-3682
SELECT ALL + - SUM( - 50 ), MIN( ALL + 76 ) * 10 + 90 AS col2
----
50
850

skipif mysql # not compatible
query II rowsort label-3682
SELECT ALL + - SUM ( - 50 ), MIN ( ALL + 76 ) * 10 + 90 AS col2
----
50
850

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3683
SELECT ALL COUNT( * ) * + ( 68 ) * - - 21 - - - COUNT( * ) + 58 + - 84 * - 39 AS col2, COALESCE ( COUNT( * ), 36, + 53 DIV - COUNT( * ) * 66 * + - 61 )
----
4761
1

skipif mysql # not compatible
query II rowsort label-3683
SELECT ALL COUNT ( * ) * + ( 68 ) * - - 21 - - - COUNT ( * ) + 58 + - 84 * - 39 AS col2, COALESCE ( COUNT ( * ), 36, + 53 / - COUNT ( * ) * 66 * + - 61 )
----
4761
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + - MAX( 93 ) / - CASE - - 40 WHEN - 76 THEN 52 WHEN 34 THEN 63 + + 93 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT + - MAX ( 93 ) / - CASE - - 40 WHEN - 76 THEN 52 WHEN 34 THEN 63 + + 93 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL - COUNT( + - 40 ) * - NULLIF ( 44, - 72 * - 94 / 99 ) + + ( + 90 )
----
134

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL - COUNT ( + - 40 ) * - NULLIF ( 44, - 72 * - 94 / 99 ) + + ( + 90 )
----
134

query I rowsort
SELECT - 97 * - 55 * - NULLIF ( 88, 56 ) col1
----
-469480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3687
SELECT ALL COUNT( * ) * + + 12 + + CAST( NULL AS SIGNED ), 64 AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-3687
SELECT ALL COUNT ( * ) * + + 12 + + CAST ( NULL AS INTEGER ), 64 AS col0
----
NULL
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT ALL + 91 * - 70 + - 3 DIV + 74 + + 99 DIV + 9
----
-6359

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + 91 * - 70 + - 3 / + 74 + + 99 / + 9
----
-6359

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL + + CASE COUNT( * ) WHEN - 70 THEN - + 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL + + CASE COUNT ( * ) WHEN - 70 THEN - + 28 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 41 * + 68 + - 64 AS col2
----
2724

onlyif mysql # aggregate syntax: 
query II rowsort label-3691
SELECT ALL + SUM( DISTINCT 3 ), - 70 AS col2
----
3
-70

skipif mysql # not compatible
query II rowsort label-3691
SELECT ALL + SUM ( DISTINCT 3 ), - 70 AS col2
----
3
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT 21 * + SUM( DISTINCT - - 25 ) AS col0
----
525

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT 21 * + SUM ( DISTINCT - - 25 ) AS col0
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT DISTINCT + - 95 * ( + SUM( ALL - 49 ) ) + - 70 * - 76 AS col0
----
9975

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT + - 95 * ( + SUM ( ALL - 49 ) ) + - 70 * - 76 AS col0
----
9975

query I rowsort
SELECT ALL - 97 * + 9 + + + 2 col2
----
-871

query I rowsort
SELECT + 94 + - 72 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT MAX( + 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-3696
SELECT MAX ( + 60 ) col2
----
60

query II rowsort
SELECT DISTINCT + 59 col1, - 64 * + 97
----
59
-6208

query II rowsort
SELECT + 9 * - 95 * - 68 + - 90 AS col1, + 42 + 12 col1
----
58050
54

query I rowsort
SELECT + 76 - + 25
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL CASE - ( - 98 ) WHEN NULLIF ( + + COUNT( * ), - 40 ) + - + 40 THEN + - MIN( ALL + - 31 ) ELSE NULL END / 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL CASE - ( - 98 ) WHEN NULLIF ( + + COUNT ( * ), - 40 ) + - + 40 THEN + - MIN ( ALL + - 31 ) ELSE NULL END / 87 AS col1
----
NULL

query I rowsort
SELECT + 88 * 99 AS col0
----
8712

query I rowsort
SELECT - 52 - 18 col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL + COUNT( * ) * + - COUNT( * ) - 72 * + ( + 19 ) - 87 + 95 AS col1
----
-1361

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) - 72 * + ( + 19 ) - 87 + 95 AS col1
----
-1361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3704
SELECT DISTINCT ( + 91 ) * + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT ( + 91 ) * + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3705
SELECT ALL COUNT( * ) col2, 64 / - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3705
SELECT ALL COUNT ( * ) col2, 64 / - CAST ( NULL AS INTEGER )
----
1
NULL

query II rowsort
SELECT DISTINCT 42 AS col0, + 44
----
42
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT DISTINCT ( COUNT( * ) ) * - 4
----
-4

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT ( COUNT ( * ) ) * - 4
----
-4

query I rowsort
SELECT DISTINCT 81 * 25
----
2025

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT + 4 DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-3709
SELECT + 4 / + + 94
----
0

query I rowsort
SELECT + 22 + - 39
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT + 74 DIV - + 55
----
-1

skipif mysql # not compatible
query I rowsort label-3711
SELECT + 74 / - + 55
----
-1

query I rowsort
SELECT - 80 * 40 AS col1
----
-3200

onlyif mysql # aggregate syntax: 
query II rowsort label-3713
SELECT + 91 - - COUNT( * ) * + 62, + NULLIF ( - 81, - 17 * + 3 * COUNT( * ) + 75 / - + CASE - + 10 WHEN - - 83 THEN NULL WHEN - 88 THEN NULLIF ( + ( - - 56 ), - 65 ) + - 91 ELSE NULL END * + NULLIF ( - 69, - 20 ) ) * + + CASE - 6 WHEN + - 82 * - + 51 THEN 59 ELSE NULL END * - + COUNT( * ) AS col1
----
153
NULL

skipif mysql # not compatible
query II rowsort label-3713
SELECT + 91 - - COUNT ( * ) * + 62, + NULLIF ( - 81, - 17 * + 3 * COUNT ( * ) + 75 / - + CASE - + 10 WHEN - - 83 THEN NULL WHEN - 88 THEN NULLIF ( + ( - - 56 ), - 65 ) + - 91 ELSE NULL END * + NULLIF ( - 69, - 20 ) ) * + + CASE - 6 WHEN + - 82 * - + 51 THEN 59 ELSE NULL END * - + COUNT ( * ) AS col1
----
153
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3714
SELECT - 70, + 34 * 36 - + + 34 + MAX( ALL + - 96 ) AS col1
----
-70
1094

skipif mysql # not compatible
query II rowsort label-3714
SELECT - 70, + 34 * 36 - + + 34 + MAX ( ALL + - 96 ) AS col1
----
-70
1094

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL COUNT( DISTINCT - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL COUNT ( DISTINCT - 63 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3716
SELECT ALL + 14 + - - CAST( 26 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL + 14 + - - CAST ( 26 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT - SUM( ALL - 93 ) + 22 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-3717
SELECT - SUM ( ALL - 93 ) + 22 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL COUNT( ALL - - 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL COUNT ( ALL - - 75 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3719
SELECT ALL - - 81 + + + COUNT( - - CAST( NULL AS SIGNED ) )
----
81

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL - - 81 + + + COUNT ( - - CAST ( NULL AS INTEGER ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT - + 57 + CAST( - 90 AS SIGNED ) / CASE - + 34 WHEN - 93 THEN 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT - + 57 + CAST ( - 90 AS INTEGER ) / CASE - + 34 WHEN - 93 THEN 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT - COUNT( * ) + - - 24 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT - COUNT ( * ) + - - 24 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL + - SUM( ( + 8 ) ) + - 25
----
-33

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + - SUM ( ( + 8 ) ) + - 25
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3723
SELECT DISTINCT + + ( - 6 ) * 41 * - COUNT( * ) * + 13 * + 20, 95 AS col2
----
63960
95

skipif mysql # not compatible
query II rowsort label-3723
SELECT DISTINCT + + ( - 6 ) * 41 * - COUNT ( * ) * + 13 * + 20, 95 AS col2
----
63960
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT SUM( + 6 ) * 43 * COUNT( * ) * - + COUNT( * ) - ( - 78 ) * + 64
----
4734

skipif mysql # not compatible
query I rowsort label-3724
SELECT SUM ( + 6 ) * 43 * COUNT ( * ) * - + COUNT ( * ) - ( - 78 ) * + 64
----
4734

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3725
SELECT + 85 / - ( - + 63 ) + + - MIN( + CAST( NULL AS DECIMAL ) ) - - - CASE + - 21 WHEN - 39 + - 72 + + + 87 + - 22 * + 38 THEN NULL WHEN - 30 - + - 34 - - 71 THEN + ( + 85 ) END + + + 11 + + ( + COUNT( * ) ) + - 12 * + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT + 85 / - ( - + 63 ) + + - MIN ( + CAST ( NULL AS REAL ) ) - - - CASE + - 21 WHEN - 39 + - 72 + + + 87 + - 22 * + 38 THEN NULL WHEN - 30 - + - 34 - - 71 THEN + ( + 85 ) END + + + 11 + + ( + COUNT ( * ) ) + - 12 * + + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3726
SELECT ALL - 44 DIV - COUNT( * ) + - + 41 * 99
----
-4015

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL - 44 / - COUNT ( * ) + - + 41 * 99
----
-4015

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - MAX( ALL 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-3727
SELECT - MAX ( ALL 34 )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT + - 80 * + 10 + + 70 DIV - 85 col0
----
-800

skipif mysql # not compatible
query I rowsort label-3728
SELECT + - 80 * + 10 + + 70 / - 85 col0
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ALL - CASE - + 28 WHEN - 95 THEN - 43 + + - 60 * + + 36 END * - COALESCE ( 76, + 9 ) + + MIN( + - 9 ) * + 10 + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL - CASE - + 28 WHEN - 95 THEN - 43 + + - 60 * + + 36 END * - COALESCE ( 76, + 9 ) + + MIN ( + - 9 ) * + 10 + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT - - 81 + + - 1 + SUM( ALL 0 ), 44 AS col2
----
80
44

skipif mysql # not compatible
query II rowsort label-3730
SELECT - - 81 + + - 1 + SUM ( ALL 0 ), 44 AS col2
----
80
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL 97 / + ( - + COUNT( * ) ) + 85 - CASE + + 99 WHEN + ( + 22 ) THEN NULL WHEN - - 48 * + - 21 THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL 97 / + ( - + COUNT ( * ) ) + 85 - CASE + + 99 WHEN + ( + 22 ) THEN NULL WHEN - - 48 * + - 21 THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + - SUM( DISTINCT - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + - SUM ( DISTINCT - 21 )
----
21

query II rowsort
SELECT + 73 AS col2, + 55 + + 9 * + + 8 + + 67
----
73
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3734
SELECT ALL - + 52 / + 58 - - + 72 + - + 8 + - + 54 / - 76 * + + CAST( NULL AS SIGNED ) * - 44 col1, NULLIF ( + 14, + + 58 * 70 * - ( - 33 ) ) - - - SUM( + 51 ) AS col1
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-3734
SELECT ALL - + 52 / + 58 - - + 72 + - + 8 + - + 54 / - 76 * + + CAST ( NULL AS INTEGER ) * - 44 col1, NULLIF ( + 14, + + 58 * 70 * - ( - 33 ) ) - - - SUM ( + 51 ) AS col1
----
NULL
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT ALL - 84 DIV - + 16 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - 84 / - + 16 AS col0
----
5

query I rowsort
SELECT - 98 * 93 AS col1
----
-9114

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT 53 * COUNT( * ) + + 30 + - + 34 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3737
SELECT 53 * COUNT ( * ) + + 30 + - + 34 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL 82 * 53 * + COUNT( * ) AS col1
----
4346

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL 82 * 53 * + COUNT ( * ) AS col1
----
4346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3739
SELECT DISTINCT COALESCE ( - 81, - + 38 DIV COUNT( * ) ) * + 58 col1
----
-4698

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT COALESCE ( - 81, - + 38 / COUNT ( * ) ) * + 58 col1
----
-4698

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT ( + 45 ) + + COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3740
SELECT ( + 45 ) + + COUNT ( * ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT COUNT( * ) * - - 42 col2
----
42

skipif mysql # not compatible
query I rowsort label-3741
SELECT COUNT ( * ) * - - 42 col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT ALL - MIN( 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL - MIN ( 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3744
SELECT 44 * - 24 * + NULLIF ( - CAST( 10 AS SIGNED ), + ( - 39 ) + + 28 / + 87 * - + 39 ) + + CASE + 4 WHEN - 8 THEN NULL ELSE - COUNT( * ) END * + SUM( 0 )
----
10560

skipif mysql # not compatible
query I rowsort label-3744
SELECT 44 * - 24 * + NULLIF ( - CAST ( 10 AS INTEGER ), + ( - 39 ) + + 28 / + 87 * - + 39 ) + + CASE + 4 WHEN - 8 THEN NULL ELSE - COUNT ( * ) END * + SUM ( 0 )
----
10560

query II rowsort
SELECT ALL + 53 * 17 col0, - 68 AS col1
----
901
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT - 30 * + 89 + - COUNT( * ) DIV + 66
----
-2670

skipif mysql # not compatible
query I rowsort label-3746
SELECT - 30 * + 89 + - COUNT ( * ) / + 66
----
-2670

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT ALL ( CASE - 51 WHEN 64 THEN - 63 WHEN - 27 + + - COUNT( * ) - + + 92 * - 84 / + 39 THEN 4 / + 31 * - ( - + 59 ) * + COUNT( * ) - - - 2 + + - COUNT( * ) WHEN - + 55 THEN NULL END ) * 72 / - NULLIF ( 95, - 75 + + NULLIF ( - - 45, COUNT( * ) ) ) AS col0, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3747
SELECT ALL ( CASE - 51 WHEN 64 THEN - 63 WHEN - 27 + + - COUNT ( * ) - + + 92 * - 84 / + 39 THEN 4 / + 31 * - ( - + 59 ) * + COUNT ( * ) - - - 2 + + - COUNT ( * ) WHEN - + 55 THEN NULL END ) * 72 / - NULLIF ( 95, - 75 + + NULLIF ( - - 45, COUNT ( * ) ) ) AS col0, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT 26 * + 72 col2
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT 61 + + + CASE + 26 WHEN - 18 THEN + 27 * + SUM( DISTINCT + - 15 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT 61 + + + CASE + 26 WHEN - 18 THEN + 27 * + SUM ( DISTINCT + - 15 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT DISTINCT 27 DIV 10 DIV + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT 27 / 10 / + 41 AS col2
----
0

query I rowsort
SELECT ALL 62 + - - 41
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT 51 + 2 - - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-3752
SELECT 51 + 2 - - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT 74 + - COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT 74 + - COUNT ( * ) AS col1
----
73

query I rowsort
SELECT ( 54 ) + 12 AS col0
----
66

query II rowsort
SELECT ALL 69 + - - 97, ( 95 ) + 10 AS col0
----
166
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL MAX( DISTINCT 58 ) + - - 43 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL MAX ( DISTINCT 58 ) + - - 43 AS col1
----
101

query I rowsort
SELECT + 36 + + 11
----
47

query I rowsort
SELECT ALL - 40 + - 85 + + 82 + + 79 * - - 87
----
6830

query I rowsort
SELECT 40 * + + 63 * - 62 AS col0
----
-156240

query I rowsort
SELECT DISTINCT - 38 - - 72
----
34

query I rowsort
SELECT DISTINCT + 57 - 71
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-3762
SELECT ALL - 99 * + ( - 92 ) * - + 16 * + + 88 + + COUNT( * ) + - - 71 - - 43 + + 50, 33 + COUNT( ALL + ( 14 ) ) AS col0
----
-12823899
34

skipif mysql # not compatible
query II rowsort label-3762
SELECT ALL - 99 * + ( - 92 ) * - + 16 * + + 88 + + COUNT ( * ) + - - 71 - - 43 + + 50, 33 + COUNT ( ALL + ( 14 ) ) AS col0
----
-12823899
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL - 55 * - - 63 + MIN( ALL 73 ) - + + 53 + + 67 AS col0
----
-3378

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - 55 * - - 63 + MIN ( ALL 73 ) - + + 53 + + 67 AS col0
----
-3378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3764
SELECT 50 * + 84 / + 90 + - - CAST( NULL AS SIGNED ) * + + 55 * + SUM( DISTINCT + + 4 ) + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT 50 * + 84 / + 90 + - - CAST ( NULL AS INTEGER ) * + + 55 * + SUM ( DISTINCT + + 4 ) + - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL - 39 * + COUNT( DISTINCT - 87 ) * - 19
----
741

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - 39 * + COUNT ( DISTINCT - 87 ) * - 19
----
741

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3766
SELECT + + ( - - CAST( NULL AS DECIMAL ) ) * - + 60 + + 75 + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT + + ( - - CAST ( NULL AS REAL ) ) * - + 60 + + 75 + 73
----
NULL

query I rowsort
SELECT DISTINCT - 6 * + 73
----
-438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT ALL - CAST( - 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - CAST ( - 79 AS INTEGER ) AS col1
----
79

query I rowsort
SELECT 20 - + 44
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT ALL 28 DIV - + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL 28 / - + 89 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3771
SELECT 16 AS col0, 71 DIV + + 71
----
16
1

skipif mysql # not compatible
query II rowsort label-3771
SELECT 16 AS col0, 71 / + + 71
----
16
1

query I rowsort
SELECT 20 + CASE 21 WHEN + - 86 THEN - 42 * 79 * - - AVG ( + 98 ) END * - - 35 - - ( 58 ) / - 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3773
SELECT 26 DIV + + CAST( - ( + 30 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3773
SELECT 26 / + + CAST ( - ( + 30 ) AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3774
SELECT - 3, - 66 DIV 2 * + ( + + 24 ) * - 41 AS col1
----
-3
32472

skipif mysql # not compatible
query II rowsort label-3774
SELECT - 3, - 66 / 2 * + ( + + 24 ) * - 41 AS col1
----
-3
32472

query I rowsort
SELECT 71 * + + 45 AS col2
----
3195

query I rowsort
SELECT ALL 62 + + 4
----
66

query I rowsort
SELECT ALL 21 + 76 col2
----
97

query I rowsort
SELECT 55 + + 57 + + + 31 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL - COUNT( * ) * 52
----
-52

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL - COUNT ( * ) * 52
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT DISTINCT - 5 * - - CASE - 54 WHEN - CAST( NULL AS SIGNED ) THEN + 56 * + 19 * + 50 WHEN 13 + + + 6 THEN - 7 ELSE NULL END * 54 * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - 5 * - - CASE - 54 WHEN - CAST ( NULL AS INTEGER ) THEN + 56 * + 19 * + 50 WHEN 13 + + + 6 THEN - 7 ELSE NULL END * 54 * + 14
----
NULL

query I rowsort
SELECT 41 + + - 11
----
30

query I rowsort
SELECT - - ( + 81 )
----
81

query I rowsort
SELECT + 37 + - 78 AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3784
SELECT DISTINCT 23 col2, CAST( 69 AS SIGNED )
----
23
69

skipif mysql # not compatible
query II rowsort label-3784
SELECT DISTINCT 23 col2, CAST ( 69 AS INTEGER )
----
23
69

query I rowsort
SELECT ALL 3 - + 14
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT + MIN( DISTINCT 72 )
----
72

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT + MIN ( DISTINCT 72 )
----
72

query I rowsort
SELECT - 86 + - + 85
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL - NULLIF ( - 94, + COUNT( * ) * + 68 + + 90 ) - 86
----
8

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL - NULLIF ( - 94, + COUNT ( * ) * + 68 + + 90 ) - 86
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT ALL 60 DIV - + 55 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL 60 / - + 55 col0
----
-1

query I rowsort
SELECT - 0 + - 64 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL + COUNT( * ) - + + 23 col0
----
-22

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + COUNT ( * ) - + + 23 col0
----
-22

query I rowsort
SELECT DISTINCT + ( + 65 ) * + 96
----
6240

query I rowsort
SELECT ALL ( - 32 ) AS col1
----
-32

query II rowsort
SELECT + 53 + + 10 - 53 AS col0, + 7 + + 71 AS col2
----
10
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3795
SELECT + 57 * + COUNT( * ) DIV COALESCE ( - - MIN( + - 75 ), - + COALESCE ( - 98, - 76 ) * - 32 ) * + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT + 57 * + COUNT ( * ) / COALESCE ( - - MIN ( + - 75 ), - + COALESCE ( - 98, - 76 ) * - 32 ) * + 69 AS col0
----
0

query I rowsort
SELECT + + 90 * - 74
----
-6660

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + + CASE - 55 WHEN - - 17 THEN 61 WHEN 0 / COUNT( * ) THEN NULL ELSE NULL END + + 13 / + ( 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT + + CASE - 55 WHEN - - 17 THEN 61 WHEN 0 / COUNT ( * ) THEN NULL ELSE NULL END + + 13 / + ( 32 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3798
SELECT 4 * - 24 / + 78 / 18 * 92 + - ( 45 ) * - CAST( NULL AS DECIMAL ) AS col0, 48 AS col0
----
NULL
48

skipif mysql # not compatible
query II rowsort label-3798
SELECT 4 * - 24 / + 78 / 18 * 92 + - ( 45 ) * - CAST ( NULL AS REAL ) AS col0, 48 AS col0
----
NULL
48

query II rowsort
SELECT + + ( + - 23 ) * - + 34, - 42 AS col2
----
782
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3800
SELECT ALL + + 42 DIV + - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL + + 42 / + - 45 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT 90 DIV 3 + + + 16
----
46

skipif mysql # not compatible
query I rowsort label-3801
SELECT 90 / 3 + + + 16
----
46

query I rowsort
SELECT - 17 + 20 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3803
SELECT COALESCE ( 94, + ( - 48 ) DIV - 80 DIV 27, CASE + 8 WHEN - - 97 * - + SUM( - 28 ) + 62 THEN + + 15 * - 20 - + 89 * - 94 + - 72 WHEN + 58 * - 76 THEN NULL ELSE NULL END * + - 3 * + 38 )
----
94

skipif mysql # not compatible
query I rowsort label-3803
SELECT COALESCE ( 94, + ( - 48 ) / - 80 / 27, CASE + 8 WHEN - - 97 * - + SUM ( - 28 ) + 62 THEN + + 15 * - 20 - + 89 * - 94 + - 72 WHEN + 58 * - 76 THEN NULL ELSE NULL END * + - 3 * + 38 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3804
SELECT DISTINCT - CAST( 25 AS SIGNED ) * + 99 + - + COUNT( ALL 78 ) DIV - + COUNT( * )
----
-2474

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT - CAST ( 25 AS INTEGER ) * + 99 + - + COUNT ( ALL 78 ) / - + COUNT ( * )
----
-2474

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT 9 * - MIN( - - 89 ) + - + COUNT( * ) AS col0
----
-802

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT 9 * - MIN ( - - 89 ) + - + COUNT ( * ) AS col0
----
-802

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + NULLIF ( + - 47, + 92 * - NULLIF ( 89, + 81 ) - - - 80 - + COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-3806
SELECT + NULLIF ( + - 47, + 92 * - NULLIF ( 89, + 81 ) - - - 80 - + COUNT ( * ) )
----
-47

query I rowsort
SELECT DISTINCT - 37 * + 45 + 30 AS col1
----
-1635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3808
SELECT + CASE - ( 28 ) WHEN 67 THEN + 88 + + - 48 + - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT + CASE - ( 28 ) WHEN 67 THEN + 88 + + - 48 + - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT + 57 * + + 36 AS col0
----
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT COUNT( * ) * - 66 + - 33 + 91
----
-8

skipif mysql # not compatible
query I rowsort label-3810
SELECT COUNT ( * ) * - 66 + - 33 + 91
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT COUNT( * ), - 26 AS col2
----
1
-26

skipif mysql # not compatible
query II rowsort label-3811
SELECT COUNT ( * ), - 26 AS col2
----
1
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT DISTINCT ( + 86 ) * - 74 + + NULLIF ( - COUNT( * ), - 72 ) - 34 AS col1
----
-6399

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT ( + 86 ) * - 74 + + NULLIF ( - COUNT ( * ), - 72 ) - 34 AS col1
----
-6399

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL 27 * + COUNT( * ) * 82 + + + ( 80 ) * - CASE + 19 WHEN - - 1 THEN - 43 * - 40 ELSE NULL END + MIN( DISTINCT - + ( + - 68 ) ) + + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL 27 * + COUNT ( * ) * 82 + + + ( 80 ) * - CASE + 19 WHEN - - 1 THEN - 43 * - 40 ELSE NULL END + MIN ( DISTINCT - + ( + - 68 ) ) + + 15 AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + - ( 32 ), - 18 ) AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT DISTINCT + COUNT( * ) DIV 3
----
0

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT + COUNT ( * ) / 3
----
0

query I rowsort
SELECT ALL + 64 + - ( + 35 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT - MAX( ALL 58 ) * - 54 AS col0
----
3132

skipif mysql # not compatible
query I rowsort label-3817
SELECT - MAX ( ALL 58 ) * - 54 AS col0
----
3132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3818
SELECT - 68 - 66 * - COUNT( + + 77 ) + + 19 + - + 39 / + 94 * - 63 + - ( - + ( + - 86 ) ) * ( - 48 ) * + 36 * - CASE + - 89 WHEN COUNT( * ) THEN - ( 3 ) / 83 - - 90 WHEN + ( 51 ) + + - 7 THEN - - CASE + - COUNT( + 59 ) WHEN CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN 76 THEN 86 + - 68 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT - 68 - 66 * - COUNT ( + + 77 ) + + 19 + - + 39 / + 94 * - 63 + - ( - + ( + - 86 ) ) * ( - 48 ) * + 36 * - CASE + - 89 WHEN COUNT ( * ) THEN - ( 3 ) / 83 - - 90 WHEN + ( 51 ) + + - 7 THEN - - CASE + - COUNT ( + 59 ) WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN 76 THEN 86 + - 68 ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3819
SELECT ALL + 57 AS col1, MAX( - 74 ) col1
----
57
-74

skipif mysql # not compatible
query II rowsort label-3819
SELECT ALL + 57 AS col1, MAX ( - 74 ) col1
----
57
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT - COUNT( * ) * + COUNT( * ) * - COUNT( * ) * - 44 - + 12 col0
----
-56

skipif mysql # not compatible
query I rowsort label-3820
SELECT - COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) * - 44 - + 12 col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3821
SELECT + CAST( NULL AS SIGNED ) + - - 59 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT + CAST ( NULL AS INTEGER ) + - - 59 + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 70 * - 51 * + 77 AS col2
----
274890

onlyif mysql # aggregate syntax: 
query II rowsort label-3823
SELECT - 23 AS col2, COUNT( * ) AS col2
----
-23
1

skipif mysql # not compatible
query II rowsort label-3823
SELECT - 23 AS col2, COUNT ( * ) AS col2
----
-23
1

query I rowsort
SELECT - + 43 + 16
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT - COUNT( - 27 ) - + 39 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3825
SELECT - COUNT ( - 27 ) - + 39 AS col2
----
-40

query II rowsort
SELECT ALL 46 AS col0, + 5
----
46
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL - + ( + 27 ) * + 39 * + COUNT( * ) AS col2
----
-1053

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL - + ( + 27 ) * + 39 * + COUNT ( * ) AS col2
----
-1053

onlyif mysql # DIV for integer division: 
query I rowsort label-3828
SELECT + COALESCE ( 73, - 15 DIV - 18 + 98 + - 40, 18 ) + + ( + 20 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3828
SELECT + COALESCE ( 73, - 15 / - 18 + 98 + - 40, 18 ) + + ( + 20 ) AS col0
----
93

query II rowsort
SELECT DISTINCT 2 col1, 53 col0
----
2
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT + COUNT( * ) + + NULLIF ( 80, COUNT( DISTINCT - + 74 ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3830
SELECT + COUNT ( * ) + + NULLIF ( 80, COUNT ( DISTINCT - + 74 ) ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ALL MAX( DISTINCT - - 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL MAX ( DISTINCT - - 63 ) AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT - CAST( - 8 AS SIGNED ) * - 80
----
-640

skipif mysql # not compatible
query I rowsort label-3832
SELECT - CAST ( - 8 AS INTEGER ) * - 80
----
-640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3833
SELECT - - 17 DIV + ( 75 ) - + - 40 * CASE COUNT( ALL - COALESCE ( + 93, + ( - + 76 ) ) ) WHEN - 43 DIV - - 19 + - 81 THEN + CASE - CAST( NULL AS SIGNED ) WHEN ( - 78 ) + 66 + - 79 THEN NULL ELSE - - 94 DIV COUNT( * ) END * - - 98 + 48 + - 20 WHEN - SUM( DISTINCT + - 44 ) * + - 0 * 40 + - 55 THEN + 26 + + + 69 ELSE - MAX( ALL + ( + 39 ) ) END
----
-1560

skipif mysql # not compatible
query I rowsort label-3833
SELECT - - 17 / + ( 75 ) - + - 40 * CASE COUNT ( ALL - COALESCE ( + 93, + ( - + 76 ) ) ) WHEN - 43 / - - 19 + - 81 THEN + CASE - CAST ( NULL AS INTEGER ) WHEN ( - 78 ) + 66 + - 79 THEN NULL ELSE - - 94 / COUNT ( * ) END * - - 98 + 48 + - 20 WHEN - SUM ( DISTINCT + - 44 ) * + - 0 * 40 + - 55 THEN + 26 + + + 69 ELSE - MAX ( ALL + ( + 39 ) ) END
----
-1560

query II rowsort
SELECT 25, - 65 * + + 28 AS col2
----
25
-1820

onlyif mysql # aggregate syntax: 
query II rowsort label-3835
SELECT ALL 92, SUM( - 63 ) AS col0
----
92
-63

skipif mysql # not compatible
query II rowsort label-3835
SELECT ALL 92, SUM ( - 63 ) AS col0
----
92
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3836
SELECT ALL - 30 DIV COUNT( + - 8 ) * - ( + + 59 ) * + 24 + 64 + - - 85 + - + COUNT( * ) AS col2
----
42628

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL - 30 / COUNT ( + - 8 ) * - ( + + 59 ) * + 24 + 64 + - - 85 + - + COUNT ( * ) AS col2
----
42628

query I rowsort
SELECT + ( + + 49 ) AS col1
----
49

query I rowsort
SELECT + ( + + 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3839
SELECT ALL ( - 37 ) * COUNT( * ) AS col2, + COALESCE ( + - ( 78 ), + - COUNT( * ) - + 20 - + MAX( DISTINCT + 83 ) * 77 ) AS col2
----
-37
-78

skipif mysql # not compatible
query II rowsort label-3839
SELECT ALL ( - 37 ) * COUNT ( * ) AS col2, + COALESCE ( + - ( 78 ), + - COUNT ( * ) - + 20 - + MAX ( DISTINCT + 83 ) * 77 ) AS col2
----
-37
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT 95 * COUNT( * ) + - + ( + - 79 ) AS col1
----
174

skipif mysql # not compatible
query I rowsort label-3840
SELECT 95 * COUNT ( * ) + - + ( + - 79 ) AS col1
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT ALL + 27 / + CAST( NULL AS SIGNED ) * - 88 + - + MAX( + 89 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL + 27 / + CAST ( NULL AS INTEGER ) * - 88 + - + MAX ( + 89 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3842
SELECT - 17 DIV 26 + - 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3842
SELECT - 17 / 26 + - 16 AS col0
----
-16

query I rowsort
SELECT - ( + + 61 ) * - 55
----
3355

onlyif mysql # aggregate syntax: 
query II rowsort label-3844
SELECT ( + 46 ) AS col0, - COUNT( * ) col1
----
46
-1

skipif mysql # not compatible
query II rowsort label-3844
SELECT ( + 46 ) AS col0, - COUNT ( * ) col1
----
46
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL MAX( ALL + 16 ) * + 67 AS col2
----
1072

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL MAX ( ALL + 16 ) * + 67 AS col2
----
1072

query I rowsort
SELECT + COALESCE ( + 80, - 53 ) - 62
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT + 17 * - 28 + - ( + SUM( + + 34 ) ) * - 43 AS col1
----
986

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT + 17 * - 28 + - ( + SUM ( + + 34 ) ) * - 43 AS col1
----
986

query I rowsort
SELECT ALL 85 * - 14 + + - 72
----
-1262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT - 80 + - + 28 * 94 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT - 80 + - + 28 * 94 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 92 + + 67 AS col2, 68
----
159
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT CASE - 43 WHEN - + 78 + + - 48 + + COUNT( * ) * + ( 61 ) THEN + 43 + + + 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT CASE - 43 WHEN - + 78 + + - 48 + + COUNT ( * ) * + ( 61 ) THEN + 43 + + + 62 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 60 * 23 AS col2, 73 col0
----
1380
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3853
SELECT COALESCE ( + 74, + 11 DIV 25 * + 3 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3853
SELECT COALESCE ( + 74, + 11 / 25 * + 3 ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT - + 89 * - - CAST( NULL AS SIGNED ) - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT - + 89 * - - CAST ( NULL AS INTEGER ) - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT - - 14 + - + COUNT( * ) + - 91 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3855
SELECT - - 14 + - + COUNT ( * ) + - 91 AS col1
----
-78

query I rowsort
SELECT - 21 + 34 col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT COUNT( * ) + - - 70 AS col2, - 86 AS col0
----
71
-86

skipif mysql # not compatible
query II rowsort label-3857
SELECT COUNT ( * ) + - - 70 AS col2, - 86 AS col0
----
71
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT ALL + 68 DIV + + 29 + - + 27 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL + 68 / + + 29 + - + 27 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3859
SELECT - 48 + + + COUNT( * ) * 25 DIV 88 + + - 74 DIV - - 18 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3859
SELECT - 48 + + + COUNT ( * ) * 25 / 88 + + - 74 / - - 18 AS col1
----
-52

query I rowsort
SELECT 7 * 6 + - - 45 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3861
SELECT ALL + 76 + COUNT( * ) + - - 1 * - CAST( - - ( - - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + 76 + COUNT ( * ) + - - 1 * - CAST ( - - ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT + 71 + - + MAX( DISTINCT 69 ) * 32
----
-2137

skipif mysql # not compatible
query I rowsort label-3862
SELECT + 71 + - + MAX ( DISTINCT 69 ) * 32
----
-2137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3863
SELECT DISTINCT + - 21 + CAST( - ( 47 ) AS SIGNED ) + - NULLIF ( NULLIF ( + - 20, + 96 ), + 80 * + 38 * - 62 - + NULLIF ( + + COUNT( * ), - + COUNT( * ) * 40 * + MIN( DISTINCT - + 66 ) / + + 72 + 86 ) - 31 + 67 * + - COUNT( * ) * - COUNT( * ) ) + + CASE - 44 WHEN - 47 / - ( MAX( ALL + 79 ) ) THEN COUNT( * ) WHEN 55 * + + 17 * + 89 * + - 78 - - 53 + + 31 * - + 3 THEN NULL ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT + - 21 + CAST ( - ( 47 ) AS INTEGER ) + - NULLIF ( NULLIF ( + - 20, + 96 ), + 80 * + 38 * - 62 - + NULLIF ( + + COUNT ( * ), - + COUNT ( * ) * 40 * + MIN ( DISTINCT - + 66 ) / + + 72 + 86 ) - 31 + 67 * + - COUNT ( * ) * - COUNT ( * ) ) + + CASE - 44 WHEN - 47 / - ( MAX ( ALL + 79 ) ) THEN COUNT ( * ) WHEN 55 * + + 17 * + 89 * + - 78 - - 53 + + 31 * - + 3 THEN NULL ELSE NULL END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3864
SELECT ALL - 27 + + - 33 / + ( - CAST( NULL AS SIGNED ) ) + MIN( + - CAST( + COALESCE ( - 65, + 60 + + + 62 + + 63 * - 90, - COALESCE ( + - 3, CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * NULLIF ( + 30, - 30 ), + - ( - + 77 ) ) ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - 27 + + - 33 / + ( - CAST ( NULL AS INTEGER ) ) + MIN ( + - CAST ( + COALESCE ( - 65, + 60 + + + 62 + + 63 * - 90, - COALESCE ( + - 3, CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * NULLIF ( + 30, - 30 ), + - ( - + 77 ) ) ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 98 + - 55 AS col1
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT DISTINCT + SUM( ALL + ( - 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT + SUM ( ALL + ( - 11 ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT - NULLIF ( - - 17, + - 87 * - + 88 ) + - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-3867
SELECT - NULLIF ( - - 17, + - 87 * - + 88 ) + - COUNT ( * )
----
-18

query I rowsort
SELECT 10 + - 67 + - - 60
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT ALL + ( + ( 82 ) ) + + 3 + - + CAST( - + 8 AS SIGNED ) * 20 * - 58 * - 13 AS col0
----
120725

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + ( + ( 82 ) ) + + 3 + - + CAST ( - + 8 AS INTEGER ) * 20 * - 58 * - 13 AS col0
----
120725

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT 20 + 6 + 9 * - CASE - - AVG ( 75 ) WHEN 47 THEN + MAX( DISTINCT 1 ) WHEN - - 26 THEN NULL ELSE NULL END * - 47 * + + 55 * - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT 20 + 6 + 9 * - CASE - - AVG ( 75 ) WHEN 47 THEN + MAX ( DISTINCT 1 ) WHEN - - 26 THEN NULL ELSE NULL END * - 47 * + + 55 * - + 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT + 51 DIV + + 3 + + NULLIF ( - 32, - - 5 + - 55 )
----
-15

skipif mysql # not compatible
query I rowsort label-3871
SELECT + 51 / + + 3 + + NULLIF ( - 32, - - 5 + - 55 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT DISTINCT CAST( NULL AS SIGNED ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 47
----
NULL

query II rowsort
SELECT ALL 46 + 13 * + 39, - 26 AS col0
----
553
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT - 88 * - - 74 + - + MAX( ALL + - 48 ) AS col1
----
-6464

skipif mysql # not compatible
query I rowsort label-3874
SELECT - 88 * - - 74 + - + MAX ( ALL + - 48 ) AS col1
----
-6464

query II rowsort
SELECT DISTINCT 63 * - 13 * - 28, ( + 74 ) * 65 AS col2
----
22932
4810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3876
SELECT DISTINCT + ( + 85 ) + 74 + + 69 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT + ( + 85 ) + 74 + + 69 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL 98 * NULLIF ( - 88, - COUNT( * ) + - + 24 ) * + + ( 28 ) AS col2
----
-241472

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL 98 * NULLIF ( - 88, - COUNT ( * ) + - + 24 ) * + + ( 28 ) AS col2
----
-241472

query I rowsort
SELECT ( - 23 ) + + 98 AS col1
----
75

query I rowsort
SELECT 71 * 17
----
1207

onlyif mysql # DIV for integer division: 
query II rowsort label-3880
SELECT + 54, - 27 + + + 5 DIV + 49 * - 13 col0
----
54
-27

skipif mysql # not compatible
query II rowsort label-3880
SELECT + 54, - 27 + + + 5 / + 49 * - 13 col0
----
54
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3881
SELECT ALL - 16, + COUNT( * ) * - 55 col1
----
-16
-55

skipif mysql # not compatible
query II rowsort label-3881
SELECT ALL - 16, + COUNT ( * ) * - 55 col1
----
-16
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-3882
SELECT 51, ( 43 ) DIV + 56 AS col0
----
51
0

skipif mysql # not compatible
query II rowsort label-3882
SELECT 51, ( 43 ) / + 56 AS col0
----
51
0

query I rowsort
SELECT 61 * + + 69 AS col1
----
4209

query II rowsort
SELECT + 12 col2, 85 AS col1
----
12
85

query I rowsort
SELECT ( + 29 ) + + - 7 * + - 86
----
631

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL 56 - COUNT( ALL - + 57 ) * + - 44
----
100

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL 56 - COUNT ( ALL - + 57 ) * + - 44
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-3887
SELECT 64 AS col0, + COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-3887
SELECT 64 AS col0, + COUNT ( * )
----
64
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT ALL 32 DIV 24 * + 33 DIV + + 18 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL 32 / 24 * + 33 / + + 18 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT 80 DIV 73
----
1

skipif mysql # not compatible
query I rowsort label-3889
SELECT 80 / 73
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT ALL 69 DIV 29
----
2

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL 69 / 29
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3891
SELECT - COUNT( * ) + - CAST( + 69 AS SIGNED ) - + 31 col1
----
-101

skipif mysql # not compatible
query I rowsort label-3891
SELECT - COUNT ( * ) + - CAST ( + 69 AS INTEGER ) - + 31 col1
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-3892
SELECT DISTINCT - COUNT( * ), 85 * + CASE + 36 WHEN - COUNT( * ) THEN NULLIF ( 2, + + 5 * - + 95 ) * - 94 + + 7 + - 3 WHEN - 12 THEN NULL END + + NULLIF ( + MIN( ALL - 22 ), + COUNT( * ) ) * - 18 col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3892
SELECT DISTINCT - COUNT ( * ), 85 * + CASE + 36 WHEN - COUNT ( * ) THEN NULLIF ( 2, + + 5 * - + 95 ) * - 94 + + 7 + - 3 WHEN - 12 THEN NULL END + + NULLIF ( + MIN ( ALL - 22 ), + COUNT ( * ) ) * - 18 col0
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT + 7 * + + CAST( NULL AS SIGNED ) / + 89 * + 70 + + + NULLIF ( - - 77, - 18 + - - 3 + - 87 ) / + - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT + 7 * + + CAST ( NULL AS INTEGER ) / + 89 * + 70 + + + NULLIF ( - - 77, - 18 + - - 3 + - 87 ) / + - 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT - MIN( - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-3894
SELECT - MIN ( - 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + - COUNT( * ) * - + 30 + - + 91 - COUNT( * ) + - + 70 * 27
----
-1952

skipif mysql # not compatible
query I rowsort label-3895
SELECT + - COUNT ( * ) * - + 30 + - + 91 - COUNT ( * ) + - + 70 * 27
----
-1952

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - 80 * - 35 - + COUNT( * ) AS col0
----
2799

skipif mysql # not compatible
query I rowsort label-3896
SELECT - 80 * - 35 - + COUNT ( * ) AS col0
----
2799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3897
SELECT + COUNT( * ) * - 77 * - 20 * CAST( - ( + 67 ) AS SIGNED ) * 75 + - + 46, 71 * 10 * - MIN( - 32 ) * - COUNT( * ) + + + SUM( ALL - - 83 ) AS col2
----
-7738546
-22637

skipif mysql # not compatible
query II rowsort label-3897
SELECT + COUNT ( * ) * - 77 * - 20 * CAST ( - ( + 67 ) AS INTEGER ) * 75 + - + 46, 71 * 10 * - MIN ( - 32 ) * - COUNT ( * ) + + + SUM ( ALL - - 83 ) AS col2
----
-7738546
-22637

onlyif mysql # aggregate syntax: 
query II rowsort label-3898
SELECT + 89 + - ( 87 ) + 89, - MIN( DISTINCT - - 86 ) AS col2
----
91
-86

skipif mysql # not compatible
query II rowsort label-3898
SELECT + 89 + - ( 87 ) + 89, - MIN ( DISTINCT - - 86 ) AS col2
----
91
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT - - COUNT( * ) AS col2, 96 AS col2
----
1
96

skipif mysql # not compatible
query II rowsort label-3899
SELECT - - COUNT ( * ) AS col2, 96 AS col2
----
1
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3900
SELECT - - ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT - - ( - CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT ALL + 22 * - ( - 91 ) col0, - 26
----
2002
-26

query I rowsort
SELECT ALL + 11 + - + 93 + + 44 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL COUNT( ALL + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL COUNT ( ALL + 24 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT + COUNT( DISTINCT 43 )
----
1

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + COUNT ( DISTINCT 43 )
----
1

query I rowsort
SELECT ALL + 31 + 54 + ( - 92 ) * + 90 col1
----
-8195

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL COUNT( * ) + COUNT( DISTINCT - 15 )
----
2

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL COUNT ( * ) + COUNT ( DISTINCT - 15 )
----
2

query I rowsort
SELECT ALL - + 48 + + - 55
----
-103

query I rowsort
SELECT ALL - + 23 + + + 31 AS col0
----
8

query I rowsort
SELECT ( + 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT ALL + COALESCE ( - 66, + ( 68 ) DIV - + 88 * + - 97 - + ( - ( + - 72 ) ) * - 5 DIV - SUM( DISTINCT + 23 ) + - 75 + + CASE ( 2 ) WHEN 36 THEN - COUNT( * ) DIV 19 ELSE NULL END * 70 + 51 + - - 37 - - - 38 DIV + MAX( DISTINCT + 59 ) ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + COALESCE ( - 66, + ( 68 ) / - + 88 * + - 97 - + ( - ( + - 72 ) ) * - 5 / - SUM ( DISTINCT + 23 ) + - 75 + + CASE ( 2 ) WHEN 36 THEN - COUNT ( * ) / 19 ELSE NULL END * 70 + 51 + - - 37 - - - 38 / + MAX ( DISTINCT + 59 ) ) col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT 81 DIV 22 + - 97
----
-94

skipif mysql # not compatible
query I rowsort label-3911
SELECT 81 / 22 + - 97
----
-94

query I rowsort
SELECT + 18 * - ( + - 62 )
----
1116

query I rowsort
SELECT DISTINCT - 49 + + 11 AS col1
----
-38

query I rowsort
SELECT DISTINCT - 41 * + 94 * + + 64 AS col1
----
-246656

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT ALL 40 DIV + + 22
----
1

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL 40 / + + 22
----
1

query I rowsort
SELECT 45 * + 88 AS col1
----
3960

query I rowsort
SELECT DISTINCT - 23 * 30
----
-690

query I rowsort
SELECT ALL + 68 * + 37 AS col0
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL - COUNT( ALL + - 12 ) * + 60 - + COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL - COUNT ( ALL + - 12 ) * + 60 - + COUNT ( * ) AS col0
----
-61

query II rowsort
SELECT DISTINCT + 78 * 71 AS col2, 23 + - 6 AS col2
----
5538
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT 45 + - SUM( DISTINCT - 75 ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-3921
SELECT 45 + - SUM ( DISTINCT - 75 ) AS col2
----
120

query I rowsort
SELECT ALL + 60 * - + 34 * - 48 AS col2
----
97920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3923
SELECT ALL - COALESCE ( - 90, + 32, ( - 70 ) * - 48 + + MIN( DISTINCT 68 ) + NULLIF ( 60, + - 82 ) DIV - - 88, + ( + - 46 ) )
----
90

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - COALESCE ( - 90, + 32, ( - 70 ) * - 48 + + MIN ( DISTINCT 68 ) + NULLIF ( 60, + - 82 ) / - - 88, + ( + - 46 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT MIN( DISTINCT 69 )
----
69

skipif mysql # not compatible
query I rowsort label-3924
SELECT MIN ( DISTINCT 69 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3925
SELECT COUNT( * ) DIV - NULLIF ( - + 12, - 76 * 16 ) * + 88 + + - 25 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT COUNT ( * ) / - NULLIF ( - + 12, - 76 * 16 ) * + 88 + + - 25 / + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL 96 * + 79 - COUNT( * )
----
7583

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL 96 * + 79 - COUNT ( * )
----
7583

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3927
SELECT 70 * + 39 AS col0, CAST( NULL AS SIGNED )
----
2730
NULL

skipif mysql # not compatible
query II rowsort label-3927
SELECT 70 * + 39 AS col0, CAST ( NULL AS INTEGER )
----
2730
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL - NULLIF ( + ( COUNT( * ) ), 28 / COALESCE ( 87, - + 21 + 87, + MAX( ALL - 90 ) ) + 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - NULLIF ( + ( COUNT ( * ) ), 28 / COALESCE ( 87, - + 21 + 87, + MAX ( ALL - 90 ) ) + 89 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3929
SELECT 80 - 32 - + 39 * COALESCE ( + - COUNT( * ), - NULLIF ( + 50, COUNT( * ) ) * - 68 ) * 87 + 82 + 19 AS col1, 35 + - 58
----
3542
-23

skipif mysql # not compatible
query II rowsort label-3929
SELECT 80 - 32 - + 39 * COALESCE ( + - COUNT ( * ), - NULLIF ( + 50, COUNT ( * ) ) * - 68 ) * 87 + 82 + 19 AS col1, 35 + - 58
----
3542
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3930
SELECT 89 + - 29 col0, MAX( + 64 ) DIV - COUNT( * ) + + 91
----
60
27

skipif mysql # not compatible
query II rowsort label-3930
SELECT 89 + - 29 col0, MAX ( + 64 ) / - COUNT ( * ) + + 91
----
60
27

query I rowsort
SELECT + ( - - 41 ) * - 4 * 42
----
-6888

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3932
SELECT + - 5 * + 64 + - 90 + - 38, CAST( NULL AS SIGNED ) col0
----
-448
NULL

skipif mysql # not compatible
query II rowsort label-3932
SELECT + - 5 * + 64 + - 90 + - 38, CAST ( NULL AS INTEGER ) col0
----
-448
NULL

query I rowsort
SELECT DISTINCT - 34 * + 94
----
-3196

query I rowsort
SELECT ALL + + 20 col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3935
SELECT + - CASE + ( - 8 ) WHEN - 68 * + ( + - ( COUNT( * ) ) ) + 8 + + 14 + + + 76 + - CAST( - 57 AS SIGNED ) + 33 THEN - 94 + - - 18 WHEN - 14 * + 69 + - + 45 * COALESCE ( - 12, 42 * 78 * + 89 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT + - CASE + ( - 8 ) WHEN - 68 * + ( + - ( COUNT ( * ) ) ) + 8 + + 14 + + + 76 + - CAST ( - 57 AS INTEGER ) + 33 THEN - 94 + - - 18 WHEN - 14 * + 69 + - + 45 * COALESCE ( - 12, 42 * 78 * + 89 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL + 1 * + - COUNT( DISTINCT + ( - 62 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + 1 * + - COUNT ( DISTINCT + ( - 62 ) )
----
-1

query I rowsort
SELECT - + 95 * - + 3 * + + 86
----
24510

query I rowsort
SELECT + - 31 - 74 + + + 76
----
-29

query I rowsort
SELECT ALL - 40 + + - ( + ( + - 90 ) ) * + 15 * + - 93
----
-125590

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT + 82 + - COUNT( - 20 ) + - + 89
----
-8

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT + 82 + - COUNT ( - 20 ) + - + 89
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3941
SELECT + + 54 * - - 89 * - CAST( NULL AS DECIMAL ) * - 89 * + 23 * 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT + + 54 * - - 89 * - CAST ( NULL AS REAL ) * - 89 * + 23 * 45 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 49 + 73 + 34 * - 51 AS col1
----
-1612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT - - COALESCE ( + COUNT( * ), COUNT( * ) + 42 - - + NULLIF ( - COUNT( 31 ), 73 * 52 / + CASE + 13 WHEN - + COUNT( * ) THEN NULL WHEN 63 / + COUNT( * ) + - CAST( - - 23 AS SIGNED ) * ( - 52 ) THEN NULL WHEN - COUNT( * ) THEN 95 END * - - 66 * CAST( + 43 AS SIGNED ) + 92 + - 87 / - - COUNT( + 86 ) ), + - 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3943
SELECT - - COALESCE ( + COUNT ( * ), COUNT ( * ) + 42 - - + NULLIF ( - COUNT ( 31 ), 73 * 52 / + CASE + 13 WHEN - + COUNT ( * ) THEN NULL WHEN 63 / + COUNT ( * ) + - CAST ( - - 23 AS INTEGER ) * ( - 52 ) THEN NULL WHEN - COUNT ( * ) THEN 95 END * - - 66 * CAST ( + 43 AS INTEGER ) + 92 + - 87 / - - COUNT ( + 86 ) ), + - 56 ) AS col2
----
1

query I rowsort
SELECT + + 19 + 61 col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT + - NULLIF ( + 17, + - 19 ) + - - 23 + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-3945
SELECT + - NULLIF ( + 17, + - 19 ) + - - 23 + + COUNT ( * )
----
7

query I rowsort
SELECT - 16 * 5 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL 86 + - COALESCE ( - MAX( + 65 ), NULLIF ( - 30, + 48 + - 85 ) ) AS col0
----
151

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL 86 + - COALESCE ( - MAX ( + 65 ), NULLIF ( - 30, + 48 + - 85 ) ) AS col0
----
151

query I rowsort
SELECT + 76 * 10 col0
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT - CASE - 18 WHEN SUM( - 96 ) * - - 10 * - 19 * - COUNT( * ) - - 60 + + 64 * + 6 THEN NULL ELSE 46 END AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-3949
SELECT - CASE - 18 WHEN SUM ( - 96 ) * - - 10 * - 19 * - COUNT ( * ) - - 60 + + 64 * + 6 THEN NULL ELSE 46 END AS col0
----
-46

query II rowsort
SELECT ALL 74 AS col0, 65
----
74
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT DISTINCT 99 - 71 DIV + 35 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT 99 - 71 / + 35 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3952
SELECT ALL COUNT( * ) - + + COUNT( CAST( + 85 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) AS col0, 23 * + - 76 col1
----
NULL
-1748

skipif mysql # not compatible
query II rowsort label-3952
SELECT ALL COUNT ( * ) - + + COUNT ( CAST ( + 85 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) AS col0, 23 * + - 76 col1
----
NULL
-1748

query I rowsort
SELECT ALL + 64 - - 72 col0
----
136

query I rowsort
SELECT + 75 * 25
----
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - SUM( ALL - 81 ) + + + 38
----
119

skipif mysql # not compatible
query I rowsort label-3955
SELECT - SUM ( ALL - 81 ) + + + 38
----
119

query I rowsort
SELECT - NULLIF ( ( - 5 ), 90 )
----
5

query I rowsort
SELECT ALL + ( + 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ( COALESCE ( + MIN( ALL - 6 ), + 4 ) ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-3958
SELECT ( COALESCE ( + MIN ( ALL - 6 ), + 4 ) ) col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT - CASE + - MAX( ALL + + 36 ) WHEN 34 + + 31 + - CASE COUNT( * ) WHEN 92 THEN + 46 WHEN + 25 - + + MIN( 17 ) THEN NULL WHEN + 85 THEN - 89 + + - 93 / + 61 ELSE - ( + 87 ) END * + 24 * CASE NULLIF ( 88, - ( 13 ) * - 41 + - + COUNT( * ) + - 63 ) WHEN - ( + 40 ) * + 2 + MIN( ( + + 17 ) ) THEN - - COALESCE ( - 60, + 70 * - - 68 ) * - 75 * - 8 END - 24 THEN - ( 84 ) / 85 ELSE NULL END + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT - CASE + - MAX ( ALL + + 36 ) WHEN 34 + + 31 + - CASE COUNT ( * ) WHEN 92 THEN + 46 WHEN + 25 - + + MIN ( 17 ) THEN NULL WHEN + 85 THEN - 89 + + - 93 / + 61 ELSE - ( + 87 ) END * + 24 * CASE NULLIF ( 88, - ( 13 ) * - 41 + - + COUNT ( * ) + - 63 ) WHEN - ( + 40 ) * + 2 + MIN ( ( + + 17 ) ) THEN - - COALESCE ( - 60, + 70 * - - 68 ) * - 75 * - 8 END - 24 THEN - ( 84 ) / 85 ELSE NULL END + + 83
----
NULL

query I rowsort
SELECT ALL + 1 * 62
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT DISTINCT 86 DIV 69 * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT 86 / 69 * - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - 29 * + - ( + + 55 )
----
1595

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3963
SELECT DISTINCT + 28 AS col0, + 84 + CAST( 24 AS SIGNED ) + - 94 * + + 85 + - CAST( - 94 AS SIGNED ) DIV + + 51
----
28
-7881

skipif mysql # not compatible
query II rowsort label-3963
SELECT DISTINCT + 28 AS col0, + 84 + CAST ( 24 AS INTEGER ) + - 94 * + + 85 + - CAST ( - 94 AS INTEGER ) / + + 51
----
28
-7881

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3964
SELECT + CAST( NULL AS SIGNED ), + 64 AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-3964
SELECT + CAST ( NULL AS INTEGER ), + 64 AS col0
----
NULL
64

query I rowsort
SELECT - 8 * + 43 AS col2
----
-344

query I rowsort
SELECT ALL - 29 * 11
----
-319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3967
SELECT ALL 69 * + - ( - 89 ) * - CAST( + COUNT( * ) AS SIGNED ) + MIN( ALL + 90 ) * + - CAST( NULL AS DECIMAL ) * + - ( - AVG ( - 42 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL 69 * + - ( - 89 ) * - CAST ( + COUNT ( * ) AS INTEGER ) + MIN ( ALL + 90 ) * + - CAST ( NULL AS REAL ) * + - ( - AVG ( - 42 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3968
SELECT - 1 * - SUM( DISTINCT + CAST( - - COALESCE ( + 57, ( - 32 ) ) AS SIGNED ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3968
SELECT - 1 * - SUM ( DISTINCT + CAST ( - - COALESCE ( + 57, ( - 32 ) ) AS INTEGER ) ) AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT + 71 * CAST( + 98 AS SIGNED ) + + + 79 * - 87 - + 0 * 9 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3969
SELECT + 71 * CAST ( + 98 AS INTEGER ) + + + 79 * - 87 - + 0 * 9 AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT + 75 + + + CAST( NULL AS SIGNED ) / + 4 + + 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT + 75 + + + CAST ( NULL AS INTEGER ) / + 4 + + 62 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL - NULLIF ( 84, MIN( + 23 ) + + 99 ) * 42 * 69 + - 62 - - - 67 * + - 19 col0
----
-242221

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL - NULLIF ( 84, MIN ( + 23 ) + + 99 ) * 42 * 69 + - 62 - - - 67 * + - 19 col0
----
-242221

query I rowsort
SELECT DISTINCT + + NULLIF ( + + 54, - + 6 * - 63 + - NULLIF ( + - 96, 70 ) - - - 13 )
----
54

query I rowsort
SELECT DISTINCT + 14 * + NULLIF ( + ( + 13 ), + 24 ) + - 12 - + 84 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT - - MIN( DISTINCT - 82 ) + - 41 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-3974
SELECT - - MIN ( DISTINCT - 82 ) + - 41 AS col0
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-3975
SELECT - NULLIF ( + 84, 68 * + ( + 19 ) ) DIV - - 23
----
-3

skipif mysql # not compatible
query I rowsort label-3975
SELECT - NULLIF ( + 84, 68 * + ( + 19 ) ) / - - 23
----
-3

query I rowsort
SELECT + 93 * + 41 - - - 94 + 62
----
3781

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT COUNT( 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3977
SELECT COUNT ( 99 ) AS col1
----
1

query I rowsort
SELECT + 87 + + 81 AS col1
----
168

query II rowsort
SELECT DISTINCT + - 42 * + + 14 + 8 AS col2, + 8 AS col0
----
-580
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL 61 * + SUM( ALL - - 37 ) + + 15 col0
----
2272

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL 61 * + SUM ( ALL - - 37 ) + + 15 col0
----
2272

query I rowsort
SELECT DISTINCT + 35 * - 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT ALL 23 DIV - 72 * - - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL 23 / - 72 * - - 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3983
SELECT DISTINCT COUNT( * ), + 23 col0
----
1
23

skipif mysql # not compatible
query II rowsort label-3983
SELECT DISTINCT COUNT ( * ), + 23 col0
----
1
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT DISTINCT 40 DIV - - 8 col0
----
5

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT 40 / - - 8 col0
----
5

query II rowsort
SELECT DISTINCT 78 AS col0, + 60 AS col0
----
78
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - MAX( DISTINCT - 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3986
SELECT - MAX ( DISTINCT - 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT 80 col1, - ( - COUNT( * ) ) AS col0
----
80
1

skipif mysql # not compatible
query II rowsort label-3987
SELECT 80 col1, - ( - COUNT ( * ) ) AS col0
----
80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT - ( + - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3988
SELECT - ( + - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT + COUNT( * ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-3989
SELECT + COUNT ( * ) * - 9
----
-9

query I rowsort
SELECT ALL 33 * 97
----
3201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3991
SELECT ALL - 42 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL - 42 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT + SUM( ALL ( - 33 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT + SUM ( ALL ( - 33 ) )
----
-33

query I rowsort
SELECT DISTINCT 80 * - 84
----
-6720

query I rowsort
SELECT DISTINCT 38 + + 93
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT ALL 73 + - 57 - + COUNT( * ) + - + 21 * - + 13
----
288

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL 73 + - 57 - + COUNT ( * ) + - + 21 * - + 13
----
288

query II rowsort
SELECT 80, 98 * 25 AS col1
----
80
2450

query I rowsort
SELECT 51 * 98 AS col0
----
4998

query I rowsort
SELECT + COALESCE ( - 30, - - 54 + - 37, 27 * - - 79 * + 44 ) col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL - 93 + COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL - 93 + COUNT ( * ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-4000
SELECT COUNT( * ) + + 21 AS col0, 18 - COUNT( * ) + + COUNT( * ) + - 91 * 60 * - 54
----
22
294858

skipif mysql # not compatible
query II rowsort label-4000
SELECT COUNT ( * ) + + 21 AS col0, 18 - COUNT ( * ) + + COUNT ( * ) + - 91 * 60 * - 54
----
22
294858

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT ALL + ( - 8 ) DIV 49 * + 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + ( - 8 ) / 49 * + 21 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4002
SELECT - ( + 41 ) DIV - - 83 * + 95 col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-4002
SELECT - ( + 41 ) / - - 83 * + 95 col0, COUNT ( * )
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT 54 * + 49 * + NULLIF ( - 10, + + COALESCE ( 93, + + 68, + CASE + MIN( - + 46 ) WHEN - 18 THEN NULL WHEN + + 27 + + 99 - + 16 * - COALESCE ( 75, + 78 ) THEN + COUNT( * ) ELSE 7 / 30 * CAST( NULL AS SIGNED ) * - - 24 END ) ) + + 70
----
-26390

skipif mysql # not compatible
query I rowsort label-4003
SELECT 54 * + 49 * + NULLIF ( - 10, + + COALESCE ( 93, + + 68, + CASE + MIN ( - + 46 ) WHEN - 18 THEN NULL WHEN + + 27 + + 99 - + 16 * - COALESCE ( 75, + 78 ) THEN + COUNT ( * ) ELSE 7 / 30 * CAST ( NULL AS INTEGER ) * - - 24 END ) ) + + 70
----
-26390

query II rowsort
SELECT ALL - + 12 + 89 - - 66 + + 80 * 13 * + 99 * 61, + 19 + 57 col1
----
6280703
76

query I rowsort
SELECT 10 * + 3 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4006
SELECT 56 + + 76 DIV + COUNT( * ) + 96 + - + 90
----
138

skipif mysql # not compatible
query I rowsort label-4006
SELECT 56 + + 76 / + COUNT ( * ) + 96 + - + 90
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT + + COALESCE ( 27, 9 DIV 97 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-4007
SELECT + + COALESCE ( 27, 9 / 97 ) col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT 46 - + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4008
SELECT 46 - + COUNT ( * )
----
45

query II rowsort
SELECT DISTINCT - - 50 col0, 89
----
50
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4010
SELECT ALL + CAST( NULL AS DECIMAL ) - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL + CAST ( NULL AS REAL ) - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL SUM( ALL + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL SUM ( ALL + 64 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT - 28 * + 52 - + CAST( 3 AS SIGNED ) col1
----
-1459

skipif mysql # not compatible
query I rowsort label-4012
SELECT - 28 * + 52 - + CAST ( 3 AS INTEGER ) col1
----
-1459

query I rowsort
SELECT DISTINCT + 5 - - 61 - + NULLIF ( - + COALESCE ( - 92, 14 - + 57 ), AVG ( ALL - + 80 ) )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4014
SELECT ALL 29 AS col1, 1 * - 24 + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * - 5
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4014
SELECT ALL 29 AS col1, 1 * - 24 + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - 5
----
29
NULL

query II rowsort
SELECT - 52 AS col1, 4
----
-52
4

query II rowsort
SELECT 35 + 73 AS col2, 68 AS col2
----
108
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4017
SELECT 80 - + CAST( NULL AS SIGNED ) - 40 * - COUNT( * ) - + 35 col0, 1 + 75 + - 69 + 33 DIV - MAX( DISTINCT - - 50 ) * - 81 AS col1
----
NULL
7

skipif mysql # not compatible
query II rowsort label-4017
SELECT 80 - + CAST ( NULL AS INTEGER ) - 40 * - COUNT ( * ) - + 35 col0, 1 + 75 + - 69 + 33 / - MAX ( DISTINCT - - 50 ) * - 81 AS col1
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT 54 + - + 18 * + 98 * - - SUM( 84 ) * - 35
----
5186214

skipif mysql # not compatible
query I rowsort label-4018
SELECT 54 + - + 18 * + 98 * - - SUM ( 84 ) * - 35
----
5186214

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT 64 + + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4019
SELECT 64 + + COUNT ( * ) AS col2
----
65

query I rowsort
SELECT DISTINCT + 19 * 53 AS col2
----
1007

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL COUNT( * ) + - - 3 * + 74 - + 1
----
222

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL COUNT ( * ) + - - 3 * + 74 - + 1
----
222

query I rowsort
SELECT ALL + 1 * - ( + 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL - 47 * + - COUNT( * ) * - - NULLIF ( + - 83, - + AVG ( DISTINCT - - 52 ) ) * + 79 + + - 88 + 24
----
-308243

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - 47 * + - COUNT ( * ) * - - NULLIF ( + - 83, - + AVG ( DISTINCT - - 52 ) ) * + 79 + + - 88 + 24
----
-308243

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL 86 + 68 - 65 * 54 * 60 * - COUNT( * ) AS col2
----
210754

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL 86 + 68 - 65 * 54 * 60 * - COUNT ( * ) AS col2
----
210754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4025
SELECT 99 + CAST( NULL AS SIGNED ) + - - 9 + + - CASE + + 0 WHEN + SUM( ALL 22 ) THEN - + ( 73 ) / + 97 * + ( + - 15 ) * 95 * - 29 + + 91 WHEN + - COUNT( * ) THEN - 24 ELSE - 50 - + - 96 * + COUNT( * ) END - + 3 * - CAST( NULL AS DECIMAL ) / - ( + - 86 ) * 92 * - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT 99 + CAST ( NULL AS INTEGER ) + - - 9 + + - CASE + + 0 WHEN + SUM ( ALL 22 ) THEN - + ( 73 ) / + 97 * + ( + - 15 ) * 95 * - 29 + + 91 WHEN + - COUNT ( * ) THEN - 24 ELSE - 50 - + - 96 * + COUNT ( * ) END - + 3 * - CAST ( NULL AS REAL ) / - ( + - 86 ) * 92 * - 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4026
SELECT COALESCE ( + 68, 90, - + 21 + - 51 ) + + + ( - - 71 ) DIV - + NULLIF ( COUNT( * ), COUNT( * ) DIV 16 + + 2 ) col1, + 27 * - 57
----
-3
-1539

skipif mysql # not compatible
query II rowsort label-4026
SELECT COALESCE ( + 68, 90, - + 21 + - 51 ) + + + ( - - 71 ) / - + NULLIF ( COUNT ( * ), COUNT ( * ) / 16 + + 2 ) col1, + 27 * - 57
----
-3
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT 32 + - + 14 * - COUNT( ALL + 85 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT 32 + - + 14 * - COUNT ( ALL + 85 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL + COUNT( * ) + - 4 * - + 4
----
17

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + COUNT ( * ) + - 4 * - + 4
----
17

query I rowsort
SELECT ALL - 64 + + + 35 col2
----
-29

query I rowsort
SELECT DISTINCT - 5 * - 56 * - 87
----
-24360

query I rowsort
SELECT 45 * + 52 col2
----
2340

query I rowsort
SELECT ALL 93 - + 44
----
49

query I rowsort
SELECT + 13 * - 11 AS col0
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL - 46 * + 8 + - + COUNT( * )
----
-369

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL - 46 * + 8 + - + COUNT ( * )
----
-369

query I rowsort
SELECT ALL 18 * - 37 + - 45 + ( + 15 ) AS col0
----
-696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4036
SELECT ALL 23 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL 23 * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 74 * + 82
----
6068

onlyif mysql # aggregate syntax: 
query II rowsort label-4038
SELECT ALL COUNT( * ), ( - 56 ) AS col1
----
1
-56

skipif mysql # not compatible
query II rowsort label-4038
SELECT ALL COUNT ( * ), ( - 56 ) AS col1
----
1
-56

query I rowsort
SELECT 64 * 82 AS col2
----
5248

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT MIN( - 37 ) + - - 22 * 2
----
7

skipif mysql # not compatible
query I rowsort label-4040
SELECT MIN ( - 37 ) + - - 22 * 2
----
7

query I rowsort
SELECT DISTINCT 69 * 19
----
1311

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL - 42 + - COUNT( * ) + - 34 + + COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - 42 + - COUNT ( * ) + - 34 + + COUNT ( * ) AS col1
----
-76

query I rowsort
SELECT DISTINCT CASE + 61 WHEN - 17 THEN NULL ELSE + 79 END
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4044
SELECT DISTINCT COALESCE ( + - 89, - - 62 * + CASE COUNT( * ) WHEN - - 71 - + + 43 + - - 19 * 1 * - 13 + - CAST( NULL AS SIGNED ) THEN - 25 * - - COALESCE ( - NULLIF ( + COUNT( 53 ), 59 DIV - - 16 * - CASE CAST( 71 AS SIGNED ) WHEN - 1 THEN NULL WHEN - 62 + + 12 * - ( - ( - + ( - - 6 ) ) ) THEN NULL ELSE + + 56 + + 36 END ), - 8 * - + COUNT( * ) - + + MAX( - CASE + 17 WHEN + 26 * 45 THEN NULL ELSE + - 63 END ) + CAST( MAX( ALL + - 10 ) AS SIGNED ) DIV - NULLIF ( - - NULLIF ( CAST( NULL AS SIGNED ), + 83 ), CAST( 74 AS SIGNED ) ) * - 57 ) END, - 64 * + 67, - 21 * + 17, 83 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT COALESCE ( + - 89, - - 62 * + CASE COUNT ( * ) WHEN - - 71 - + + 43 + - - 19 * 1 * - 13 + - CAST ( NULL AS INTEGER ) THEN - 25 * - - COALESCE ( - NULLIF ( + COUNT ( 53 ), 59 / - - 16 * - CASE CAST ( 71 AS INTEGER ) WHEN - 1 THEN NULL WHEN - 62 + + 12 * - ( - ( - + ( - - 6 ) ) ) THEN NULL ELSE + + 56 + + 36 END ), - 8 * - + COUNT ( * ) - + + MAX ( - CASE + 17 WHEN + 26 * 45 THEN NULL ELSE + - 63 END ) + CAST ( MAX ( ALL + - 10 ) AS INTEGER ) / - NULLIF ( - - NULLIF ( CAST ( NULL AS INTEGER ), + 83 ), CAST ( 74 AS INTEGER ) ) * - 57 ) END, - 64 * + 67, - 21 * + 17, 83 ) AS col2
----
-89

query I rowsort
SELECT ALL + 70 * + - 97
----
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL - COUNT( * ) + 49 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL - COUNT ( * ) + 49 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT - COUNT( * ) - - 50
----
49

skipif mysql # not compatible
query I rowsort label-4047
SELECT - COUNT ( * ) - - 50
----
49

query II rowsort
SELECT - 1 AS col0, 24 col1
----
-1
24

query I rowsort
SELECT - 80 * 13
----
-1040

query I rowsort
SELECT - 86 * 2 AS col1
----
-172

query II rowsort
SELECT 56 AS col1, - 82
----
56
-82

query II rowsort
SELECT - 61 col0, + 73
----
-61
73

query I rowsort
SELECT ALL 44 + + 66 - - - 97 * - + 22 * + ( 37 ) * + + 7 AS col1
----
552816

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT - 50 * - ( - MIN( - 83 ) )
----
4150

skipif mysql # not compatible
query I rowsort label-4054
SELECT - 50 * - ( - MIN ( - 83 ) )
----
4150

query I rowsort
SELECT ALL - 71 * 93
----
-6603

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL MIN( + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL MIN ( + 72 ) AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4057
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 16 AS col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-4057
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 16 AS col0
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL + - 75 * + 91 + - 40 - + 77 * COUNT( * ) * + 42 + + - SUM( ALL + 14 ) * ( - + 58 ) - - 15
----
-9272

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + - 75 * + 91 + - 40 - + 77 * COUNT ( * ) * + 42 + + - SUM ( ALL + 14 ) * ( - + 58 ) - - 15
----
-9272

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ( - 63 ) * + COUNT( * ) - + 62 * + 72 + 47 + 23 * - 59
----
-5837

skipif mysql # not compatible
query I rowsort label-4059
SELECT ( - 63 ) * + COUNT ( * ) - + 62 * + 72 + 47 + 23 * - 59
----
-5837

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT MIN( 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4060
SELECT MIN ( 2 ) AS col1
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4061
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col1, 92 AS col1
----
NULL
92

skipif mysql # not compatible
query II rowsort label-4061
SELECT ALL + + CAST ( NULL AS REAL ) AS col1, 92 AS col1
----
NULL
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4062
SELECT - ( - - 31 ) DIV COUNT( * ) * 36 DIV + CAST( 69 AS SIGNED ) * + COUNT( - 51 ) + - 42 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4062
SELECT - ( - - 31 ) / COUNT ( * ) * 36 / + CAST ( 69 AS INTEGER ) * + COUNT ( - 51 ) + - 42 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT + 83 * + MAX( ALL - 58 ) * + + 99 * + NULLIF ( 22, - COUNT( * ) ) AS col1
----
-10484892

skipif mysql # not compatible
query I rowsort label-4063
SELECT + 83 * + MAX ( ALL - 58 ) * + + 99 * + NULLIF ( 22, - COUNT ( * ) ) AS col1
----
-10484892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT ALL - CAST( NULL AS SIGNED ) * ( + + 4 ) - - - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - CAST ( NULL AS INTEGER ) * ( + + 4 ) - - - 36
----
NULL

query I rowsort
SELECT + 10 + 32
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT DISTINCT + MIN( + 67 ) * + 80 * + 8 AS col2
----
42880

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT + MIN ( + 67 ) * + 80 * + 8 AS col2
----
42880

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL COUNT( * ) * - + 22
----
-22

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL COUNT ( * ) * - + 22
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4068
SELECT + + COUNT( * ) * + NULLIF ( + 15, - - AVG ( DISTINCT + CASE 8 WHEN - 55 + - - 10 * + 95 THEN + COALESCE ( - - 27, - 43, - 86 * 21 + - 78 + - - 70 - - 46 * - 73 DIV - 91 + + 85 ) - - + 52 WHEN + 97 THEN + - 75 * + 47 + - 39 WHEN 28 THEN NULL END ) + ( + 20 ) ) DIV - 6
----
-2

skipif mysql # not compatible
query I rowsort label-4068
SELECT + + COUNT ( * ) * + NULLIF ( + 15, - - AVG ( DISTINCT + CASE 8 WHEN - 55 + - - 10 * + 95 THEN + COALESCE ( - - 27, - 43, - 86 * 21 + - 78 + - - 70 - - 46 * - 73 / - 91 + + 85 ) - - + 52 WHEN + 97 THEN + - 75 * + 47 + - 39 WHEN 28 THEN NULL END ) + ( + 20 ) ) / - 6
----
-2

query I rowsort
SELECT + + ( + 16 ) + - 90 - 72 + 15
----
-131

query I rowsort
SELECT + ( + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT SUM( DISTINCT + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4071
SELECT SUM ( DISTINCT + 63 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT - 34 + + + 9 - COUNT( ALL - 12 ) AS col1, + COUNT( - + 64 ) AS col1
----
-26
1

skipif mysql # not compatible
query II rowsort label-4072
SELECT - 34 + + + 9 - COUNT ( ALL - 12 ) AS col1, + COUNT ( - + 64 ) AS col1
----
-26
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4073
SELECT ALL 26 * + 45 + - + 31 DIV 33 * + + COUNT( * ) + 95 * + 17
----
2785

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL 26 * + 45 + - + 31 / 33 * + + COUNT ( * ) + 95 * + 17
----
2785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT + SUM( + 33 ) * + + 71 - + CAST( NULL AS SIGNED ) + 25 / - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT + SUM ( + 33 ) * + + 71 - + CAST ( NULL AS INTEGER ) + 25 / - 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4075
SELECT MAX( DISTINCT + 10 ) AS col2, + 77 AS col1
----
10
77

skipif mysql # not compatible
query II rowsort label-4075
SELECT MAX ( DISTINCT + 10 ) AS col2, + 77 AS col1
----
10
77

query I rowsort
SELECT ALL 22 + 44 * 83 + - + 9 * + 15
----
3539

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT + ( - COUNT( DISTINCT 25 ) ) + + COUNT( ALL + 84 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT + ( - COUNT ( DISTINCT 25 ) ) + + COUNT ( ALL + 84 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4078
SELECT DISTINCT COUNT( * ) * 13, 66 AS col0
----
13
66

skipif mysql # not compatible
query II rowsort label-4078
SELECT DISTINCT COUNT ( * ) * 13, 66 AS col0
----
13
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4079
SELECT - 86 - - 80 + - ( - COUNT( * ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT - 86 - - 80 + - ( - COUNT ( * ) ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 84 * + - 57 AS col0
----
4788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4081
SELECT - CAST( - 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-4081
SELECT - CAST ( - 2 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL + COUNT( * ) + 24 - ( - 67 ) + - - COUNT( - 1 ) - + - 64 * COUNT( * )
----
157

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL + COUNT ( * ) + 24 - ( - 67 ) + - - COUNT ( - 1 ) - + - 64 * COUNT ( * )
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT DISTINCT MIN( ALL + 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT MIN ( ALL + 44 ) AS col1
----
44

query I rowsort
SELECT ALL 15 * - 72 AS col1
----
-1080

query I rowsort
SELECT DISTINCT ( - - 82 ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4086
SELECT ALL CAST( 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL CAST ( 16 AS INTEGER )
----
16

query I rowsort
SELECT ALL + - 18 - + 56 - - 79 * - 42 * - - 72 + 49 * + - 61 * 44 AS col1
----
-370486

query I rowsort
SELECT ALL - 72 * 44 * 5
----
-15840

query I rowsort
SELECT - - 67 + 29 AS col1
----
96

query I rowsort
SELECT - + 50 * + 43 AS col0
----
-2150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4091
SELECT DISTINCT - - COUNT( * ) DIV + + 19 + + + 74 col2
----
74

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT - - COUNT ( * ) / + + 19 + + + 74 col2
----
74

query II rowsort
SELECT - 15 + + 67, + 82 * 68 + + + 67 AS col2
----
52
5643

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4093
SELECT - - 24 * + 10, - 93 * CAST( NULL AS SIGNED ) * + - 66 * - 85 + 54 AS col1
----
240
NULL

skipif mysql # not compatible
query II rowsort label-4093
SELECT - - 24 * + 10, - 93 * CAST ( NULL AS INTEGER ) * + - 66 * - 85 + 54 AS col1
----
240
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT + COALESCE ( - NULLIF ( + 70, 0 ), + CAST( COUNT( 37 ) AS SIGNED ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4094
SELECT + COALESCE ( - NULLIF ( + 70, 0 ), + CAST ( COUNT ( 37 ) AS INTEGER ) ) AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT + + 49 * CAST( NULL AS SIGNED ) / + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT + + 49 * CAST ( NULL AS INTEGER ) / + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT + + 91 * + MAX( DISTINCT - 72 ) + 84
----
-6468

skipif mysql # not compatible
query I rowsort label-4096
SELECT + + 91 * + MAX ( DISTINCT - 72 ) + 84
----
-6468

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT ALL + 68 DIV - 1 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL + 68 / - 1 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT - + COUNT( * ) - 36 * ( 60 )
----
-2161

skipif mysql # not compatible
query I rowsort label-4098
SELECT - + COUNT ( * ) - 36 * ( 60 )
----
-2161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4099
SELECT DISTINCT - 67 DIV + ( - 4 ) + - - MIN( 45 ) + - SUM( + + 30 ) * - + 52 col1
----
1621

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT - 67 / + ( - 4 ) + - - MIN ( 45 ) + - SUM ( + + 30 ) * - + 52 col1
----
1621

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL 28 * - COUNT( * ) + + 66 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL 28 * - COUNT ( * ) + + 66 AS col1
----
38

query I rowsort
SELECT ALL 22 + - 69 * - 90
----
6232

query I rowsort
SELECT ALL 81 * + + 97 col1
----
7857

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT 70 * + COUNT( * ) * - + 90 col2, 73 AS col1
----
-6300
73

skipif mysql # not compatible
query II rowsort label-4103
SELECT 70 * + COUNT ( * ) * - + 90 col2, 73 AS col1
----
-6300
73

query I rowsort
SELECT DISTINCT 16 * - 3 AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) + - 85 / - + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 85 / - + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT COUNT( * ) * - ( CASE - ( - 31 ) WHEN + COUNT( * ) THEN 60 + 97 WHEN 8 THEN + 39 * 10 WHEN + 62 * + ( - + 95 ) - + 71 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT COUNT ( * ) * - ( CASE - ( - 31 ) WHEN + COUNT ( * ) THEN 60 + 97 WHEN 8 THEN + 39 * 10 WHEN + 62 * + ( - + 95 ) - + 71 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL MIN( DISTINCT 49 ) + 26
----
75

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL MIN ( DISTINCT 49 ) + 26
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4108
SELECT ALL COUNT( * ) DIV - ( + 30 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL COUNT ( * ) / - ( + 30 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT COUNT( * ) * - CASE + - 22 WHEN + 35 + + 20 + + ( - + 7 ) THEN 29 WHEN - - 81 THEN NULL END * + COUNT( - + 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT COUNT ( * ) * - CASE + - 22 WHEN + 35 + + 20 + + ( - + 7 ) THEN 29 WHEN - - 81 THEN NULL END * + COUNT ( - + 69 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4110
SELECT DISTINCT 7, CASE + + 10 WHEN + 40 THEN + 1 * - 92 * - SUM( - 8 ) WHEN - + 31 THEN NULL WHEN - 16 THEN NULL END AS col0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-4110
SELECT DISTINCT 7, CASE + + 10 WHEN + 40 THEN + 1 * - 92 * - SUM ( - 8 ) WHEN - + 31 THEN NULL WHEN - 16 THEN NULL END AS col0
----
7
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4111
SELECT DISTINCT MAX( DISTINCT + CAST( + 41 AS SIGNED ) ) DIV 80 * - ( - ( 87 ) ) + - - 36 - COUNT( ALL - 36 ) * - + SUM( DISTINCT 10 ) * ( + - 87 ) - - - COUNT( * ) * + 79 AS col2, 15 AS col0
----
-913
15

skipif mysql # not compatible
query II rowsort label-4111
SELECT DISTINCT MAX ( DISTINCT + CAST ( + 41 AS INTEGER ) ) / 80 * - ( - ( 87 ) ) + - - 36 - COUNT ( ALL - 36 ) * - + SUM ( DISTINCT 10 ) * ( + - 87 ) - - - COUNT ( * ) * + 79 AS col2, 15 AS col0
----
-913
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT 30 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT 30 - - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 64 AS col0, - 13 AS col1
----
64
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT - MAX( + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - MAX ( + 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT SUM( ALL - - 37 ) - + + 54 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4115
SELECT SUM ( ALL - - 37 ) - + + 54 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL + NULLIF ( - COUNT( + + 12 ), - - 25 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + NULLIF ( - COUNT ( + + 12 ), - - 25 ) AS col1
----
-1

query I rowsort
SELECT 79 + - 34 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL - COUNT( DISTINCT + + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - COUNT ( DISTINCT + + 1 )
----
-1

query I rowsort
SELECT - 27 * + + 37 + + 40 * - 11 AS col2
----
-1439

query I rowsort
SELECT 69 - 88
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4121
SELECT 56 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-4121
SELECT 56 / - 49
----
-1

query I rowsort
SELECT ALL - 37 + 60 AS col1
----
23

query II rowsort
SELECT - 49, + 61 * + + 98 AS col2
----
-49
5978

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT ALL + 46 + - + 20 DIV + 1
----
26

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL + 46 + - + 20 / + 1
----
26

query I rowsort
SELECT 90 * 33
----
2970

query II rowsort
SELECT + 78 col0, CASE 32 WHEN 62 THEN - - 34 * + - 46 ELSE + 81 * + 22 + + 94 + - 92 + 41 + - 97 END AS col2
----
78
1728

query I rowsort
SELECT 79 + + 81 * - 23
----
-1784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4128
SELECT 83 DIV + COUNT( * ) col2
----
83

skipif mysql # not compatible
query I rowsort label-4128
SELECT 83 / + COUNT ( * ) col2
----
83

query I rowsort
SELECT NULLIF ( + - ( + 57 ), - 43 ) * - 26
----
1482

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4130
SELECT ALL CASE + - CAST( NULL AS DECIMAL ) WHEN - - COUNT( * ) * + - 36 THEN 13 * + + 41 / + + 46 - - 74 + + - 23 + - NULLIF ( - 22, - 41 * - 91 ) - + 18 + + 47 + + - 34 * ( - 71 ) + + ( COUNT( * ) ) + - 93 * 97 + + 18 * 30 + 81 * - 15 + + - 68 * - - COUNT( * ) WHEN + COUNT( * ) THEN NULL END - - + 8 * + 78 + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL CASE + - CAST ( NULL AS REAL ) WHEN - - COUNT ( * ) * + - 36 THEN 13 * + + 41 / + + 46 - - 74 + + - 23 + - NULLIF ( - 22, - 41 * - 91 ) - + 18 + + 47 + + - 34 * ( - 71 ) + + ( COUNT ( * ) ) + - 93 * 97 + + 18 * 30 + 81 * - 15 + + - 68 * - - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL END - - + 8 * + 78 + 51
----
NULL

query II rowsort
SELECT ALL - 63, + 69 col0
----
-63
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4132
SELECT + 43 AS col1, CAST( NULL AS SIGNED ) + 74
----
43
NULL

skipif mysql # not compatible
query II rowsort label-4132
SELECT + 43 AS col1, CAST ( NULL AS INTEGER ) + 74
----
43
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT ALL - COUNT( * ), - 12 + - - 71 AS col1
----
-1
59

skipif mysql # not compatible
query II rowsort label-4133
SELECT ALL - COUNT ( * ), - 12 + - - 71 AS col1
----
-1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT DISTINCT MAX( 55 ) * 6 AS col1
----
330

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT MAX ( 55 ) * 6 AS col1
----
330

query II rowsort
SELECT DISTINCT 50, - 20 AS col0
----
50
-20

query I rowsort
SELECT ALL - 12 - 71
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT COUNT( * ) + 68
----
69

skipif mysql # not compatible
query I rowsort label-4137
SELECT COUNT ( * ) + 68
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT COUNT( * ) + - 33 * - 15 + 16 AS col2
----
512

skipif mysql # not compatible
query I rowsort label-4138
SELECT COUNT ( * ) + - 33 * - 15 + 16 AS col2
----
512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT 43 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT 43 - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 41 col2, NULLIF ( + 6, + 37 ) - 74 - - 68
----
-41
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4141
SELECT + ( + - 26 ) - + - 44 DIV + - 81 col1, - 28 - - 26
----
-26
-2

skipif mysql # not compatible
query II rowsort label-4141
SELECT + ( + - 26 ) - + - 44 / + - 81 col1, - 28 - - 26
----
-26
-2

query I rowsort
SELECT + 41 * + ( - 54 )
----
-2214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4143
SELECT COALESCE ( 25, - + COALESCE ( - 47, COUNT( * ) + - + 11 * + - CASE + - 59 WHEN + 32 THEN - + 55 + + + COALESCE ( - CAST( + 92 AS SIGNED ), + - COUNT( * ), - 9 DIV 42 + 94 * - 50 ) WHEN + - 7 + - 64 * - - 0 + - 69 THEN NULL ELSE NULL END ) * - - 34 DIV 4 + ( + COUNT( * ) ), + - 23 ) + - + 38 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4143
SELECT COALESCE ( 25, - + COALESCE ( - 47, COUNT ( * ) + - + 11 * + - CASE + - 59 WHEN + 32 THEN - + 55 + + + COALESCE ( - CAST ( + 92 AS INTEGER ), + - COUNT ( * ), - 9 / 42 + 94 * - 50 ) WHEN + - 7 + - 64 * - - 0 + - 69 THEN NULL ELSE NULL END ) * - - 34 / 4 + ( + COUNT ( * ) ), + - 23 ) + - + 38 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL + 4 + + 46 + + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL + 4 + + 46 + + COUNT ( * ) AS col1
----
51

query I rowsort
SELECT 14 + + ( + 50 )
----
64

query I rowsort
SELECT ALL + - 63 * + 8 AS col0
----
-504

query II rowsort
SELECT - 21 * - - 38, 95 * 75 AS col2
----
-798
7125

query I rowsort
SELECT - ( + 86 ) + - + 72 AS col1
----
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-4149
SELECT + 32 AS col2, 14 * + COUNT( * ) - COUNT( * ) * + ( 4 ) + - ( - 96 ) * + - 2
----
32
-182

skipif mysql # not compatible
query II rowsort label-4149
SELECT + 32 AS col2, 14 * + COUNT ( * ) - COUNT ( * ) * + ( 4 ) + - ( - 96 ) * + - 2
----
32
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT MIN( DISTINCT - - 12 ) * + - MIN( DISTINCT - NULLIF ( - 64, + + 59 / + + 83 * 26 * - 31 + + - 56 ) )
----
-768

skipif mysql # not compatible
query I rowsort label-4150
SELECT MIN ( DISTINCT - - 12 ) * + - MIN ( DISTINCT - NULLIF ( - 64, + + 59 / + + 83 * 26 * - 31 + + - 56 ) )
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT + COUNT( * ) + 28 * - 50
----
-1399

skipif mysql # not compatible
query I rowsort label-4151
SELECT + COUNT ( * ) + 28 * - 50
----
-1399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT + 57 * - + CAST( - 9 AS SIGNED ) AS col1
----
513

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 57 * - + CAST ( - 9 AS INTEGER ) AS col1
----
513

query I rowsort
SELECT 83 + + 15
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT - CASE - 52 WHEN + - 86 / - 60 THEN - CAST( NULL AS SIGNED ) * 36 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT - CASE - 52 WHEN + - 86 / - 60 THEN - CAST ( NULL AS INTEGER ) * 36 END AS col1
----
NULL

query I rowsort
SELECT ALL 35 * + 56
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL 4 * + - COUNT( * ) * - 10 + 81
----
121

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL 4 * + - COUNT ( * ) * - 10 + 81
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-4157
SELECT ALL + - 62, COUNT( * ) AS col1
----
-62
1

skipif mysql # not compatible
query II rowsort label-4157
SELECT ALL + - 62, COUNT ( * ) AS col1
----
-62
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT NULLIF ( + 65, + 41 * CAST( 95 AS SIGNED ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4158
SELECT NULLIF ( + 65, + 41 * CAST ( 95 AS INTEGER ) ) AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4159
SELECT NULLIF ( MIN( 97 ), + CASE + 51 WHEN 17 THEN - 19 / - 44 * - + SUM( ALL 58 ) * - + COUNT( * ) + + + 74 - 82 * - + 6 + MIN( + 90 ) * - 6 WHEN + - CAST( - + MIN( 28 ) AS SIGNED ) THEN NULL ELSE - + 11 + + 16 END )
----
97

skipif mysql # not compatible
query I rowsort label-4159
SELECT NULLIF ( MIN ( 97 ), + CASE + 51 WHEN 17 THEN - 19 / - 44 * - + SUM ( ALL 58 ) * - + COUNT ( * ) + + + 74 - 82 * - + 6 + MIN ( + 90 ) * - 6 WHEN + - CAST ( - + MIN ( 28 ) AS INTEGER ) THEN NULL ELSE - + 11 + + 16 END )
----
97

query I rowsort
SELECT - 69 * + + 23
----
-1587

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT + 76 * 45 * COUNT( ALL 30 ) * + 20 + - 83
----
68317

skipif mysql # not compatible
query I rowsort label-4161
SELECT + 76 * 45 * COUNT ( ALL 30 ) * + 20 + - 83
----
68317

query I rowsort
SELECT + 40 - NULLIF ( - 80, + 34 ) + 44 AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT + COALESCE ( + + 42, - COALESCE ( + - 57, COUNT( * ) + COUNT( * ) ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4163
SELECT + COALESCE ( + + 42, - COALESCE ( + - 57, COUNT ( * ) + COUNT ( * ) ) ) AS col0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-4164
SELECT - 22 DIV + 2 AS col2, - ( - 76 ) AS col0
----
-11
76

skipif mysql # not compatible
query II rowsort label-4164
SELECT - 22 / + 2 AS col2, - ( - 76 ) AS col0
----
-11
76

query I rowsort
SELECT ALL + 25 * - - 18
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4166
SELECT ALL COUNT( * ) DIV - - 55 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL COUNT ( * ) / - - 55 * - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT DISTINCT MIN( COALESCE ( - 31, - ( + - 90 ), - 24 ) ) * - - 46 * + - 32 + - 22 + - ( - 35 ) col2
----
45645

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT MIN ( COALESCE ( - 31, - ( + - 90 ), - 24 ) ) * - - 46 * + - 32 + - 22 + - ( - 35 ) col2
----
45645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4168
SELECT ALL + MAX( ALL + 84 ) AS col2, + ( - 60 ) * - + COUNT( * ) * - ( SUM( - + 87 ) ) + - CAST( 29 AS SIGNED ) + 84 AS col1
----
84
5275

skipif mysql # not compatible
query II rowsort label-4168
SELECT ALL + MAX ( ALL + 84 ) AS col2, + ( - 60 ) * - + COUNT ( * ) * - ( SUM ( - + 87 ) ) + - CAST ( 29 AS INTEGER ) + 84 AS col1
----
84
5275

query II rowsort
SELECT - 27 + - - 51 AS col2, - 15 AS col0
----
24
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - NULLIF ( + ( - + 97 ), + 9 ) * + - 53 - - 36 + + - COUNT( * ) * - ( 42 ) * 82 + - + 12 * + NULLIF ( - 54, - COUNT( - - 90 ) )
----
-1013

skipif mysql # not compatible
query I rowsort label-4170
SELECT - NULLIF ( + ( - + 97 ), + 9 ) * + - 53 - - 36 + + - COUNT ( * ) * - ( 42 ) * 82 + - + 12 * + NULLIF ( - 54, - COUNT ( - - 90 ) )
----
-1013

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4171
SELECT ALL + NULLIF ( + - CAST( NULL AS SIGNED ), 70 ) * - ( - - 9 ) AS col1, 18 - ( CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4171
SELECT ALL + NULLIF ( + - CAST ( NULL AS INTEGER ), 70 ) * - ( - - 9 ) AS col1, 18 - ( CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - 38 * COUNT( * ) + + 51
----
13

skipif mysql # not compatible
query I rowsort label-4172
SELECT - 38 * COUNT ( * ) + + 51
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT DISTINCT - ( + 82 ) DIV 87 + - 7 * - + 45 AS col2
----
315

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT - ( + 82 ) / 87 + - 7 * - + 45 AS col2
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + COUNT( * ) + + + COUNT( * ) * + 36 * - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-4174
SELECT + COUNT ( * ) + + + COUNT ( * ) * + 36 * - COUNT ( * )
----
-35

query I rowsort
SELECT ALL - - 32 + - - 26
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL MAX( 97 ) + + 19 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL MAX ( 97 ) + + 19 AS col2
----
116

query II rowsort
SELECT DISTINCT - 31 + + 5 + + + NULLIF ( + - 57, - 85 ), + 52 col0
----
-83
52

query I rowsort
SELECT - - 92 - - 48 * + 47 + + 82
----
2430

query II rowsort
SELECT - + 17 * + 77 AS col0, + 69 AS col2
----
-1309
69

query I rowsort
SELECT + + 12 * - + 76 AS col2
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT - COALESCE ( + + 76, 60, + - ( + COUNT( * ) ) )
----
-76

skipif mysql # not compatible
query I rowsort label-4181
SELECT - COALESCE ( + + 76, 60, + - ( + COUNT ( * ) ) )
----
-76

query I rowsort
SELECT DISTINCT - - 2 + ( - + 52 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4183
SELECT + SUM( + - 93 ), 37 AS col0
----
-93
37

skipif mysql # not compatible
query II rowsort label-4183
SELECT + SUM ( + - 93 ), 37 AS col0
----
-93
37

query I rowsort
SELECT + - ( + CASE + 2 WHEN + 8 * + 72 THEN NULL ELSE - 54 END ) AS col0
----
54

query II rowsort
SELECT ALL + 35 col0, + 22
----
35
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4186
SELECT ALL 54 DIV 65 DIV - COUNT( * ) * + 76 - + 31
----
-31

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL 54 / 65 / - COUNT ( * ) * + 76 - + 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT + 70 * + - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-4187
SELECT + 70 * + - COUNT ( * )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT + 46 - + MAX( ALL + + 65 ) / ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT + 46 - + MAX ( ALL + + 65 ) / ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT CAST( - 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-4189
SELECT CAST ( - 69 AS INTEGER ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4190
SELECT 29 * - + ( + MIN( 58 ) ) - + COUNT( * ) * 88 AS col0, 40 * + + 63 AS col1
----
-1770
2520

skipif mysql # not compatible
query II rowsort label-4190
SELECT 29 * - + ( + MIN ( 58 ) ) - + COUNT ( * ) * 88 AS col0, 40 * + + 63 AS col1
----
-1770
2520

query I rowsort
SELECT + ( - 22 ) AS col2
----
-22

query II rowsort
SELECT ALL + 70, 55 * + 67 AS col0
----
70
3685

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL COUNT( * ) * - - 59 col1
----
59

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL COUNT ( * ) * - - 59 col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT + CAST( - 15 AS SIGNED ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4194
SELECT + CAST ( - 15 AS INTEGER ) AS col0
----
-15

query I rowsort
SELECT + 86 + - 27
----
59

query II rowsort
SELECT ALL + 53 AS col2, - 76 * - 13 AS col2
----
53
988

onlyif mysql # aggregate syntax: 
query III rowsort label-4197
SELECT DISTINCT + 56 AS col2, - 36 * - 43 + ( + 68 ) + 11, - + COUNT( * ) AS col0
----
56
1627
-1

skipif mysql # not compatible
query III rowsort label-4197
SELECT DISTINCT + 56 AS col2, - 36 * - 43 + ( + 68 ) + 11, - + COUNT ( * ) AS col0
----
56
1627
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL + COUNT( - ( - 60 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL + COUNT ( - ( - 60 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * MAX( ALL - 67 ) + + + SUM( + 90 ) + + - 93 + + 71 + 81 / 31 * + + 35 * - 38 + + + 41 * + 61 + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * MAX ( ALL - 67 ) + + + SUM ( + 90 ) + + - 93 + + 71 + 81 / 31 * + + 35 * - 38 + + + 41 * + 61 + - 48
----
NULL

query I rowsort
SELECT + 68 + + 35 col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT DISTINCT + SUM( + - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT + SUM ( + - 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL - COUNT( ALL 66 ) * - 67 col0
----
67

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - COUNT ( ALL 66 ) * - 67 col0
----
67

query I rowsort
SELECT + 44 * - + ( 72 )
----
-3168

query I rowsort
SELECT - 50 * 69
----
-3450

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT ALL + 62, COUNT( * ) + + 70 AS col1
----
62
71

skipif mysql # not compatible
query II rowsort label-4205
SELECT ALL + 62, COUNT ( * ) + + 70 AS col1
----
62
71

query I rowsort
SELECT ALL 39 * 66 + 30 + + 67 AS col2
----
2671

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4207
SELECT DISTINCT + COALESCE ( 86, + 1 DIV + CAST( NULL AS SIGNED ) * + + 73 + + 57 * + 51 + + - 1, - 70 ) col2
----
86

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT + COALESCE ( 86, + 1 / + CAST ( NULL AS INTEGER ) * + + 73 + + 57 * + 51 + + - 1, - 70 ) col2
----
86

query I rowsort
SELECT - - ( - 62 )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4209
SELECT - - ( + - 8 ) DIV COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4209
SELECT - - ( + - 8 ) / COUNT ( * ) AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT - - CAST( - 34 AS SIGNED ) + - + 90
----
-124

skipif mysql # not compatible
query I rowsort label-4210
SELECT - - CAST ( - 34 AS INTEGER ) + - + 90
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT - 12 + MIN( + 26 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4211
SELECT - 12 + MIN ( + 26 ) AS col2
----
14

query I rowsort
SELECT - ( - 50 ) - - 52 + 7
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4213
SELECT ALL - 52 DIV - 89 + - CASE + COUNT( * ) WHEN - - ( - - 73 ) THEN NULL ELSE - - COUNT( * ) END - + - 12
----
11

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - 52 / - 89 + - CASE + COUNT ( * ) WHEN - - ( - - 73 ) THEN NULL ELSE - - COUNT ( * ) END - + - 12
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT - 25 + - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-4214
SELECT - 25 + - COUNT ( * )
----
-26

query I rowsort
SELECT DISTINCT - ( + 31 ) AS col2
----
-31

query I rowsort
SELECT ALL + 61 + 79 AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT 54 + - COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4217
SELECT 54 + - COUNT ( * ) AS col2
----
53

query I rowsort
SELECT + 61 + 17
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT COUNT( * ) * + 11 col1
----
11

skipif mysql # not compatible
query I rowsort label-4219
SELECT COUNT ( * ) * + 11 col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT - + CAST( + COALESCE ( - CAST( NULL AS SIGNED ), 2, - - 41 * + COUNT( * ) - COUNT( * ) ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-4220
SELECT - + CAST ( + COALESCE ( - CAST ( NULL AS INTEGER ), 2, - - 41 * + COUNT ( * ) - COUNT ( * ) ) AS INTEGER )
----
-2

query I rowsort
SELECT 18 + + ( 64 ) + 95
----
177

query I rowsort
SELECT 89 * + 50 AS col1
----
4450

query I rowsort
SELECT DISTINCT - 43 * - 69 AS col2
----
2967

query I rowsort
SELECT DISTINCT - ( - + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT COUNT( * ) * - - COUNT( - 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT COUNT ( * ) * - - COUNT ( - 55 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4226
SELECT 98 DIV + NULLIF ( - - 38, - 12 DIV + CAST( NULL AS SIGNED ) + - + ( - - ( - 88 ) ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4226
SELECT 98 / + NULLIF ( - - 38, - 12 / + CAST ( NULL AS INTEGER ) + - + ( - - ( - 88 ) ) ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT - CASE + 81 WHEN - 25 + 17 THEN - - 22 WHEN - 40 THEN 89 WHEN - 47 * 96 * - - 28 / + + CAST( NULL AS SIGNED ) - + 27 - - 88 THEN + 69 ELSE NULL END / - 74 - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT - CASE + 81 WHEN - 25 + 17 THEN - - 22 WHEN - 40 THEN 89 WHEN - 47 * 96 * - - 28 / + + CAST ( NULL AS INTEGER ) - + 27 - - 88 THEN + 69 ELSE NULL END / - 74 - 19
----
NULL

query I rowsort
SELECT 17 - + - 88
----
105

query I rowsort
SELECT ALL COALESCE ( + COALESCE ( 88, - 41, + 7 ), 56, - 86 ) * 12 AS col0
----
1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4230
SELECT COUNT( * ) DIV + 2 AS col2, + 6 * 27 + CASE NULLIF ( + 69, - 18 + + NULLIF ( + + ( - - 66 ), - + 85 * - 34 ) ) WHEN - 66 DIV 56 * + 9 + - 50 THEN + + 49 END + + 93 col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4230
SELECT COUNT ( * ) / + 2 AS col2, + 6 * 27 + CASE NULLIF ( + 69, - 18 + + NULLIF ( + + ( - - 66 ), - + 85 * - 34 ) ) WHEN - 66 / 56 * + 9 + - 50 THEN + + 49 END + + 93 col1
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT + NULLIF ( - 14, - 49 * 47 ) * + - 47 * + 42 * - - 12 + - 69 DIV + 94 + - 38
----
331594

skipif mysql # not compatible
query I rowsort label-4231
SELECT + NULLIF ( - 14, - 49 * 47 ) * + - 47 * + 42 * - - 12 + - 69 / + 94 + - 38
----
331594

query I rowsort
SELECT ALL - 35 + 96 + + 36
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT COUNT( DISTINCT - - ( - 85 ) ) * + + NULLIF ( - 98, 28 / + COALESCE ( + + 3, + COUNT( + 65 ) * - 72 * 27 ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT COUNT ( DISTINCT - - ( - 85 ) ) * + + NULLIF ( - 98, 28 / + COALESCE ( + + 3, + COUNT ( + 65 ) * - 72 * 27 ) ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT 39 + - MIN( ALL - - 78 )
----
-39

skipif mysql # not compatible
query I rowsort label-4234
SELECT 39 + - MIN ( ALL - - 78 )
----
-39

query I rowsort
SELECT DISTINCT 44 * + 45 * - 87
----
-172260

query I rowsort
SELECT DISTINCT 61 + - 47
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT COUNT( * ) * + - COUNT( * ) - 89 + - + 11 + - 51 * - 49 AS col0
----
2398

skipif mysql # not compatible
query I rowsort label-4237
SELECT COUNT ( * ) * + - COUNT ( * ) - 89 + - + 11 + - 51 * - 49 AS col0
----
2398

query I rowsort
SELECT DISTINCT 95 + - + 69
----
26

query I rowsort
SELECT ALL 99 + + - 4 AS col1
----
95

query I rowsort
SELECT DISTINCT + 72 + - 53 + 26
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT 99 * + + ( - CASE - COUNT( * ) WHEN - 50 THEN NULL ELSE + - MAX( + 55 ) END ) * + - 55 + + 52 - 14 AS col1
----
-299437

skipif mysql # not compatible
query I rowsort label-4241
SELECT 99 * + + ( - CASE - COUNT ( * ) WHEN - 50 THEN NULL ELSE + - MAX ( + 55 ) END ) * + - 55 + + 52 - 14 AS col1
----
-299437

query II rowsort
SELECT - 66 + 9 AS col0, 11 AS col0
----
-57
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT - - 27 * + 9 * - + COUNT( * ) * + + 56 AS col2
----
-13608

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT - - 27 * + 9 * - + COUNT ( * ) * + + 56 AS col2
----
-13608

query I rowsort
SELECT DISTINCT 84 + + + 64 - - 69 * - 67 AS col0
----
-4475

query I rowsort
SELECT + 32 * + - 28 AS col0
----
-896

query I rowsort
SELECT - + ( ( 94 ) ) AS col2
----
-94

query I rowsort
SELECT ALL + + 85 * - 49 * 82
----
-341530

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4248
SELECT - 98 - - MAX( DISTINCT + + 40 ) + + COUNT( * ) DIV 84 AS col1, + 21
----
-58
21

skipif mysql # not compatible
query II rowsort label-4248
SELECT - 98 - - MAX ( DISTINCT + + 40 ) + + COUNT ( * ) / 84 AS col1, + 21
----
-58
21

query I rowsort
SELECT - 68 * 93
----
-6324

query I rowsort
SELECT 48 - + - 17 AS col0
----
65

query II rowsort
SELECT 7 * + + 43 AS col0, + 69
----
301
69

query I rowsort
SELECT 92 + 70
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT 99 * + NULLIF ( - - 12, 49 ) * - MIN( ALL - 96 ) * + 86 * 97, - 79 AS col0
----
951388416
-79

skipif mysql # not compatible
query II rowsort label-4253
SELECT 99 * + NULLIF ( - - 12, 49 ) * - MIN ( ALL - 96 ) * + 86 * 97, - 79 AS col0
----
951388416
-79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4254
SELECT 2 * - 20 * + + CAST( - - 27 AS SIGNED ) * - + 75 + ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT 2 * - 20 * + + CAST ( - - 27 AS INTEGER ) * - + 75 + ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT 8 - - + 80 col1
----
88

query II rowsort
SELECT DISTINCT 76 AS col0, 79 AS col0
----
76
79

query I rowsort
SELECT ALL 98 * - - 55
----
5390

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4258
SELECT 24 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT 24 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT COUNT( * ) + - + ( + 98 )
----
-97

skipif mysql # not compatible
query I rowsort label-4259
SELECT COUNT ( * ) + - + ( + 98 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT 37 * SUM( 63 ) * 36
----
83916

skipif mysql # not compatible
query I rowsort label-4260
SELECT 37 * SUM ( 63 ) * 36
----
83916

query II rowsort
SELECT 67 * 22 + 22, + 54 AS col0
----
1496
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT MAX( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4262
SELECT MAX ( + 34 )
----
34

query I rowsort
SELECT - 25 * + - 79 + 34 * 8 + + 23 * + 19 * + 62 AS col2
----
29341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT CASE - CAST( COUNT( * ) AS SIGNED ) WHEN + 30 * - 27 THEN NULL WHEN + - COALESCE ( 13, - 3 ) THEN + 15 * 87 * 46 ELSE - + 21 END - + 27
----
-48

skipif mysql # not compatible
query I rowsort label-4264
SELECT CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN + 30 * - 27 THEN NULL WHEN + - COALESCE ( 13, - 3 ) THEN + 15 * 87 * 46 ELSE - + 21 END - + 27
----
-48

query I rowsort
SELECT DISTINCT - ( - - 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4266
SELECT DISTINCT + COALESCE ( 97, 19, + 69 ) * - 23 + - - NULLIF ( - COUNT( * ), - 83 * - CAST( NULL AS SIGNED ) )
----
-2232

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT + COALESCE ( 97, 19, + 69 ) * - 23 + - - NULLIF ( - COUNT ( * ), - 83 * - CAST ( NULL AS INTEGER ) )
----
-2232

query I rowsort
SELECT DISTINCT - 33 * + 55 + - 26 * - ( + 29 ) AS col1
----
-1061

query I rowsort
SELECT ALL 85 * 7 AS col0
----
595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4269
SELECT COUNT( * ) + + 28 * + COALESCE ( + NULLIF ( + 82, - 57 ), SUM( ALL 59 ) DIV NULLIF ( - 50, + 91 ), + 55 * 76, 41 )
----
2297

skipif mysql # not compatible
query I rowsort label-4269
SELECT COUNT ( * ) + + 28 * + COALESCE ( + NULLIF ( + 82, - 57 ), SUM ( ALL 59 ) / NULLIF ( - 50, + 91 ), + 55 * 76, 41 )
----
2297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4270
SELECT ( COUNT( * ) ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-4270
SELECT ( COUNT ( * ) ) / + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT MAX( ALL 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4271
SELECT MAX ( ALL 99 ) AS col2
----
99

query I rowsort
SELECT 32 * - 5 + + 14
----
-146

query I rowsort
SELECT ALL 42 - 6 * - 36 AS col2
----
258

query I rowsort
SELECT ALL + 32 * - 24
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT + 5 * 13 + SUM( ALL 61 ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-4275
SELECT + 5 * 13 + SUM ( ALL 61 ) AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL 89 * + MIN( ALL + 85 ) AS col2
----
7565

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL 89 * + MIN ( ALL + 85 ) AS col2
----
7565

query I rowsort
SELECT ALL 6 - + 32 AS col1
----
-26

query I rowsort
SELECT + ( + 26 ) + - 38 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT + COUNT( * ) * 86 col2
----
86

skipif mysql # not compatible
query I rowsort label-4279
SELECT + COUNT ( * ) * 86 col2
----
86

query I rowsort
SELECT - NULLIF ( + 49, - 81 * + 22 ) AS col2
----
-49

query I rowsort
SELECT + ( 41 ) * - 28 + 6 AS col0
----
-1142

query I rowsort
SELECT + 71 - + 16 * 78
----
-1177

query I rowsort
SELECT + 41 + + 61 AS col1
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4284
SELECT + COALESCE ( + 25, 11 - + 40, CAST( + CASE 88 WHEN 44 + 59 * 95 THEN NULL ELSE 35 * COUNT( * ) END AS SIGNED ) ) * CASE 72 * + 21 WHEN 67 + + 58 * + 9 THEN COUNT( * ) ELSE 97 * + 43 + - 72 * COUNT( * ) END
----
102475

skipif mysql # not compatible
query I rowsort label-4284
SELECT + COALESCE ( + 25, 11 - + 40, CAST ( + CASE 88 WHEN 44 + 59 * 95 THEN NULL ELSE 35 * COUNT ( * ) END AS INTEGER ) ) * CASE 72 * + 21 WHEN 67 + + 58 * + 9 THEN COUNT ( * ) ELSE 97 * + 43 + - 72 * COUNT ( * ) END
----
102475

query I rowsort
SELECT + 11 + + 61
----
72

query I rowsort
SELECT - 87 + 62 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL COUNT( 16 ) * 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL COUNT ( 16 ) * 31 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4288
SELECT - 4 DIV SUM( + 93 * - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-4288
SELECT - 4 / SUM ( + 93 * - 15 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - 63 + + ( + NULLIF ( - NULLIF ( SUM( ALL + 57 ), - 0 * + 12 - - 57 ), COUNT( * ) * 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT - 63 + + ( + NULLIF ( - NULLIF ( SUM ( ALL + 57 ), - 0 * + 12 - - 57 ), COUNT ( * ) * 85 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL 69 + - MIN( ALL 38 )
----
31

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL 69 + - MIN ( ALL 38 )
----
31

query I rowsort
SELECT ALL 87 + 65 AS col0
----
152

query I rowsort
SELECT + 51 * 11
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL SUM( DISTINCT + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL SUM ( DISTINCT + 76 )
----
76

query I rowsort
SELECT - 33 + 21 AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4295
SELECT - 3 DIV COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4295
SELECT - 3 / COUNT ( * ) AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4296
SELECT ALL + 35 + MIN( 87 ) DIV 84 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + 35 + MIN ( 87 ) / 84 AS col1
----
36

query I rowsort
SELECT ALL + 22 * - 96 + + 6 * 90
----
-1572

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT DISTINCT - CASE - 90 WHEN 54 THEN NULL WHEN COUNT( * ) THEN + NULLIF ( COUNT( * ), - 64 ) WHEN 99 * 53 THEN NULL WHEN 80 / 34 THEN NULL ELSE NULL END * 36 + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT - CASE - 90 WHEN 54 THEN NULL WHEN COUNT ( * ) THEN + NULLIF ( COUNT ( * ), - 64 ) WHEN 99 * 53 THEN NULL WHEN 80 / 34 THEN NULL ELSE NULL END * 36 + 58
----
NULL

query I rowsort
SELECT ALL + 56 * 10 + + 65 AS col0
----
625

query I rowsort
SELECT - 79 * 91 col2
----
-7189

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT 73 DIV 55 - 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4301
SELECT 73 / 55 - 78 AS col0
----
-77

query I rowsort
SELECT DISTINCT + - COALESCE ( + 21, 3 ) * + 91
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT + + COUNT( * ) * 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4303
SELECT + + COUNT ( * ) * 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT DISTINCT + COUNT( * ) * - 74
----
-74

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT + COUNT ( * ) * - 74
----
-74

query I rowsort
SELECT DISTINCT + + ( 66 ) * 65
----
4290

query I rowsort
SELECT - 5 * - 74
----
370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT ALL 44 DIV - COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL 44 / - COUNT ( * ) AS col1
----
-44

query I rowsort
SELECT - 19 - 9 AS col2
----
-28

query I rowsort
SELECT ALL 43 * + 24 - + 64
----
968

query I rowsort
SELECT - 72 * 83
----
-5976

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT ALL + 13 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + 13 / 52
----
0

query I rowsort
SELECT + CASE WHEN NOT NULL IS NOT NULL THEN ( + 98 ) END AS col1
----
98

query I rowsort
SELECT + + 2 + ( - 5 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + MIN( ALL - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4314
SELECT + MIN ( ALL - 32 )
----
-32

query I rowsort
SELECT ALL + ( + 94 ) AS col2
----
94

query I rowsort
SELECT DISTINCT 29 * + ( 30 * + 97 )
----
84390

query I rowsort
SELECT - + 57 * 27
----
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT + MIN( DISTINCT - 50 ) * - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT + MIN ( DISTINCT - 50 ) * - COUNT ( * ) AS col0
----
50

query I rowsort
SELECT + - 83 * 30
----
-2490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4320
SELECT ALL + MIN( ALL 53 ) * + 48 + - ( - COUNT( * ) ) DIV + 13
----
2544

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + MIN ( ALL 53 ) * + 48 + - ( - COUNT ( * ) ) / + 13
----
2544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4321
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 56
----
NULL

query I rowsort
SELECT ALL CASE 90 WHEN 87 THEN + 71 / - CASE 20 WHEN + 72 * 57 + + 50 THEN NULL WHEN 88 + + ( + 75 - ( + 24 ) ) THEN - 31 END ELSE NULL END + + 79
----
NULL

query I rowsort
SELECT - ( - ( 98 ) ) * + 73
----
7154

query I rowsort
SELECT + 64 * 23
----
1472

query I rowsort
SELECT ALL 46 + - 44 AS col0
----
2

query I rowsort
SELECT + 51 + 7
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL ( + + 9 ) + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL ( + + 9 ) + COUNT ( * )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4328
SELECT + 28 + - CAST( - COUNT( * ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-4328
SELECT + 28 + - CAST ( - COUNT ( * ) AS INTEGER )
----
29

query I rowsort
SELECT + NULLIF ( + 48, - 7 * 77 ) * 98
----
4704

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT + 4 + + 99 + 81 DIV 73 * 77
----
180

skipif mysql # not compatible
query I rowsort label-4330
SELECT + 4 + + 99 + 81 / 73 * 77
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4331
SELECT ALL COUNT( * ) + 3 + 32 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL COUNT ( * ) + 3 + 32 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT DISTINCT 74 * - 2 * + MIN( + 26 ) col2
----
-3848

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT 74 * - 2 * + MIN ( + 26 ) col2
----
-3848

query I rowsort
SELECT ALL ( + 29 ) + 95 AS col2
----
124

query I rowsort
SELECT ALL + 31 * - 13
----
-403

query I rowsort
SELECT ALL - 77 + - 52
----
-129

query I rowsort
SELECT + 74 - + + 13
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - 50 + 88 + ( - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-4337
SELECT - 50 + 88 + ( - COUNT ( * ) )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT + 62 * ( COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-4338
SELECT + 62 * ( COUNT ( * ) )
----
62

query I rowsort
SELECT - 67 * + - 13
----
871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT 41 * - 20 * - CAST( + 39 AS SIGNED ) - 55
----
31925

skipif mysql # not compatible
query I rowsort label-4340
SELECT 41 * - 20 * - CAST ( + 39 AS INTEGER ) - 55
----
31925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4341
SELECT DISTINCT + 16 * + 5 - - 52 DIV + MAX( 3 )
----
97

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT + 16 * + 5 - - 52 / + MAX ( 3 )
----
97

query I rowsort
SELECT ALL + + 82 - + 33 + - 56
----
-7

query I rowsort
SELECT ALL - - 70 * - - 4 + + 70
----
350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT DISTINCT + - 7 * - 87 + + CAST( NULL AS SIGNED ) * - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT + - 7 * - 87 + + CAST ( NULL AS INTEGER ) * - 11 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( + + 59, 43 * + 56 )
----
59

query I rowsort
SELECT 54 + + - 23 - 44 AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT - COALESCE ( - + 94, + ( COALESCE ( + 22, 42 DIV - 60 ) ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4347
SELECT - COALESCE ( - + 94, + ( COALESCE ( + 22, 42 / - 60 ) ) ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT COUNT( * ) * 35 * + 52 - 72 * 92
----
-4804

skipif mysql # not compatible
query I rowsort label-4348
SELECT COUNT ( * ) * 35 * + 52 - 72 * 92
----
-4804

query I rowsort
SELECT - 78 + + 10 * - 77
----
-848

query I rowsort
SELECT ALL + + 65 * + 27 * + 87
----
152685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4351
SELECT ALL - CASE 79 WHEN 53 - + COUNT( * ) * 19 THEN + MIN( DISTINCT - 52 ) ELSE - 79 * COUNT( * ) END + 29 * - COALESCE ( CASE CAST( + NULLIF ( + 80, 23 * 72 ) AS SIGNED ) WHEN + 90 THEN + 54 END DIV 78, - 7 + 84 )
----
-2154

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL - CASE 79 WHEN 53 - + COUNT ( * ) * 19 THEN + MIN ( DISTINCT - 52 ) ELSE - 79 * COUNT ( * ) END + 29 * - COALESCE ( CASE CAST ( + NULLIF ( + 80, 23 * 72 ) AS INTEGER ) WHEN + 90 THEN + 54 END / 78, - 7 + 84 )
----
-2154

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT + COUNT( * ) + 10 + + 24 * 73
----
1763

skipif mysql # not compatible
query I rowsort label-4352
SELECT + COUNT ( * ) + 10 + + 24 * 73
----
1763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4353
SELECT 92 / + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT 92 / + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - - 98 + - + ( + COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - - 98 + - + ( + COUNT ( * ) )
----
97

query I rowsort
SELECT NULLIF ( - 19, 38 )
----
-19

query I rowsort
SELECT ALL - 26 + - + 88
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4357
SELECT ( + CAST( 79 AS SIGNED ) ) + - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4357
SELECT ( + CAST ( 79 AS INTEGER ) ) + - COUNT ( * )
----
78

query I rowsort
SELECT 98 + - - 95
----
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4359
SELECT DISTINCT - ( + COUNT( * ) ) DIV 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT - ( + COUNT ( * ) ) / 54 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL + COUNT( * ) + - 58 * - ( 50 ) + - CAST( 17 AS SIGNED ) * 39 AS col0
----
2238

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + COUNT ( * ) + - 58 * - ( 50 ) + - CAST ( 17 AS INTEGER ) * 39 AS col0
----
2238

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT COUNT( * ) + 48 - + + 76 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4361
SELECT COUNT ( * ) + 48 - + + 76 AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT 17 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT 17 / 60
----
0

query I rowsort
SELECT 53 + 29
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL 40 * 42 * + COUNT( * ) * - 63
----
-105840

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL 40 * 42 * + COUNT ( * ) * - 63
----
-105840

query I rowsort
SELECT ALL + 8 + + NULLIF ( - 8, - 22 )
----
0

query I rowsort
SELECT ALL - ( - ( CASE - 64 WHEN - 34 * - 1 THEN NULL ELSE 55 * 80 END ) ) * - 89
----
-391600

query I rowsort
SELECT ALL + ( + 79 ) - + 88 + 65
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4368
SELECT - 92 col0, + 84 * + COUNT( + 50 )
----
-92
84

skipif mysql # not compatible
query II rowsort label-4368
SELECT - 92 col0, + 84 * + COUNT ( + 50 )
----
-92
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT 42 * COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4369
SELECT 42 * COUNT ( * ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT 49 + 67 + - COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-4370
SELECT 49 + 67 + - COUNT ( * )
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT CASE SUM( + + 64 ) WHEN + 38 / ( COUNT( * ) ) + COUNT( * ) THEN SUM( CAST( 18 AS SIGNED ) ) END + 47 / 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT CASE SUM ( + + 64 ) WHEN + 38 / ( COUNT ( * ) ) + COUNT ( * ) THEN SUM ( CAST ( 18 AS INTEGER ) ) END + 47 / 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT 68 * 27 * COALESCE ( 18, 91 + + 70 * + COUNT( * ) ) * ( - ( + 36 ) ) AS col1
----
-1189728

skipif mysql # not compatible
query I rowsort label-4372
SELECT 68 * 27 * COALESCE ( 18, 91 + + 70 * + COUNT ( * ) ) * ( - ( + 36 ) ) AS col1
----
-1189728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4373
SELECT ALL - + 43, - NULLIF ( - + COALESCE ( + 81, - COALESCE ( 72, 82 + 22 * + 29 ) + - COUNT( * ) DIV 2 ), - 41 + - CASE CAST( - 2 AS SIGNED ) WHEN - 35 + + 21 THEN - 54 ELSE NULL END ) AS col1
----
-43
81

skipif mysql # not compatible
query II rowsort label-4373
SELECT ALL - + 43, - NULLIF ( - + COALESCE ( + 81, - COALESCE ( 72, 82 + 22 * + 29 ) + - COUNT ( * ) / 2 ), - 41 + - CASE CAST ( - 2 AS INTEGER ) WHEN - 35 + + 21 THEN - 54 ELSE NULL END ) AS col1
----
-43
81

query I rowsort
SELECT + 22 * - - 1 + + ( + 20 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + MIN( DISTINCT - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4375
SELECT + MIN ( DISTINCT - 44 )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4376
SELECT ALL + 62 * + - ( CASE WHEN NULL NOT IN ( CAST( CAST( - 77 AS SIGNED ) AS SIGNED ) ) THEN NULL WHEN ( NULL ) NOT IN ( 94 * COUNT( * ) ) THEN + ( NULLIF ( 45, 80 + 90 ) ) - COUNT( * ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + 62 * + - ( CASE WHEN NULL NOT IN ( CAST ( CAST ( - 77 AS INTEGER ) AS INTEGER ) ) THEN NULL WHEN ( NULL ) NOT IN ( 94 * COUNT ( * ) ) THEN + ( NULLIF ( 45, 80 + 90 ) ) - COUNT ( * ) ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + COUNT( * ) * - 20 * - 43
----
860

skipif mysql # not compatible
query I rowsort label-4377
SELECT + COUNT ( * ) * - 20 * - 43
----
860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT ALL 66 * ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL 66 * ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4379
SELECT - 67 DIV 86 - + 86 * - 58 AS col2
----
4988

skipif mysql # not compatible
query I rowsort label-4379
SELECT - 67 / 86 - + 86 * - 58 AS col2
----
4988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4380
SELECT 69 * + - 40 DIV + MIN( DISTINCT 8 ) AS col1
----
-345

skipif mysql # not compatible
query I rowsort label-4380
SELECT 69 * + - 40 / + MIN ( DISTINCT 8 ) AS col1
----
-345

query I rowsort
SELECT 85 * 45 * - + 98 - 12 + + 97 AS col1
----
-374765

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ALL + 10 + - COUNT( ALL + + 62 ) * - MIN( + 11 + - 17 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL + 10 + - COUNT ( ALL + + 62 ) * - MIN ( + 11 + - 17 ) AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT DISTINCT CAST( - AVG ( DISTINCT - - 22 ) AS SIGNED ) + 73 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT CAST ( - AVG ( DISTINCT - - 22 ) AS INTEGER ) + 73 AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4384
SELECT 48, 5 / CAST( NULL AS SIGNED ) AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-4384
SELECT 48, 5 / CAST ( NULL AS INTEGER ) AS col0
----
48
NULL

query I rowsort
SELECT ALL - 30 + - + 58 + + 75
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT CASE - 71 WHEN - 41 / - COUNT( 15 / + 34 ) THEN + ( 72 ) WHEN - 36 / 65 THEN NULL ELSE 91 END * 12 AS col0
----
1092

skipif mysql # not compatible
query I rowsort label-4386
SELECT CASE - 71 WHEN - 41 / - COUNT ( 15 / + 34 ) THEN + ( 72 ) WHEN - 36 / 65 THEN NULL ELSE 91 END * 12 AS col0
----
1092

query I rowsort
SELECT DISTINCT + 19 + + 75
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT ALL - 97 col1, + ( - 18 ) + - MIN( + 64 ) col1
----
-97
-82

skipif mysql # not compatible
query II rowsort label-4388
SELECT ALL - 97 col1, + ( - 18 ) + - MIN ( + 64 ) col1
----
-97
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4389
SELECT ALL + - ( - - 47 ) + + 86 + + 72 DIV 23
----
42

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL + - ( - - 47 ) + + 86 + + 72 / 23
----
42

query I rowsort
SELECT ALL - 94 + + + 53 * + 3
----
65

query I rowsort
SELECT 17 * + + 7
----
119

query I rowsort
SELECT 43 * - + 4
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL + COUNT( * ) + - - 50
----
51

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + COUNT ( * ) + - - 50
----
51

query I rowsort
SELECT ALL 10 + - + ( + 77 ) * + 15 * 45 col0
----
-51965

query I rowsort
SELECT DISTINCT 27 - - + 71
----
98

query II rowsort
SELECT 71 * - 22 col2, + 27 + + ( 81 ) AS col1
----
-1562
108

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4397
SELECT 42 + + 49 AS col2, CAST( NULL AS SIGNED ) * + - CAST( 52 AS DECIMAL ) * - 16 AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-4397
SELECT 42 + + 49 AS col2, CAST ( NULL AS INTEGER ) * + - CAST ( 52 AS REAL ) * - 16 AS col2
----
91
NULL

query I rowsort
SELECT ALL - 4 * - + 69
----
276

query I rowsort
SELECT - 56 * + - ( 27 )
----
1512

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4400
SELECT ALL NULLIF ( - - 12, + 70 + CAST( + COUNT( + 9 ) AS DECIMAL ) )
----
12

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL NULLIF ( - - 12, + 70 + CAST ( + COUNT ( + 9 ) AS REAL ) )
----
12

query I rowsort
SELECT DISTINCT + 96 * + 30 AS col2
----
2880

query I rowsort
SELECT ALL - 42 * + - 0 * + 26 AS col0
----
0

query I rowsort
SELECT DISTINCT + - 36 * + 32 * - 93 AS col2
----
107136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4404
SELECT + + ( - + 87 ) + - - CAST( NULL AS SIGNED ) + 83 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4404
SELECT + + ( - + 87 ) + - - CAST ( NULL AS INTEGER ) + 83 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT + 94 * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-4405
SELECT + 94 * - COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT - - COUNT( ALL + 42 ) * + 56 - + - 96 + - 33 * COUNT( * ) * + 91 col1
----
-2851

skipif mysql # not compatible
query I rowsort label-4406
SELECT - - COUNT ( ALL + 42 ) * + 56 - + - 96 + - 33 * COUNT ( * ) * + 91 col1
----
-2851

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT + 28 * + - SUM( DISTINCT - - 78 ) * COUNT( * ) + - 95 AS col0
----
-2279

skipif mysql # not compatible
query I rowsort label-4407
SELECT + 28 * + - SUM ( DISTINCT - - 78 ) * COUNT ( * ) + - 95 AS col0
----
-2279

onlyif mysql # aggregate syntax: 
query II rowsort label-4408
SELECT COUNT( ALL + 34 ), - 97 + + - 39 AS col1
----
1
-136

skipif mysql # not compatible
query II rowsort label-4408
SELECT COUNT ( ALL + 34 ), - 97 + + - 39 AS col1
----
1
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL - COUNT( ALL 31 ) * COUNT( * ) * 47 + - 13
----
-60

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - COUNT ( ALL 31 ) * COUNT ( * ) * 47 + - 13
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT ALL - 52 * COUNT( * ) + - 99 + + ( ( COALESCE ( - 57, + 29 * 93 + - 26 * - ( + 82 ) ) ) ) * COALESCE ( 81, 34 ) AS col0
----
-4768

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL - 52 * COUNT ( * ) + - 99 + + ( ( COALESCE ( - 57, + 29 * 93 + - 26 * - ( + 82 ) ) ) ) * COALESCE ( 81, 34 ) AS col0
----
-4768

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL + 17 * NULLIF ( - - 25, 21 * SUM( - 18 ) + 68 / + 13 ) + 10 AS col1
----
435

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + 17 * NULLIF ( - - 25, 21 * SUM ( - 18 ) + 68 / + 13 ) + 10 AS col1
----
435

query I rowsort
SELECT - 52 * - - 97 * 40 * - 65 + NULLIF ( - 97, ( - 54 ) * + 50 )
----
13114303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT DISTINCT - ( - CAST( - + 87 AS SIGNED ) ) * - 40 col2
----
3480

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - ( - CAST ( - + 87 AS INTEGER ) ) * - 40 col2
----
3480

query I rowsort
SELECT ALL + + 80 * 22 + - - COALESCE ( + 6, 53 ) AS col1
----
1766

query I rowsort
SELECT + 54 * + 83
----
4482

query I rowsort
SELECT + + NULLIF ( - 98, + 32 ) + - + 89 * + 97
----
-8731

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT - 14 * - COUNT( * ) + - 28 - 77 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4417
SELECT - 14 * - COUNT ( * ) + - 28 - 77 AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4418
SELECT ALL + COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT - 6 * - 60 + 64 * - COUNT( * ) * + + 26
----
-1304

skipif mysql # not compatible
query I rowsort label-4419
SELECT - 6 * - 60 + 64 * - COUNT ( * ) * + + 26
----
-1304

query I rowsort
SELECT NULLIF ( - - 76, 65 + + 11 ) * - 14 / 36 + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT - MIN( - 99 ) + - 86 + - - 7 + - COUNT( * ) + - 48
----
-29

skipif mysql # not compatible
query I rowsort label-4421
SELECT - MIN ( - 99 ) + - 86 + - - 7 + - COUNT ( * ) + - 48
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT - 51 + - COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4422
SELECT - 51 + - COUNT ( * ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query III rowsort label-4423
SELECT ALL COUNT( * ) AS col1, 31 + + COUNT( * ), + 81 AS col1
----
1
32
81

skipif mysql # not compatible
query III rowsort label-4423
SELECT ALL COUNT ( * ) AS col1, 31 + + COUNT ( * ), + 81 AS col1
----
1
32
81

query I rowsort
SELECT + 62 * 21 AS col0
----
1302

query I rowsort
SELECT - 68 * + 38 AS col1
----
-2584

query I rowsort
SELECT ALL - 18 * + 95
----
-1710

query I rowsort
SELECT DISTINCT 56 * 47 AS col2
----
2632

query I rowsort
SELECT ALL + 10 * + NULLIF ( + 15, + 37 )
----
150

query I rowsort
SELECT DISTINCT + 1 + - 99 * + + ( 74 )
----
-7325

query I rowsort
SELECT DISTINCT - 4 + + - 66 * + 74 * + 73 col2
----
-356536

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL + COUNT( * ) + - - ( - - 23 ) - + - 67 * + COALESCE ( 85, 47 )
----
5719

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL + COUNT ( * ) + - - ( - - 23 ) - + - 67 * + COALESCE ( 85, 47 )
----
5719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4432
SELECT - CASE + 3 WHEN + 94 THEN COUNT( * ) ELSE + MAX( + ( + CAST( 15 AS SIGNED ) ) ) * + 22 END AS col0
----
-330

skipif mysql # not compatible
query I rowsort label-4432
SELECT - CASE + 3 WHEN + 94 THEN COUNT ( * ) ELSE + MAX ( + ( + CAST ( 15 AS INTEGER ) ) ) * + 22 END AS col0
----
-330

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT - COUNT( * ), + 40 col2
----
-1
40

skipif mysql # not compatible
query II rowsort label-4433
SELECT - COUNT ( * ), + 40 col2
----
-1
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4434
SELECT DISTINCT + CASE + + COUNT( * ) WHEN - + 15 + + + ( + NULLIF ( COUNT( * ), - 51 + + ( - CAST( - 27 AS DECIMAL ) + + 55 * 75 ) * 51 ) ) THEN ( 66 ) * 83 - - SUM( ALL - 78 ) END + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT + CASE + + COUNT ( * ) WHEN - + 15 + + + ( + NULLIF ( COUNT ( * ), - 51 + + ( - CAST ( - 27 AS REAL ) + + 55 * 75 ) * 51 ) ) THEN ( 66 ) * 83 - - SUM ( ALL - 78 ) END + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT - - 90 * NULLIF ( + - 28, + COUNT( * ) + + 55 * - 98 ) - + MAX( DISTINCT 2 )
----
-2522

skipif mysql # not compatible
query I rowsort label-4435
SELECT - - 90 * NULLIF ( + - 28, + COUNT ( * ) + + 55 * - 98 ) - + MAX ( DISTINCT 2 )
----
-2522

query I rowsort
SELECT ALL + + 92 + 96 AS col0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT + COALESCE ( COUNT( * ), + 39 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT + COALESCE ( COUNT ( * ), + 39 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT DISTINCT + MIN( - 57 ) + + + 23 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT + MIN ( - 57 ) + + + 23 AS col2
----
-34

query II rowsort
SELECT ALL + 42, - 73 AS col0
----
42
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT - + 34 DIV + 93 + - 46 * - COUNT( * ) + - - 48 DIV - 7
----
40

skipif mysql # not compatible
query I rowsort label-4440
SELECT - + 34 / + 93 + - 46 * - COUNT ( * ) + - - 48 / - 7
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4441
SELECT DISTINCT + - NULLIF ( COUNT( 77 ), + + ( - 66 ) * 76 ) DIV - 23 + - COUNT( * ) * 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + - NULLIF ( COUNT ( 77 ), + + ( - 66 ) * 76 ) / - 23 + - COUNT ( * ) * 43 AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT - + 22 * - - 78 - + - 90 DIV - + COUNT( * )
----
-1806

skipif mysql # not compatible
query I rowsort label-4442
SELECT - + 22 * - - 78 - + - 90 / - + COUNT ( * )
----
-1806

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT DISTINCT + - 73, COUNT( * ) AS col2
----
-73
1

skipif mysql # not compatible
query II rowsort label-4443
SELECT DISTINCT + - 73, COUNT ( * ) AS col2
----
-73
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT + CASE - - 68 WHEN - 46 THEN + + 83 WHEN - - COUNT( * ) + - 76 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT + CASE - - 68 WHEN - 46 THEN + + 83 WHEN - - COUNT ( * ) + - 76 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - ( - 6 )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT ALL + 4 DIV 23 + - COALESCE ( + - 30, - + 66, - 84 ) - 42 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL + 4 / 23 + - COALESCE ( + - 30, - + 66, - 84 ) - 42 AS col2
----
-12

query I rowsort
SELECT ALL + - 14 col2
----
-14

query I rowsort
SELECT ( - 29 ) AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT + 81 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4449
SELECT + 81 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( + 72 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT MAX( ALL + + 50 ) * + 4 - - - 50
----
150

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT MAX ( ALL + + 50 ) * + 4 - - - 50
----
150

query I rowsort
SELECT + ( + 66 ) col0
----
66

query II rowsort
SELECT ALL + 82 AS col1, - 55 AS col0
----
82
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT + COUNT( * ), - 69 AS col2
----
1
-69

skipif mysql # not compatible
query II rowsort label-4454
SELECT + COUNT ( * ), - 69 AS col2
----
1
-69

query I rowsort
SELECT - 45 * - - 82 * 35
----
-129150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4456
SELECT + CASE + COUNT( * ) WHEN + 22 THEN + 82 ELSE NULL END * + CAST( NULL AS DECIMAL ) * - MAX( DISTINCT - 17 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT + CASE + COUNT ( * ) WHEN + 22 THEN + 82 ELSE NULL END * + CAST ( NULL AS REAL ) * - MAX ( DISTINCT - 17 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT ALL CAST( - 54 AS SIGNED ) * - - 19
----
-1026

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL CAST ( - 54 AS INTEGER ) * - - 19
----
-1026

query I rowsort
SELECT - 63 - - 78 * + + 7
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT + CASE 80 WHEN - - 36 THEN + 79 WHEN - 84 THEN NULL END / COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT + CASE 80 WHEN - - 36 THEN + 79 WHEN - 84 THEN NULL END / COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT 74 * ( - 69 )
----
-5106

query II rowsort
SELECT 92, 21 AS col1
----
92
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4462
SELECT CAST( - - COALESCE ( - 17, + 54, - - CASE - - 63 WHEN 2 THEN 52 - 60 ELSE 99 END ) AS SIGNED ) DIV - 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4462
SELECT CAST ( - - COALESCE ( - 17, + 54, - - CASE - - 63 WHEN 2 THEN 52 - 60 ELSE 99 END ) AS INTEGER ) / - 24 AS col0
----
0

query II rowsort
SELECT ALL - 16, + 53 AS col2
----
-16
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT CASE 37 WHEN - + 56 * - 56 THEN + COUNT( * ) * 62 + 88 ELSE NULL END * - NULLIF ( + 63, + 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT CASE 37 WHEN - + 56 * - 56 THEN + COUNT ( * ) * 62 + 88 ELSE NULL END * - NULLIF ( + 63, + 79 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT ALL CAST( NULL AS SIGNED ) * - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL CAST ( NULL AS INTEGER ) * - 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT MIN( DISTINCT - - 86 ) * 69 col0
----
5934

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT MIN ( DISTINCT - - 86 ) * 69 col0
----
5934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4467
SELECT DISTINCT MIN( ALL + - 81 ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT MIN ( ALL + - 81 ) / + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 87 col0, + 91 AS col1
----
87
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4469
SELECT ALL + COALESCE ( + 43, + ( - - CAST( + MAX( DISTINCT + 25 ) AS SIGNED ) ) * 73 ) * + 90 col1
----
3870

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL + COALESCE ( + 43, + ( - - CAST ( + MAX ( DISTINCT + 25 ) AS INTEGER ) ) * 73 ) * + 90 col1
----
3870

onlyif mysql # aggregate syntax: 
query II rowsort label-4470
SELECT DISTINCT 8 + COUNT( + + 39 ) * - 21 AS col2, + 69 AS col0
----
-13
69

skipif mysql # not compatible
query II rowsort label-4470
SELECT DISTINCT 8 + COUNT ( + + 39 ) * - 21 AS col2, + 69 AS col0
----
-13
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4471
SELECT - 54 col2, SUM( ALL - - 46 ) AS col0
----
-54
46

skipif mysql # not compatible
query II rowsort label-4471
SELECT - 54 col2, SUM ( ALL - - 46 ) AS col0
----
-54
46

query II rowsort
SELECT - 55 AS col2, 28 * - ( + 65 )
----
-55
-1820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT 96 DIV + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4473
SELECT 96 / + COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT ALL 43 + + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL 43 + + COUNT ( * ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4475
SELECT - 9, + COUNT( * ) col0
----
-9
1

skipif mysql # not compatible
query II rowsort label-4475
SELECT - 9, + COUNT ( * ) col0
----
-9
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT ALL 10, MIN( 30 ) AS col0
----
10
30

skipif mysql # not compatible
query II rowsort label-4476
SELECT ALL 10, MIN ( 30 ) AS col0
----
10
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT + 6 + + COUNT( * ) - 35 * - - COUNT( * ) * + + 69
----
-2408

skipif mysql # not compatible
query I rowsort label-4477
SELECT + 6 + + COUNT ( * ) - 35 * - - COUNT ( * ) * + + 69
----
-2408

query I rowsort
SELECT ( + + 99 ) - 92 + + 22 - - - 74
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ALL + - COUNT( * ) * - NULLIF ( - 82, - NULLIF ( - 76, - + 45 ) ) + - 80 AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL + - COUNT ( * ) * - NULLIF ( - 82, - NULLIF ( - 76, - + 45 ) ) + - 80 AS col1
----
-162

query II rowsort
SELECT - 88 AS col0, 77 - - 61
----
-88
138

query I rowsort
SELECT + 20 + + 73 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL - COUNT( * ) + + 94 * 76 * + - 26 - - 24
----
-185721

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - COUNT ( * ) + + 94 * 76 * + - 26 - - 24
----
-185721

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT NULLIF ( + + CASE WHEN - ( - 2 ) NOT BETWEEN ( NULL ) AND + 35 * - ( + 85 * 20 ) THEN + ( 90 ) WHEN - ( - MAX( DISTINCT - 72 ) ) * ( 62 * COUNT( 78 ) ) <= NULL THEN NULL END, COUNT( * ) ) + 88
----
178

skipif mysql # not compatible
query I rowsort label-4483
SELECT NULLIF ( + + CASE WHEN - ( - 2 ) NOT BETWEEN ( NULL ) AND + 35 * - ( + 85 * 20 ) THEN + ( 90 ) WHEN - ( - MAX ( DISTINCT - 72 ) ) * ( 62 * COUNT ( 78 ) ) <= NULL THEN NULL END, COUNT ( * ) ) + 88
----
178

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4484
SELECT ALL + - 56 + - + MIN( - - NULLIF ( 90, - - 50 ) ) + + CASE CAST( NULL AS DECIMAL ) WHEN 98 THEN 48 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + - 56 + - + MIN ( - - NULLIF ( 90, - - 50 ) ) + + CASE CAST ( NULL AS REAL ) WHEN 98 THEN 48 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4485
SELECT 30 AS col0, COALESCE ( CAST( - 71 AS SIGNED ), SUM( - 82 ) * 11, + 62 + + CAST( COUNT( * ) + + 96 AS SIGNED ) ) + - 49
----
30
-120

skipif mysql # not compatible
query II rowsort label-4485
SELECT 30 AS col0, COALESCE ( CAST ( - 71 AS INTEGER ), SUM ( - 82 ) * 11, + 62 + + CAST ( COUNT ( * ) + + 96 AS INTEGER ) ) + - 49
----
30
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4486
SELECT ALL + COUNT( * ) AS col1, + CASE + - MAX( - 43 ) WHEN + 53 - 41 THEN - 65 * 28 + COUNT( * ) * CAST( NULL AS SIGNED ) WHEN ( 51 ) - AVG ( DISTINCT - 2 ) / COUNT( * ) THEN NULL WHEN ( + COUNT( * ) ) THEN 6 END * + 90 col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4486
SELECT ALL + COUNT ( * ) AS col1, + CASE + - MAX ( - 43 ) WHEN + 53 - 41 THEN - 65 * 28 + COUNT ( * ) * CAST ( NULL AS INTEGER ) WHEN ( 51 ) - AVG ( DISTINCT - 2 ) / COUNT ( * ) THEN NULL WHEN ( + COUNT ( * ) ) THEN 6 END * + 90 col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT SUM( + 1 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4487
SELECT SUM ( + 1 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT - + 27 + + COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - + 27 + + COUNT ( * ) AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4489
SELECT 46 * + 77 * + 16 + + ( + 56 ) - - + ( CASE - CASE + 56 WHEN 8 * + CAST( NULL AS SIGNED ) + + 34 THEN COUNT( * ) END WHEN + 34 + - MAX( - 80 ) THEN 38 + 99 WHEN COUNT( * ) * 45 THEN + MIN( - 67 ) WHEN 89 / + 11 THEN NULL ELSE 58 END ) + - 45
----
56741

skipif mysql # not compatible
query I rowsort label-4489
SELECT 46 * + 77 * + 16 + + ( + 56 ) - - + ( CASE - CASE + 56 WHEN 8 * + CAST ( NULL AS INTEGER ) + + 34 THEN COUNT ( * ) END WHEN + 34 + - MAX ( - 80 ) THEN 38 + 99 WHEN COUNT ( * ) * 45 THEN + MIN ( - 67 ) WHEN 89 / + 11 THEN NULL ELSE 58 END ) + - 45
----
56741

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL - - CASE COUNT( ALL - + 59 ) WHEN + 72 * + 79 * + 91 - 24 THEN NULL ELSE 34 END - NULLIF ( + SUM( DISTINCT 71 ), + 98 + - 47 )
----
-37

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - - CASE COUNT ( ALL - + 59 ) WHEN + 72 * + 79 * + 91 - 24 THEN NULL ELSE 34 END - NULLIF ( + SUM ( DISTINCT 71 ), + 98 + - 47 )
----
-37

query II rowsort
SELECT - 73, - 75 * - 4 AS col2
----
-73
300

query I rowsort
SELECT - 81 * 90 + - 64 * 64 + 98 AS col1
----
-11288

query II rowsort
SELECT ALL - 13, - 18 AS col1
----
-13
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4494
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) AS col0, 20 col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-4494
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col0, 20 col0
----
NULL
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT DISTINCT - - 22 DIV 24 * 12 + - - 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT - - 22 / 24 * 12 + - - 54 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT - MIN( ALL - + 62 ) * - 87 AS col1
----
-5394

skipif mysql # not compatible
query I rowsort label-4496
SELECT - MIN ( ALL - + 62 ) * - 87 AS col1
----
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL - - 72 * - NULLIF ( COUNT( * ), + - 91 )
----
-72

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL - - 72 * - NULLIF ( COUNT ( * ), + - 91 )
----
-72

query I rowsort
SELECT DISTINCT - - 46 AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT ALL + CAST( NULL AS SIGNED ) * + + 33 / - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 33 / - 8 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4500
SELECT 27 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT 27 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT 45 * - 28 * + CASE + + 91 WHEN 43 * - 71 + + 49 THEN NULL WHEN MAX( ALL 77 ) * 12 THEN NULL WHEN + 20 + 87 * 54 THEN 28 * NULLIF ( COUNT( * ), - 82 + + 77 ) + 43 ELSE ( + MAX( ALL 11 ) ) END + + 94 * - 38
----
-17432

skipif mysql # not compatible
query I rowsort label-4501
SELECT 45 * - 28 * + CASE + + 91 WHEN 43 * - 71 + + 49 THEN NULL WHEN MAX ( ALL 77 ) * 12 THEN NULL WHEN + 20 + 87 * 54 THEN 28 * NULLIF ( COUNT ( * ), - 82 + + 77 ) + 43 ELSE ( + MAX ( ALL 11 ) ) END + + 94 * - 38
----
-17432

query I rowsort
SELECT 36 * - 1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4503
SELECT + 22 * + + 4 * + 1 - + ( - + ( - + COUNT( * ) ) ) + ( 44 ) DIV 41 * - ( - COUNT( DISTINCT 34 ) )
----
88

skipif mysql # not compatible
query I rowsort label-4503
SELECT + 22 * + + 4 * + 1 - + ( - + ( - + COUNT ( * ) ) ) + ( 44 ) / 41 * - ( - COUNT ( DISTINCT 34 ) )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4504
SELECT 52 + - 6, 7 - + CAST( NULL AS SIGNED ) col2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-4504
SELECT 52 + - 6, 7 - + CAST ( NULL AS INTEGER ) col2
----
46
NULL

query I rowsort
SELECT DISTINCT - ( - 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4506
SELECT + 59 * - MAX( ALL + - 77 ) + 41 DIV - + 63 AS col1
----
4543

skipif mysql # not compatible
query I rowsort label-4506
SELECT + 59 * - MAX ( ALL + - 77 ) + 41 / - + 63 AS col1
----
4543

onlyif mysql # aggregate syntax: 
query II rowsort label-4507
SELECT DISTINCT COUNT( * ) * + - 41 AS col1, - 80
----
-41
-80

skipif mysql # not compatible
query II rowsort label-4507
SELECT DISTINCT COUNT ( * ) * + - 41 AS col1, - 80
----
-41
-80

query II rowsort
SELECT DISTINCT + 0 + - 79 col1, + 11
----
-79
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ( 89 ) + - - 57 - - COUNT( * )
----
147

skipif mysql # not compatible
query I rowsort label-4509
SELECT ( 89 ) + - - 57 - - COUNT ( * )
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT MAX( DISTINCT + 73 ) + 88 + - 18 + + COUNT( * ) + - 48 + 0
----
96

skipif mysql # not compatible
query I rowsort label-4510
SELECT MAX ( DISTINCT + 73 ) + 88 + - 18 + + COUNT ( * ) + - 48 + 0
----
96

query I rowsort
SELECT DISTINCT 2 + ( + 89 ) * ( + 69 ) AS col1
----
6143

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL 20 + CASE MIN( + + 60 ) WHEN - COUNT( * ) THEN + + COUNT( * ) * 46 - 68 * NULLIF ( - 82 + - 97, - 71 ) ELSE NULL END * - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL 20 + CASE MIN ( + + 60 ) WHEN - COUNT ( * ) THEN + + COUNT ( * ) * 46 - 68 * NULLIF ( - 82 + - 97, - 71 ) ELSE NULL END * - 44 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT 77 * - 20 col1, COUNT( * )
----
-1540
1

skipif mysql # not compatible
query II rowsort label-4513
SELECT 77 * - 20 col1, COUNT ( * )
----
-1540
1

query I rowsort
SELECT 12 + 59
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL COUNT( * ) + + + ( - 10 )
----
-9

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL COUNT ( * ) + + + ( - 10 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT + 27 * - ( + + CASE - SUM( + + CAST( NULL AS SIGNED ) ) WHEN + COALESCE ( 93, + 30 ) THEN + 15 WHEN - COUNT( * ) THEN 13 END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT + 27 * - ( + + CASE - SUM ( + + CAST ( NULL AS INTEGER ) ) WHEN + COALESCE ( 93, + 30 ) THEN + 15 WHEN - COUNT ( * ) THEN 13 END ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT ALL SUM( DISTINCT 70 ) AS col1, 4 - MAX( DISTINCT - 88 )
----
70
92

skipif mysql # not compatible
query II rowsort label-4517
SELECT ALL SUM ( DISTINCT 70 ) AS col1, 4 - MAX ( DISTINCT - 88 )
----
70
92

query I rowsort
SELECT DISTINCT 5 + - 49 + - - 53
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT + 54 DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4519
SELECT + 54 / 90 AS col2
----
0

query I rowsort
SELECT + 93 * - 81 + - 41
----
-7574

query II rowsort
SELECT 58 * + 63, - 71 AS col0
----
3654
-71

query I rowsort
SELECT 61 - + ( NULLIF ( 24, - 57 ) ) + - 94
----
-57

query I rowsort
SELECT 92 + - 89 + 3 col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4524
SELECT DISTINCT NULLIF ( + 22, + + COUNT( * ) ) AS col2, 55 * AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
22
NULL

skipif mysql # not compatible
query II rowsort label-4524
SELECT DISTINCT NULLIF ( + 22, + + COUNT ( * ) ) AS col2, 55 * AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL + MAX( + - 66 ) * 65
----
-4290

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + MAX ( + - 66 ) * 65
----
-4290

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT + COALESCE ( + NULLIF ( + 22, - 23 ), - COUNT( * ), ( + 25 ) ) * - COALESCE ( - ( 35 ), + 2, 71 )
----
770

skipif mysql # not compatible
query I rowsort label-4526
SELECT + COALESCE ( + NULLIF ( + 22, - 23 ), - COUNT ( * ), ( + 25 ) ) * - COALESCE ( - ( 35 ), + 2, 71 )
----
770

query I rowsort
SELECT ALL + 50 * - 76 AS col1
----
-3800

onlyif mysql # aggregate syntax: 
query II rowsort label-4528
SELECT ALL + COUNT( ALL - - 76 ), 33 AS col1
----
1
33

skipif mysql # not compatible
query II rowsort label-4528
SELECT ALL + COUNT ( ALL - - 76 ), 33 AS col1
----
1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT + + SUM( - COALESCE ( 73, + 44 * 73 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-4529
SELECT + + SUM ( - COALESCE ( 73, + 44 * 73 ) )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL - + COALESCE ( - CASE 90 WHEN - - 57 / - 67 - + 34 THEN + SUM( CAST( 73 AS SIGNED ) ) ELSE NULL END, - 70 - + 82 ) AS col1
----
152

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - + COALESCE ( - CASE 90 WHEN - - 57 / - 67 - + 34 THEN + SUM ( CAST ( 73 AS INTEGER ) ) ELSE NULL END, - 70 - + 82 ) AS col1
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4531
SELECT - CAST( NULL AS SIGNED ) / + + COUNT( * ) - + + 30 + ( 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) - + + 30 + ( 37 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4532
SELECT - ( - - COUNT( * ) ) AS col1, - 42 * + CASE COALESCE ( 82, + ( 6 ), + 64 + + 26 ) WHEN 43 THEN NULL ELSE + ( COUNT( * ) ) END + + 92 * 98
----
-1
8974

skipif mysql # not compatible
query II rowsort label-4532
SELECT - ( - - COUNT ( * ) ) AS col1, - 42 * + CASE COALESCE ( 82, + ( 6 ), + 64 + + 26 ) WHEN 43 THEN NULL ELSE + ( COUNT ( * ) ) END + + 92 * 98
----
-1
8974

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT + MAX( 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4533
SELECT + MAX ( 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + NULLIF ( 84, + + MIN( + 83 ) * ( + 24 ) + - - 24 - SUM( DISTINCT + 48 ) * + 79 )
----
84

skipif mysql # not compatible
query I rowsort label-4534
SELECT + NULLIF ( 84, + + MIN ( + 83 ) * ( + 24 ) + - - 24 - SUM ( DISTINCT + 48 ) * + 79 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - 28 * COALESCE ( + + COUNT( * ), + 41 * + - 89 )
----
-28

skipif mysql # not compatible
query I rowsort label-4535
SELECT - 28 * COALESCE ( + + COUNT ( * ), + 41 * + - 89 )
----
-28

query I rowsort
SELECT + 40 * - ( - 88 )
----
3520

query I rowsort
SELECT - 45 + ( 43 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4538
SELECT ALL + NULLIF ( - COUNT( * ), + + 68 ) AS col1, - 26 AS col0
----
-1
-26

skipif mysql # not compatible
query II rowsort label-4538
SELECT ALL + NULLIF ( - COUNT ( * ), + + 68 ) AS col1, - 26 AS col0
----
-1
-26

query I rowsort
SELECT ALL - 59 * - 51 AS col1
----
3009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4540
SELECT ALL + NULLIF ( - CAST( - NULLIF ( + 2, + - NULLIF ( - + 62, + 53 ) ) AS SIGNED ), 27 / 80 + - 67 / - AVG ( - ( - 45 ) ) ) * - 71 + 85 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + NULLIF ( - CAST ( - NULLIF ( + 2, + - NULLIF ( - + 62, + 53 ) ) AS INTEGER ), 27 / 80 + - 67 / - AVG ( - ( - 45 ) ) ) * - 71 + 85 AS col2
----
-57

query I rowsort
SELECT ALL + 96 * - 37
----
-3552

query I rowsort
SELECT DISTINCT - 41 * 55
----
-2255

onlyif mysql # aggregate syntax: 
query II rowsort label-4543
SELECT COUNT( * ) col1, 19 + + 60
----
1
79

skipif mysql # not compatible
query II rowsort label-4543
SELECT COUNT ( * ) col1, 19 + + 60
----
1
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4544
SELECT ALL 5 * + 31 * 39 * COUNT( * ) / + CASE - + 93 WHEN + 24 THEN - + MIN( 92 ) END + CAST( - 72 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL 5 * + 31 * 39 * COUNT ( * ) / + CASE - + 93 WHEN + 24 THEN - + MIN ( 92 ) END + CAST ( - 72 AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT + 56 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4545
SELECT + 56 / 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL COUNT( * ) * - + ( + 64 ) + 6
----
-58

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL COUNT ( * ) * - + ( + 64 ) + 6
----
-58

query I rowsort
SELECT - 73 - + 93 AS col2
----
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4548
SELECT COUNT( * ) AS col1, COALESCE ( 12, + 85 * - 9, + - 75 ) * + COUNT( * ) + CAST( NULL AS SIGNED ) + 38 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4548
SELECT COUNT ( * ) AS col1, COALESCE ( 12, + 85 * - 9, + - 75 ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) + 38 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT - ( - - COUNT( * ) ) - + ( + 58 ) * ( + 60 ) - 1 col2
----
-3482

skipif mysql # not compatible
query I rowsort label-4549
SELECT - ( - - COUNT ( * ) ) - + ( + 58 ) * ( + 60 ) - 1 col2
----
-3482

query II rowsort
SELECT + 50 AS col1, + 3
----
50
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT MIN( 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4551
SELECT MIN ( 79 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT + COUNT( * ) + - 23 col2
----
-22

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT + COUNT ( * ) + - 23 col2
----
-22

query I rowsort
SELECT ALL - 51 + 51
----
0

query I rowsort
SELECT - - 87 - + 14 * - - 38
----
-445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4555
SELECT ALL - 17 * - - COALESCE ( 97, - COUNT( * ), NULLIF ( - + 78, + 54 * 28 ) DIV COUNT( ALL - 28 ) + + 41 DIV - 32 ) * + 33 AS col0
----
-54417

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - 17 * - - COALESCE ( 97, - COUNT ( * ), NULLIF ( - + 78, + 54 * 28 ) / COUNT ( ALL - 28 ) + + 41 / - 32 ) * + 33 AS col0
----
-54417

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT - + 12 - + 78 * + 85 - SUM( + 75 )
----
-6717

skipif mysql # not compatible
query I rowsort label-4556
SELECT - + 12 - + 78 * + 85 - SUM ( + 75 )
----
-6717

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT - + COUNT( * ) + 61 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4557
SELECT - + COUNT ( * ) + 61 AS col1
----
60

query I rowsort
SELECT DISTINCT - 73 * + 74 AS col0
----
-5402

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + ( + 28 ) * + + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-4559
SELECT + ( + 28 ) * + + COUNT ( * )
----
28

query I rowsort
SELECT + 74 - + 15 * - 60 AS col2
----
974

query I rowsort
SELECT + - 85 * - 38
----
3230

query I rowsort
SELECT DISTINCT ( - 15 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4563
SELECT ALL + 41 DIV COALESCE ( - + 5, + COALESCE ( - 7, CAST( NULL AS SIGNED ) ) + - 16 + ( MIN( DISTINCT + 84 ) ) * + 22, + 80 ) + 95 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + 41 / COALESCE ( - + 5, + COALESCE ( - 7, CAST ( NULL AS INTEGER ) ) + - 16 + ( MIN ( DISTINCT + 84 ) ) * + 22, + 80 ) + 95 AS col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT - 93 DIV - 55 - 63 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4564
SELECT - 93 / - 55 - 63 AS col0
----
-62

query I rowsort
SELECT + 77 * - 28 AS col0
----
-2156

onlyif mysql # DIV for integer division: 
query II rowsort label-4566
SELECT DISTINCT 20 DIV - - 61 + - 45 * - 2 col0, - 50
----
90
-50

skipif mysql # not compatible
query II rowsort label-4566
SELECT DISTINCT 20 / - - 61 + - 45 * - 2 col0, - 50
----
90
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + NULLIF ( + 98, - - COUNT( * ) * COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-4567
SELECT + NULLIF ( + 98, - - COUNT ( * ) * COUNT ( * ) )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT + 16 * + CAST( NULL AS SIGNED ) * COUNT( * ) * + COUNT( * ) * + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT + 16 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) * + COUNT ( * ) * + - 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4569
SELECT ALL 95 DIV 27 DIV MIN( ALL + 29 ) + - 73 DIV 34 + - 20 + 56 * - 91 + 7 * - MAX( + 90 ) AS col1
----
-5748

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL 95 / 27 / MIN ( ALL + 29 ) + - 73 / 34 + - 20 + 56 * - 91 + 7 * - MAX ( + 90 ) AS col1
----
-5748

query I rowsort
SELECT + ( - ( - 5 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT DISTINCT 57 / - ( + - ( + + CASE 58 WHEN - ( - 66 ) THEN NULL WHEN + + MIN( DISTINCT - 3 ) THEN 74 * - 11 WHEN MIN( 97 ) THEN NULL END ) ) + - 79 * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT 57 / - ( + - ( + + CASE 58 WHEN - ( - 66 ) THEN NULL WHEN + + MIN ( DISTINCT - 3 ) THEN 74 * - 11 WHEN MIN ( 97 ) THEN NULL END ) ) + - 79 * 53
----
NULL

query I rowsort
SELECT ( - - 40 ) col1
----
40

query I rowsort
SELECT + 86 - 47
----
39

query I rowsort
SELECT + ( - CASE - + 40 WHEN 42 THEN NULL ELSE - - 28 END ) * CASE + 51 WHEN + AVG ( DISTINCT + 83 ) THEN 56 * + 40 - - 67 END + + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ( ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4575
SELECT ( ( + COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL 44 * + + 47 + 55
----
2123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT COUNT( * ) DIV + + COUNT( * ) + + 10
----
11

skipif mysql # not compatible
query I rowsort label-4577
SELECT COUNT ( * ) / + + COUNT ( * ) + + 10
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT 83 * + 8 - + COUNT( * ) * - 85, - COUNT( * ) col1
----
749
-1

skipif mysql # not compatible
query II rowsort label-4578
SELECT 83 * + 8 - + COUNT ( * ) * - 85, - COUNT ( * ) col1
----
749
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL + NULLIF ( - 15, 96 * - COUNT( * ) / - + 31 * + + COUNT( * ) * NULLIF ( MIN( ALL + 92 ), + COUNT( * ) * - 56 ) / 54 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL + NULLIF ( - 15, 96 * - COUNT ( * ) / - + 31 * + + COUNT ( * ) * NULLIF ( MIN ( ALL + 92 ), + COUNT ( * ) * - 56 ) / 54 ) AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT + CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 75 * 93 - - 84
----
-6891

query I rowsort
SELECT - 91 * - + 88 AS col2
----
8008

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4583
SELECT - COALESCE ( - 1, + CAST( 62 AS DECIMAL ) * 82 - - 13, + + 72 ) * + ( + CASE 17 WHEN 40 * + 98 THEN 24 * - COUNT( * ) WHEN + 44 THEN 95 - - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT - COALESCE ( - 1, + CAST ( 62 AS REAL ) * 82 - - 13, + + 72 ) * + ( + CASE 17 WHEN 40 * + 98 THEN 24 * - COUNT ( * ) WHEN + 44 THEN 95 - - COUNT ( * ) END )
----
NULL

query I rowsort
SELECT DISTINCT + 11 * 90 AS col2
----
990

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT - 55 * + + COUNT( * ) AS col2, 96
----
-55
96

skipif mysql # not compatible
query II rowsort label-4585
SELECT - 55 * + + COUNT ( * ) AS col2, 96
----
-55
96

query I rowsort
SELECT ALL + CASE 14 WHEN + 15 THEN - 87 END * 9 + + - 98 + 97 * 29 AS col2
----
NULL

query I rowsort
SELECT - 9 + - 99 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT - COUNT( * ) + + COALESCE ( - 65, 85 + + + 63 ) * - + 26
----
1689

skipif mysql # not compatible
query I rowsort label-4588
SELECT - COUNT ( * ) + + COALESCE ( - 65, 85 + + + 63 ) * - + 26
----
1689

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT + MIN( + + 99 ) * - 83 * - + 71 + - - 9 + - 7 + - 92 DIV 7 * 73 * 70 + + COUNT( * ) * CASE - 97 WHEN - SUM( DISTINCT 5 ) THEN - 63 WHEN 99 THEN - 24 ELSE 26 END AS col0
----
517005

skipif mysql # not compatible
query I rowsort label-4589
SELECT + MIN ( + + 99 ) * - 83 * - + 71 + - - 9 + - 7 + - 92 / 7 * 73 * 70 + + COUNT ( * ) * CASE - 97 WHEN - SUM ( DISTINCT 5 ) THEN - 63 WHEN 99 THEN - 24 ELSE 26 END AS col0
----
517005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT - - 75 DIV 19 * 71 * + 28 * - COUNT( * )
----
-5964

skipif mysql # not compatible
query I rowsort label-4590
SELECT - - 75 / 19 * 71 * + 28 * - COUNT ( * )
----
-5964

query II rowsort
SELECT + 53 * - - 62 * + 31 + - 36 + 88 * ( + 97 ) AS col0, 69 + - 20
----
110366
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4592
SELECT - - CAST( + COUNT( * ) AS SIGNED ) * - 96 * + 53 * + 25 AS col1
----
-127200

skipif mysql # not compatible
query I rowsort label-4592
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) * - 96 * + 53 * + 25 AS col1
----
-127200

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT - 83 * + COALESCE ( + 39, 2 ) * NULLIF ( COALESCE ( 7, 81 * + 61 - 37 ), SUM( ALL + 97 ) ) AS col1
----
-22659

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - 83 * + COALESCE ( + 39, 2 ) * NULLIF ( COALESCE ( 7, 81 * + 61 - 37 ), SUM ( ALL + 97 ) ) AS col1
----
-22659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4594
SELECT DISTINCT - CASE - 99 WHEN CAST( + COUNT( * ) AS SIGNED ) * + - 58 THEN NULL ELSE CAST( MIN( ALL 18 ) AS SIGNED ) + - - 73 + + 21 END
----
-112

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT - CASE - 99 WHEN CAST ( + COUNT ( * ) AS INTEGER ) * + - 58 THEN NULL ELSE CAST ( MIN ( ALL 18 ) AS INTEGER ) + - - 73 + + 21 END
----
-112

query I rowsort
SELECT - + 56 * - + 82
----
4592

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT COALESCE ( - 83, + CASE - 65 WHEN + 87 * - 89 * - - ( - + ( - 51 ) ) THEN 82 * - COUNT( * ) END )
----
-83

skipif mysql # not compatible
query I rowsort label-4596
SELECT COALESCE ( - 83, + CASE - 65 WHEN + 87 * - 89 * - - ( - + ( - 51 ) ) THEN 82 * - COUNT ( * ) END )
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4597
SELECT - + NULLIF ( + + 43, + 36 - + 74 + + 26 * + 53 * 79 + - + CAST( NULL AS DECIMAL ) )
----
-43

skipif mysql # not compatible
query I rowsort label-4597
SELECT - + NULLIF ( + + 43, + 36 - + 74 + + 26 * + 53 * 79 + - + CAST ( NULL AS REAL ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT + - CASE + + 43 WHEN + ( 16 ) + + NULLIF ( - ( - - 40 ), + - 52 * - 88 / 84 + 84 ) THEN ( CASE 49 WHEN - 49 / 34 THEN NULL WHEN 61 * - 37 THEN NULL WHEN 34 THEN NULL ELSE + 56 + - COALESCE ( 54, 95 * + 67 ) END ) WHEN + COUNT( * ) THEN - COUNT( * ) ELSE NULL END * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT + - CASE + + 43 WHEN + ( 16 ) + + NULLIF ( - ( - - 40 ), + - 52 * - 88 / 84 + 84 ) THEN ( CASE 49 WHEN - 49 / 34 THEN NULL WHEN 61 * - 37 THEN NULL WHEN 34 THEN NULL ELSE + 56 + - COALESCE ( 54, 95 * + 67 ) END ) WHEN + COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END * + 22
----
NULL

query I rowsort
SELECT ALL + - 53 + + - 86
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT ALL - - 90 + + - 91 DIV + - NULLIF ( - 21, + 15 )
----
86

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - - 90 + + - 91 / + - NULLIF ( - 21, + 15 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT + CAST( NULL AS SIGNED ) - - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT + CAST ( NULL AS INTEGER ) - - 9 AS col0
----
NULL

query I rowsort
SELECT ALL 11 * + - 47
----
-517

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT 52 DIV + 77 * 1 * - 75
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT 52 / + 77 * 1 * - 75
----
0

query I rowsort
SELECT ALL + 86 + 39
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-4605
SELECT ALL 14, SUM( + + 74 ) + 4 + + COUNT( * ) * + 87 AS col1
----
14
165

skipif mysql # not compatible
query II rowsort label-4605
SELECT ALL 14, SUM ( + + 74 ) + 4 + + COUNT ( * ) * + 87 AS col1
----
14
165

onlyif mysql # aggregate syntax: 
query II rowsort label-4606
SELECT 50, - COUNT( - ( - 3 ) ) col1
----
50
-1

skipif mysql # not compatible
query II rowsort label-4606
SELECT 50, - COUNT ( - ( - 3 ) ) col1
----
50
-1

query I rowsort
SELECT ALL 4 + 22 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT DISTINCT - 14 + + CAST( NULL AS SIGNED ) * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT - 14 + + CAST ( NULL AS INTEGER ) * - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL MAX( ( - 13 ) ) + - + 80 col0
----
-93

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL MAX ( ( - 13 ) ) + - + 80 col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT + CAST( NULL AS SIGNED ) * - 22 + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT + CAST ( NULL AS INTEGER ) * - 22 + 88
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4611
SELECT DISTINCT + 50 + - MIN( DISTINCT + - 19 ) AS col0, + 17
----
69
17

skipif mysql # not compatible
query II rowsort label-4611
SELECT DISTINCT + 50 + - MIN ( DISTINCT + - 19 ) AS col0, + 17
----
69
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT MAX( ALL - 93 ) * - 69 * 60 + - 14 + - - CASE + COUNT( * ) WHEN - - COUNT( * ) THEN NULL ELSE + + ( - 71 ) * + ( - MAX( 61 ) * + 60 - - 9 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT MAX ( ALL - 93 ) * - 69 * 60 + - 14 + - - CASE + COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL ELSE + + ( - 71 ) * + ( - MAX ( 61 ) * + 60 - - 9 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT 38 + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT 38 + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL - COUNT( DISTINCT - - 53 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - COUNT ( DISTINCT - - 53 ) AS col2
----
-1

query I rowsort
SELECT ALL 73 * - 67 AS col1
----
-4891

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT COUNT( * ) * + MAX( + 89 ) col1
----
89

skipif mysql # not compatible
query I rowsort label-4616
SELECT COUNT ( * ) * + MAX ( + 89 ) col1
----
89

query I rowsort
SELECT DISTINCT 2 * + + 44
----
88

query I rowsort
SELECT DISTINCT + 6 - - + 65 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL COUNT( * ) * 82
----
82

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL COUNT ( * ) * 82
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4620
SELECT + 46 - - + 97 DIV - - COUNT( * ) col0
----
143

skipif mysql # not compatible
query I rowsort label-4620
SELECT + 46 - - + 97 / - - COUNT ( * ) col0
----
143

query I rowsort
SELECT 26 * + 83
----
2158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT - 22 * - 52 - 0 + - 86 * - - CAST( - 75 AS SIGNED ) * - - 35 AS col0
----
226894

skipif mysql # not compatible
query I rowsort label-4622
SELECT - 22 * - 52 - 0 + - 86 * - - CAST ( - 75 AS INTEGER ) * - - 35 AS col0
----
226894

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT ALL + - 5 DIV - + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + - 5 / - + 41 AS col1
----
0

query I rowsort
SELECT ALL - - 56 AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT DISTINCT + 90 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT + 90 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL + + COUNT( * ) * - MIN( ALL - 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL + + COUNT ( * ) * - MIN ( ALL - 6 ) AS col2
----
6

query I rowsort
SELECT 36 - 70
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT - + 1 + - COALESCE ( - COUNT( * ), + 99 - 32 * - 34 - - + 47 ) * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT - + 1 + - COALESCE ( - COUNT ( * ), + 99 - 32 * - 34 - - + 47 ) * - COUNT ( * )
----
-2

query I rowsort
SELECT ALL + 97 + + ( - + 73 ) AS col2
----
24

query I rowsort
SELECT ALL - 38 + - 10 + 49 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT + 89 + + COUNT( * ) + + 67 col0
----
157

skipif mysql # not compatible
query I rowsort label-4631
SELECT + 89 + + COUNT ( * ) + + 67 col0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - ( COUNT( * ) ) * + - 91
----
91

skipif mysql # not compatible
query I rowsort label-4632
SELECT - ( COUNT ( * ) ) * + - 91
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4633
SELECT CAST( NULL AS SIGNED ) + - + 86 * + 56 - - + ( + + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT CAST ( NULL AS INTEGER ) + - + 86 * + 56 - - + ( + + 1 )
----
NULL

query I rowsort
SELECT - 72 - 11 AS col1
----
-83

query I rowsort
SELECT DISTINCT + 89 + 70
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL CASE + 1 WHEN COUNT( * ) * - 57 THEN 41 * + + COUNT( * ) WHEN + 90 THEN NULL ELSE NULL END + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL CASE + 1 WHEN COUNT ( * ) * - 57 THEN 41 * + + COUNT ( * ) WHEN + 90 THEN NULL ELSE NULL END + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT ALL + 55 + - - 7 * - 69 + - + 22 * ( COUNT( * ) ) AS col0, 4 + 97
----
-450
101

skipif mysql # not compatible
query II rowsort label-4637
SELECT ALL + 55 + - - 7 * - 69 + - + 22 * ( COUNT ( * ) ) AS col0, 4 + 97
----
-450
101

query I rowsort
SELECT ALL - 0 + + 38 + - - 83
----
121

query I rowsort
SELECT 81 + + 56 + - 2 AS col1
----
135

query II rowsort
SELECT ALL 68, 53 AS col1
----
68
53

query I rowsort
SELECT ALL + 55 + - 0 AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4642
SELECT - 25 AS col2, + 20 * + ( + 52 ) + + ( + - COUNT( * ) ) - + + 45 / - CASE - COUNT( * ) WHEN 46 THEN NULL WHEN + CAST( NULL AS SIGNED ) * 97 THEN + 81 END * - 1
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-4642
SELECT - 25 AS col2, + 20 * + ( + 52 ) + + ( + - COUNT ( * ) ) - + + 45 / - CASE - COUNT ( * ) WHEN 46 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * 97 THEN + 81 END * - 1
----
-25
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT ALL COUNT( * ), 74 + + 13 - + + 73 AS col1
----
1
14

skipif mysql # not compatible
query II rowsort label-4643
SELECT ALL COUNT ( * ), 74 + + 13 - + + 73 AS col1
----
1
14

query I rowsort
SELECT 67 + 54 + - 23 AS col0
----
98

query I rowsort
SELECT 77 + + 44
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4646
SELECT NULLIF ( - 14, 31 * - COUNT( * ) + 79 ) DIV + - 22, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-4646
SELECT NULLIF ( - 14, 31 * - COUNT ( * ) + 79 ) / + - 22, + COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT DISTINCT 42 * + - 32 - - + 22 AS col0
----
-1322

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT ALL - 22, CASE - - 92 WHEN - 40 THEN NULL WHEN - 3 THEN + COALESCE ( 46, 20 * + COUNT( * ) * - 42 ) ELSE NULL END AS col2
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-4648
SELECT ALL - 22, CASE - - 92 WHEN - 40 THEN NULL WHEN - 3 THEN + COALESCE ( 46, 20 * + COUNT ( * ) * - 42 ) ELSE NULL END AS col2
----
-22
NULL

query II rowsort
SELECT ALL - 67 col1, + 65 + - 58 col0
----
-67
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT - CASE NULLIF ( + 69, MAX( DISTINCT + - 11 ) ) WHEN - NULLIF ( + + CAST( + + 14 AS SIGNED ), + 80 ) THEN + 16 ELSE NULL END / + 31 * 17 - 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT - CASE NULLIF ( + 69, MAX ( DISTINCT + - 11 ) ) WHEN - NULLIF ( + + CAST ( + + 14 AS INTEGER ), + 80 ) THEN + 16 ELSE NULL END / + 31 * 17 - 38 col0
----
NULL

query II rowsort
SELECT DISTINCT + 20 * + ( + - ( + 9 ) ) AS col2, - 48
----
-180
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT ALL - COUNT( * ) AS col2, + 87 AS col0
----
-1
87

skipif mysql # not compatible
query II rowsort label-4652
SELECT ALL - COUNT ( * ) AS col2, + 87 AS col0
----
-1
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4653
SELECT 12 + + - ( + 24 ) + ( + + 51 ) + - MAX( + - 24 ) DIV 71 + 0 + - 11 DIV + COUNT( + 83 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4653
SELECT 12 + + - ( + 24 ) + ( + + 51 ) + - MAX ( + - 24 ) / 71 + 0 + - 11 / + COUNT ( + 83 ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4654
SELECT 86 * - NULLIF ( + - CAST( - - 77 AS SIGNED ), 38 ) * + COUNT( * )
----
6622

skipif mysql # not compatible
query I rowsort label-4654
SELECT 86 * - NULLIF ( + - CAST ( - - 77 AS INTEGER ), 38 ) * + COUNT ( * )
----
6622

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT 21 * - CASE - 85 WHEN ( + ( + 87 ) ) + + 9 THEN + + 91 WHEN 97 * - COUNT( * ) * - 54 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT 21 * - CASE - 85 WHEN ( + ( + 87 ) ) + + 9 THEN + + 91 WHEN 97 * - COUNT ( * ) * - 54 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT ALL - 57 col2, 98 AS col0
----
-57
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - - 94 * - - 26 + 42 + - 44 - + NULLIF ( 84, CASE ( + 91 ) WHEN 63 / + 26 * + COUNT( * ) THEN + COUNT( * ) + COUNT( * ) WHEN + 97 THEN + COUNT( * ) * - 80 + 47 END ) * - 81
----
9246

skipif mysql # not compatible
query I rowsort label-4657
SELECT - - 94 * - - 26 + 42 + - 44 - + NULLIF ( 84, CASE ( + 91 ) WHEN 63 / + 26 * + COUNT ( * ) THEN + COUNT ( * ) + COUNT ( * ) WHEN + 97 THEN + COUNT ( * ) * - 80 + 47 END ) * - 81
----
9246

query II rowsort
SELECT DISTINCT - 22 AS col1, + 38 col2
----
-22
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL 97 * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL 97 * + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - ( - + 36 ) * + 42 * + - 44 + + 14 * 47 - CASE + COUNT( * ) WHEN + 26 THEN - 12 + - 11 * 79 WHEN 41 + + 59 THEN - 11 ELSE 80 END * + 44 + 78
----
-69312

skipif mysql # not compatible
query I rowsort label-4660
SELECT - ( - + 36 ) * + 42 * + - 44 + + 14 * 47 - CASE + COUNT ( * ) WHEN + 26 THEN - 12 + - 11 * 79 WHEN 41 + + 59 THEN - 11 ELSE 80 END * + 44 + 78
----
-69312

onlyif mysql # DIV for integer division: 
query II rowsort label-4661
SELECT ALL - 71, + 16 DIV - 83 AS col2
----
-71
0

skipif mysql # not compatible
query II rowsort label-4661
SELECT ALL - 71, + 16 / - 83 AS col2
----
-71
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT - - ( MIN( + 3 ) )
----
3

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - - ( MIN ( + 3 ) )
----
3

query I rowsort
SELECT ALL - 3 + + 88 AS col2
----
85

query I rowsort
SELECT 98 * + + 7 + + 80 * + 18 + - + 58 AS col1
----
2068

onlyif mysql # aggregate syntax: 
query II rowsort label-4665
SELECT ALL - + 63 AS col0, NULLIF ( - COUNT( * ), - 8 * - - 81 * 54 ) AS col2
----
-63
-1

skipif mysql # not compatible
query II rowsort label-4665
SELECT ALL - + 63 AS col0, NULLIF ( - COUNT ( * ), - 8 * - - 81 * 54 ) AS col2
----
-63
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ALL MAX( 52 ) * - - 10 AS col1
----
520

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL MAX ( 52 ) * - - 10 AS col1
----
520

query II rowsort
SELECT DISTINCT - 9 AS col1, 7
----
-9
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT DISTINCT 86 + + 4 + - 30 + - 81 * + 12 * - COUNT( * )
----
1032

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT 86 + + 4 + - 30 + - 81 * + 12 * - COUNT ( * )
----
1032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT ALL - COUNT( * ) + - - COALESCE ( + - COUNT( * ), + + 17 + + COUNT( * ) ) DIV - 94 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL - COUNT ( * ) + - - COALESCE ( + - COUNT ( * ), + + 17 + + COUNT ( * ) ) / - 94 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT + SUM( + 57 ) * - 53
----
-3021

skipif mysql # not compatible
query I rowsort label-4670
SELECT + SUM ( + 57 ) * - 53
----
-3021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT ALL SUM( CAST( - - 56 AS SIGNED ) )
----
56

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL SUM ( CAST ( - - 56 AS INTEGER ) )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4672
SELECT + 0 DIV + 50 col1
----
0

skipif mysql # not compatible
query I rowsort label-4672
SELECT + 0 / + 50 col1
----
0

query I rowsort
SELECT + COALESCE ( 62, - 57 ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT DISTINCT - - MAX( DISTINCT - 59 ) * COALESCE ( + + 54, - - 21 * + 87 + + 59 + + + 98 DIV - - 40 + + 0 + - 51 )
----
-3186

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - - MAX ( DISTINCT - 59 ) * COALESCE ( + + 54, - - 21 * + 87 + + 59 + + + 98 / - - 40 + + 0 + - 51 )
----
-3186

onlyif mysql # DIV for integer division: 
query I rowsort label-4675
SELECT ALL + + 23 + 51 + + 48 DIV - 71 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL + + 23 + 51 + + 48 / - 71 AS col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT DISTINCT 34 DIV 53 * 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT 34 / 53 * 85 AS col2
----
0

query I rowsort
SELECT - 46 * + 39
----
-1794

query I rowsort
SELECT + 57 * + 74 AS col2
----
4218

query II rowsort
SELECT - 63 + + - 3 AS col1, 42 * - 93 + - 70 - 10
----
-66
-3986

query I rowsort
SELECT ALL 28 - 55 * 70
----
-3822

query I rowsort
SELECT + 10 - - + 90 AS col1
----
100

query I rowsort
SELECT - 15 * 74 * 13 * 77 * + + 7 * - 94 AS col2
----
731110380

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT + ( - MIN( 99 ) ) - + 46
----
-145

skipif mysql # not compatible
query I rowsort label-4683
SELECT + ( - MIN ( 99 ) ) - + 46
----
-145

query I rowsort
SELECT DISTINCT 27 * - + COALESCE ( 60, + 92 ) AS col2
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT - 97 + + 59 + - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-4685
SELECT - 97 + + 59 + - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT - 56 * + COUNT( DISTINCT ( + 94 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-4686
SELECT - 56 * + COUNT ( DISTINCT ( + 94 ) )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4687
SELECT - COALESCE ( 4, COUNT( * ) * 54 + + COUNT( * ) + 7 ) * 60 + - + 5 AS col0, 62
----
-245
62

skipif mysql # not compatible
query II rowsort label-4687
SELECT - COALESCE ( 4, COUNT ( * ) * 54 + + COUNT ( * ) + 7 ) * 60 + - + 5 AS col0, 62
----
-245
62

query I rowsort
SELECT - 32 - - - 56 + + + 11
----
-77

query I rowsort
SELECT ( - - 20 ) col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL + MIN( ALL + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL + MIN ( ALL + 72 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4691
SELECT ALL + CAST( + 90 AS SIGNED ), 44 AS col2
----
90
44

skipif mysql # not compatible
query II rowsort label-4691
SELECT ALL + CAST ( + 90 AS INTEGER ), 44 AS col2
----
90
44

query II rowsort
SELECT - 26 * - 5 AS col1, + 87 AS col1
----
130
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT + COUNT( - - 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT + COUNT ( - - 82 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT - SUM( + - 42 ) * 84
----
3528

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - SUM ( + - 42 ) * 84
----
3528

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL + CASE - - 37 WHEN + 86 * COUNT( * ) THEN + 68 * - COUNT( DISTINCT + 95 ) + + 73 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + CASE - - 37 WHEN + 86 * COUNT ( * ) THEN + 68 * - COUNT ( DISTINCT + 95 ) + + 73 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4696
SELECT - + COALESCE ( ( + 65 ), 25 DIV + CAST( NULL AS SIGNED ) ) * + + 70 - - COALESCE ( + NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ), - 94 - - 83 + 60 ) * 62
----
-4488

skipif mysql # not compatible
query I rowsort label-4696
SELECT - + COALESCE ( ( + 65 ), 25 / + CAST ( NULL AS INTEGER ) ) * + + 70 - - COALESCE ( + NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ), - 94 - - 83 + 60 ) * 62
----
-4488

query I rowsort
SELECT DISTINCT - 96 * - 33
----
3168

query I rowsort
SELECT DISTINCT - - 12 * 7 + + CASE + 79 WHEN + 12 * - 27 THEN + + 33 ELSE - 24 END AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4699
SELECT - + 83 * - - 77 + + 12, COUNT( * ) AS col2
----
-6379
1

skipif mysql # not compatible
query II rowsort label-4699
SELECT - + 83 * - - 77 + + 12, COUNT ( * ) AS col2
----
-6379
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT + 18 DIV - 91 + + COUNT( * ) DIV - 28 + - MIN( - 26 ) * + 70 + + + 72 + + 96
----
1988

skipif mysql # not compatible
query I rowsort label-4700
SELECT + 18 / - 91 + + COUNT ( * ) / - 28 + - MIN ( - 26 ) * + 70 + + + 72 + + 96
----
1988

onlyif mysql # aggregate syntax: 
query II rowsort label-4701
SELECT + 27 * + + COUNT( * ), 99 AS col1
----
27
99

skipif mysql # not compatible
query II rowsort label-4701
SELECT + 27 * + + COUNT ( * ), 99 AS col1
----
27
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4702
SELECT ALL + CAST( - 26 AS SIGNED ) DIV - + ( + 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL + CAST ( - 26 AS INTEGER ) / - + ( + 25 ) AS col1
----
1

query I rowsort
SELECT - 75 * - - 38 * - 26 + + 50 + 4 AS col0
----
74154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4704
SELECT + CASE CAST( + - CASE - + 44 WHEN - 33 THEN NULL ELSE 94 * - - 30 * - - 34 * + 89 END AS SIGNED ) WHEN 62 - + 72 * + - CASE - COUNT( * ) WHEN 61 - - ( 99 + ( - 3 + 24 * COUNT( * ) ) * COUNT( * ) ) * + 3 THEN + 47 + - 78 ELSE NULL END - CAST( - 41 AS SIGNED ) THEN 84 * - 14 WHEN + 64 + - 3 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT + CASE CAST ( + - CASE - + 44 WHEN - 33 THEN NULL ELSE 94 * - - 30 * - - 34 * + 89 END AS INTEGER ) WHEN 62 - + 72 * + - CASE - COUNT ( * ) WHEN 61 - - ( 99 + ( - 3 + 24 * COUNT ( * ) ) * COUNT ( * ) ) * + 3 THEN + 47 + - 78 ELSE NULL END - CAST ( - 41 AS INTEGER ) THEN 84 * - 14 WHEN + 64 + - 3 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4705
SELECT ALL 83 * ( - + 94 ) * + - 9 + + 72 AS col2, COUNT( * ) * - SUM( DISTINCT - - 9 ) + CASE + 19 WHEN - COALESCE ( + 27, - COUNT( * ) * 27 ) THEN AVG ( + 11 ) * + 57 + 14 / + 69 END
----
70290
NULL

skipif mysql # not compatible
query II rowsort label-4705
SELECT ALL 83 * ( - + 94 ) * + - 9 + + 72 AS col2, COUNT ( * ) * - SUM ( DISTINCT - - 9 ) + CASE + 19 WHEN - COALESCE ( + 27, - COUNT ( * ) * 27 ) THEN AVG ( + 11 ) * + 57 + 14 / + 69 END
----
70290
NULL

query I rowsort
SELECT + - 50 - 74 * - 82 AS col0
----
6018

query I rowsort
SELECT - ( + 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT 73 * + 89 + - + 66 * 69, COUNT( * ) * - ( - 7 ) AS col2
----
1943
7

skipif mysql # not compatible
query II rowsort label-4708
SELECT 73 * + 89 + - + 66 * 69, COUNT ( * ) * - ( - 7 ) AS col2
----
1943
7

query I rowsort
SELECT ALL 28 - - + 19 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT + 34 * COALESCE ( 73, - + CASE + 22 WHEN - 16 - 21 THEN NULL WHEN - 25 THEN 20 + - COUNT( * ) WHEN - 24 THEN - COUNT( * ) + + + 50 END + - 10 ) * 65
----
161330

skipif mysql # not compatible
query I rowsort label-4710
SELECT + 34 * COALESCE ( 73, - + CASE + 22 WHEN - 16 - 21 THEN NULL WHEN - 25 THEN 20 + - COUNT ( * ) WHEN - 24 THEN - COUNT ( * ) + + + 50 END + - 10 ) * 65
----
161330

query II rowsort
SELECT 66 AS col0, 57 - - 10 * + 92
----
66
977

query I rowsort
SELECT + 86 + - + 29
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT ALL 92 - + - MAX( + 19 )
----
111

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL 92 - + - MAX ( + 19 )
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT + 4 * + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4714
SELECT + 4 * + + COUNT ( * ) AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT DISTINCT 15 DIV - - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT 15 / - - 70 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4716
SELECT ALL 78, COUNT( * ) * + 24 + + + 83 / + - 97 + + CAST( NULL AS SIGNED ) + 84 * - - 43 + + 70 AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-4716
SELECT ALL 78, COUNT ( * ) * + 24 + + + 83 / + - 97 + + CAST ( NULL AS INTEGER ) + 84 * - - 43 + + 70 AS col0
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL - SUM( ALL - ( - ( + - 30 ) ) ) * - 37 col2
----
-1110

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - SUM ( ALL - ( - ( + - 30 ) ) ) * - 37 col2
----
-1110

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT + 56 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4718
SELECT + 56 / - 74 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT DISTINCT 79 DIV - - 1 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT 79 / - - 1 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL 14 * - COUNT( * ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL 14 * - COUNT ( * ) col1
----
-14

query I rowsort
SELECT DISTINCT ( + 34 ) * + 62
----
2108

query I rowsort
SELECT + 38 + + 77
----
115

query I rowsort
SELECT 66 * - 86 + 43
----
-5633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4724
SELECT ALL 83 DIV + 31 + + 58 + COUNT( * ) + + + 14 * + 9 * - COALESCE ( - COUNT( * ), - 98 + + + 36 ) + + + COUNT( * ) + - 84 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL 83 / + 31 + + 58 + COUNT ( * ) + + + 14 * + 9 * - COALESCE ( - COUNT ( * ), - 98 + + + 36 ) + + + COUNT ( * ) + - 84 AS col2
----
104

query I rowsort
SELECT ALL 78 * + 91
----
7098

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT + 90 DIV 10
----
9

skipif mysql # not compatible
query I rowsort label-4726
SELECT + 90 / 10
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT ALL - 76 / + - CAST( NULL AS SIGNED ) + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - 76 / + - CAST ( NULL AS INTEGER ) + 21
----
NULL

query I rowsort
SELECT ALL + + ( - - 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT MIN( DISTINCT - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-4729
SELECT MIN ( DISTINCT - 24 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4730
SELECT ALL 23 DIV 63 + + 46 + - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL 23 / 63 + + 46 + - COUNT ( * )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT - CAST( + 99 AS SIGNED ) + 12 * + + 83
----
897

skipif mysql # not compatible
query I rowsort label-4731
SELECT - CAST ( + 99 AS INTEGER ) + 12 * + + 83
----
897

onlyif mysql # aggregate syntax: 
query II rowsort label-4732
SELECT + 27 AS col1, COUNT( * ) AS col2
----
27
1

skipif mysql # not compatible
query II rowsort label-4732
SELECT + 27 AS col1, COUNT ( * ) AS col2
----
27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT COUNT( * ) * 28 + 25 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4733
SELECT COUNT ( * ) * 28 + 25 AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4734
SELECT - 10 * 47 * 36 + + 1 + COUNT( * ) * + 72, - CAST( NULL AS DECIMAL ) * + COUNT( * ) / - COUNT( * ) * 78 * 6 + 39 AS col2
----
-16847
NULL

skipif mysql # not compatible
query II rowsort label-4734
SELECT - 10 * 47 * 36 + + 1 + COUNT ( * ) * + 72, - CAST ( NULL AS REAL ) * + COUNT ( * ) / - COUNT ( * ) * 78 * 6 + 39 AS col2
----
-16847
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4735
SELECT 26 AS col1, - COALESCE ( + + COUNT( * ), - CAST( - COUNT( * ) AS SIGNED ) ) DIV + + COUNT( * ) - ( - + 3 )
----
26
2

skipif mysql # not compatible
query II rowsort label-4735
SELECT 26 AS col1, - COALESCE ( + + COUNT ( * ), - CAST ( - COUNT ( * ) AS INTEGER ) ) / + + COUNT ( * ) - ( - + 3 )
----
26
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT + 42 + CAST( NULL AS SIGNED ) + + COUNT( * ) * 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT + 42 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT + 15 * - 99 * 83 + + + COUNT( * ) - + - 15 + + - 38 + 84
----
-123193

skipif mysql # not compatible
query I rowsort label-4737
SELECT + 15 * - 99 * 83 + + + COUNT ( * ) - + - 15 + + - 38 + 84
----
-123193

query I rowsort
SELECT COALESCE ( + 74, + - 21, - 3 ) + - ( + 4 ) + 47 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL + 40 + + - 55 + - 35 + + + ( - + MIN( + 12 ) ) * COUNT( * ) - COUNT( DISTINCT - 35 ) + + 91 * + 84
----
7581

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL + 40 + + - 55 + - 35 + + + ( - + MIN ( + 12 ) ) * COUNT ( * ) - COUNT ( DISTINCT - 35 ) + + 91 * + 84
----
7581

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT - CASE + MAX( ALL + 26 ) WHEN - 50 * - 83 THEN CASE - 93 WHEN - 40 THEN - + 18 - COUNT( * ) END ELSE + 14 + + 75 - + + 10 * + 40 END
----
311

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT - CASE + MAX ( ALL + 26 ) WHEN - 50 * - 83 THEN CASE - 93 WHEN - 40 THEN - + 18 - COUNT ( * ) END ELSE + 14 + + 75 - + + 10 * + 40 END
----
311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT - CAST( NULL AS SIGNED ) * - 93 + + - 22 + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT - CAST ( NULL AS INTEGER ) * - 93 + + - 22 + - 19
----
NULL

query II rowsort
SELECT DISTINCT - 11 AS col2, 45
----
-11
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT ALL + - CAST( NULL AS SIGNED ) - - SUM( DISTINCT 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL + - CAST ( NULL AS INTEGER ) - - SUM ( DISTINCT 77 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT + 58 DIV 23 + + 32
----
34

skipif mysql # not compatible
query I rowsort label-4744
SELECT + 58 / 23 + + 32
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4745
SELECT ALL + 8 DIV - 72 * - + 64 - + 26 * + COUNT( ALL 10 ) + - 89
----
-115

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + 8 / - 72 * - + 64 - + 26 * + COUNT ( ALL 10 ) + - 89
----
-115

query I rowsort
SELECT 6 * 26
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4747
SELECT 96 * 41 + 62 - 4 + 47 + + COUNT( * ) + - MAX( ALL CASE 35 WHEN - 98 THEN NULL WHEN 44 DIV + 96 * ( 36 ) * + 94 + + 9 THEN 35 ELSE + ( 23 ) END ) DIV - 81 AS col2
----
4042

skipif mysql # not compatible
query I rowsort label-4747
SELECT 96 * 41 + 62 - 4 + 47 + + COUNT ( * ) + - MAX ( ALL CASE 35 WHEN - 98 THEN NULL WHEN 44 / + 96 * ( 36 ) * + 94 + + 9 THEN 35 ELSE + ( 23 ) END ) / - 81 AS col2
----
4042

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4748
SELECT ALL + 6 DIV - 53 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + 6 / - 53 * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT DISTINCT COUNT( * ) * - CASE - COALESCE ( + + NULLIF ( + 63, + 55 ), - + 14, - 56 ) WHEN - CAST( NULL AS SIGNED ) THEN - 86 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT COUNT ( * ) * - CASE - COALESCE ( + + NULLIF ( + 63, + 55 ), - + 14, - 56 ) WHEN - CAST ( NULL AS INTEGER ) THEN - 86 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL 74 * + CASE + 32 WHEN COUNT( * ) * 58 / + - 23 * + - 92 THEN COUNT( * ) WHEN ( - 49 ) + - 52 + + 50 + 24 * + 49 * COALESCE ( 44, COUNT( * ) * + 41 + 17 ) THEN NULL WHEN + 38 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL 74 * + CASE + 32 WHEN COUNT ( * ) * 58 / + - 23 * + - 92 THEN COUNT ( * ) WHEN ( - 49 ) + - 52 + + 50 + 24 * + 49 * COALESCE ( 44, COUNT ( * ) * + 41 + 17 ) THEN NULL WHEN + 38 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT 96 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT 96 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 9 * + 86
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT COALESCE ( - - COUNT( * ), + 61 ) + + 24 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4753
SELECT COALESCE ( - - COUNT ( * ), + 61 ) + + 24 AS col0
----
25

query I rowsort
SELECT ALL 38 * 73
----
2774

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT 12 * + 77 * + NULLIF ( COUNT( * ), + MAX( + 83 ) )
----
924

skipif mysql # not compatible
query I rowsort label-4755
SELECT 12 * + 77 * + NULLIF ( COUNT ( * ), + MAX ( + 83 ) )
----
924

query II rowsort
SELECT ALL 2 + - 86, 9 + + 60 col2
----
-84
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT ALL CASE 51 WHEN + + 80 THEN NULL WHEN - 1 THEN - 10 END / + + CAST( ( + COUNT( * ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL CASE 51 WHEN + + 80 THEN NULL WHEN - 1 THEN - 10 END / + + CAST ( ( + COUNT ( * ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL SUM( - 43 ) + + + 98
----
55

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL SUM ( - 43 ) + + + 98
----
55

query I rowsort
SELECT DISTINCT 31 + - + ( - + 6 ) AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4760
SELECT DISTINCT + CAST( + NULLIF ( + ( - 53 ), - - 79 ) AS SIGNED ) * + - COUNT( * ) + - 35 + + - 29 DIV 99 * + ( - 22 ) * - - 72 + 21 + 81
----
120

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT + CAST ( + NULLIF ( + ( - 53 ), - - 79 ) AS INTEGER ) * + - COUNT ( * ) + - 35 + + - 29 / 99 * + ( - 22 ) * - - 72 + 21 + 81
----
120

query I rowsort
SELECT ALL + 5 + + - 46 + 89 * + + 69 * + 37
----
227176

query I rowsort
SELECT ALL 34 * 27
----
918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT + 13 * - CAST( NULL AS SIGNED ) + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT + 13 * - CAST ( NULL AS INTEGER ) + + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL + CASE + + NULLIF ( + 39, - + 84 + + 55 ) WHEN 1 * 40 THEN - + 60 * - 93 + - NULLIF ( - COUNT( * ), - ( + 83 ) * + COUNT( * ) ) + - 63 * + 80 WHEN + COUNT( * ) * + ( + CASE - NULLIF ( COUNT( * ), - 12 ) WHEN - 56 + 6 * + 44 THEN NULL WHEN - 22 * + 94 THEN CASE 29 WHEN 83 * 53 THEN COUNT( * ) ELSE NULL END ELSE COALESCE ( 77, 42 ) END ) THEN + 1 END * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL + CASE + + NULLIF ( + 39, - + 84 + + 55 ) WHEN 1 * 40 THEN - + 60 * - 93 + - NULLIF ( - COUNT ( * ), - ( + 83 ) * + COUNT ( * ) ) + - 63 * + 80 WHEN + COUNT ( * ) * + ( + CASE - NULLIF ( COUNT ( * ), - 12 ) WHEN - 56 + 6 * + 44 THEN NULL WHEN - 22 * + 94 THEN CASE 29 WHEN 83 * 53 THEN COUNT ( * ) ELSE NULL END ELSE COALESCE ( 77, 42 ) END ) THEN + 1 END * 0 AS col0
----
NULL

query I rowsort
SELECT ( + + 41 ) * + 22 AS col2
----
902

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT - ( + 49 ) + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-4766
SELECT - ( + 49 ) + COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT - COUNT( * ) + 56 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT - COUNT ( * ) + 56 AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4768
SELECT ALL + CASE + + 27 WHEN 95 THEN + 27 * - ( + NULLIF ( CAST( NULL AS SIGNED ), + - 76 + - + 26 ) ) ELSE NULL END - 44 AS col0, 42 * 55 + + 72
----
NULL
2382

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL + CASE + + 27 WHEN 95 THEN + 27 * - ( + NULLIF ( CAST ( NULL AS INTEGER ), + - 76 + - + 26 ) ) ELSE NULL END - 44 AS col0, 42 * 55 + + 72
----
NULL
2382

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT COUNT( * ) * + - 63 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT COUNT ( * ) * + - 63 AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL - - CAST( 10 AS SIGNED ) - ( + NULLIF ( COUNT( * ), + 83 + - - 50 + 96 + + ( 18 ) * + 38 * AVG ( - 34 ) * - 26 + + 76 ) )
----
9

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL - - CAST ( 10 AS INTEGER ) - ( + NULLIF ( COUNT ( * ), + 83 + - - 50 + 96 + + ( 18 ) * + 38 * AVG ( - 34 ) * - 26 + + 76 ) )
----
9

query I rowsort
SELECT 59 * + + 51 + - 3
----
3006

query I rowsort
SELECT 74 * - + 79 * 59 AS col2
----
-344914

query I rowsort
SELECT DISTINCT - + ( 85 )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT 38 * 33, - COUNT( * ) AS col1
----
1254
-1

skipif mysql # not compatible
query II rowsort label-4774
SELECT 38 * 33, - COUNT ( * ) AS col1
----
1254
-1

query I rowsort
SELECT ( 69 ) - - 85
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT CASE + CAST( + ( 13 ) AS SIGNED ) WHEN + + 35 THEN NULL ELSE + 54 * - + 29 END AS col1
----
-1566

skipif mysql # not compatible
query I rowsort label-4776
SELECT CASE + CAST ( + ( 13 ) AS INTEGER ) WHEN + + 35 THEN NULL ELSE + 54 * - + 29 END AS col1
----
-1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4777
SELECT + COUNT( * ) * + ( 89 ) - - 66 + 10 DIV - COUNT( DISTINCT - 8 ) AS col1
----
145

skipif mysql # not compatible
query I rowsort label-4777
SELECT + COUNT ( * ) * + ( 89 ) - - 66 + 10 / - COUNT ( DISTINCT - 8 ) AS col1
----
145

query I rowsort
SELECT 74 * - 90 AS col1
----
-6660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4779
SELECT ( - + 75 ) * - 36 + + 85 - + - COUNT( * ) DIV 12 * 94
----
2785

skipif mysql # not compatible
query I rowsort label-4779
SELECT ( - + 75 ) * - 36 + + 85 - + - COUNT ( * ) / 12 * 94
----
2785

query I rowsort
SELECT DISTINCT 51 * 59 AS col0
----
3009

query I rowsort
SELECT 90 * - 37
----
-3330

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT SUM( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT SUM ( DISTINCT - 1 )
----
-1

query I rowsort
SELECT 80 + 67
----
147

query I rowsort
SELECT 15 - + 46
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4785
SELECT COUNT( * ) DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-4785
SELECT COUNT ( * ) / - 74
----
0

query I rowsort
SELECT 25 + - 32 AS col0
----
-7

query I rowsort
SELECT ALL + ( 23 ) + + - ( - - 0 ) AS col1
----
23

query I rowsort
SELECT 5 + + + ( - ( - - 14 ) )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4789
SELECT 12 DIV + 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4789
SELECT 12 / + 54 AS col0
----
0

query I rowsort
SELECT 15 + + + 7 * - 43
----
-286

query I rowsort
SELECT ALL - NULLIF ( - 96, - 54 + + 97 * + 9 * + 89 ) + - 0
----
96

query I rowsort
SELECT ALL 78 + - 42 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT - ( - 43 ) + + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT - ( - 43 ) + + COUNT ( * ) AS col1
----
44

query I rowsort
SELECT + 60 * 25 AS col0
----
1500

query I rowsort
SELECT + 19 + + 46
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT - MIN( 1 ) + + 44 col0
----
43

skipif mysql # not compatible
query I rowsort label-4796
SELECT - MIN ( 1 ) + + 44 col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT - 10 + COUNT( * ) * + - 16 * - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4797
SELECT - 10 + COUNT ( * ) * + - 16 * - COUNT ( * ) AS col2
----
6

query I rowsort
SELECT DISTINCT + + 3 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4799
SELECT DISTINCT + 1 * + COUNT( * ) * + CASE - CAST( NULL AS SIGNED ) WHEN - + 50 THEN 92 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT + 1 * + COUNT ( * ) * + CASE - CAST ( NULL AS INTEGER ) WHEN - + 50 THEN 92 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT + COALESCE ( - COUNT( * ), - COUNT( * ), 31 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4800
SELECT + COALESCE ( - COUNT ( * ), - COUNT ( * ), 31 ) AS col1
----
-1

query I rowsort
SELECT + + 63 + + + 40
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4802
SELECT + 13 DIV + 22 + - 37 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-4802
SELECT + 13 / + 22 + - 37 AS col0
----
-37

query I rowsort
SELECT DISTINCT 52 * - 67 AS col2
----
-3484

query I rowsort
SELECT + + 13 * + - 14 + + 52 AS col1
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT + CAST( NULL AS SIGNED ) + - 59 * + CAST( + 40 AS SIGNED ) * - - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT + CAST ( NULL AS INTEGER ) + - 59 * + CAST ( + 40 AS INTEGER ) * - - 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT + 53 + + + 88 - + + COUNT( * )
----
140

skipif mysql # not compatible
query I rowsort label-4806
SELECT + 53 + + + 88 - + + COUNT ( * )
----
140

query I rowsort
SELECT + + COALESCE ( 53, 78 ) * 74
----
3922

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT + 5 * - + COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT + 5 * - + COUNT ( * ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL 69 * - - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL 69 * - - COUNT ( * )
----
69

query I rowsort
SELECT + ( - 26 ) AS col1
----
-26

query I rowsort
SELECT + ( + + 42 ) * 83 AS col1
----
3486

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT + COALESCE ( 65, + COUNT( * ) - 76 * 46, - 2 )
----
65

skipif mysql # not compatible
query I rowsort label-4812
SELECT + COALESCE ( 65, + COUNT ( * ) - 76 * 46, - 2 )
----
65

query II rowsort
SELECT - 33 + 26 * 96 - - + 86 + 22 - - + 54, + 51 AS col0
----
2625
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT DISTINCT + COUNT( DISTINCT + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT + COUNT ( DISTINCT + 85 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4815
SELECT + ( CAST( NULL AS SIGNED ) ) * 69 + ( - 39 ) + - 93 * ( + CAST( - 7 AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT + ( CAST ( NULL AS INTEGER ) ) * 69 + ( - 39 ) + - 93 * ( + CAST ( - 7 AS REAL ) ) AS col1
----
NULL

query II rowsort
SELECT - 9 + + 83, 82 + - 66 col2
----
74
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4817
SELECT ALL + 26 * - - 80 + + + COUNT( * ) + - - 63 * CASE - NULLIF ( 67, - 56 ) WHEN + 85 THEN NULL WHEN + CAST( - COUNT( * ) AS SIGNED ) + - 86 * + 29 THEN NULL ELSE - COALESCE ( + 94, - CASE + 38 WHEN + COALESCE ( - 41, - CAST( NULLIF ( 37, - 34 + + 12 / + COUNT( CAST( COALESCE ( + 81, 25 ) AS DECIMAL ) ) ) AS SIGNED ) + + ( 75 ) ) * 46 THEN NULL WHEN + ( - 82 ) * 90 THEN NULL ELSE 52 + 92 END ) END + + 86 * - 44
----
-7625

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL + 26 * - - 80 + + + COUNT ( * ) + - - 63 * CASE - NULLIF ( 67, - 56 ) WHEN + 85 THEN NULL WHEN + CAST ( - COUNT ( * ) AS INTEGER ) + - 86 * + 29 THEN NULL ELSE - COALESCE ( + 94, - CASE + 38 WHEN + COALESCE ( - 41, - CAST ( NULLIF ( 37, - 34 + + 12 / + COUNT ( CAST ( COALESCE ( + 81, 25 ) AS REAL ) ) ) AS INTEGER ) + + ( 75 ) ) * 46 THEN NULL WHEN + ( - 82 ) * 90 THEN NULL ELSE 52 + 92 END ) END + + 86 * - 44
----
-7625

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT MAX( - - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-4818
SELECT MAX ( - - 81 )
----
81

query II rowsort
SELECT DISTINCT 80, - 88 AS col1
----
80
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4820
SELECT ALL + CAST( NULL AS SIGNED ) * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + CAST ( NULL AS INTEGER ) * + 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4821
SELECT DISTINCT COALESCE ( - COUNT( * ), + 3, COUNT( * ) * 96 - - SUM( DISTINCT + 40 ) + COUNT( * ) + + 34 ) AS col2, 26 / + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4821
SELECT DISTINCT COALESCE ( - COUNT ( * ), + 3, COUNT ( * ) * 96 - - SUM ( DISTINCT + 40 ) + COUNT ( * ) + + 34 ) AS col2, 26 / + CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT ALL 55 + - 43
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL ( - - MIN( + 36 ) )
----
36

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL ( - - MIN ( + 36 ) )
----
36

query I rowsort
SELECT ALL + 17 + + 65 + + - NULLIF ( + - 32, 67 * + 65 )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL + COUNT( * ) * - + 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL + COUNT ( * ) * - + 97 AS col2
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4826
SELECT 92 AS col0, CAST( NULL AS SIGNED )
----
92
NULL

skipif mysql # not compatible
query II rowsort label-4826
SELECT 92 AS col0, CAST ( NULL AS INTEGER )
----
92
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4827
SELECT DISTINCT COALESCE ( 31, - 13, - 46 * - 65 DIV 5 ) AS col0, 95 + 27
----
31
122

skipif mysql # not compatible
query II rowsort label-4827
SELECT DISTINCT COALESCE ( 31, - 13, - 46 * - 65 / 5 ) AS col0, 95 + 27
----
31
122

query I rowsort
SELECT - 86 * 26 AS col2
----
-2236

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4829
SELECT - SUM( ALL NULLIF ( + 19, + 47 ) ), 28 DIV COUNT( - 93 ) AS col1
----
-19
28

skipif mysql # not compatible
query II rowsort label-4829
SELECT - SUM ( ALL NULLIF ( + 19, + 47 ) ), 28 / COUNT ( - 93 ) AS col1
----
-19
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT - CAST( 56 AS SIGNED ) - - - 9 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4830
SELECT - CAST ( 56 AS INTEGER ) - - - 9 AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4831
SELECT - + 32 AS col1, + 77 * COALESCE ( NULLIF ( - + NULLIF ( - + 53, + 78 * - 33 + - 17 ), - + CAST( - MAX( 88 ) AS SIGNED ) ), + - CAST( 23 AS SIGNED ) ) AS col0
----
-32
4081

skipif mysql # not compatible
query II rowsort label-4831
SELECT - + 32 AS col1, + 77 * COALESCE ( NULLIF ( - + NULLIF ( - + 53, + 78 * - 33 + - 17 ), - + CAST ( - MAX ( 88 ) AS INTEGER ) ), + - CAST ( 23 AS INTEGER ) ) AS col0
----
-32
4081

query II rowsort
SELECT DISTINCT 23, 78 - - + 77 AS col1
----
23
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4833
SELECT ALL - - COUNT( * ) * - COUNT( * ) DIV - + 27 + - + 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) / - + 27 + - + 56 AS col2
----
-56

query I rowsort
SELECT - + 58 * 4
----
-232

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4835
SELECT DISTINCT 7, - NULLIF ( + CAST( ( 69 ) AS SIGNED ), - 4 - 47 ) + - COALESCE ( + - 45, + 26 ) AS col0
----
7
-24

skipif mysql # not compatible
query II rowsort label-4835
SELECT DISTINCT 7, - NULLIF ( + CAST ( ( 69 ) AS INTEGER ), - 4 - 47 ) + - COALESCE ( + - 45, + 26 ) AS col0
----
7
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4836
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) * + 25 * + CASE 93 WHEN - ( + - 93 ) * + - COUNT( * ) * + 11 THEN NULL WHEN + 85 * - 36 / + 50 - + - 10 * - 83 THEN 91 ELSE + - 75 - + 28 * - 22 END + + 44 * 99 AS col2
----
-9169

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) * + 25 * + CASE 93 WHEN - ( + - 93 ) * + - COUNT ( * ) * + 11 THEN NULL WHEN + 85 * - 36 / + 50 - + - 10 * - 83 THEN 91 ELSE + - 75 - + 28 * - 22 END + + 44 * 99 AS col2
----
-9169

query I rowsort
SELECT ALL ( - + 33 ) col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4838
SELECT 95, ( + + ( - MAX( ALL + 62 ) ) ) col2
----
95
-62

skipif mysql # not compatible
query II rowsort label-4838
SELECT 95, ( + + ( - MAX ( ALL + 62 ) ) ) col2
----
95
-62

query I rowsort
SELECT ALL + + 32 * + + 5 * - + 79 AS col0
----
-12640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4840
SELECT + - 37, ( CAST( NULL AS SIGNED ) ) col0
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-4840
SELECT + - 37, ( CAST ( NULL AS INTEGER ) ) col0
----
-37
NULL

query I rowsort
SELECT + - 26 + - 30 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL 53 / NULLIF ( + 88, - - 0 ) + + 62 + + 91 + + - MIN( DISTINCT - 23 ) * CASE + 21 WHEN - 92 THEN - + SUM( - 80 ) / + 88 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL 53 / NULLIF ( + 88, - - 0 ) + + 62 + + 91 + + - MIN ( DISTINCT - 23 ) * CASE + 21 WHEN - 92 THEN - + SUM ( - 80 ) / + 88 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - COALESCE ( + ( + - COUNT( * ) ), 11, + + 41 ) + + 34 * + + 5 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-4843
SELECT - COALESCE ( + ( + - COUNT ( * ) ), 11, + + 41 ) + + 34 * + + 5 AS col1
----
171

query I rowsort
SELECT + ( + + 90 ) AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4845
SELECT + CAST( 35 AS SIGNED ) AS col1, 71 + - COUNT( - CAST( + 62 AS DECIMAL ) ) AS col1
----
35
70

skipif mysql # not compatible
query II rowsort label-4845
SELECT + CAST ( 35 AS INTEGER ) AS col1, 71 + - COUNT ( - CAST ( + 62 AS REAL ) ) AS col1
----
35
70

query I rowsort
SELECT ALL - 32 * + - 78 + - 42 AS col1
----
2454

query II rowsort
SELECT + 21 - - 87 AS col0, 52 - + 94 * + + 85 * - + 12 - - 30 + - 13
----
108
95949

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL COALESCE ( + - COUNT( * ), COUNT( - 79 ) ) * - 38 * - 6
----
-228

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL COALESCE ( + - COUNT ( * ), COUNT ( - 79 ) ) * - 38 * - 6
----
-228

query I rowsort
SELECT DISTINCT 93 * + 42 + - + 94
----
3812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4850
SELECT DISTINCT - 22 * - CASE - 97 WHEN + - 64 THEN + 99 WHEN - COUNT( * ) * + 80 * - 83 THEN NULL END + CASE - COUNT( * ) WHEN + 56 * MIN( ALL + 16 ) + - 61 + - 20 / 55 * CAST( + 25 AS SIGNED ) - - COUNT( * ) THEN + CASE - 16 WHEN 77 * 44 + 69 THEN 82 * ( 9 ) END * 59 + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT - 22 * - CASE - 97 WHEN + - 64 THEN + 99 WHEN - COUNT ( * ) * + 80 * - 83 THEN NULL END + CASE - COUNT ( * ) WHEN + 56 * MIN ( ALL + 16 ) + - 61 + - 20 / 55 * CAST ( + 25 AS INTEGER ) - - COUNT ( * ) THEN + CASE - 16 WHEN 77 * 44 + 69 THEN 82 * ( 9 ) END * 59 + 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL CASE + 68 WHEN + 29 THEN CASE + 37 WHEN COUNT( * ) * 53 - + 58 * - 34 * + COUNT( * ) + - 89 + 33 + + + 82 - MAX( + 54 ) * - 53 * + - 78 THEN 49 * ( COUNT( * ) ) ELSE + 99 + 32 END + - 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL CASE + 68 WHEN + 29 THEN CASE + 37 WHEN COUNT ( * ) * 53 - + 58 * - 34 * + COUNT ( * ) + - 89 + 33 + + + 82 - MAX ( + 54 ) * - 53 * + - 78 THEN 49 * ( COUNT ( * ) ) ELSE + 99 + 32 END + - 34 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4852
SELECT COUNT( * ) - + - 99 AS col1, 95
----
100
95

skipif mysql # not compatible
query II rowsort label-4852
SELECT COUNT ( * ) - + - 99 AS col1, 95
----
100
95

query I rowsort
SELECT 50 + + 89 AS col2
----
139

query III rowsort
SELECT 59 + 55 AS col1, - ( 75 ) - + + 27 AS col1, - + 18
----
114
-102
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL COALESCE ( - + 96, - COUNT( * ) * - - 97 + SUM( ALL - 0 ) + - NULLIF ( 57, + 3 ), 14 - 78 + - 38 + COUNT( * ) ) - + 39 + 3
----
-132

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL COALESCE ( - + 96, - COUNT ( * ) * - - 97 + SUM ( ALL - 0 ) + - NULLIF ( 57, + 3 ), 14 - 78 + - 38 + COUNT ( * ) ) - + 39 + 3
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT 40 + + - 44 DIV - + 98 * - 64 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4857
SELECT 40 + + - 44 / - + 98 * - 64 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL - - 85 * COUNT( * ) * - 11 * + 66
----
-61710

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - - 85 * COUNT ( * ) * - 11 * + 66
----
-61710

query II rowsort
SELECT - ( + 19 ) AS col2, 29
----
-19
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL MAX( DISTINCT + 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL MAX ( DISTINCT + 98 ) AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL + CAST( NULL AS SIGNED ) * + - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 65 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4862
SELECT + ( ( + 45 ) ) * + + 75 * + CAST( NULL AS SIGNED ), ( + 1 ) * - 77 / 4 + + CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4862
SELECT + ( ( + 45 ) ) * + + 75 * + CAST ( NULL AS INTEGER ), ( + 1 ) * - 77 / 4 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4863
SELECT + 33 + + - COUNT( * ) AS col0, 0
----
32
0

skipif mysql # not compatible
query II rowsort label-4863
SELECT + 33 + + - COUNT ( * ) AS col0, 0
----
32
0

query I rowsort
SELECT 13 + + 20
----
33

query I rowsort
SELECT - 86 * - - 1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4866
SELECT 3 * - NULLIF ( + ( 26 ), + 55 + + 71 + + CAST( 4 AS SIGNED ) + - + NULLIF ( - COUNT( * ), - COUNT( * ) * + - 1 + - COUNT( * ) + + + 48 * - 50 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4866
SELECT 3 * - NULLIF ( + ( 26 ), + 55 + + 71 + + CAST ( 4 AS INTEGER ) + - + NULLIF ( - COUNT ( * ), - COUNT ( * ) * + - 1 + - COUNT ( * ) + + + 48 * - 50 ) ) AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT ALL - - CAST( NULL AS SIGNED ) + - + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL - - CAST ( NULL AS INTEGER ) + - + 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4868
SELECT MIN( ALL 44 ) AS col0, - 16
----
44
-16

skipif mysql # not compatible
query II rowsort label-4868
SELECT MIN ( ALL 44 ) AS col0, - 16
----
44
-16

query I rowsort
SELECT - 58 + + + ( 62 )
----
4

query II rowsort
SELECT - 2 * - 23, 46 * 40 + + 93 col2
----
46
1933

query I rowsort
SELECT 15 + CASE 41 WHEN - 56 THEN + 78 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4872
SELECT ALL + 16 + - + 87 * 58 DIV - - ( - 97 ) * + COUNT( DISTINCT + 48 ) + 34
----
102

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL + 16 + - + 87 * 58 / - - ( - 97 ) * + COUNT ( DISTINCT + 48 ) + 34
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT MIN( + 17 ) / - COUNT( * ) * CAST( NULL AS SIGNED ) + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT MIN ( + 17 ) / - COUNT ( * ) * CAST ( NULL AS INTEGER ) + 65
----
NULL

query I rowsort
SELECT 5 + + 48
----
53

query II rowsort
SELECT ALL - 76, 69 + - 73 * + 28 * 62 * 8 AS col0
----
-76
-1013755

query I rowsort
SELECT DISTINCT - 71 * - 68
----
4828

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL + COUNT( * ) + CASE - COUNT( * ) WHEN 26 THEN NULL WHEN - CASE + 69 WHEN 46 THEN - ( 20 ) * 54 WHEN + 48 THEN NULL ELSE 7 END * - SUM( ALL - 90 ) THEN - 67 * + - 46 + + + 69 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL + COUNT ( * ) + CASE - COUNT ( * ) WHEN 26 THEN NULL WHEN - CASE + 69 WHEN 46 THEN - ( 20 ) * 54 WHEN + 48 THEN NULL ELSE 7 END * - SUM ( ALL - 90 ) THEN - 67 * + - 46 + + + 69 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT 31 * + - 49 * - SUM( DISTINCT - 2 )
----
-3038

skipif mysql # not compatible
query I rowsort label-4878
SELECT 31 * + - 49 * - SUM ( DISTINCT - 2 )
----
-3038

query II rowsort
SELECT ALL - 66 AS col2, ( 69 ) * + 59 * + 33 AS col2
----
-66
134343

query II rowsort
SELECT - 26 * 94 + - 98, 40 AS col1
----
-2542
40

query II rowsort
SELECT DISTINCT - 82 col2, NULLIF ( - - 4, - 93 + - 83 ) AS col0
----
-82
4

query I rowsort
SELECT 21 * 22
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT MAX( + 93 ) * 35 + + 37 AS col1
----
3292

skipif mysql # not compatible
query I rowsort label-4883
SELECT MAX ( + 93 ) * 35 + + 37 AS col1
----
3292

query II rowsort
SELECT 55, - 10 AS col0
----
55
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT ALL 96 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL 96 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4886
SELECT DISTINCT + 8 * - 21 * - - CASE + + 62 WHEN + + COUNT( * ) THEN NULL ELSE - 42 END * + 26 * + 0 AS col2, 77 + - CAST( - 75 AS SIGNED ) * - 24 - - - 47
----
0
-1770

skipif mysql # not compatible
query II rowsort label-4886
SELECT DISTINCT + 8 * - 21 * - - CASE + + 62 WHEN + + COUNT ( * ) THEN NULL ELSE - 42 END * + 26 * + 0 AS col2, 77 + - CAST ( - 75 AS INTEGER ) * - 24 - - - 47
----
0
-1770

query I rowsort
SELECT DISTINCT - CASE + ( 50 ) WHEN + 22 THEN - 29 + 58 * 9 END * + 82 * - 83
----
NULL

query II rowsort
SELECT ALL + 92 AS col1, 74 AS col2
----
92
74

query II rowsort
SELECT ALL 80 AS col2, 86 AS col1
----
80
86

query I rowsort
SELECT 25 + 86
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT - CASE 6 WHEN + 8 * - 91 THEN MAX( ALL 34 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT - CASE 6 WHEN + 8 * - 91 THEN MAX ( ALL 34 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT COALESCE ( - - 16, - 75 * - 10 ) * - 62 * - - 56 * + 91
----
-5055232

query II rowsort
SELECT 48 + 78 * - 82, + 57 * + 22 + + 57 AS col2
----
-6348
1311

query I rowsort
SELECT DISTINCT - 62 + + - 51 col0
----
-113

query I rowsort
SELECT ALL - + 65 + - - 43 col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT COUNT( * ) + + 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT COUNT ( * ) + + 36 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL - CASE + ( - COUNT( * ) ) WHEN 70 + + 65 THEN - + 57 END * - + COUNT( * ) + - MIN( + 74 ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL - CASE + ( - COUNT ( * ) ) WHEN 70 + + 65 THEN - + 57 END * - + COUNT ( * ) + - MIN ( + 74 ) + 6
----
NULL

query I rowsort
SELECT 7 - + 52 * - 17
----
891

onlyif mysql # aggregate syntax: 
query II rowsort label-4899
SELECT 67, + COUNT( * ) * - 81 * - 34 * + + 34 AS col0
----
67
93636

skipif mysql # not compatible
query II rowsort label-4899
SELECT 67, + COUNT ( * ) * - 81 * - 34 * + + 34 AS col0
----
67
93636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4900
SELECT CASE + 18 WHEN + - CAST( NULL AS SIGNED ) + + 53 + + COUNT( * ) + - 74 / - + 74 THEN - - ( + 75 ) / 70 * 58 + COUNT( * ) + + + 38 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT CASE + 18 WHEN + - CAST ( NULL AS INTEGER ) + + 53 + + COUNT ( * ) + - 74 / - + 74 THEN - - ( + 75 ) / 70 * 58 + COUNT ( * ) + + + 38 END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + + ( - + 57 ), + AVG ( 87 ) ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4902
SELECT 5 DIV + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4902
SELECT 5 / + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT + 2 / + CASE + + 19 WHEN - 88 THEN - + 52 * 60 + + 23 * 46 + MAX( + 87 ) / - SUM( + + 2 ) WHEN + NULLIF ( - 9, 6 / 66 - + - 70 ) THEN NULL ELSE NULL END * 34 * - - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT + 2 / + CASE + + 19 WHEN - 88 THEN - + 52 * 60 + + 23 * 46 + MAX ( + 87 ) / - SUM ( + + 2 ) WHEN + NULLIF ( - 9, 6 / 66 - + - 70 ) THEN NULL ELSE NULL END * 34 * - - 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT - MAX( - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT - MAX ( - 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL + COUNT( * ) * + MIN( ALL + 26 ) - + 45 + + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + COUNT ( * ) * + MIN ( ALL + 26 ) - + 45 + + COUNT ( * )
----
-18

query I rowsort
SELECT 31 - + 99 AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT ALL + COALESCE ( + 19, + + 11 ) DIV - - 24
----
0

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL + COALESCE ( + 19, + + 11 ) / - - 24
----
0

query I rowsort
SELECT - 44 * + 5 * - - 39
----
-8580

query I rowsort
SELECT - 15 + 40 AS col1
----
25

query I rowsort
SELECT ALL - ( 26 ) * - 72 + ( + - 83 ) + + 80 * + - 53 + - 1 - + 29
----
-2481

query I rowsort
SELECT + 14 * 18
----
252

query II rowsort
SELECT ALL - 13 * - 75, - 8 AS col1
----
975
-8

query I rowsort
SELECT - 96 * + 63 + - 85 AS col0
----
-6133

query I rowsort
SELECT - 61 + 86
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4915
SELECT ALL - NULLIF ( - 2, - CAST( NULL AS DECIMAL ) * - - 54 + - 25 ) * + 97
----
194

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL - NULLIF ( - 2, - CAST ( NULL AS REAL ) * - - 54 + - 25 ) * + 97
----
194

query I rowsort
SELECT - 43 * + 52 + - + 34 AS col2
----
-2270

query I rowsort
SELECT + - 96 + 37 AS col0
----
-59

query I rowsort
SELECT - + 85 * + 92 + + 42
----
-7778

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + + 79 * - COUNT( * ) + - 45 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-4919
SELECT + + 79 * - COUNT ( * ) + - 45 AS col1
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT DISTINCT + - ( - 77 ) + - CAST( NULL AS SIGNED ) + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT + - ( - 77 ) + - CAST ( NULL AS INTEGER ) + - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT - NULLIF ( - COUNT( * ), - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-4921
SELECT - NULLIF ( - COUNT ( * ), - 69 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - + COUNT( * ) + - + 11 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4922
SELECT - + COUNT ( * ) + - + 11 AS col1
----
-12

query I rowsort
SELECT ALL 7 * 30
----
210

query I rowsort
SELECT - 77 * - 18 AS col1
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL COUNT( * ) + + + MIN( + + 44 ) + COALESCE ( - 92, + - COUNT( * ) - - + 30 ) * - 6 + - ( 36 )
----
561

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL COUNT ( * ) + + + MIN ( + + 44 ) + COALESCE ( - 92, + - COUNT ( * ) - - + 30 ) * - 6 + - ( 36 )
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL + CASE + + 64 WHEN + 2 THEN NULL ELSE 96 END * - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL + CASE + + 64 WHEN + 2 THEN NULL ELSE 96 END * - COUNT ( * )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4927
SELECT DISTINCT ( - CAST( + 69 AS SIGNED ) ) + + 47 * + 90 AS col0, CAST( NULL AS SIGNED )
----
4161
NULL

skipif mysql # not compatible
query II rowsort label-4927
SELECT DISTINCT ( - CAST ( + 69 AS INTEGER ) ) + + 47 * + 90 AS col0, CAST ( NULL AS INTEGER )
----
4161
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT + - 20 + - COALESCE ( + - 93, + 31, - COUNT( * ) * - COUNT( * ) + + 76 + - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4928
SELECT + - 20 + - COALESCE ( + - 93, + 31, - COUNT ( * ) * - COUNT ( * ) + + 76 + - 73 )
----
73

query II rowsort
SELECT ALL 10 + 89 AS col2, - 24 AS col0
----
99
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4930
SELECT + 93 + ( + 81 ) + - 6, ( COUNT( 80 ) ) col1
----
168
1

skipif mysql # not compatible
query II rowsort label-4930
SELECT + 93 + ( + 81 ) + - 6, ( COUNT ( 80 ) ) col1
----
168
1

query I rowsort
SELECT + NULLIF ( - + 34, + + 83 * + 69 - 27 * - 81 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT + COUNT( * ) + - 49 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4932
SELECT + COUNT ( * ) + - 49 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL 4 - - - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL 4 - - - COUNT ( * ) AS col1
----
3

query I rowsort
SELECT + 75 + 14
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT ALL + 34 DIV - 49 - + 46 col2
----
-46

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL + 34 / - 49 - + 46 col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4936
SELECT DISTINCT + 57 AS col1, + NULLIF ( 59, 13 + - 13 + MIN( 54 ) - 25 ) + ( - 29 ) * - COUNT( * )
----
57
88

skipif mysql # not compatible
query II rowsort label-4936
SELECT DISTINCT + 57 AS col1, + NULLIF ( 59, 13 + - 13 + MIN ( 54 ) - 25 ) + ( - 29 ) * - COUNT ( * )
----
57
88

query I rowsort
SELECT + 27 * - - 85
----
2295

onlyif mysql # aggregate syntax: 
query II rowsort label-4938
SELECT ALL NULLIF ( + 50, + COALESCE ( - 31, 34 ) + ( + - MAX( ALL 48 ) ) ) * - ( - + MAX( + - 0 ) ) * + 76 - 56, - 67 * ( + 31 ) + - + 15 col2
----
-56
-2092

skipif mysql # not compatible
query II rowsort label-4938
SELECT ALL NULLIF ( + 50, + COALESCE ( - 31, 34 ) + ( + - MAX ( ALL 48 ) ) ) * - ( - + MAX ( + - 0 ) ) * + 76 - 56, - 67 * ( + 31 ) + - + 15 col2
----
-56
-2092

query I rowsort
SELECT + 44 + - - NULLIF ( - 14, + 65 ) * + - 17 + + 67
----
349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4940
SELECT + NULLIF ( 72, - COUNT( * ) + + 42 * - 63 - + 82 + - 3 + - 16 / + 97 * - NULLIF ( 29, - CAST( 31 AS SIGNED ) * + + 78 + - 78 * - + COUNT( + 24 ) * - + 66 + + 33 / 8 ) )
----
72

skipif mysql # not compatible
query I rowsort label-4940
SELECT + NULLIF ( 72, - COUNT ( * ) + + 42 * - 63 - + 82 + - 3 + - 16 / + 97 * - NULLIF ( 29, - CAST ( 31 AS INTEGER ) * + + 78 + - 78 * - + COUNT ( + 24 ) * - + 66 + + 33 / 8 ) )
----
72

query I rowsort
SELECT + ( 20 ) col0
----
20

query I rowsort
SELECT + 91 * + + 15
----
1365

query I rowsort
SELECT + 93 * - 8 * + 33 + - 13
----
-24565

query I rowsort
SELECT + ( - - 30 ) AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4945
SELECT - NULLIF ( - + 72, - CASE + 42 WHEN - + COUNT( + + 16 ) THEN NULL WHEN + 1 + + - 3 THEN NULL ELSE - COUNT( * ) * + 37 * - NULLIF ( + 11, + + 48 + - - MIN( - 9 ) ) + + CAST( NULL AS SIGNED ) END - - 97 + - - 18 * 41 * - 0 ) DIV - 2 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4945
SELECT - NULLIF ( - + 72, - CASE + 42 WHEN - + COUNT ( + + 16 ) THEN NULL WHEN + 1 + + - 3 THEN NULL ELSE - COUNT ( * ) * + 37 * - NULLIF ( + 11, + + 48 + - - MIN ( - 9 ) ) + + CAST ( NULL AS INTEGER ) END - - 97 + - - 18 * 41 * - 0 ) / - 2 AS col1
----
-36

query I rowsort
SELECT DISTINCT ( - 55 ) * - + ( - 19 )
----
-1045

query I rowsort
SELECT ( + 81 ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL + COUNT( DISTINCT - - 57 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL + COUNT ( DISTINCT - - 57 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 36 * 73
----
2628

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT ALL + 63 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + 63 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + COUNT( * ) * 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4951
SELECT + COUNT ( * ) * 34 AS col1
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4952
SELECT + 42 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT + 42 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT DISTINCT + COALESCE ( 5, CAST( - - 88 AS SIGNED ) + + 6, 24 * - 84 + 22 )
----
5

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT + COALESCE ( 5, CAST ( - - 88 AS INTEGER ) + + 6, 24 * - 84 + 22 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4954
SELECT + 10 col2, COUNT( * ) + 69
----
10
70

skipif mysql # not compatible
query II rowsort label-4954
SELECT + 10 col2, COUNT ( * ) + 69
----
10
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT DISTINCT + + 56 * - MAX( DISTINCT + + 78 ) + - 71 AS col2
----
-4439

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + + 56 * - MAX ( DISTINCT + + 78 ) + - 71 AS col2
----
-4439

query I rowsort
SELECT - ( + + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT DISTINCT + + 81 + - SUM( + + 6 )
----
75

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT + + 81 + - SUM ( + + 6 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT + NULLIF ( 35, 76 ) + + 69 * COUNT( * ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-4958
SELECT + NULLIF ( 35, 76 ) + + 69 * COUNT ( * ) AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT + - 74 * MAX( ALL 74 ) * 67 + - + 87
----
-366979

skipif mysql # not compatible
query I rowsort label-4959
SELECT + - 74 * MAX ( ALL 74 ) * 67 + - + 87
----
-366979

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL + 68 + + + ( - COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL + 68 + + + ( - COUNT ( * ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - 68 * - + ( + COUNT( * ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4961
SELECT - 68 * - + ( + COUNT ( * ) ) AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT - ( + 38 ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-4962
SELECT - ( + 38 ) / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT 26 * 35 + - + 17 + + 69 * COUNT( - 4 )
----
962

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT 26 * 35 + - + 17 + + 69 * COUNT ( - 4 )
----
962

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4964
SELECT ALL + ( + 26 ) DIV COUNT( - - 73 ) * - COUNT( 14 ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + ( + 26 ) / COUNT ( - - 73 ) * - COUNT ( 14 ) col0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT CASE WHEN NOT + 0 IS NULL THEN - 2 ELSE - COUNT( * ) END AS col2, + 66 * - 86 + + 43 * - 83 col1
----
-2
-9245

skipif mysql # not compatible
query II rowsort label-4965
SELECT CASE WHEN NOT + 0 IS NULL THEN - 2 ELSE - COUNT ( * ) END AS col2, + 66 * - 86 + + 43 * - 83 col1
----
-2
-9245

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT COUNT( * ) * + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4966
SELECT COUNT ( * ) * + 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT 34 * 59 * - COALESCE ( 35, - 48, 21 ) AS col2, COUNT( * )
----
-70210
1

skipif mysql # not compatible
query II rowsort label-4967
SELECT 34 * 59 * - COALESCE ( 35, - 48, 21 ) AS col2, COUNT ( * )
----
-70210
1

query I rowsort
SELECT 5 * 94 * - 21 AS col2
----
-9870

query II rowsort
SELECT - 67 AS col0, - 69 * - 13 * 62 * - 65
----
-67
-3614910

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT COUNT( * ) - NULLIF ( 84, COUNT( * ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4970
SELECT COUNT ( * ) - NULLIF ( 84, COUNT ( * ) ) AS col2
----
-83

query II rowsort
SELECT ALL - 4 AS col1, - 70
----
-4
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT ALL - CAST( + 99 AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - CAST ( + 99 AS INTEGER ) AS col2
----
-99

query II rowsort
SELECT DISTINCT - 79 AS col0, + 49 + + 14 * - COALESCE ( 42, + - 13 )
----
-79
-539

query II rowsort
SELECT ALL - 20 AS col1, NULLIF ( + 97, + 92 + + 65 + 26 * + 79 )
----
-20
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ( - COUNT( * ) ) * + 93 + - 11 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-4975
SELECT ( - COUNT ( * ) ) * + 93 + - 11 AS col1
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4976
SELECT ALL CAST( NULL AS DECIMAL ) + + COALESCE ( - - 52, 58, 51 * + CAST( + 37 AS SIGNED ) + 27, + 33 ) + - + 40 * 43 / + 70 * COUNT( * ) + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL CAST ( NULL AS REAL ) + + COALESCE ( - - 52, 58, 51 * + CAST ( + 37 AS INTEGER ) + 27, + 33 ) + - + 40 * 43 / + 70 * COUNT ( * ) + 14 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 50 * 53
----
2650

query I rowsort
SELECT ( + ( + 28 ) ) + 50 col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT 84 * + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-4979
SELECT 84 * + COUNT ( * )
----
84

query III rowsort
SELECT + 1 AS col1, 61 AS col0, 83 AS col1
----
1
61
83

query I rowsort
SELECT DISTINCT + 57 + + 81 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT - ( + SUM( + ( 40 ) ) ) + + NULLIF ( COUNT( DISTINCT + 98 ), + + COALESCE ( + 48, + 28 * 11 + + 17 * + 61 + + 80 - - + SUM( DISTINCT 94 ) * - 65 * 37 ) ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-4982
SELECT - ( + SUM ( + ( 40 ) ) ) + + NULLIF ( COUNT ( DISTINCT + 98 ), + + COALESCE ( + 48, + 28 * 11 + + 17 * + 61 + + 80 - - + SUM ( DISTINCT 94 ) * - 65 * 37 ) ) col0
----
-39

query II rowsort
SELECT 56 AS col2, 31 AS col2
----
56
31

query II rowsort
SELECT ALL - - 42, - 71 col2
----
42
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL - COUNT( 0 ) + - MIN( ALL + ( 12 ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL - COUNT ( 0 ) + - MIN ( ALL + ( 12 ) ) AS col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4986
SELECT - 0 + + - 95 DIV - + 69 DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4986
SELECT - 0 + + - 95 / - + 69 / + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 53 * + 29 col1
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT 72 * 66 * + 20 * - COALESCE ( - 16, - 19 * - COUNT( * ) + 91 ) + + - 89
----
1520551

skipif mysql # not compatible
query I rowsort label-4988
SELECT 72 * 66 * + 20 * - COALESCE ( - 16, - 19 * - COUNT ( * ) + 91 ) + + - 89
----
1520551

query I rowsort
SELECT ALL NULLIF ( + + 26, - 92 )
----
26

query II rowsort
SELECT CASE + 35 WHEN + - ( - 43 ) THEN NULL WHEN - 18 / 33 THEN - 79 ELSE NULL END, 52 * + + 99 AS col2
----
NULL
5148

query I rowsort
SELECT DISTINCT 54 * - - 78 col1
----
4212

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL + MIN( - 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + MIN ( - 44 ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4993
SELECT + CAST( NULL AS SIGNED ) * 81 * - 27 * + + 66 * - - COALESCE ( + COUNT( * ), - 87 ), 79 DIV 5 + + COUNT( ALL - + 15 ) AS col2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-4993
SELECT + CAST ( NULL AS INTEGER ) * 81 * - 27 * + + 66 * - - COALESCE ( + COUNT ( * ), - 87 ), 79 / 5 + + COUNT ( ALL - + 15 ) AS col2
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL + - MIN( 81 ) * + 97 AS col0
----
-7857

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL + - MIN ( 81 ) * + 97 AS col0
----
-7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT DISTINCT COALESCE ( - CAST( - 93 AS SIGNED ), + ( - 61 ) )
----
93

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT COALESCE ( - CAST ( - 93 AS INTEGER ), + ( - 61 ) )
----
93

query I rowsort
SELECT 5 + + 26
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT 44 + - COUNT( DISTINCT - 20 ) - + MIN( DISTINCT + 79 )
----
-36

skipif mysql # not compatible
query I rowsort label-4997
SELECT 44 + - COUNT ( DISTINCT - 20 ) - + MIN ( DISTINCT + 79 )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT 15 * 76 DIV 16
----
71

skipif mysql # not compatible
query I rowsort label-4998
SELECT 15 * 76 / 16
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4999
SELECT 50 * CAST( NULL AS SIGNED ), 88 AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-4999
SELECT 50 * CAST ( NULL AS INTEGER ), 88 AS col0
----
NULL
88

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5000
SELECT 21 + - CAST( NULL AS DECIMAL ), 85 + 25 AS col0
----
NULL
110

skipif mysql # not compatible
query II rowsort label-5000
SELECT 21 + - CAST ( NULL AS REAL ), 85 + 25 AS col0