sqllogictest
Artifact Content
Not logged in

Artifact e69d7dc269941583893a4fc450ae93d6c3d45fd9:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1
SELECT + + COUNT( * ) + CAST( NULL AS SIGNED ) * + + 23 * + + 40 + 61 + + MIN( ALL - + 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1
SELECT + + COUNT ( * ) + CAST ( NULL AS INTEGER ) * + + 23 * + + 40 + 61 + + MIN ( ALL - + 31 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT + COUNT( ALL - 84 ) + + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-2
SELECT + COUNT ( ALL - 84 ) + + - 67
----
-66

query I rowsort
SELECT - CASE 75 WHEN 14 THEN NULL ELSE 74 END
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL COUNT( DISTINCT - 48 ) * 87
----
87

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL COUNT ( DISTINCT - 48 ) * 87
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5
SELECT + 24 DIV - MAX( ALL CAST( + 83 AS SIGNED ) ) + - 86 col0
----
-86

skipif mysql # not compatible
query I rowsort label-5
SELECT + 24 / - MAX ( ALL CAST ( + 83 AS INTEGER ) ) + - 86 col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6
SELECT ALL 36 * 84 DIV - 4 - - 70 AS col1
----
-686

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL 36 * 84 / - 4 - - 70 AS col1
----
-686

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7
SELECT + 29 * - MIN( 28 ) * - 43 * + - COUNT( * ) AS col2, - COALESCE ( 98, 87, 21 + + 36 DIV + + 69 - + + COUNT( * ) ) * - + ( COUNT( * ) ) AS col0
----
-34916
98

skipif mysql # not compatible
query II rowsort label-7
SELECT + 29 * - MIN ( 28 ) * - 43 * + - COUNT ( * ) AS col2, - COALESCE ( 98, 87, 21 + + 36 / + + 69 - + + COUNT ( * ) ) * - + ( COUNT ( * ) ) AS col0
----
-34916
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT - COALESCE ( + 26, COUNT( * ) * + - COUNT( * ) * - 63 * + - CASE 70 WHEN - COUNT( * ) THEN NULL ELSE - 22 * CASE + 5 WHEN + - MAX( + ( - ( 70 ) ) ) * COUNT( * ) * COALESCE ( + 73, - 39 ) + COUNT( * ) THEN - 5 WHEN - ( COUNT( * ) ) * - 79 THEN NULL END * + 27 END ) * - 98 col2
----
2548

skipif mysql # not compatible
query I rowsort label-8
SELECT - COALESCE ( + 26, COUNT ( * ) * + - COUNT ( * ) * - 63 * + - CASE 70 WHEN - COUNT ( * ) THEN NULL ELSE - 22 * CASE + 5 WHEN + - MAX ( + ( - ( 70 ) ) ) * COUNT ( * ) * COALESCE ( + 73, - 39 ) + COUNT ( * ) THEN - 5 WHEN - ( COUNT ( * ) ) * - 79 THEN NULL END * + 27 END ) * - 98 col2
----
2548

query I rowsort
SELECT + 5 * + - 25
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT + 23 + + 65 + CAST( - COUNT( * ) AS SIGNED ) * + 51 * - 72 + + + COUNT( * ) * + 60 * ( + 73 )
----
8140

skipif mysql # not compatible
query I rowsort label-10
SELECT + 23 + + 65 + CAST ( - COUNT ( * ) AS INTEGER ) * + 51 * - 72 + + + COUNT ( * ) * + 60 * ( + 73 )
----
8140

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT ALL + 6 DIV + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL + 6 / + 60 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-12
SELECT + 75 * ( + - CAST( + SUM( - 42 ) AS SIGNED ) )
----
3150

skipif mysql # not compatible
query I rowsort label-12
SELECT + 75 * ( + - CAST ( + SUM ( - 42 ) AS INTEGER ) )
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT + CASE CASE + 70 WHEN - 4 THEN NULL WHEN COUNT( ALL + 4 ) * - + COUNT( * ) - - 71 + COUNT( * ) / - COUNT( * ) THEN NULL ELSE - 60 * + 7 END WHEN - 74 THEN 45 ELSE + COUNT( * ) * + + 14 END + - + 0 - + 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-13
SELECT + CASE CASE + 70 WHEN - 4 THEN NULL WHEN COUNT ( ALL + 4 ) * - + COUNT ( * ) - - 71 + COUNT ( * ) / - COUNT ( * ) THEN NULL ELSE - 60 * + 7 END WHEN - 74 THEN 45 ELSE + COUNT ( * ) * + + 14 END + - + 0 - + 7 AS col0
----
7

query I rowsort
SELECT ALL + COALESCE ( + 21, - 32 * 45 ) AS col2
----
21

query I rowsort
SELECT + 39 * - 39
----
-1521

query I rowsort
SELECT DISTINCT - - 65 * 90
----
5850

onlyif mysql # DIV for integer division: 
query I rowsort label-17
SELECT - - 87 - 83 + - 10 DIV - 37 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-17
SELECT - - 87 - 83 + - 10 / - 37 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-18
SELECT + + SUM( - + 43 ) AS col0, + 16
----
-43
16

skipif mysql # not compatible
query II rowsort label-18
SELECT + + SUM ( - + 43 ) AS col0, + 16
----
-43
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-19
SELECT ALL - 1 * CAST( NULL AS SIGNED ) * - + 92 + - - 33 * + - 39 + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL - 1 * CAST ( NULL AS INTEGER ) * - + 92 + - - 33 * + - 39 + 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-20
SELECT DISTINCT 88 * + + 9 AS col1, ( CASE 70 WHEN + 38 THEN NULL WHEN - + 27 * + - 60 * + + 48 THEN 20 + + COUNT( - - 22 ) / - + 21 * + 70 END )
----
792
NULL

skipif mysql # not compatible
query II rowsort label-20
SELECT DISTINCT 88 * + + 9 AS col1, ( CASE 70 WHEN + 38 THEN NULL WHEN - + 27 * + - 60 * + + 48 THEN 20 + + COUNT ( - - 22 ) / - + 21 * + 70 END )
----
792
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT ALL + - 16 * - 87 + - 72 - + + COUNT( * )
----
1319

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL + - 16 * - 87 + - 72 - + + COUNT ( * )
----
1319

query I rowsort
SELECT DISTINCT + COALESCE ( 11, + - 29 )
----
11

query I rowsort
SELECT ALL + 93 * - COALESCE ( - 40, 1 - 67 + + 26 ) + + 73 - NULLIF ( - 73, + + 83 + 69 * + 69 + + - 1 * + 76 )
----
3866

query I rowsort
SELECT - - 91 * + 60 AS col0
----
5460

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

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

query II rowsort
SELECT DISTINCT - 89 - + ( + 96 ) AS col0, + ( 87 )
----
-185
87

query I rowsort
SELECT ALL 78 * + 10 AS col1
----
780

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-28
SELECT DISTINCT + - 6 * - CAST( + + 26 AS SIGNED ) * - CAST( NULL AS DECIMAL ) + + - 62 * - ( - + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT + - 6 * - CAST ( + + 26 AS INTEGER ) * - CAST ( NULL AS REAL ) + + - 62 * - ( - + 99 )
----
NULL

query I rowsort
SELECT ALL 92 - + + 79 + + 40
----
53

query I rowsort
SELECT DISTINCT - 0 - 31 * - - 3 * 84 AS col1
----
-7812

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT - CASE - 75 WHEN + COUNT( * ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT - CASE - 75 WHEN + COUNT ( * ) THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 53 * - 58
----
3074

query II rowsort
SELECT DISTINCT 58, + 24 * 87 AS col0
----
58
2088

onlyif mysql # aggregate syntax: 
query II rowsort label-34
SELECT - COUNT( * ) - - COUNT( * ) + 6 * - 50, 53 * 78 * - SUM( DISTINCT + ( 28 ) ) AS col1
----
-300
-115752

skipif mysql # not compatible
query II rowsort label-34
SELECT - COUNT ( * ) - - COUNT ( * ) + 6 * - 50, 53 * 78 * - SUM ( DISTINCT + ( 28 ) ) AS col1
----
-300
-115752

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT + 82 - + + MAX( - 46 ) + - COUNT( * ) * + CASE + 62 WHEN 17 THEN - 20 * - 27 END * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT + 82 - + + MAX ( - 46 ) + - COUNT ( * ) * + CASE + 62 WHEN 17 THEN - 20 * - 27 END * - 7
----
NULL

query II rowsort
SELECT ALL 19, - 88 AS col0
----
19
-88

query I rowsort
SELECT ALL 70 * + 7
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL 57 / + 64 * - CASE + 10 WHEN + 85 THEN - + 54 END + - 79 + - 81 + + COUNT( 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL 57 / + 64 * - CASE + 10 WHEN + 85 THEN - + 54 END + - 79 + - 81 + + COUNT ( 75 )
----
NULL

query I rowsort
SELECT DISTINCT 99 * + COALESCE ( + 65, + 49 + 65 + + 39 * 9 ) * 11 AS col0
----
70785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-41
SELECT + COALESCE ( 12, + 91, + CAST( - 22 AS SIGNED ), 64 )
----
12

skipif mysql # not compatible
query I rowsort label-41
SELECT + COALESCE ( 12, + 91, + CAST ( - 22 AS INTEGER ), 64 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-42
SELECT ( - + 85 ) * COUNT( * ) + - 65 DIV 81
----
-85

skipif mysql # not compatible
query I rowsort label-42
SELECT ( - + 85 ) * COUNT ( * ) + - 65 / 81
----
-85

query I rowsort
SELECT ALL 34 * 76 * 32 AS col0
----
82688

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

query II rowsort
SELECT - 82 AS col1, 23 AS col1
----
-82
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-46
SELECT + + CAST( + CASE + 69 WHEN + 0 THEN 42 / CAST( NULL AS SIGNED ) * - - 73 ELSE NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-46
SELECT + + CAST ( + CASE + 69 WHEN + 0 THEN 42 / CAST ( NULL AS INTEGER ) * - - 73 ELSE NULL END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 58 * - - 93 - - 16 + 14 * - - 26
----
-5014

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

skipif mysql # not compatible
query II rowsort label-48
SELECT ALL - 11, COUNT ( * ) col1
----
-11
1

onlyif mysql # aggregate syntax: 
query II rowsort label-49
SELECT + 83 AS col2, - SUM( ALL - ( + 93 ) )
----
83
93

skipif mysql # not compatible
query II rowsort label-49
SELECT + 83 AS col2, - SUM ( ALL - ( + 93 ) )
----
83
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-50
SELECT ALL - COUNT( * ) DIV - NULLIF ( 37, 68 + + - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL - COUNT ( * ) / - NULLIF ( 37, 68 + + - 65 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT DISTINCT - MIN( - 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT - MIN ( - 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL - + CASE 84 WHEN 0 * - - COUNT( - ( - CASE WHEN NOT 9 IS NOT NULL THEN + 25 END ) ) + - - 71 + + ( 60 ) * + COUNT( * ) THEN + 34 END + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL - + CASE 84 WHEN 0 * - - COUNT ( - ( - CASE WHEN NOT 9 IS NOT NULL THEN + 25 END ) ) + - - 71 + + ( 60 ) * + COUNT ( * ) THEN + 34 END + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-53
SELECT NULLIF ( 8, - 1 ) DIV COUNT( DISTINCT + 39 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-53
SELECT NULLIF ( 8, - 1 ) / COUNT ( DISTINCT + 39 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT + 87 * - + NULLIF ( + 70, + MAX( - 25 ) ) + + + SUM( + 40 ) + + - COUNT( * )
----
-6051

skipif mysql # not compatible
query I rowsort label-54
SELECT + 87 * - + NULLIF ( + 70, + MAX ( - 25 ) ) + + + SUM ( + 40 ) + + - COUNT ( * )
----
-6051

query I rowsort
SELECT 77 * 25
----
1925

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

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

query I rowsort
SELECT 11 - + 51
----
-40

query I rowsort
SELECT ALL + 51 * - 3
----
-153

query I rowsort
SELECT 57 - + + 85
----
-28

query I rowsort
SELECT 0 * - - 40 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-61
SELECT - 23 + - COALESCE ( 93, 18 ) + + 93 DIV + + 25 + + 4 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-61
SELECT - 23 + - COALESCE ( 93, 18 ) + + 93 / + + 25 + + 4 AS col0
----
-109

query II rowsort
SELECT ALL 13 AS col2, + 40 - - ( + + 47 )
----
13
87

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT DISTINCT SUM( DISTINCT - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT SUM ( DISTINCT - 33 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT + 59 - + + 71 - NULLIF ( + - 35, SUM( - + 34 ) * + - 97 ) * + 11 * 46 + COUNT( * ) + + 31 + - - 65 * - 26
----
16040

skipif mysql # not compatible
query I rowsort label-64
SELECT + 59 - + + 71 - NULLIF ( + - 35, SUM ( - + 34 ) * + - 97 ) * + 11 * 46 + COUNT ( * ) + + 31 + - - 65 * - 26
----
16040

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT MIN( DISTINCT + 70 ) - 93
----
-23

skipif mysql # not compatible
query I rowsort label-65
SELECT MIN ( DISTINCT + 70 ) - 93
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-66
SELECT 29 * - CASE 95 WHEN - 42 THEN + - 42 / COALESCE ( 92, - 20, + 22 ) + + 85 + - - CAST( NULL AS DECIMAL ) + - COUNT( * ) + COUNT( * ) WHEN - 69 THEN - ( - 8 ) + + 38 * - 37 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-66
SELECT 29 * - CASE 95 WHEN - 42 THEN + - 42 / COALESCE ( 92, - 20, + 22 ) + + 85 + - - CAST ( NULL AS REAL ) + - COUNT ( * ) + COUNT ( * ) WHEN - 69 THEN - ( - 8 ) + + 38 * - 37 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT MIN( ALL + + 8 ) * - - 51 AS col2
----
408

skipif mysql # not compatible
query I rowsort label-67
SELECT MIN ( ALL + + 8 ) * - - 51 AS col2
----
408

query I rowsort
SELECT 68 + - + 83 col0
----
-15

query I rowsort
SELECT 77 * + - NULLIF ( 60, 82 + - COALESCE ( - + 68, + 95 + + 36 ) ) AS col1
----
-4620

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

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

query I rowsort
SELECT 48 + - 47 + - - 42 AS col0
----
43

query I rowsort
SELECT 54 * CASE - 34 WHEN + + 21 THEN + 18 + + 60 WHEN - 59 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 64 * - - 50 AS col0
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT ALL + 79 + + + 57 * COUNT( * ) * - 47 - 62 + 63 col1
----
-2599

skipif mysql # not compatible
query I rowsort label-74
SELECT ALL + 79 + + + 57 * COUNT ( * ) * - 47 - 62 + 63 col1
----
-2599

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

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL COUNT ( * ) + + 96 AS col1
----
97

query I rowsort
SELECT ALL + 52 * + - 97
----
-5044

onlyif mysql # aggregate syntax: 
query II rowsort label-77
SELECT 54 + - 11 col1, - COUNT( * ) - 5 + - 40 col2
----
43
-46

skipif mysql # not compatible
query II rowsort label-77
SELECT 54 + - 11 col1, - COUNT ( * ) - 5 + - 40 col2
----
43
-46

query I rowsort
SELECT 92 + - 36
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-79
SELECT + 40 DIV 72 + + CAST( - 97 AS SIGNED ) - + + 19 * - 1 + - 65 - 57 + - 17 * 87 * - COUNT( * )
----
1279

skipif mysql # not compatible
query I rowsort label-79
SELECT + 40 / 72 + + CAST ( - 97 AS INTEGER ) - + + 19 * - 1 + - 65 - 57 + - 17 * 87 * - COUNT ( * )
----
1279

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-80
SELECT 89 + - MAX( + + 84 ) - + 42 AS col2, - 46 DIV 97 AS col0
----
-37
0

skipif mysql # not compatible
query II rowsort label-80
SELECT 89 + - MAX ( + + 84 ) - + 42 AS col2, - 46 / 97 AS col0
----
-37
0

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT DISTINCT - 65 + - - MIN( - - 10 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT - 65 + - - MIN ( - - 10 ) AS col0
----
-55

query I rowsort
SELECT + + CASE - - 44 WHEN - 4 THEN + 43 * 19 * - 41 END AS col2
----
NULL

query I rowsort
SELECT ALL - 16 + - 74 + 81 col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT - 27 * + 2 + - + COUNT( * ) + + 21
----
-34

skipif mysql # not compatible
query I rowsort label-84
SELECT - 27 * + 2 + - + COUNT ( * ) + + 21
----
-34

query I rowsort
SELECT 15 * 96 + + - 93 + 71
----
1418

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ALL + COALESCE ( - COUNT( * ), - + 58 * - - 66 + - 30, - - 73 - - - 59 ) * - 59 * - 45 + - + 61
----
-2716

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL + COALESCE ( - COUNT ( * ), - + 58 * - - 66 + - 30, - - 73 - - - 59 ) * - 59 * - 45 + - + 61
----
-2716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-87
SELECT + CASE - + 93 WHEN - 74 / AVG ( + 78 ) + 91 THEN NULL WHEN + ( - CAST( 43 AS SIGNED ) ) THEN NULL ELSE + MAX( DISTINCT - 95 ) + + 52 * - - 31 * - 73 - - 55 - + 66 + - 58 + + 69 * - CASE + 78 WHEN + 82 + CASE CAST( NULL AS SIGNED ) WHEN 23 * + 49 THEN 30 * 10 END THEN NULL ELSE + 61 END + - 30 END AS col1
----
-122079

skipif mysql # not compatible
query I rowsort label-87
SELECT + CASE - + 93 WHEN - 74 / AVG ( + 78 ) + 91 THEN NULL WHEN + ( - CAST ( 43 AS INTEGER ) ) THEN NULL ELSE + MAX ( DISTINCT - 95 ) + + 52 * - - 31 * - 73 - - 55 - + 66 + - 58 + + 69 * - CASE + 78 WHEN + 82 + CASE CAST ( NULL AS INTEGER ) WHEN 23 * + 49 THEN 30 * 10 END THEN NULL ELSE + 61 END + - 30 END AS col1
----
-122079

query I rowsort
SELECT DISTINCT - 13 * 24
----
-312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-89
SELECT - + 21 * 25 * + COUNT( * ) + + ( + 93 ) + - - 46 - - 34 DIV + 89 * NULLIF ( + 80, + + CAST( + - 19 AS SIGNED ) + - - 89 - - + AVG ( + 23 ) * 62 * - 90 * + COALESCE ( + - COUNT( * ), ( SUM( + CAST( NULL AS SIGNED ) ) ) + 94, - 42 * + 76 + + 71 ) ) * 15 + 5 * + 12 AS col1
----
-326

skipif mysql # not compatible
query I rowsort label-89
SELECT - + 21 * 25 * + COUNT ( * ) + + ( + 93 ) + - - 46 - - 34 / + 89 * NULLIF ( + 80, + + CAST ( + - 19 AS INTEGER ) + - - 89 - - + AVG ( + 23 ) * 62 * - 90 * + COALESCE ( + - COUNT ( * ), ( SUM ( + CAST ( NULL AS INTEGER ) ) ) + 94, - 42 * + 76 + + 71 ) ) * 15 + 5 * + 12 AS col1
----
-326

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

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT - ( 40 ) * + 17 - + + 71 * 79 + + 81 + 89 + COUNT( * ) * + 58
----
-6061

skipif mysql # not compatible
query I rowsort label-91
SELECT - ( 40 ) * + 17 - + + 71 * 79 + + 81 + 89 + COUNT ( * ) * + 58
----
-6061

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT DISTINCT - 53 * - 2 - - 46 - 51 - + MAX( DISTINCT + 90 ) + - 57
----
-46

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT - 53 * - 2 - - 46 - 51 - + MAX ( DISTINCT + 90 ) + - 57
----
-46

query I rowsort
SELECT DISTINCT 95 - + 98 AS col2
----
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-95
SELECT - 57 + + 85 * - + CASE 89 WHEN - 37 + + COUNT( ALL + 15 ) THEN NULL WHEN - + NULLIF ( - COUNT( * ), + ( + 82 ) / CAST( + + 70 AS DECIMAL ) * 59 ) THEN + NULLIF ( + COUNT( * ), + - ( + 19 ) ) ELSE - 4 END AS col2
----
283

skipif mysql # not compatible
query I rowsort label-95
SELECT - 57 + + 85 * - + CASE 89 WHEN - 37 + + COUNT ( ALL + 15 ) THEN NULL WHEN - + NULLIF ( - COUNT ( * ), + ( + 82 ) / CAST ( + + 70 AS REAL ) * 59 ) THEN + NULLIF ( + COUNT ( * ), + - ( + 19 ) ) ELSE - 4 END AS col2
----
283

query I rowsort
SELECT ( 86 ) * - - 71
----
6106

query I rowsort
SELECT 74 * + 73 AS col2
----
5402

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT - MIN( + 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-98
SELECT - MIN ( + 39 ) AS col2
----
-39

query I rowsort
SELECT DISTINCT NULLIF ( 12, + - 19 ) + - 8
----
4

query I rowsort
SELECT 64 * - 71 * + + 87 AS col2
----
-395328

query I rowsort
SELECT DISTINCT - 10 + + + 77 + + - 18 * - 54 * - 6 * - 7 AS col0
----
40891

query I rowsort
SELECT DISTINCT 23 * - 98 AS col2
----
-2254

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT DISTINCT + COUNT( * ) + 48 col1
----
49

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT + COUNT ( * ) + 48 col1
----
49

query I rowsort
SELECT ALL - 93 + + 56 AS col1
----
-37

query I rowsort
SELECT DISTINCT + 65 + - 56 - 77 + 15 + + ( + 81 ) * - + 27 col1
----
-2240

query I rowsort
SELECT ( - + 26 ) + 70 AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-107
SELECT ALL + 48 + 48 + + NULLIF ( - 41, - 13 ) DIV + ( - COALESCE ( 34, 76, + 96 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL + 48 + 48 + + NULLIF ( - 41, - 13 ) / + ( - COALESCE ( 34, 76, + 96 ) ) AS col0
----
97

query I rowsort
SELECT ALL - 93 + 5
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT - ( - + 25 ) - 38 * NULLIF ( - 39, COUNT( * ) - - - 27 * + - 11 ) * - + 39 AS col0
----
-57773

skipif mysql # not compatible
query I rowsort label-109
SELECT - ( - + 25 ) - 38 * NULLIF ( - 39, COUNT ( * ) - - - 27 * + - 11 ) * - + 39 AS col0
----
-57773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-110
SELECT NULLIF ( + - 52, + CAST( + - 4 AS SIGNED ) + + 20 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-110
SELECT NULLIF ( + - 52, + CAST ( + - 4 AS INTEGER ) + + 20 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-111
SELECT ALL + 60 * - - 66 + + 90, + COUNT( * ) * 5 * 24 * MAX( ALL - 93 ) AS col1
----
4050
-11160

skipif mysql # not compatible
query II rowsort label-111
SELECT ALL + 60 * - - 66 + + 90, + COUNT ( * ) * 5 * 24 * MAX ( ALL - 93 ) AS col1
----
4050
-11160

onlyif mysql # DIV for integer division: 
query II rowsort label-112
SELECT ALL + - 29, - 66 DIV - + 99 + - + 16 AS col1
----
-29
-16

skipif mysql # not compatible
query II rowsort label-112
SELECT ALL + - 29, - 66 / - + 99 + - + 16 AS col1
----
-29
-16

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

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

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

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

query I rowsort
SELECT - - 6 - - 53 - - ( + 53 )
----
112

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-117
SELECT - - COUNT( DISTINCT 2 ) * CAST( - 69 AS SIGNED ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-117
SELECT - - COUNT ( DISTINCT 2 ) * CAST ( - 69 AS INTEGER ) AS col1
----
-69

query I rowsort
SELECT - 83 * 8 * - - 93 AS col2
----
-61752

query II rowsort
SELECT ALL + + 36 AS col2, - 48 AS col2
----
36
-48

query I rowsort
SELECT CASE 22 WHEN - 96 THEN NULL WHEN + + COALESCE ( + 58, + 12 * - + ( 9 ), - 94 ) - + + 92 THEN + - 0 END AS col2
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - 67, + + 7 ) AS col1
----
67

query I rowsort
SELECT + - 79 * - 28 * + + 82
----
181384

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

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT + SUM( - - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-124
SELECT + SUM ( - - 55 ) AS col1
----
55

query I rowsort
SELECT - 85 * 75 * 31
----
-197625

query I rowsort
SELECT + 55 * ( + 93 ) AS col2
----
5115

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT - + COUNT( * ) - CASE + ( - - 64 ) WHEN + - COUNT( * ) THEN + 47 * - 63 / - 85 / + - NULLIF ( + 72, - 39 ) / - 70 + 74 * - 14 + - 92 * + 27 * 83 + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-127
SELECT - + COUNT ( * ) - CASE + ( - - 64 ) WHEN + - COUNT ( * ) THEN + 47 * - 63 / - 85 / + - NULLIF ( + 72, - 39 ) / - 70 + 74 * - 14 + - 92 * + 27 * 83 + 74 END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-129
SELECT + NULLIF ( CAST( + 41 AS SIGNED ), 41 ) + - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT + NULLIF ( CAST ( + 41 AS INTEGER ), 41 ) + - 78 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-130
SELECT ALL - CAST( NULL AS DECIMAL ) + + + 96 / + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL - CAST ( NULL AS REAL ) + + + 96 / + - 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT + 59 + 34 + 70 + + 35 DIV + - 96 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-131
SELECT + 59 + 34 + 70 + + 35 / + - 96 AS col1
----
163

query I rowsort
SELECT - COALESCE ( 7, + + ( 45 ) ) AS col0
----
-7

query II rowsort
SELECT ALL 6, + ( + - 16 ) AS col2
----
6
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL + 61 + 23 - + CASE 50 WHEN + 7 / - MAX( - + 12 ) THEN + 15 + + 63 WHEN + 42 THEN NULL WHEN - 88 THEN + + 13 * 21 ELSE NULL END - - 77 - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL + 61 + 23 - + CASE 50 WHEN + 7 / - MAX ( - + 12 ) THEN + 15 + + 63 WHEN + 42 THEN NULL WHEN - 88 THEN + + 13 * 21 ELSE NULL END - - 77 - 26 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-135
SELECT + CASE - CASE COUNT( * ) WHEN - 20 + + 19 + - CAST( + ( - 33 ) AS SIGNED ) * + 88 - - 43 * + COUNT( DISTINCT - + CAST( NULL AS DECIMAL ) ) * - - COUNT( + 99 ) + + ( + COUNT( * ) ) * 40 - + 20 THEN NULL WHEN + + 77 / - - 67 THEN 95 * - 5 + 39 * + 1 ELSE - 44 * + 90 + - 27 * + 10 END WHEN ( + 95 ) THEN - MAX( 30 ) * + 39 WHEN COUNT( * ) THEN NULL END - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT + CASE - CASE COUNT ( * ) WHEN - 20 + + 19 + - CAST ( + ( - 33 ) AS INTEGER ) * + 88 - - 43 * + COUNT ( DISTINCT - + CAST ( NULL AS REAL ) ) * - - COUNT ( + 99 ) + + ( + COUNT ( * ) ) * 40 - + 20 THEN NULL WHEN + + 77 / - - 67 THEN 95 * - 5 + 39 * + 1 ELSE - 44 * + 90 + - 27 * + 10 END WHEN ( + 95 ) THEN - MAX ( 30 ) * + 39 WHEN COUNT ( * ) THEN NULL END - 3 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-136
SELECT - MIN ( DISTINCT 8 )
----
-8

query I rowsort
SELECT + 29 - 17 AS col1
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-138
SELECT 98, 56 DIV 32 AS col2
----
98
1

skipif mysql # not compatible
query II rowsort label-138
SELECT 98, 56 / 32 AS col2
----
98
1

query I rowsort
SELECT - 5 + + - 30 AS col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-140
SELECT ALL 11 + - 92 + - - COUNT( * ) + - - 45 * + COALESCE ( 80, - 71 + - 77 + - CAST( + 16 AS SIGNED ) + CAST( NULL AS SIGNED ) ) * 69 * - 62
----
-15400880

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL 11 + - 92 + - - COUNT ( * ) + - - 45 * + COALESCE ( 80, - 71 + - 77 + - CAST ( + 16 AS INTEGER ) + CAST ( NULL AS INTEGER ) ) * 69 * - 62
----
-15400880

query I rowsort
SELECT DISTINCT 69 * - 90
----
-6210

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT DISTINCT MIN( ALL - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT MIN ( ALL - 23 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT ALL 75 - COUNT( ALL - - ( - - 87 ) ) + - + 0 * 39 * - + 15
----
74

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL 75 - COUNT ( ALL - - ( - - 87 ) ) + - + 0 * 39 * - + 15
----
74

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

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

query I rowsort
SELECT DISTINCT CASE WHEN NOT + 10 >= ( - 29 / - 52 + + 70 * - 18 ) THEN + 38 ELSE + - 93 END AS col2
----
-93

query I rowsort
SELECT - 63 * + 70
----
-4410

query I rowsort
SELECT ALL 68 * - 68 * + COALESCE ( + 30, - 98 )
----
-138720

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT COUNT( DISTINCT - - 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-149
SELECT COUNT ( DISTINCT - - 77 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - ( - 73 ) col1
----
73

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

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

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

skipif mysql # not compatible
query I rowsort label-152
SELECT MAX ( + - 65 )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-153
SELECT ALL + + 22 DIV NULLIF ( - + 9, + 72 ) - + 78 * + 21 AS col0
----
-1640

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL + + 22 / NULLIF ( - + 9, + 72 ) - + 78 * + 21 AS col0
----
-1640

query II rowsort
SELECT 56 AS col1, - 40
----
56
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT - - COUNT( * ) + - 43 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-155
SELECT - - COUNT ( * ) + - 43 AS col2
----
-42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-157
SELECT ALL + 64 * + + CAST( NULL AS DECIMAL ) + - COALESCE ( + + COALESCE ( 14, + CASE - - CASE + 81 WHEN + 94 + + 6 + + 65 THEN - - CAST( NULL AS SIGNED ) * - 2 END WHEN 86 THEN + + COUNT( * ) END, + - ( - 84 ) + 62, + 46 * - 75 + 40 * - 29 ), + CASE 44 WHEN 51 * - CASE - 45 * 35 WHEN - 23 THEN - 65 * - 97 WHEN + 94 THEN NULL END THEN + 85 END ) * + ( 46 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL + 64 * + + CAST ( NULL AS REAL ) + - COALESCE ( + + COALESCE ( 14, + CASE - - CASE + 81 WHEN + 94 + + 6 + + 65 THEN - - CAST ( NULL AS INTEGER ) * - 2 END WHEN 86 THEN + + COUNT ( * ) END, + - ( - 84 ) + 62, + 46 * - 75 + 40 * - 29 ), + CASE 44 WHEN 51 * - CASE - 45 * 35 WHEN - 23 THEN - 65 * - 97 WHEN + 94 THEN NULL END THEN + 85 END ) * + ( 46 ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 72 * + 70 + + + 9 + + - 61 AS col1
----
-5092

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT - 3 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-160
SELECT - 3 / + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL + - 97 * 95 * + 59 - + COUNT( * ) AS col0
----
-543686

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL + - 97 * 95 * + 59 - + COUNT ( * ) AS col0
----
-543686

query I rowsort
SELECT ALL - - 84 * 44 AS col1
----
3696

onlyif mysql # aggregate syntax: 
query II rowsort label-163
SELECT 80 AS col0, MIN( - 62 )
----
80
-62

skipif mysql # not compatible
query II rowsort label-163
SELECT 80 AS col0, MIN ( - 62 )
----
80
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT - ( - + 15 ) DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-164
SELECT - ( - + 15 ) / - 87 AS col1
----
0

query I rowsort
SELECT - + 42 + - + 24
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-166
SELECT ALL + 44, COUNT( + 74 ) AS col2
----
44
1

skipif mysql # not compatible
query II rowsort label-166
SELECT ALL + 44, COUNT ( + 74 ) AS col2
----
44
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-167
SELECT ALL CASE + 7 WHEN - 15 THEN NULL WHEN - - 64 * 53 * + + COUNT( DISTINCT + + 33 ) * - 53 * + AVG ( - 20 ) + + + 86 THEN + 94 + - + COALESCE ( + 30, 60 / - + 65 + 11 ) * - CAST( 71 AS SIGNED ) END * + 19 + + 33 + + COUNT( * ) * + ( COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL CASE + 7 WHEN - 15 THEN NULL WHEN - - 64 * 53 * + + COUNT ( DISTINCT + + 33 ) * - 53 * + AVG ( - 20 ) + + + 86 THEN + 94 + - + COALESCE ( + 30, 60 / - + 65 + 11 ) * - CAST ( 71 AS INTEGER ) END * + 19 + + 33 + + COUNT ( * ) * + ( COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-168
SELECT - SUM( - + CAST( CAST( 28 AS SIGNED ) AS SIGNED ) ) * + 1 * 96
----
2688

skipif mysql # not compatible
query I rowsort label-168
SELECT - SUM ( - + CAST ( CAST ( 28 AS INTEGER ) AS INTEGER ) ) * + 1 * 96
----
2688

query I rowsort
SELECT + COALESCE ( - 32, - 62 - 13 ) col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT ALL 22 * - COUNT( * ) + - + 41
----
-63

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL 22 * - COUNT ( * ) + - + 41
----
-63

query I rowsort
SELECT NULLIF ( + 84, - 43 ) AS col1
----
84

query I rowsort
SELECT NULLIF ( - 67, - 61 * - - 6 + - 90 + 71 * 33 * 79 + + 44 )
----
-67

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

skipif mysql # not compatible
query I rowsort label-173
SELECT - COUNT ( * ) / - 57 * - + 22
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT + NULLIF ( - COALESCE ( + - 8, ( ( 20 ) ), - - 89 * 48 + - 28 - + - 53 DIV - + 90 + - 77 ), - - 51 ) + - + 22 * - 27 - + 76
----
526

skipif mysql # not compatible
query I rowsort label-174
SELECT + NULLIF ( - COALESCE ( + - 8, ( ( 20 ) ), - - 89 * 48 + - 28 - + - 53 / - + 90 + - 77 ), - - 51 ) + - + 22 * - 27 - + 76
----
526

query II rowsort
SELECT 2 + + - 10 AS col0, + 12 AS col2
----
-8
12

query I rowsort
SELECT DISTINCT - 48 - + 60 col2
----
-108

query I rowsort
SELECT DISTINCT + 75 * - 49 AS col0
----
-3675

query I rowsort
SELECT ALL ( - + 88 ) - + 24 * + - 84 col2
----
1928

onlyif mysql # aggregate syntax: 
query II rowsort label-179
SELECT 17 * - 54 AS col2, MIN( ALL 64 ) + COUNT( * ) + - + 13 * + - 86 * COUNT( * )
----
-918
1183

skipif mysql # not compatible
query II rowsort label-179
SELECT 17 * - 54 AS col2, MIN ( ALL 64 ) + COUNT ( * ) + - + 13 * + - 86 * COUNT ( * )
----
-918
1183

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT ALL + 59 DIV + 43 + + + 93
----
94

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL + 59 / + 43 + + + 93
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-181
SELECT + COALESCE ( + 7, - 72 * + - 78, + 76 DIV 99 * - COUNT( * ) + 93 ) DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-181
SELECT + COALESCE ( + 7, - 72 * + - 78, + 76 / 99 * - COUNT ( * ) + 93 ) / + 52 AS col0
----
0

query II rowsort
SELECT + 8 * - 8, 80 - - 70 AS col1
----
-64
150

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT DISTINCT SUM( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT SUM ( 0 )
----
0

query I rowsort
SELECT ALL 35 * - 21 + - 70 * 79 AS col2
----
-6265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-185
SELECT - 74 * - COALESCE ( 11, - - 11 * 8, - ( + + 49 ) DIV + COUNT( * ) - + 90 ) AS col2
----
814

skipif mysql # not compatible
query I rowsort label-185
SELECT - 74 * - COALESCE ( 11, - - 11 * 8, - ( + + 49 ) / + COUNT ( * ) - + 90 ) AS col2
----
814

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-186
SELECT DISTINCT 62 + + + 19 DIV 31 + - COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT 62 + + + 19 / 31 + - COUNT ( * ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-187
SELECT ALL - CAST( NULL AS SIGNED ) + + + CAST( NULL AS DECIMAL ) * + SUM( 8 ) - - 70 col1, ( - COUNT( * ) )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-187
SELECT ALL - CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS REAL ) * + SUM ( 8 ) - - 70 col1, ( - COUNT ( * ) )
----
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-188
SELECT ALL + 91 + + 98 * + CAST( ( - 17 ) AS SIGNED ) + + 47 * - 92 col2
----
-5899

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL + 91 + + 98 * + CAST ( ( - 17 ) AS INTEGER ) + + 47 * - 92 col2
----
-5899

query I rowsort
SELECT - 76 * + 46 * 8
----
-27968

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT DISTINCT + - 19 + - + MIN( - + 1 ) * 23 + - + 22
----
-18

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT + - 19 + - + MIN ( - + 1 ) * 23 + - + 22
----
-18

query I rowsort
SELECT ALL - + 56 + - + 37 col2
----
-93

query I rowsort
SELECT ALL + 60 + 55 AS col1
----
115

query I rowsort
SELECT 74 * - 23 AS col1
----
-1702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-194
SELECT 97 * + 48 * ( 76 ) + + - 17 + - MAX( - ( - + 12 ) ) * + COUNT( * ) * CASE - 26 WHEN - + 20 THEN - 75 + + + 14 + ( + 50 ) / - 69 + + 33 WHEN + + 33 * + 53 + + 62 THEN - + CAST( - 63 AS SIGNED ) WHEN - 58 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-194
SELECT 97 * + 48 * ( 76 ) + + - 17 + - MAX ( - ( - + 12 ) ) * + COUNT ( * ) * CASE - 26 WHEN - + 20 THEN - 75 + + + 14 + ( + 50 ) / - 69 + + 33 WHEN + + 33 * + 53 + + 62 THEN - + CAST ( - 63 AS INTEGER ) WHEN - 58 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-195
SELECT 57 + - COUNT( * ) - - 24 DIV - + 1
----
32

skipif mysql # not compatible
query I rowsort label-195
SELECT 57 + - COUNT ( * ) - - 24 / - + 1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-196
SELECT 93 DIV ( - 88 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-196
SELECT 93 / ( - 88 ) AS col2
----
-1

query I rowsort
SELECT ALL - 61 + + - 64 * - 82 AS col1
----
5187

query I rowsort
SELECT 64 * + 3
----
192

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

query I rowsort
SELECT 73 - + 43
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT DISTINCT - NULLIF ( + 72, + COUNT( * ) )
----
-72

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT - NULLIF ( + 72, + COUNT ( * ) )
----
-72

query I rowsort
SELECT ALL - 61 - + + 16
----
-77

query I rowsort
SELECT + 24 * - 19 + + 48 AS col0
----
-408

query I rowsort
SELECT 98 * - 74
----
-7252

query II rowsort
SELECT ALL 57 - - + 19 * - 19 AS col2, + 22 + 34
----
-304
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-206
SELECT DISTINCT ( + - 46 ) * - - 25 + - + 38 * + - MIN( ALL 12 ), 35 + - 49 * - 97 DIV ( + COUNT( * ) ) AS col2
----
-694
4788

skipif mysql # not compatible
query II rowsort label-206
SELECT DISTINCT ( + - 46 ) * - - 25 + - + 38 * + - MIN ( ALL 12 ), 35 + - 49 * - 97 / ( + COUNT ( * ) ) AS col2
----
-694
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT 82 + + - 20 + + NULLIF ( + - COUNT( * ), 38 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-207
SELECT 82 + + - 20 + + NULLIF ( + - COUNT ( * ), 38 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT COUNT( * ) - + 60 * 84 AS col0
----
-5039

skipif mysql # not compatible
query I rowsort label-208
SELECT COUNT ( * ) - + 60 * 84 AS col0
----
-5039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-209
SELECT 88 * - + 27 / + AVG ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-209
SELECT 88 * - + 27 / + AVG ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 92 + - ( + 73 ) AS col0
----
19

query I rowsort
SELECT 27 + - + 78
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL 61 * + SUM( DISTINCT 73 )
----
4453

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL 61 * + SUM ( DISTINCT 73 )
----
4453

query I rowsort
SELECT DISTINCT + 86 * - - 46 AS col2
----
3956

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

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

query I rowsort
SELECT ALL - 36 + - 4 + + 2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-216
SELECT CAST( NULL AS SIGNED ) + CASE - 61 WHEN + NULLIF ( COALESCE ( ( + + 76 ), + 74 ), ( - - 49 ) ) THEN 37 + + + 47 WHEN + 27 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-216
SELECT CAST ( NULL AS INTEGER ) + CASE - 61 WHEN + NULLIF ( COALESCE ( ( + + 76 ), + 74 ), ( - - 49 ) ) THEN 37 + + + 47 WHEN + 27 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT - + 69 AS col0, - 93
----
-69
-93

query I rowsort
SELECT + 99 + - + ( - 17 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT ALL SUM( ALL - ( + - NULLIF ( 61, - 6 ) ) ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL SUM ( ALL - ( + - NULLIF ( 61, - 6 ) ) ) AS col1
----
61

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-221
SELECT - COALESCE ( + 19, 40 + + 50, 12 + - 31 ) DIV - + 98 + ( + 42 ), 25 * 31 * + 6 AS col2
----
42
4650

skipif mysql # not compatible
query II rowsort label-221
SELECT - COALESCE ( + 19, 40 + + 50, 12 + - 31 ) / - + 98 + ( + 42 ), 25 * 31 * + 6 AS col2
----
42
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT SUM( + 88 ) + 34 + + 32
----
154

skipif mysql # not compatible
query I rowsort label-222
SELECT SUM ( + 88 ) + 34 + + 32
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT + ( - COUNT( * ) ) * + 68 + - 12 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-223
SELECT + ( - COUNT ( * ) ) * + 68 + - 12 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT 49 * - 29 * 97 + + 77 + 68 * SUM( DISTINCT 85 ) col1
----
-131980

skipif mysql # not compatible
query I rowsort label-224
SELECT 49 * - 29 * 97 + + 77 + 68 * SUM ( DISTINCT 85 ) col1
----
-131980

query II rowsort
SELECT DISTINCT 46 * + 59 * + + 77 + 50 AS col2, ( - 22 ) col2
----
209028
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-226
SELECT ALL COALESCE ( ( - - 60 ), + 28, + 54 - - 39 ) * 27 + + MIN( ALL + COALESCE ( - - 10, - 86 + + + 91 * + 52 + 73 * + + CAST( - 7 AS SIGNED ) ) ) * + ( - NULLIF ( COUNT( * ), - 87 * + 14 + - 77 ) ) * - 9 + 94 AS col2
----
1804

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL COALESCE ( ( - - 60 ), + 28, + 54 - - 39 ) * 27 + + MIN ( ALL + COALESCE ( - - 10, - 86 + + + 91 * + 52 + 73 * + + CAST ( - 7 AS INTEGER ) ) ) * + ( - NULLIF ( COUNT ( * ), - 87 * + 14 + - 77 ) ) * - 9 + 94 AS col2
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT 93 + COUNT( ALL + - 32 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-227
SELECT 93 + COUNT ( ALL + - 32 ) col1
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT + 17 * 34 * - 14 * - MAX( - 18 )
----
-145656

skipif mysql # not compatible
query I rowsort label-229
SELECT + 17 * 34 * - 14 * - MAX ( - 18 )
----
-145656

query II rowsort
SELECT - 23 * + 60 AS col0, 89 + 68 AS col0
----
-1380
157

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

skipif mysql # not compatible
query I rowsort label-231
SELECT MIN ( DISTINCT 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ALL MIN( - + 59 ) * + MAX( DISTINCT 86 ) * + COUNT( * ) + 73 * + COUNT( * ) - 5
----
-5006

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL MIN ( - + 59 ) * + MAX ( DISTINCT 86 ) * + COUNT ( * ) + 73 * + COUNT ( * ) - 5
----
-5006

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-233
SELECT - 87 * + COALESCE ( 58, 6 DIV + 48 + + COUNT( * ) * + 0, 72 - - MIN( - 34 ) * ( + + ( + + 99 ) ) * - 36 DIV COALESCE ( - - 74, - 56 * 77 ) )
----
-5046

skipif mysql # not compatible
query I rowsort label-233
SELECT - 87 * + COALESCE ( 58, 6 / + 48 + + COUNT ( * ) * + 0, 72 - - MIN ( - 34 ) * ( + + ( + + 99 ) ) * - 36 / COALESCE ( - - 74, - 56 * 77 ) )
----
-5046

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

skipif mysql # not compatible
query I rowsort label-234
SELECT MAX ( ALL 78 )
----
78

query I rowsort
SELECT ALL - 30 * + ( 71 )
----
-2130

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT - CASE COUNT( * ) WHEN + + 33 THEN + 63 * - SUM( + - 35 ) + + CASE WHEN NOT + MIN( - 8 ) NOT IN ( + 83 ) THEN + COUNT( * ) WHEN 29 * 2 + - + 17 IS NULL THEN NULL END * - - 78 WHEN + 86 * + + COUNT( * ) + + + ( - + 40 ) * 10 THEN 56 + + ( 26 ) + + 46 * - CASE + 34 * - ( + COUNT( * ) ) + 16 WHEN 10 THEN NULL ELSE COUNT( * ) * 10 END WHEN + 39 THEN 95 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT - CASE COUNT ( * ) WHEN + + 33 THEN + 63 * - SUM ( + - 35 ) + + CASE WHEN NOT + MIN ( - 8 ) NOT IN ( + 83 ) THEN + COUNT ( * ) WHEN 29 * 2 + - + 17 IS NULL THEN NULL END * - - 78 WHEN + 86 * + + COUNT ( * ) + + + ( - + 40 ) * 10 THEN 56 + + ( 26 ) + + 46 * - CASE + 34 * - ( + COUNT ( * ) ) + 16 WHEN 10 THEN NULL ELSE COUNT ( * ) * 10 END WHEN + 39 THEN 95 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - 16 + - 81 AS col1, + 13
----
-97
13

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

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

query I rowsort
SELECT - 33 * - + 40 AS col2
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT DISTINCT SUM( + 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT SUM ( + 6 ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-241
SELECT - 10 DIV + 35 * + 77
----
0

skipif mysql # not compatible
query I rowsort label-241
SELECT - 10 / + 35 * + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT DISTINCT COALESCE ( - 93, - COUNT( * ) + NULLIF ( + 38, 44 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT COALESCE ( - 93, - COUNT ( * ) + NULLIF ( + 38, 44 ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT - - 46 * - + COUNT( * ) * - - 83
----
-3818

skipif mysql # not compatible
query I rowsort label-243
SELECT - - 46 * - + COUNT ( * ) * - - 83
----
-3818

query I rowsort
SELECT ALL + COALESCE ( 10, + 65 ) col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT ALL - - 65 + 40 + + 22 DIV - 31
----
105

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL - - 65 + 40 + + 22 / - 31
----
105

query I rowsort
SELECT ALL + 7 + - + 16 - 91
----
-100

query I rowsort
SELECT - + 27 + - 83 + + 86 * 16 * + 91 + 50 * ( - 66 )
----
121806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-248
SELECT - 79 + + CAST( - 34 AS SIGNED )
----
-113

skipif mysql # not compatible
query I rowsort label-248
SELECT - 79 + + CAST ( - 34 AS INTEGER )
----
-113

query I rowsort
SELECT - 83 * - 9 * + 42 AS col0
----
31374

query I rowsort
SELECT ALL - + 77 + + 12
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-251
SELECT DISTINCT 80 + + 59, 92 DIV - MAX( DISTINCT - - 56 ) AS col2
----
139
-1

skipif mysql # not compatible
query II rowsort label-251
SELECT DISTINCT 80 + + 59, 92 / - MAX ( DISTINCT - - 56 ) AS col2
----
139
-1

query I rowsort
SELECT ALL - - 10 * - 29 AS col0
----
-290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-253
SELECT ALL + CASE - CAST( COUNT( * ) AS SIGNED ) WHEN 41 THEN + 64 ELSE + - NULLIF ( - 65, - ( CASE + 26 WHEN - COALESCE ( - COUNT( * ), - CAST( NULL AS DECIMAL ), + + COALESCE ( ( AVG ( ALL 9 ) ), 80 * CASE + - ( 74 ) WHEN - 75 THEN + MAX( DISTINCT - 88 ) - CAST( NULL AS SIGNED ) WHEN SUM( 12 ) THEN 99 - 71 ELSE 26 * + 31 END * - 30 - - NULLIF ( AVG ( DISTINCT - 62 ) + - 70, - 54 ), - 12 * + 10 ) + ( - 59 ) ) - 64 / - 17 THEN 9 + + COUNT( * ) WHEN 61 * COUNT( * ) + 69 * 61 THEN NULL END ) + COALESCE ( 63, 68 + ( - 54 ) * ( ( + COUNT( * ) ) ) ) ) END
----
65

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL + CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN 41 THEN + 64 ELSE + - NULLIF ( - 65, - ( CASE + 26 WHEN - COALESCE ( - COUNT ( * ), - CAST ( NULL AS REAL ), + + COALESCE ( ( AVG ( ALL 9 ) ), 80 * CASE + - ( 74 ) WHEN - 75 THEN + MAX ( DISTINCT - 88 ) - CAST ( NULL AS INTEGER ) WHEN SUM ( 12 ) THEN 99 - 71 ELSE 26 * + 31 END * - 30 - - NULLIF ( AVG ( DISTINCT - 62 ) + - 70, - 54 ), - 12 * + 10 ) + ( - 59 ) ) - 64 / - 17 THEN 9 + + COUNT ( * ) WHEN 61 * COUNT ( * ) + 69 * 61 THEN NULL END ) + COALESCE ( 63, 68 + ( - 54 ) * ( ( + COUNT ( * ) ) ) ) ) END
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-254
SELECT DISTINCT 35 DIV 92 - COUNT( * ) DIV - + 45
----
0

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT 35 / 92 - COUNT ( * ) / - + 45
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-256
SELECT + 95 DIV - MAX( + 7 )
----
-13

skipif mysql # not compatible
query I rowsort label-256
SELECT + 95 / - MAX ( + 7 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-257
SELECT DISTINCT + CAST( 77 AS SIGNED ) DIV - 63 - MIN( DISTINCT + - 44 ) col0
----
43

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT + CAST ( 77 AS INTEGER ) / - 63 - MIN ( DISTINCT + - 44 ) col0
----
43

query I rowsort
SELECT + 6 * - 36 AS col2
----
-216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-259
SELECT ALL 12 DIV 94 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL 12 / 94 * - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT + 24 DIV + - 54
----
0

skipif mysql # not compatible
query I rowsort label-260
SELECT + 24 / + - 54
----
0

query I rowsort
SELECT ALL 6 * + + 70 AS col0
----
420

query I rowsort
SELECT + 46 * 53 col0
----
2438

query I rowsort
SELECT ALL 52 * + 49
----
2548

onlyif mysql # DIV for integer division: 
query II rowsort label-264
SELECT + 16 * + 31 + - + 39 AS col1, 67 + + + 74 DIV 2 + + 67
----
457
171

skipif mysql # not compatible
query II rowsort label-264
SELECT + 16 * + 31 + - + 39 AS col1, 67 + + + 74 / 2 + + 67
----
457
171

query I rowsort
SELECT + 10 + 11 AS col1
----
21

query I rowsort
SELECT + 34 * + 94
----
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-267
SELECT COALESCE ( 37, + - CAST( NULL AS SIGNED ), + 90 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-267
SELECT COALESCE ( 37, + - CAST ( NULL AS INTEGER ), + 90 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT + 4 + - - 83 + - 60 + + 58 + + + 15 * + - 69 * + - MAX( + + 13 ) * - COALESCE ( 89, - COUNT( * ) ) * - 73 + + 65 * - 6
----
87416830

skipif mysql # not compatible
query I rowsort label-268
SELECT + 4 + - - 83 + - 60 + + 58 + + + 15 * + - 69 * + - MAX ( + + 13 ) * - COALESCE ( 89, - COUNT ( * ) ) * - 73 + + 65 * - 6
----
87416830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-269
SELECT + 80 + - ( + MIN( - CAST( NULL AS SIGNED ) ) ) + - + 59 - + 60 * - 9 * - 10 * - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-269
SELECT + 80 + - ( + MIN ( - CAST ( NULL AS INTEGER ) ) ) + - + 59 - + 60 * - 9 * - 10 * - 24 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-270
SELECT ALL - CAST( + 23 AS SIGNED ) DIV - COALESCE ( + 1, + 95 + + 48 * - ( 52 ), 4 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL - CAST ( + 23 AS INTEGER ) / - COALESCE ( + 1, + 95 + + 48 * - ( 52 ), 4 ) AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-271
SELECT + 98 DIV - ( 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-271
SELECT + 98 / - ( 59 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-272
SELECT DISTINCT - 93 * - CAST( - 69 AS SIGNED ) + 65
----
-6352

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - 93 * - CAST ( - 69 AS INTEGER ) + 65
----
-6352

query I rowsort
SELECT DISTINCT - 47 * + 97
----
-4559

query I rowsort
SELECT + - 42 + 24
----
-18

query I rowsort
SELECT ALL - 81 * - 64 - - - 70 + 99 AS col0
----
5213

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT DISTINCT + 45 * COUNT( * ) + - 70 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT + 45 * COUNT ( * ) + - 70 AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT DISTINCT COALESCE ( + CAST( NULL AS SIGNED ), - - 35 ) * + 91 * 64 AS col2
----
203840

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT COALESCE ( + CAST ( NULL AS INTEGER ), - - 35 ) * + 91 * 64 AS col2
----
203840

query I rowsort
SELECT + - 64 * - - 22 + + 11 * 32 + + + 68 AS col0
----
-988

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL - SUM( DISTINCT + 37 ) + 6 - + ( - 93 ) + - - CASE + COUNT( * ) WHEN - 22 THEN + + 53 + + COALESCE ( + COALESCE ( + 76, - 62 * + 30, - 52 ), + COUNT( * ) + - CASE + - 10 WHEN + 61 THEN - 41 * 27 + 38 / + + 66 * - + 56 * 29 + 37 ELSE NULL END + + 99 ) END * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL - SUM ( DISTINCT + 37 ) + 6 - + ( - 93 ) + - - CASE + COUNT ( * ) WHEN - 22 THEN + + 53 + + COALESCE ( + COALESCE ( + 76, - 62 * + 30, - 52 ), + COUNT ( * ) + - CASE + - 10 WHEN + 61 THEN - 41 * 27 + 38 / + + 66 * - + 56 * 29 + 37 ELSE NULL END + + 99 ) END * 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT + + 90 + + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-280
SELECT + + 90 + + - COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT - - 15 + + + COUNT( ALL - + ( 81 ) )
----
16

skipif mysql # not compatible
query I rowsort label-281
SELECT - - 15 + + + COUNT ( ALL - + ( 81 ) )
----
16

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

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

query I rowsort
SELECT ALL + 60 - - 5 * + 24 + 64 AS col0
----
244

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-285
SELECT - 83 + - CASE + CASE 40 WHEN - 4 THEN - 64 * 17 WHEN 82 THEN + + MIN( ALL 92 ) + 57 + + - 20 END WHEN + - COUNT( * ) THEN NULL WHEN - 58 + - - 62 DIV + 97 THEN NULL ELSE - 11 END + COALESCE ( 55, - - 32 ) + + + 51 DIV + 80 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-285
SELECT - 83 + - CASE + CASE 40 WHEN - 4 THEN - 64 * 17 WHEN 82 THEN + + MIN ( ALL 92 ) + 57 + + - 20 END WHEN + - COUNT ( * ) THEN NULL WHEN - 58 + - - 62 / + 97 THEN NULL ELSE - 11 END + COALESCE ( 55, - - 32 ) + + + 51 / + 80 AS col2
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-286
SELECT - 24, 0 * CAST( NULL AS DECIMAL ) AS col0, - 61 AS col1
----
-24
NULL
-61

skipif mysql # not compatible
query III rowsort label-286
SELECT - 24, 0 * CAST ( NULL AS REAL ) AS col0, - 61 AS col1
----
-24
NULL
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-287
SELECT + 94 DIV + - 71 + 72 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-287
SELECT + 94 / + - 71 + 72 AS col2
----
71

query I rowsort
SELECT 76 * - 10 * + + 29
----
-22040

onlyif mysql # DIV for integer division: 
query I rowsort label-289
SELECT ALL - 75 DIV - 40 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL - 75 / - 40 AS col2
----
1

query I rowsort
SELECT DISTINCT - NULLIF ( 3, 75 ) AS col2
----
-3

query I rowsort
SELECT + 6 * + + 20 + 68
----
188

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT 2 * - 76 col2, COUNT( ALL - - 48 ) * + + 32 * 49
----
-152
1568

skipif mysql # not compatible
query II rowsort label-292
SELECT 2 * - 76 col2, COUNT ( ALL - - 48 ) * + + 32 * 49
----
-152
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT DISTINCT - COALESCE ( + COUNT( * ), - NULLIF ( ( - + 15 ), 51 * - 23 - + 75 + - NULLIF ( - ( - COUNT( * ) ), + - NULLIF ( + - 58, 25 ) ) ), - 8 * - 7, 31 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT - COALESCE ( + COUNT ( * ), - NULLIF ( ( - + 15 ), 51 * - 23 - + 75 + - NULLIF ( - ( - COUNT ( * ) ), + - NULLIF ( + - 58, 25 ) ) ), - 8 * - 7, 31 ) AS col0
----
-1

query II rowsort
SELECT 20, + NULLIF ( + + 91, - - 7 * - - 94 / 9 ) col0
----
20
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-295
SELECT 3 DIV - - 18 * MAX( ALL 16 ) + - MAX( 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-295
SELECT 3 / - - 18 * MAX ( ALL 16 ) + - MAX ( 87 ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-296
SELECT ALL - ( + ( + MIN( - - 15 ) ) ) AS col0, 5 AS col2
----
-15
5

skipif mysql # not compatible
query II rowsort label-296
SELECT ALL - ( + ( + MIN ( - - 15 ) ) ) AS col0, 5 AS col2
----
-15
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT 92 * NULLIF ( + - MAX( - COALESCE ( + 1, + 77 ) ), + 95 * + 48 ) DIV - 42 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-297
SELECT 92 * NULLIF ( + - MAX ( - COALESCE ( + 1, + 77 ) ), + 95 * + 48 ) / - 42 AS col0
----
-2

query I rowsort
SELECT 1 * - 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT SUM( 41 ) * 50 + + 82 * ( + 45 ) AS col1
----
5740

skipif mysql # not compatible
query I rowsort label-299
SELECT SUM ( 41 ) * 50 + + 82 * ( + 45 ) AS col1
----
5740

query I rowsort
SELECT ALL 99 + - 40 col1
----
59

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

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL + COUNT ( * ) / + COUNT ( * ) col1
----
1

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

query I rowsort
SELECT 27 * + 27
----
729

query II rowsort
SELECT 63, - 55 - + 39 AS col2
----
63
-94

query I rowsort
SELECT DISTINCT 17 + - 78 * - 74
----
5789

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT - - ( - - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-306
SELECT - - ( - - COUNT ( * ) ) col0
----
1

query I rowsort
SELECT ALL - 24 + - + 27 col1
----
-51

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

skipif mysql # not compatible
query I rowsort label-308
SELECT 70 * + 4 * CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT 0 + + 91 AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-311
SELECT DISTINCT 83 - + 58 + - 30 DIV + MAX( 6 ) + + 62 + - + 61 DIV 78 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT 83 - + 58 + - 30 / + MAX ( 6 ) + + 62 + - + 61 / 78 AS col0
----
82

query II rowsort
SELECT - 12 AS col1, - 99 * 83
----
-12
-8217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-313
SELECT ALL 1 - - CAST( - 70 AS SIGNED ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL 1 - - CAST ( - 70 AS INTEGER ) AS col2
----
-69

query I rowsort
SELECT 93 * - 52 * + COALESCE ( 5, - - 34 * + 32, 65 ) col1
----
-24180

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

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

query I rowsort
SELECT - NULLIF ( 71, 56 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT 70 + 45 + - 71 * + SUM( + + 95 ) + + - COUNT( * ) AS col0
----
-6631

skipif mysql # not compatible
query I rowsort label-317
SELECT 70 + 45 + - 71 * + SUM ( + + 95 ) + + - COUNT ( * ) AS col0
----
-6631

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT CASE + - ( + 62 ) WHEN - - 89 THEN + COUNT( * ) WHEN - + 29 + + - 13 * + - 57 THEN NULL END * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT CASE + - ( + 62 ) WHEN - - 89 THEN + COUNT ( * ) WHEN - + 29 + + - 13 * + - 57 THEN NULL END * + 2
----
NULL

query I rowsort
SELECT + 77 + 0 AS col1
----
77

query II rowsort
SELECT 96, 55 * + 80 AS col0
----
96
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT ALL 4 * + 38 + - + COUNT( * )
----
151

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL 4 * + 38 + - + COUNT ( * )
----
151

query I rowsort
SELECT DISTINCT + 79 * + + NULLIF ( - 79, 94 * - + 6 + + 0 ) * - 20 * - + 38 + + 8
----
-4743152

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT MIN( - 12 ) + + 91 * + 3 AS col1
----
261

skipif mysql # not compatible
query I rowsort label-323
SELECT MIN ( - 12 ) + + 91 * + 3 AS col1
----
261

query I rowsort
SELECT ALL 77 * - 3
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-325
SELECT ALL - CAST( - ( 11 ) AS SIGNED ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL - CAST ( - ( 11 ) AS INTEGER ) AS col0
----
11

query I rowsort
SELECT ALL - 71 + + CASE - 99 WHEN - + 80 / - 69 + 86 THEN + 7 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-327
SELECT 98 - ( + MAX( - + CAST( NULL AS SIGNED ) ) ) + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT 98 - ( + MAX ( - + CAST ( NULL AS INTEGER ) ) ) + - 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT 8 - + MIN( ALL + 68 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-328
SELECT 8 - + MIN ( ALL + 68 ) AS col2
----
-60

query I rowsort
SELECT DISTINCT + 99 * 23
----
2277

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT 27 DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-330
SELECT 27 / - + 95
----
0

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

skipif mysql # not compatible
query I rowsort label-331
SELECT 43 - 3 * + - NULLIF ( CAST ( NULL AS INTEGER ), - - COUNT ( * ) ) + 17 + + 22
----
NULL

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

query I rowsort
SELECT - 69 * 68 + + 90
----
-4602

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT 46 * + - 2 * + 13 * 65 * - 55 AS col2, + 17 + + MAX( 22 ) AS col1
----
4275700
39

skipif mysql # not compatible
query II rowsort label-334
SELECT 46 * + - 2 * + 13 * 65 * - 55 AS col2, + 17 + + MAX ( 22 ) AS col1
----
4275700
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-335
SELECT ALL - 28 + + 39 DIV - 87 + - COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL - 28 + + 39 / - 87 + - COUNT ( * ) AS col0
----
-29

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-337
SELECT DISTINCT - 26 DIV + - 7, 66 AS col1
----
3
66

skipif mysql # not compatible
query II rowsort label-337
SELECT DISTINCT - 26 / + - 7, 66 AS col1
----
3
66

query I rowsort
SELECT ALL + 68 - 57 * + 10 - - + 78
----
-424

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-339
SELECT - 16 + - NULLIF ( + 63, + COUNT( * ) * CAST( + 74 AS DECIMAL ) + + 67 ) col2, - 4
----
-79
-4

skipif mysql # not compatible
query II rowsort label-339
SELECT - 16 + - NULLIF ( + 63, + COUNT ( * ) * CAST ( + 74 AS REAL ) + + 67 ) col2, - 4
----
-79
-4

query I rowsort
SELECT ALL + 1 * + 53 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-341
SELECT - CASE + 33 WHEN - 32 THEN + + 65 + + CAST( NULL AS SIGNED ) - + - 93 + - + 35 + 6 + + + 26 - + - 66 * MIN( ALL + + 94 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-341
SELECT - CASE + 33 WHEN - 32 THEN + + 65 + + CAST ( NULL AS INTEGER ) - + - 93 + - + 35 + 6 + + + 26 - + - 66 * MIN ( ALL + + 94 ) END
----
NULL

query I rowsort
SELECT + - 32 + + + 57 + + 78 AS col1
----
103

query I rowsort
SELECT + + 57 + + + 21 AS col1
----
78

query I rowsort
SELECT + ( 18 ) * - 83 * + 34 AS col2
----
-50796

query I rowsort
SELECT DISTINCT CASE WHEN NOT + 16 IS NULL THEN + + 13 END AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-346
SELECT + - 80 * 54 AS col1, 12 + + + COUNT( * )
----
-4320
13

skipif mysql # not compatible
query II rowsort label-346
SELECT + - 80 * 54 AS col1, 12 + + + COUNT ( * )
----
-4320
13

query I rowsort
SELECT - NULLIF ( - + 37, + 80 ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT - SUM( 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-348
SELECT - SUM ( 36 )
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-349
SELECT + CAST( NULL AS DECIMAL ) + + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-349
SELECT + CAST ( NULL AS REAL ) + + 9 AS col0
----
NULL

query I rowsort
SELECT + 41 - 27
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-351
SELECT + 0 + + - 74 + + 44 DIV 45 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-351
SELECT + 0 + + - 74 + + 44 / 45 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT ALL 82 * + COUNT( * ) * + 24 AS col2
----
1968

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL 82 * + COUNT ( * ) * + 24 AS col2
----
1968

onlyif mysql # DIV for integer division: 
query I rowsort label-353
SELECT - 93 DIV - 31 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-353
SELECT - 93 / - 31 AS col1
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT + 81 + + 62 * - MAX( DISTINCT - - 6 )
----
-291

skipif mysql # not compatible
query I rowsort label-356
SELECT + 81 + + 62 * - MAX ( DISTINCT - - 6 )
----
-291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-357
SELECT ALL + 27 * - CAST( - 78 AS SIGNED ) + 59 + CASE + 19 WHEN 21 THEN - - 22 + - 47 + + COUNT( * ) + COUNT( + 11 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL + 27 * - CAST ( - 78 AS INTEGER ) + 59 + CASE + 19 WHEN 21 THEN - - 22 + - 47 + + COUNT ( * ) + COUNT ( + 11 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 13 * + + 51 + 24
----
687

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-359
SELECT ALL + COUNT( + 1 ) * - 4 + - 43 + - 51 * 41 + - + 45 DIV + + MAX( DISTINCT - + 5 ) col0, 66 + - 63 AS col1
----
-2129
3

skipif mysql # not compatible
query II rowsort label-359
SELECT ALL + COUNT ( + 1 ) * - 4 + - 43 + - 51 * 41 + - + 45 / + + MAX ( DISTINCT - + 5 ) col0, 66 + - 63 AS col1
----
-2129
3

query II rowsort
SELECT DISTINCT + 69 AS col0, - 35 AS col2
----
69
-35

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

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

query I rowsort
SELECT - 3 * + 6 + + - 60 AS col1
----
-78

query I rowsort
SELECT NULLIF ( + + 42, + 7 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-364
SELECT - 27 + - CAST( - 8 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-364
SELECT - 27 + - CAST ( - 8 AS INTEGER )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL - 62 * 11 - 12 - + - 49 * + 8 * + 86 / - ( - CASE + COUNT( * ) WHEN - - 70 THEN + + 5 ELSE NULL END ) / MIN( 51 ) + + 53 + + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL - 62 * 11 - 12 - + - 49 * + 8 * + 86 / - ( - CASE + COUNT ( * ) WHEN - - 70 THEN + + 5 ELSE NULL END ) / MIN ( 51 ) + + 53 + + + 26
----
NULL

query I rowsort
SELECT + 15 * - 12 * 22 AS col0
----
-3960

query I rowsort
SELECT - ( + 48 ) * - 19 AS col0
----
912

query I rowsort
SELECT 88 * + 22 + ( - 8 ) * + 19 + - + 3 AS col0
----
1781

query I rowsort
SELECT ALL + - 68 * 38
----
-2584

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT ALL + + 13 * - + MAX( - ( + 46 ) ) * - + 15 - - 10 AS col2
----
-8960

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL + + 13 * - + MAX ( - ( + 46 ) ) * - + 15 - - 10 AS col2
----
-8960

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

skipif mysql # not compatible
query I rowsort label-371
SELECT + MAX ( + 34 )
----
34

query I rowsort
SELECT - + 53 * - 28 AS col0
----
1484

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query III rowsort label-373
SELECT - 23 DIV 15 + + - 15 AS col1, + 2 AS col1, - ( - - CAST( NULL AS DECIMAL ) ) AS col0
----
-16
2
NULL

skipif mysql # not compatible
query III rowsort label-373
SELECT - 23 / 15 + + - 15 AS col1, + 2 AS col1, - ( - - CAST ( NULL AS REAL ) ) AS col0
----
-16
2
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT - 62 * 73 * - - 66 AS col0, SUM( 62 ) * - 5 + + COUNT( * )
----
-298716
-309

skipif mysql # not compatible
query II rowsort label-374
SELECT - 62 * 73 * - - 66 AS col0, SUM ( 62 ) * - 5 + + COUNT ( * )
----
-298716
-309

onlyif mysql # aggregate syntax: 
query II rowsort label-375
SELECT - 91 AS col1, 38 * - 81 + 94 + - ( - + COALESCE ( 9, + 70 ) ) * + MAX( ALL - 49 ) * 7 + - + 22 AS col1
----
-91
-6093

skipif mysql # not compatible
query II rowsort label-375
SELECT - 91 AS col1, 38 * - 81 + 94 + - ( - + COALESCE ( 9, + 70 ) ) * + MAX ( ALL - 49 ) * 7 + - + 22 AS col1
----
-91
-6093

query II rowsort
SELECT + 8 AS col2, + 25 AS col0
----
8
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-377
SELECT ALL - 81 DIV - COUNT( * ) col0
----
81

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL - 81 / - COUNT ( * ) col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-378
SELECT - 89 DIV + 40 + ( + COUNT( * ) ) * 81 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-378
SELECT - 89 / + 40 + ( + COUNT ( * ) ) * 81 AS col1
----
79

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

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

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

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT MAX ( DISTINCT + CAST ( 8 AS INTEGER ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT - - 84 + + - COUNT( * ) * - - 6 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-381
SELECT - - 84 + + - COUNT ( * ) * - - 6 AS col0
----
78

query I rowsort
SELECT DISTINCT ( + 63 ) AS col0
----
63

query I rowsort
SELECT - CASE + + 93 WHEN - 39 THEN - 5 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-384
SELECT ALL + 29 + + + COUNT( * ) + 95 * - 25 * - NULLIF ( 67, NULLIF ( 61, 49 ) + 64 ) + - 12 * - + 84 + + + 97 DIV COUNT( * ) + + + COUNT( * ) col0
----
160261

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL + 29 + + + COUNT ( * ) + 95 * - 25 * - NULLIF ( 67, NULLIF ( 61, 49 ) + 64 ) + - 12 * - + 84 + + + 97 / COUNT ( * ) + + + COUNT ( * ) col0
----
160261

query I rowsort
SELECT - NULLIF ( + 18, 76 ) AS col2
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT + 17 + 17 + + MAX( - 26 ) + + 27 * + 46
----
1250

skipif mysql # not compatible
query I rowsort label-387
SELECT + 17 + 17 + + MAX ( - 26 ) + + 27 * + 46
----
1250

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT ALL MIN( - - 19 ) + 46 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL MIN ( - - 19 ) + 46 AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-389
SELECT DISTINCT - 26 + + CAST( - - 10 AS SIGNED ) + 41 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT - 26 + + CAST ( - - 10 AS INTEGER ) + 41 AS col1
----
25

query I rowsort
SELECT DISTINCT + 72 + + ( + 21 ) - + 1 + - COALESCE ( + 1, 60 ) * 81
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT + 82 * MIN( + 21 ) AS col1
----
1722

skipif mysql # not compatible
query I rowsort label-391
SELECT + 82 * MIN ( + 21 ) AS col1
----
1722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-392
SELECT ALL - COALESCE ( + 84, - CAST( NULL AS SIGNED ) * - + 84 * COUNT( * ) ) + + + 63
----
-21

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL - COALESCE ( + 84, - CAST ( NULL AS INTEGER ) * - + 84 * COUNT ( * ) ) + + + 63
----
-21

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

skipif mysql # not compatible
query II rowsort label-393
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col0, - 79
----
-1
-79

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

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

query II rowsort
SELECT + 15 - 24, + 19 + 97 AS col1
----
-9
116

query II rowsort
SELECT + ( + 65 ) AS col2, 43
----
65
43

query I rowsort
SELECT DISTINCT 39 * - + 44
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT ALL + 90 / 66 * + 73 - - NULLIF ( - SUM( ALL - 74 ), + 44 / + COALESCE ( - COUNT( * ), - 49 ) ) * COUNT( * ) * ( CASE + 30 WHEN + MAX( + 80 ) + + 34 THEN + - 33 * + + AVG ( DISTINCT + 83 ) / 27 - 61 WHEN 91 + 60 / + 86 - + COUNT( ALL - - 62 ) THEN - - ( - 40 ) END ) * 16 + - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL + 90 / 66 * + 73 - - NULLIF ( - SUM ( ALL - 74 ), + 44 / + COALESCE ( - COUNT ( * ), - 49 ) ) * COUNT ( * ) * ( CASE + 30 WHEN + MAX ( + 80 ) + + 34 THEN + - 33 * + + AVG ( DISTINCT + 83 ) / 27 - 61 WHEN 91 + 60 / + 86 - + COUNT ( ALL - - 62 ) THEN - - ( - 40 ) END ) * 16 + - 87 AS col0
----
NULL

query I rowsort
SELECT ALL - 26 * 93 AS col0
----
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT - NULLIF ( 89, + + ( 7 ) * - + MIN( + 53 ) ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-400
SELECT - NULLIF ( 89, + + ( 7 ) * - + MIN ( + 53 ) ) AS col1
----
-89

query I rowsort
SELECT 45 - ( 24 ) col1
----
21

query I rowsort
SELECT 96 * + 58 + - 90 AS col1
----
5478

query I rowsort
SELECT 78 * + - 93 * - + 18
----
130572

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

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL + + 61 + COUNT ( * ) AS col2
----
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT ALL - - NULLIF ( - 66, + - COUNT( * ) * - 23 - - COUNT( * ) ) + - 32 - COUNT( * ) + - 63 + - 67 + + 84
----
-145

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL - - NULLIF ( - 66, + - COUNT ( * ) * - 23 - - COUNT ( * ) ) + - 32 - COUNT ( * ) + - 63 + - 67 + + 84
----
-145

query I rowsort
SELECT DISTINCT - 42 + NULLIF ( + 34, + + 8 )
----
-8

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

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

query I rowsort
SELECT DISTINCT + - 19 + + 96
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-410
SELECT - 37 AS col1, 4 * - 49 + + CAST( NULL AS SIGNED )
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-410
SELECT - 37 AS col1, 4 * - 49 + + CAST ( NULL AS INTEGER )
----
-37
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-411
SELECT DISTINCT - 94 + + - 3 + - 53 + + + 29 * 98 DIV - + SUM( - 66 )
----
-107

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT - 94 + + - 3 + - 53 + + + 29 * 98 / - + SUM ( - 66 )
----
-107

query I rowsort
SELECT DISTINCT + 40 + + + 42 AS col1
----
82

query I rowsort
SELECT 20 * ( 24 )
----
480

query I rowsort
SELECT ALL - 22 + + + 80 + 80 * - 2
----
-102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT 7 + + 23 + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-416
SELECT 7 + + 23 + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT COUNT( * ) - - ( 72 ) + 49 * COUNT( * ) + + - 8 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-417
SELECT COUNT ( * ) - - ( 72 ) + 49 * COUNT ( * ) + + - 8 AS col0
----
114

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-418
SELECT 17 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-418
SELECT 17 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 33 + + + 17 AS col2
----
50

query I rowsort
SELECT 36 * - + 81
----
-2916

query I rowsort
SELECT ALL 80 - 26 - 83 AS col1
----
-29

query II rowsort
SELECT ALL - - 52, - 10 AS col1
----
52
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-423
SELECT DISTINCT 56 / 33 * SUM( DISTINCT - 28 ) * - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT 56 / 33 * SUM ( DISTINCT - 28 ) * - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-424
SELECT - 96 DIV 91 DIV COUNT( * ) * - 53
----
53

skipif mysql # not compatible
query I rowsort label-424
SELECT - 96 / 91 / COUNT ( * ) * - 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT + 35 * COUNT( - + 55 )
----
35

skipif mysql # not compatible
query I rowsort label-425
SELECT + 35 * COUNT ( - + 55 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT + COUNT( * ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-426
SELECT + COUNT ( * ) + - 58
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-427
SELECT ALL + 14 * - 58 * 9, + 86 + COUNT( * ) AS col2
----
-7308
87

skipif mysql # not compatible
query II rowsort label-427
SELECT ALL + 14 * - 58 * 9, + 86 + COUNT ( * ) AS col2
----
-7308
87

query I rowsort
SELECT - ( 36 )
----
-36

query I rowsort
SELECT + 18 + - + 7
----
11

query I rowsort
SELECT ALL + 64 + + 71 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT + MIN( + 84 ) * + 55 + + - MAX( DISTINCT - 86 ) + + COUNT( * ) * - + 79
----
4627

skipif mysql # not compatible
query I rowsort label-431
SELECT + MIN ( + 84 ) * + 55 + + - MAX ( DISTINCT - 86 ) + + COUNT ( * ) * - + 79
----
4627

query I rowsort
SELECT ALL 41 * + - 26 AS col1
----
-1066

query I rowsort
SELECT DISTINCT - 31 + + 13
----
-18

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

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL 68 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL 81 + - + 4 AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-436
SELECT - CAST( + AVG ( DISTINCT - + 81 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-436
SELECT - CAST ( + AVG ( DISTINCT - + 81 ) AS INTEGER )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-437
SELECT DISTINCT 42 AS col2, + 27 DIV - 4 * COUNT( * ) AS col1
----
42
-6

skipif mysql # not compatible
query II rowsort label-437
SELECT DISTINCT 42 AS col2, + 27 / - 4 * COUNT ( * ) AS col1
----
42
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-438
SELECT ALL COUNT( ALL 37 ) * + SUM( DISTINCT - 75 ) * + CAST( + 29 AS SIGNED )
----
-2175

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL COUNT ( ALL 37 ) * + SUM ( DISTINCT - 75 ) * + CAST ( + 29 AS INTEGER )
----
-2175

query I rowsort
SELECT ALL 23 - + + 43
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-440
SELECT NULLIF ( CASE + + 57 WHEN 85 THEN - 59 * 70 WHEN 53 THEN - 87 ELSE NULL END, - COALESCE ( CAST( - + 47 AS SIGNED ), 11, + - 77 ) / + - 7 ) + CAST( + 84 AS SIGNED ) AS col1, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-440
SELECT NULLIF ( CASE + + 57 WHEN 85 THEN - 59 * 70 WHEN 53 THEN - 87 ELSE NULL END, - COALESCE ( CAST ( - + 47 AS INTEGER ), 11, + - 77 ) / + - 7 ) + CAST ( + 84 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT 46 * - 43
----
-1978

query I rowsort
SELECT 52 + + 60 AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-443
SELECT ALL 12 col2, - CAST( 47 AS SIGNED )
----
12
-47

skipif mysql # not compatible
query II rowsort label-443
SELECT ALL 12 col2, - CAST ( 47 AS INTEGER )
----
12
-47

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

skipif mysql # not compatible
query I rowsort label-444
SELECT 36 / + + 59
----
0

query II rowsort
SELECT DISTINCT 74 AS col2, 76 - - 33 AS col1
----
74
109

query II rowsort
SELECT ALL + 92 * - 31 AS col0, - 37
----
-2852
-37

query I rowsort
SELECT 61 * - CASE + 26 WHEN + 20 THEN NULL ELSE 22 END AS col1
----
-1342

onlyif mysql # DIV for integer division: 
query I rowsort label-448
SELECT ALL + COALESCE ( 50, + 15 DIV 98 + - NULLIF ( 23, + 25 ) + - 72 ) DIV 85 - - - 16 col1
----
-16

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + COALESCE ( 50, + 15 / 98 + - NULLIF ( 23, + 25 ) + - 72 ) / 85 - - - 16 col1
----
-16

query I rowsort
SELECT - 21 * - + ( 75 ) AS col1
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT - + 29 + - COUNT( * ) * 48 * 17 * - 60 * + NULLIF ( + 70, + 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-450
SELECT - + 29 + - COUNT ( * ) * 48 * 17 * - 60 * + NULLIF ( + 70, + 70 )
----
NULL

query II rowsort
SELECT ALL - - 32 * + 96 col1, 34 AS col1
----
3072
34

query II rowsort
SELECT ALL + + 50 AS col2, 74 AS col1
----
50
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-453
SELECT - COALESCE ( 78, - CASE - 1 WHEN + 3 - + + 17 THEN NULL ELSE - COUNT( * ) * - 73 * - + CAST( NULL AS SIGNED ) END * + - 83 + 1 )
----
-78

skipif mysql # not compatible
query I rowsort label-453
SELECT - COALESCE ( 78, - CASE - 1 WHEN + 3 - + + 17 THEN NULL ELSE - COUNT ( * ) * - 73 * - + CAST ( NULL AS INTEGER ) END * + - 83 + 1 )
----
-78

query I rowsort
SELECT - + 79 * + - 91 AS col1
----
7189

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

skipif mysql # not compatible
query I rowsort label-455
SELECT + + 74 * + COUNT ( * ) + - + 27 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL + ( - 92 ) * - COUNT( * ) * - + 79 + + - 90
----
-7358

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL + ( - 92 ) * - COUNT ( * ) * - + 79 + + - 90
----
-7358

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-457
SELECT 88 * + 62 * NULLIF ( + + 43, - COUNT( * ) + + ( + CASE - - 98 WHEN - 61 THEN - 23 WHEN - 19 * + 69 DIV 68 + - 49 THEN 82 WHEN + + 2 + + + 17 THEN + 60 * + - 20 + + 63 END ) ) * - 47 - + 43 - 38 * - 71, + 65 DIV - 49 col0
----
-11023921
-1

skipif mysql # not compatible
query II rowsort label-457
SELECT 88 * + 62 * NULLIF ( + + 43, - COUNT ( * ) + + ( + CASE - - 98 WHEN - 61 THEN - 23 WHEN - 19 * + 69 / 68 + - 49 THEN 82 WHEN + + 2 + + + 17 THEN + 60 * + - 20 + + 63 END ) ) * - 47 - + 43 - 38 * - 71, + 65 / - 49 col0
----
-11023921
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT ALL + + 90 * + - MIN( + + 78 ) * 43 * - - 2 - - 78 + SUM( - 44 ) * + 12 AS col2
----
-604170

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL + + 90 * + - MIN ( + + 78 ) * 43 * - - 2 - - 78 + SUM ( - 44 ) * + 12 AS col2
----
-604170

query II rowsort
SELECT ALL + + 8, + 19 + + + 69 AS col1
----
8
88

query II rowsort
SELECT ALL + 56, 96 + 39 AS col2
----
56
135

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-462
SELECT DISTINCT + 68 * + + 75 + NULLIF ( - COALESCE ( - 49, COUNT( * ) + - 17, + 76 ), - + 87 * + + 0 - + 58 + 95 + + CAST( + 80 AS SIGNED ) * + 17 ) DIV 20 * 31 * - 97 AS col0
----
-914

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT + 68 * + + 75 + NULLIF ( - COALESCE ( - 49, COUNT ( * ) + - 17, + 76 ), - + 87 * + + 0 - + 58 + 95 + + CAST ( + 80 AS INTEGER ) * + 17 ) / 20 * 31 * - 97 AS col0
----
-914

query II rowsort
SELECT 45 AS col1, - ( - 68 )
----
45
68

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT + - 47 - + 53 + COUNT( * ) * 34 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-464
SELECT + - 47 - + 53 + COUNT ( * ) * 34 AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-465
SELECT ALL - 42 DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL - 42 / - 46
----
0

query II rowsort
SELECT + 55 AS col1, - 20 + - - 90 AS col2
----
55
70

query I rowsort
SELECT - 85 * - - 59 - + 75
----
-5090

onlyif mysql # aggregate syntax: 
query II rowsort label-468
SELECT + 6, + ( + + COUNT( * ) ) - - COUNT( * ) * - + 73 AS col2
----
6
-72

skipif mysql # not compatible
query II rowsort label-468
SELECT + 6, + ( + + COUNT ( * ) ) - - COUNT ( * ) * - + 73 AS col2
----
6
-72

query I rowsort
SELECT - - 3 + + 8 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-470
SELECT ALL + + COUNT( ALL + + 49 ) / + CAST( - 16 AS DECIMAL ) AS col2, COUNT( * ) + - 8 * ( + 13 ) * - COUNT( * ) + + - 49 - - + ( + 83 ) AS col0
----
0
139

skipif mysql # not compatible
query II rowsort label-470
SELECT ALL + + COUNT ( ALL + + 49 ) / + CAST ( - 16 AS REAL ) AS col2, COUNT ( * ) + - 8 * ( + 13 ) * - COUNT ( * ) + + - 49 - - + ( + 83 ) AS col0
----
0
139

query I rowsort
SELECT ALL + 3 * - ( - - 76 ) - - - 42
----
-270

query II rowsort
SELECT + 85 + 85 - + 74 + - + 5 AS col2, + 73 AS col0
----
91
73

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT - COUNT( * ) * - + ( + 76 ) + + + 29 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-473
SELECT - COUNT ( * ) * - + ( + 76 ) + + + 29 AS col0
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-474
SELECT ALL + MIN( - - 2 ), 46 DIV 20 col0
----
2
2

skipif mysql # not compatible
query II rowsort label-474
SELECT ALL + MIN ( - - 2 ), 46 / 20 col0
----
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT ALL COUNT( * ) * + + 7 * - + 44 * + - 63 * - + ( - 58 ) AS col0
----
1125432

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL COUNT ( * ) * + + 7 * - + 44 * + - 63 * - + ( - 58 ) AS col0
----
1125432

onlyif mysql # aggregate syntax: 
query II rowsort label-476
SELECT + 46 + - 16 col0, + MIN( DISTINCT + 83 )
----
30
83

skipif mysql # not compatible
query II rowsort label-476
SELECT + 46 + - 16 col0, + MIN ( DISTINCT + 83 )
----
30
83

query I rowsort
SELECT + 11 + + 73 * 39 * 54 col2
----
153749

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT + COUNT( ALL + 82 ) + - ( 49 ) * + - 3 AS col1
----
148

skipif mysql # not compatible
query I rowsort label-478
SELECT + COUNT ( ALL + 82 ) + - ( 49 ) * + - 3 AS col1
----
148

query I rowsort
SELECT + 99 * - 34
----
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT + 93 + - MIN( - + 43 ) AS col2
----
136

skipif mysql # not compatible
query I rowsort label-480
SELECT + 93 + - MIN ( - + 43 ) AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL NULLIF ( - COUNT( * ), 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL NULLIF ( - COUNT ( * ), 16 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-482
SELECT DISTINCT 10 * - 16 AS col1, CASE + MAX( ALL - - 34 ) WHEN - - COUNT( * ) THEN - MIN( 89 ) * 6 WHEN CASE - - COUNT( * ) WHEN - 81 * 37 * + ( 32 ) / + - COUNT( * ) THEN 58 ELSE NULL END + + COUNT( * ) + + 57 + 94 + - 58 / 17 / - - 98 THEN NULL ELSE NULL END * 97 + + COUNT( * ) AS col0
----
-160
NULL

skipif mysql # not compatible
query II rowsort label-482
SELECT DISTINCT 10 * - 16 AS col1, CASE + MAX ( ALL - - 34 ) WHEN - - COUNT ( * ) THEN - MIN ( 89 ) * 6 WHEN CASE - - COUNT ( * ) WHEN - 81 * 37 * + ( 32 ) / + - COUNT ( * ) THEN 58 ELSE NULL END + + COUNT ( * ) + + 57 + 94 + - 58 / 17 / - - 98 THEN NULL ELSE NULL END * 97 + + COUNT ( * ) AS col0
----
-160
NULL

query I rowsort
SELECT DISTINCT 44 * 73
----
3212

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-485
SELECT + 26 + + CAST( + 71 AS SIGNED ) + + ( + 78 ) - MIN( 91 ) + - COUNT( * ) DIV CASE 57 WHEN + COUNT( * ) THEN NULL ELSE 47 END * - 91
----
84

skipif mysql # not compatible
query I rowsort label-485
SELECT + 26 + + CAST ( + 71 AS INTEGER ) + + ( + 78 ) - MIN ( 91 ) + - COUNT ( * ) / CASE 57 WHEN + COUNT ( * ) THEN NULL ELSE 47 END * - 91
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-486
SELECT DISTINCT - CAST( - + 22 AS DECIMAL ) / + 32 + + NULLIF ( + COUNT( ALL ( - 13 ) ), + + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT - CAST ( - + 22 AS REAL ) / + 32 + + NULLIF ( + COUNT ( ALL ( - 13 ) ), + + 50 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-487
SELECT DISTINCT + 28 DIV ( - 87 ) * 4 + + + CAST( - 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT + 28 / ( - 87 ) * 4 + + + CAST ( - 69 AS INTEGER )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-488
SELECT DISTINCT 75 DIV + 1 - - 38 + + 60 AS col1
----
173

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT 75 / + 1 - - 38 + + 60 AS col1
----
173

query I rowsort
SELECT ALL + 12 * - + 62 * + + ( - 53 ) + + 25 + + 87
----
39544

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

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT - + 93 / - 75 + COUNT ( * ) * - 76
----
-75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-492
SELECT ALL + - 28 / + - 79 * + 42 * - CASE 98 WHEN CAST( 37 AS SIGNED ) THEN CASE + + 74 WHEN 88 THEN NULL WHEN 25 * - ( + 67 ) + - 90 THEN - 38 / + 14 - - 3 - - - 4 - + COUNT( * ) * 52 + - 30 * + NULLIF ( + 93, + 31 * - + 8 ) * - 27 + - - 32 END WHEN + 0 THEN + - MAX( + 23 ) * + ( - ( + 22 ) ) / - 93 ELSE NULL END - + ( COUNT( * ) + COUNT( + CAST( + 14 AS SIGNED ) ) ) * 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL + - 28 / + - 79 * + 42 * - CASE 98 WHEN CAST ( 37 AS INTEGER ) THEN CASE + + 74 WHEN 88 THEN NULL WHEN 25 * - ( + 67 ) + - 90 THEN - 38 / + 14 - - 3 - - - 4 - + COUNT ( * ) * 52 + - 30 * + NULLIF ( + 93, + 31 * - + 8 ) * - 27 + - - 32 END WHEN + 0 THEN + - MAX ( + 23 ) * + ( - ( + 22 ) ) / - 93 ELSE NULL END - + ( COUNT ( * ) + COUNT ( + CAST ( + 14 AS INTEGER ) ) ) * 86 AS col2
----
NULL

query I rowsort
SELECT ALL + 52 * - 50
----
-2600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-494
SELECT - + COALESCE ( + 38, - - CAST( + NULLIF ( - 0, 27 / ( 58 ) ) AS SIGNED ) + + 56 + + 38 ) * 85 col1
----
-3230

skipif mysql # not compatible
query I rowsort label-494
SELECT - + COALESCE ( + 38, - - CAST ( + NULLIF ( - 0, 27 / ( 58 ) ) AS INTEGER ) + + 56 + + 38 ) * 85 col1
----
-3230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-495
SELECT ALL + + NULLIF ( - 50, - 93 + CAST( + + 37 AS SIGNED ) )
----
-50

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL + + NULLIF ( - 50, - 93 + CAST ( + + 37 AS INTEGER ) )
----
-50

query I rowsort
SELECT DISTINCT + 19 * - 48 + + + 76
----
-836

query I rowsort
SELECT ALL - + 8 * + 94 * + - 57 * 59 - + 78 + + 88 AS col1
----
2528986

query I rowsort
SELECT ( - ( - - 52 ) )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT + MAX( + 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-499
SELECT + MAX ( + 22 ) AS col2
----
22

query I rowsort
SELECT - 99 * - + 96
----
9504

query I rowsort
SELECT + 5 + NULLIF ( - - 94, + 4 ) AS col1
----
99

query I rowsort
SELECT ALL 11 * 46
----
506

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-504
SELECT DISTINCT - COUNT( * ) DIV + 90 * - 58, - 22 * - 43 AS col1
----
0
946

skipif mysql # not compatible
query II rowsort label-504
SELECT DISTINCT - COUNT ( * ) / + 90 * - 58, - 22 * - 43 AS col1
----
0
946

query I rowsort
SELECT + 52 - 12 + 27 col0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-506
SELECT ALL 11, - 8 * + - ( 45 ) / CASE + - 51 WHEN 7 THEN - - CASE - + 50 WHEN + 33 * + 93 THEN - 86 WHEN + 5 / COUNT( * ) THEN NULL END WHEN + 6 THEN NULL END * - + 35 + + 1 AS col2
----
11
NULL

skipif mysql # not compatible
query II rowsort label-506
SELECT ALL 11, - 8 * + - ( 45 ) / CASE + - 51 WHEN 7 THEN - - CASE - + 50 WHEN + 33 * + 93 THEN - 86 WHEN + 5 / COUNT ( * ) THEN NULL END WHEN + 6 THEN NULL END * - + 35 + + 1 AS col2
----
11
NULL

query I rowsort
SELECT + 69 * + + 56
----
3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-508
SELECT ALL + SUM( DISTINCT + 77 ) * + + 65 * + COUNT( * ) + - NULLIF ( + - CAST( NULL AS SIGNED ), + 56 / + + 72 ) + - 68 + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL + SUM ( DISTINCT + 77 ) * + + 65 * + COUNT ( * ) + - NULLIF ( + - CAST ( NULL AS INTEGER ), + 56 / + + 72 ) + - 68 + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT + COUNT( * ) * + + 42 col2
----
42

skipif mysql # not compatible
query I rowsort label-509
SELECT + COUNT ( * ) * + + 42 col2
----
42

query I rowsort
SELECT ALL 57 + - 85 AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-511
SELECT 42 / + 87 * - CAST( NULL AS SIGNED ) AS col1, 97
----
NULL
97

skipif mysql # not compatible
query II rowsort label-511
SELECT 42 / + 87 * - CAST ( NULL AS INTEGER ) AS col1, 97
----
NULL
97

query I rowsort
SELECT 77 + - 17
----
60

query I rowsort
SELECT ( + 2 ) + + 83 AS col2
----
85

query I rowsort
SELECT ALL 21 + 32 AS col0
----
53

query I rowsort
SELECT ALL + 27 + - 67 AS col2
----
-40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-517
SELECT DISTINCT COUNT( - 16 ) + + - NULLIF ( - 26, + COALESCE ( - 36, COUNT( * ), - 45 ) ) * 17 AS col0, 15 AS col0
----
443
15

skipif mysql # not compatible
query II rowsort label-517
SELECT DISTINCT COUNT ( - 16 ) + + - NULLIF ( - 26, + COALESCE ( - 36, COUNT ( * ), - 45 ) ) * 17 AS col0, 15 AS col0
----
443
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-518
SELECT ALL 7 + - + CAST( NULL AS SIGNED ) * 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL 7 + - + CAST ( NULL AS INTEGER ) * 21 AS col1
----
NULL

query I rowsort
SELECT ALL - 8 * 30 AS col1
----
-240

query II rowsort
SELECT - 61, - 57 - 77 AS col1
----
-61
-134

query I rowsort
SELECT DISTINCT 30 * + NULLIF ( 88, 56 + 66 )
----
2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-522
SELECT - 4 + CAST( - - COALESCE ( + 21, + + CAST( + + COUNT( * ) AS SIGNED ) * + 90 + + ( - 96 ) * + 75, ( 38 ) * - COUNT( * ) ) AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-522
SELECT - 4 + CAST ( - - COALESCE ( + 21, + + CAST ( + + COUNT ( * ) AS INTEGER ) * + 90 + + ( - 96 ) * + 75, ( 38 ) * - COUNT ( * ) ) AS INTEGER ) AS col0
----
17

query I rowsort
SELECT ALL - 25 - ( - 89 ) + 31
----
95

query I rowsort
SELECT 47 * 75
----
3525

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT + ( 48 ) - + - 14, COUNT( * ) AS col2
----
62
1

skipif mysql # not compatible
query II rowsort label-525
SELECT + ( 48 ) - + - 14, COUNT ( * ) AS col2
----
62
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-527
SELECT ALL - 59 DIV - 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL - 59 / - 57 AS col2
----
1

query II rowsort
SELECT DISTINCT - 14, 60 AS col1
----
-14
60

onlyif mysql # DIV for integer division: 
query I rowsort label-529
SELECT DISTINCT + 31 DIV - - 15 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT + 31 / - - 15 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-530
SELECT + 81 * - SUM( DISTINCT - + CAST( - + 21 AS SIGNED ) ) AS col1
----
-1701

skipif mysql # not compatible
query I rowsort label-530
SELECT + 81 * - SUM ( DISTINCT - + CAST ( - + 21 AS INTEGER ) ) AS col1
----
-1701

query I rowsort
SELECT 9 * 90 + - - ( - NULLIF ( + + 96, - 50 / 94 ) ) col2
----
714

onlyif mysql # DIV for integer division: 
query I rowsort label-532
SELECT 37 DIV - 10
----
-3

skipif mysql # not compatible
query I rowsort label-532
SELECT 37 / - 10
----
-3

query II rowsort
SELECT - 23 * + 73 + 87 * + 32, + 96 + + + 97 AS col2
----
1105
193

query I rowsort
SELECT 46 - 52
----
-6

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

skipif mysql # not compatible
query I rowsort label-535
SELECT 20 + CAST ( NULL AS INTEGER ) * + - 64
----
NULL

query I rowsort
SELECT ALL + 32 * - - 79
----
2528

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-537
SELECT 36 + + + 57 DIV - 86 + + + CAST( - 41 AS SIGNED ) * 55 * + 58
----
-130754

skipif mysql # not compatible
query I rowsort label-537
SELECT 36 + + + 57 / - 86 + + + CAST ( - 41 AS INTEGER ) * 55 * + 58
----
-130754

query II rowsort
SELECT ALL + ( - + 76 ) * 6 * 10 AS col0, + 15 + 98
----
-4560
113

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT ALL - COALESCE ( - ( + 34 ), + + NULLIF ( - 58, + COUNT( * ) * - - 7 ) )
----
34

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL - COALESCE ( - ( + 34 ), + + NULLIF ( - 58, + COUNT ( * ) * - - 7 ) )
----
34

query I rowsort
SELECT DISTINCT - 5 + 84 AS col2
----
79

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-542
SELECT DISTINCT - COUNT( DISTINCT 31 ), 92 + - 69 - - + COUNT( * ) AS col1
----
-1
24

skipif mysql # not compatible
query II rowsort label-542
SELECT DISTINCT - COUNT ( DISTINCT 31 ), 92 + - 69 - - + COUNT ( * ) AS col1
----
-1
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT DISTINCT 57 + CAST( + 2 AS SIGNED ) * 91 + 73 AS col1
----
312

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT 57 + CAST ( + 2 AS INTEGER ) * 91 + 73 AS col1
----
312

query I rowsort
SELECT 42 + - 77
----
-35

query I rowsort
SELECT 80 + - 2 col2
----
78

query I rowsort
SELECT 51 + + ( - - 86 ) + + ( - 27 )
----
110

query I rowsort
SELECT 87 * 42
----
3654

query I rowsort
SELECT DISTINCT - 88 + - - 67 col2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-549
SELECT ALL - 97 / + ( + ( + 73 ) ) * + CAST( NULLIF ( COALESCE ( - NULLIF ( - 23, - + 66 / + 18 + 25 * + 28 ), + - 38 ), CAST( - 95 AS SIGNED ) ) AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL - 97 / + ( + ( + 73 ) ) * + CAST ( NULLIF ( COALESCE ( - NULLIF ( - 23, - + 66 / + 18 + 25 * + 28 ), + - 38 ), CAST ( - 95 AS INTEGER ) ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 74 * + + 93 col0
----
6882

query I rowsort
SELECT 13 + - 62
----
-49

query II rowsort
SELECT DISTINCT - CASE 32 WHEN - 23 THEN + 67 END + - + 88 AS col0, 59 - + 65 + + 60 + + 60 AS col2
----
NULL
114

onlyif mysql # aggregate syntax: 
query II rowsort label-553
SELECT - COUNT( * ) + 43, - 31 AS col1
----
42
-31

skipif mysql # not compatible
query II rowsort label-553
SELECT - COUNT ( * ) + 43, - 31 AS col1
----
42
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-554
SELECT DISTINCT + 79 * + MAX( - 2 ) + + 74 * 80 * - ( 0 ) AS col1, 17 * 68 AS col2
----
-158
1156

skipif mysql # not compatible
query II rowsort label-554
SELECT DISTINCT + 79 * + MAX ( - 2 ) + + 74 * 80 * - ( 0 ) AS col1, 17 * 68 AS col2
----
-158
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT ALL COUNT( 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL COUNT ( 78 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT 82 + - COUNT( ALL + 67 ) + + ( + COUNT( * ) ) - - 7 + + CASE + - 48 WHEN + NULLIF ( + - 15, + - 83 ) THEN - - ( - - 9 ) WHEN + 98 THEN - COUNT( * ) + - 21 * - 49 END * + + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-556
SELECT 82 + - COUNT ( ALL + 67 ) + + ( + COUNT ( * ) ) - - 7 + + CASE + - 48 WHEN + NULLIF ( + - 15, + - 83 ) THEN - - ( - - 9 ) WHEN + 98 THEN - COUNT ( * ) + - 21 * - 49 END * + + 25 AS col0
----
NULL

query I rowsort
SELECT - - ( - - 61 ) AS col2
----
61

query I rowsort
SELECT 62 + + 10 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT MIN( ALL - 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-559
SELECT MIN ( ALL - 54 ) AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-560
SELECT - 38 + CASE + 72 WHEN - 55 THEN NULL WHEN - COALESCE ( - 55, 98 + CAST( - SUM( ALL - 11 ) AS SIGNED ) * - 70, - 76 * 94 - - - 21 ) * - 82 THEN NULL WHEN 51 THEN + 33 END / + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT - 38 + CASE + 72 WHEN - 55 THEN NULL WHEN - COALESCE ( - 55, 98 + CAST ( - SUM ( ALL - 11 ) AS INTEGER ) * - 70, - 76 * 94 - - - 21 ) * - 82 THEN NULL WHEN 51 THEN + 33 END / + 34
----
NULL

query I rowsort
SELECT ALL 82 * 42 * - CASE 71 WHEN + 33 THEN 85 END col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - + 84, ( - + 65 ) * - 9 + - 52 ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-563
SELECT DISTINCT + 2 * - + 92 * - - NULLIF ( + + COUNT( * ), 27 ), SUM( ALL - 77 ) * + - CASE MAX( DISTINCT + - 4 ) WHEN - ( + 32 ) - + + 71 + - - AVG ( DISTINCT + 33 ) * - + COALESCE ( - 48, - CAST( 69 AS SIGNED ) ) + + + 69 THEN NULL WHEN - + 2 THEN NULL WHEN + + 9 * - - CAST( NULL AS SIGNED ) * + - ( + 91 ) + + 2 THEN - 56 + + + 63 * 69 ELSE NULL END AS col0
----
-184
NULL

skipif mysql # not compatible
query II rowsort label-563
SELECT DISTINCT + 2 * - + 92 * - - NULLIF ( + + COUNT ( * ), 27 ), SUM ( ALL - 77 ) * + - CASE MAX ( DISTINCT + - 4 ) WHEN - ( + 32 ) - + + 71 + - - AVG ( DISTINCT + 33 ) * - + COALESCE ( - 48, - CAST ( 69 AS INTEGER ) ) + + + 69 THEN NULL WHEN - + 2 THEN NULL WHEN + + 9 * - - CAST ( NULL AS INTEGER ) * + - ( + 91 ) + + 2 THEN - 56 + + + 63 * 69 ELSE NULL END AS col0
----
-184
NULL

query I rowsort
SELECT - 78 * - + 7 + - 47
----
499

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT DISTINCT COUNT( * ) * + 79 * + 7 * - + 54 * + 97
----
-2896614

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT COUNT ( * ) * + 79 * + 7 * - + 54 * + 97
----
-2896614

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT + MAX( + COALESCE ( + 95, 73 * - 76 + 86 + + 54 ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-567
SELECT + MAX ( + COALESCE ( + 95, 73 * - 76 + 86 + + 54 ) ) AS col2
----
95

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

skipif mysql # not compatible
query I rowsort label-568
SELECT COUNT ( * ) * + - 82 + + 83 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-569
SELECT ALL 93 * 17 + + ( + 77 ) - + COUNT( * ) AS col0, + 15
----
1657
15

skipif mysql # not compatible
query II rowsort label-569
SELECT ALL 93 * 17 + + ( + 77 ) - + COUNT ( * ) AS col0, + 15
----
1657
15

query I rowsort
SELECT 55 * 81 * + 35 AS col2
----
155925

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT + 16 - + - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-571
SELECT + 16 - + - COUNT ( * )
----
17

query I rowsort
SELECT + 34 * + + 68
----
2312

query I rowsort
SELECT + 92 - 63 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT + 99 * + COUNT( * ) * - 15 + 4
----
-1481

skipif mysql # not compatible
query I rowsort label-574
SELECT + 99 * + COUNT ( * ) * - 15 + 4
----
-1481

onlyif mysql # aggregate syntax: 
query II rowsort label-575
SELECT ALL - 1 + COUNT( * ) * + 53, 66 * - 69 AS col0
----
52
-4554

skipif mysql # not compatible
query II rowsort label-575
SELECT ALL - 1 + COUNT ( * ) * + 53, 66 * - 69 AS col0
----
52
-4554

query II rowsort
SELECT DISTINCT - 83 * - + 58 * 79 AS col2, + 33
----
380306
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-577
SELECT ALL CASE - 46 WHEN + - 98 * + 91 * + SUM( ALL + 56 ) + - - 54 THEN + 71 * + CAST( NULL AS SIGNED ) WHEN 50 * - 43 * + ( - - COUNT( * ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL CASE - 46 WHEN + - 98 * + 91 * + SUM ( ALL + 56 ) + - - 54 THEN + 71 * + CAST ( NULL AS INTEGER ) WHEN 50 * - 43 * + ( - - COUNT ( * ) ) THEN NULL END
----
NULL

query II rowsort
SELECT - 76 col1, 69 AS col2
----
-76
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT DISTINCT CASE + 56 WHEN SUM( - 62 ) / + + 32 * - 71 + - 5 / - 21 + - + 62 + CASE + + 24 WHEN + CASE + - 26 WHEN ( + 49 ) / + 55 THEN - 66 + + 1 ELSE NULL END - 18 + 40 + + MAX( ALL 9 ) THEN - 8 ELSE NULL END - COUNT( * ) THEN + - 87 ELSE + COUNT( - - 25 ) END
----
1

skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT CASE + 56 WHEN SUM ( - 62 ) / + + 32 * - 71 + - 5 / - 21 + - + 62 + CASE + + 24 WHEN + CASE + - 26 WHEN ( + 49 ) / + 55 THEN - 66 + + 1 ELSE NULL END - 18 + 40 + + MAX ( ALL 9 ) THEN - 8 ELSE NULL END - COUNT ( * ) THEN + - 87 ELSE + COUNT ( - - 25 ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT - ( - NULLIF ( 86, - CASE - + COUNT( * ) WHEN - 54 THEN - - 98 / - NULLIF ( 72, 89 * - - NULLIF ( + ( 38 ), - 87 ) * - 3 + 23 ) + + 97 - + 97 + + 36 + + - 21 - - 34 / 80 END ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-581
SELECT - ( - NULLIF ( 86, - CASE - + COUNT ( * ) WHEN - 54 THEN - - 98 / - NULLIF ( 72, 89 * - - NULLIF ( + ( 38 ), - 87 ) * - 3 + 23 ) + + 97 - + 97 + + 36 + + - 21 - - 34 / 80 END ) ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-582
SELECT - 63 + - + 83 + - CASE + - CAST( - ( + - 11 ) AS SIGNED ) WHEN + ( - + 61 ) + - 51 THEN 48 * 2 * + 63 - - + SUM( 64 ) WHEN + 92 THEN NULL WHEN - 52 THEN NULL ELSE NULL END + + 22 * - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT - 63 + - + 83 + - CASE + - CAST ( - ( + - 11 ) AS INTEGER ) WHEN + ( - + 61 ) + - 51 THEN 48 * 2 * + 63 - - + SUM ( 64 ) WHEN + 92 THEN NULL WHEN - 52 THEN NULL ELSE NULL END + + 22 * - 17 AS col1
----
NULL

query I rowsort
SELECT - - 80 * - 95
----
-7600

query I rowsort
SELECT ALL + 25 * + + ( - 28 ) * + 7
----
-4900

query I rowsort
SELECT - - 20 * + 14 AS col0
----
280

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

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

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

skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT + 81 / - COUNT ( * )
----
-81

query I rowsort
SELECT DISTINCT - 75 * + - 33
----
2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-589
SELECT DISTINCT + 31 * - 98 * - 73 * - + 21 + - 75 - + + MIN( DISTINCT + 53 ) * - - CAST( CASE + MIN( + 56 ) WHEN 35 THEN + COUNT( ALL + 55 ) * - 58 * - 87 + + 89 + - MAX( + CAST( - 20 AS SIGNED ) ) + 20 + 7 + + 58 END AS SIGNED ) + - - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT + 31 * - 98 * - 73 * - + 21 + - 75 - + + MIN ( DISTINCT + 53 ) * - - CAST ( CASE + MIN ( + 56 ) WHEN 35 THEN + COUNT ( ALL + 55 ) * - 58 * - 87 + + 89 + - MAX ( + CAST ( - 20 AS INTEGER ) ) + 20 + 7 + + 58 END AS INTEGER ) + - - 11 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-590
SELECT ALL - 73 * + CAST( + 0 AS SIGNED ) * - 68 + - + 96 DIV 76 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL - 73 * + CAST ( + 0 AS INTEGER ) * - 68 + - + 96 / 76 AS col1
----
-1

query I rowsort
SELECT - + CASE + 51 WHEN - ( COALESCE ( 0, + - 61, - 3 ) ) THEN - - 13 WHEN - 7 * - 21 * + 62 THEN NULL END + 64 col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-593
SELECT + + 4 / - - 38
----
0

query I rowsort
SELECT - - 93 + + - 76 - - - 91 + 50 + + 95 * - - 26 * - + ( 20 ) * - + 62
----
3062776

query I rowsort
SELECT - + 18 + - + 33 * - 31
----
1005

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT - COUNT( * ) * - 45 / + + CASE + + 31 WHEN + + ( - + 34 ) + + COUNT( * ) THEN + 33 * - COUNT( * ) END + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT - COUNT ( * ) * - 45 / + + CASE + + 31 WHEN + + ( - + 34 ) + + COUNT ( * ) THEN + 33 * - COUNT ( * ) END + + 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-597
SELECT ALL 21 * - 8 * 52 * - - 53 + - + COUNT( * ) + - + SUM( ALL - + COALESCE ( 40, - 29 ) ) * + - COUNT( * ) * + - 28 AS col0, + 37 AS col2
----
-461889
37

skipif mysql # not compatible
query II rowsort label-597
SELECT ALL 21 * - 8 * 52 * - - 53 + - + COUNT ( * ) + - + SUM ( ALL - + COALESCE ( 40, - 29 ) ) * + - COUNT ( * ) * + - 28 AS col0, + 37 AS col2
----
-461889
37

query I rowsort
SELECT 68 * + 37 + - ( 42 )
----
2474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-599
SELECT ALL 64 * - + 55 * 55 * - SUM( DISTINCT 29 ) * - ( + 99 ) + + 51 DIV + 17 col2, - MAX( 85 ) * 94 + - + 95 - - - 16 - - 80 * + - ( 39 ) * + CASE - CAST( - + 20 AS SIGNED ) WHEN COUNT( * ) THEN NULL ELSE - 11 + + 72 END + + 32
----
-555825597
-198389

skipif mysql # not compatible
query II rowsort label-599
SELECT ALL 64 * - + 55 * 55 * - SUM ( DISTINCT 29 ) * - ( + 99 ) + + 51 / + 17 col2, - MAX ( 85 ) * 94 + - + 95 - - - 16 - - 80 * + - ( 39 ) * + CASE - CAST ( - + 20 AS INTEGER ) WHEN COUNT ( * ) THEN NULL ELSE - 11 + + 72 END + + 32
----
-555825597
-198389

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

query II rowsort
SELECT DISTINCT + 97 col2, + 80 + + 41 AS col0
----
97
121

query I rowsort
SELECT ALL 58 * - 44 + 17 AS col1
----
-2535

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-603
SELECT - 70 * + COUNT( * ) DIV 91 * 77 + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-603
SELECT - 70 * + COUNT ( * ) / 91 * 77 + - 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ALL MIN( DISTINCT - 90 ) * + 46 * + - 65 + + 81 AS col2
----
269181

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL MIN ( DISTINCT - 90 ) * + 46 * + - 65 + + 81 AS col2
----
269181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-605
SELECT COUNT( * ) * + - 97 + + COALESCE ( + 38, + - 82 * ( + - 67 ) DIV + - 51 * + 52 + - 27 * - 92 + - - 66 + - CAST( + - 90 AS SIGNED ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-605
SELECT COUNT ( * ) * + - 97 + + COALESCE ( + 38, + - 82 * ( + - 67 ) / + - 51 * + 52 + - 27 * - 92 + - - 66 + - CAST ( + - 90 AS INTEGER ) ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-606
SELECT ALL + 32 AS col2, COUNT( * ) + - 93 * + 91 AS col2
----
32
-8462

skipif mysql # not compatible
query II rowsort label-606
SELECT ALL + 32 AS col2, COUNT ( * ) + - 93 * + 91 AS col2
----
32
-8462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-607
SELECT + CAST( + COALESCE ( - 68, - 38 * ( - - 89 ) + 83 - + 38 * + COALESCE ( + - 14, + - 51, + 19 + + COUNT( * ) * + MAX( - ( + 88 ) ) + + 41 ), 7 ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-607
SELECT + CAST ( + COALESCE ( - 68, - 38 * ( - - 89 ) + 83 - + 38 * + COALESCE ( + - 14, + - 51, + 19 + + COUNT ( * ) * + MAX ( - ( + 88 ) ) + + 41 ), 7 ) AS INTEGER )
----
-68

query II rowsort
SELECT ALL + 60, 22 * + 69 AS col1
----
60
1518

onlyif mysql # aggregate syntax: 
query II rowsort label-609
SELECT + 44 + - 11, COUNT( * ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-609
SELECT + 44 + - 11, COUNT ( * ) AS col0
----
33
1

onlyif mysql # DIV for integer division: 
query I rowsort label-610
SELECT + + 15 DIV - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-610
SELECT + + 15 / - 58 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-611
SELECT - + 9 * + 52 * ( - ( + CAST( + 69 AS SIGNED ) ) ) + - 22 / - 92 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT - + 9 * + 52 * ( - ( + CAST ( + 69 AS INTEGER ) ) ) + - 22 / - 92 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-612
SELECT + 57 + - 39 DIV 33
----
56

skipif mysql # not compatible
query I rowsort label-612
SELECT + 57 + - 39 / 33
----
56

query II rowsort
SELECT - - 91 AS col1, - 79 AS col0
----
91
-79

query I rowsort
SELECT - - 34 + - 59
----
-25

query II rowsort
SELECT - - 22 AS col1, 99
----
22
99

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT - + MAX( DISTINCT - 67 ) + - 57 * - 32
----
1891

skipif mysql # not compatible
query I rowsort label-616
SELECT - + MAX ( DISTINCT - 67 ) + - 57 * - 32
----
1891

query I rowsort
SELECT ALL + - 16 * 23 * + 20 * + 23 AS col2
----
-169280

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT - + 57 + - 2 DIV - ( - 60 ) - + + 49
----
-106

skipif mysql # not compatible
query I rowsort label-620
SELECT - + 57 + - 2 / - ( - 60 ) - + + 49
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-621
SELECT ALL + ( - 94 ) * + + CASE + + CAST( NULL AS SIGNED ) WHEN - ( + - 19 ) + + 64 + - - 5 / - 11 + - COUNT( * ) THEN NULL WHEN + 54 * 28 THEN + 1 * + COUNT( DISTINCT - 90 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL + ( - 94 ) * + + CASE + + CAST ( NULL AS INTEGER ) WHEN - ( + - 19 ) + + 64 + - - 5 / - 11 + - COUNT ( * ) THEN NULL WHEN + 54 * 28 THEN + 1 * + COUNT ( DISTINCT - 90 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 85 * - 54 col1
----
-4590

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-625
SELECT - 42 + - 24 DIV + ( + 93 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-625
SELECT - 42 + - 24 / + ( + 93 ) AS col2
----
-42

query II rowsort
SELECT 80, - 15 col2
----
80
-15

query I rowsort
SELECT DISTINCT + - 61 + - ( + 44 ) col0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT COUNT( - + ( 96 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-628
SELECT COUNT ( - + ( 96 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT - 0 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-629
SELECT - 0 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 69 + + - NULLIF ( + 45, 62 ) - 4 col2
----
-118

query I rowsort
SELECT DISTINCT + - 86 + - + 0 col2
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT ALL 64 * + ( 59 ) * + + 69 * - 84 * COUNT( - 53 ) * - 52
----
1138056192

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL 64 * + ( 59 ) * + + 69 * - 84 * COUNT ( - 53 ) * - 52
----
1138056192

query I rowsort
SELECT ALL 41 + + ( + 12 ) + + + 69 + - + 79 col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-635
SELECT DISTINCT - MIN( + 98 ) AS col2, - 71 * - COUNT( * )
----
-98
71

skipif mysql # not compatible
query II rowsort label-635
SELECT DISTINCT - MIN ( + 98 ) AS col2, - 71 * - COUNT ( * )
----
-98
71

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT ALL + 73 + COUNT( * ) * + - 25 + - ( + NULLIF ( + - 7, - 88 + - 96 + + + 10 ) ) * - 91 + - 10 AS col2
----
-599

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL + 73 + COUNT ( * ) * + - 25 + - ( + NULLIF ( + - 7, - 88 + - 96 + + + 10 ) ) * - 91 + - 10 AS col2
----
-599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-637
SELECT + 10 * + COUNT( * ) + + ( - 65 ) + + 35 + + 37 DIV - - 47 * - 95 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-637
SELECT + 10 * + COUNT ( * ) + + ( - 65 ) + + 35 + + 37 / - - 47 * - 95 AS col2
----
-20

query I rowsort
SELECT 45 * + 42 AS col0
----
1890

onlyif mysql # aggregate syntax: 
query II rowsort label-639
SELECT ALL - NULLIF ( 67, + COUNT( * ) ) AS col2, 92 + COUNT( * )
----
-67
93

skipif mysql # not compatible
query II rowsort label-639
SELECT ALL - NULLIF ( 67, + COUNT ( * ) ) AS col2, 92 + COUNT ( * )
----
-67
93

query I rowsort
SELECT 90 + + - 11 + + - 27 * 1 col0
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-641
SELECT 61 * - - 86, - 27 DIV + - CASE - ( - 99 ) WHEN + 47 THEN NULL ELSE - 70 END col1
----
5246
0

skipif mysql # not compatible
query II rowsort label-641
SELECT 61 * - - 86, - 27 / + - CASE - ( - 99 ) WHEN + 47 THEN NULL ELSE - 70 END col1
----
5246
0

query I rowsort
SELECT ALL 57 - 84 + 89 * 39
----
3444

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT SUM( 71 ) * 92 - - 65
----
6597

skipif mysql # not compatible
query I rowsort label-643
SELECT SUM ( 71 ) * 92 - - 65
----
6597

query I rowsort
SELECT ALL - COALESCE ( - 89, - - 59 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-645
SELECT DISTINCT MIN( - ( + + 78 ) ) - CAST( + CASE - - 47 WHEN + + 76 THEN NULL WHEN + - COUNT( * ) THEN - 72 + 33 END AS SIGNED ) + - 15 * + ( + 70 ) + ( 34 ) * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT MIN ( - ( + + 78 ) ) - CAST ( + CASE - - 47 WHEN + + 76 THEN NULL WHEN + - COUNT ( * ) THEN - 72 + 33 END AS INTEGER ) + - 15 * + ( + 70 ) + ( 34 ) * - 11
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 82 ) AS col2
----
-82

query I rowsort
SELECT ALL NULLIF ( + ( + - 24 ), + + 85 ) * + 69 * - 54 AS col1
----
89424

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT CASE 91 WHEN - COUNT( * ) * - + 70 THEN NULL WHEN - COUNT( * ) + 95 * + - 64 THEN - 7 - + + COUNT( * ) END * ( + + COALESCE ( + 73, - + 19 ) ) * - - 61 + - - 37 + ( - 1 ) / + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT CASE 91 WHEN - COUNT ( * ) * - + 70 THEN NULL WHEN - COUNT ( * ) + 95 * + - 64 THEN - 7 - + + COUNT ( * ) END * ( + + COALESCE ( + 73, - + 19 ) ) * - - 61 + - - 37 + ( - 1 ) / + 32 AS col1
----
NULL

query I rowsort
SELECT 70 - - + 65 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT SUM( + - 85 ) + + - 69 AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-650
SELECT SUM ( + - 85 ) + + - 69 AS col0
----
-154

query II rowsort
SELECT - 47 * + - 64 + - 81 AS col2, + 9 AS col2
----
2927
9

query I rowsort
SELECT ALL + ( - COALESCE ( - + 75, + CASE + + 38 WHEN - 82 THEN + 11 + + - 10 * - 40 * COALESCE ( - 52, - 65, - 78 ) + - 30 WHEN - - NULLIF ( + - 15, + 34 * + + 70 ) THEN NULL END ) )
----
75

query I rowsort
SELECT ALL - 97 * - - 90 AS col0
----
-8730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-654
SELECT + 91 * + COALESCE ( - - 94, + + 81 DIV - COUNT( * ) + + 93 )
----
8554

skipif mysql # not compatible
query I rowsort label-654
SELECT + 91 * + COALESCE ( - - 94, + + 81 / - COUNT ( * ) + + 93 )
----
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT ALL - COUNT( * ) * + 74 * + + 96 + + - 15 + - 76
----
-7195

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL - COUNT ( * ) * + 74 * + + 96 + + - 15 + - 76
----
-7195

onlyif mysql # DIV for integer division: 
query I rowsort label-656
SELECT 6 DIV - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-656
SELECT 6 / - 86 AS col0
----
0

query I rowsort
SELECT ALL 87 + - COALESCE ( - 12, - 23 )
----
99

query I rowsort
SELECT - ( + + 50 ) * - - 38 * + 73
----
-138700

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-660
SELECT ALL 14 * + 60, + CAST( NULL AS SIGNED ) * - - 69 - - 2 * 89 + 89 AS col1
----
840
NULL

skipif mysql # not compatible
query II rowsort label-660
SELECT ALL 14 * + 60, + CAST ( NULL AS INTEGER ) * - - 69 - - 2 * 89 + 89 AS col1
----
840
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-661
SELECT 85 DIV + + MAX( + 44 ) - - + 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-661
SELECT 85 / + + MAX ( + 44 ) - - + 13 AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-662
SELECT COUNT( * ) DIV + - CASE - 94 WHEN AVG ( DISTINCT + + 74 ) THEN - 11 ELSE 55 * - 69 END
----
0

skipif mysql # not compatible
query I rowsort label-662
SELECT COUNT ( * ) / + - CASE - 94 WHEN AVG ( DISTINCT + + 74 ) THEN - 11 ELSE 55 * - 69 END
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-663
SELECT CAST( NULL AS DECIMAL ) - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT CAST ( NULL AS REAL ) - - 2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-664
SELECT DISTINCT - 49 * + CAST( NULL AS SIGNED ) + 11 - - + 10 / 94 * + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT - 49 * + CAST ( NULL AS INTEGER ) + 11 - - + 10 / 94 * + 92 AS col0
----
NULL

query I rowsort
SELECT ALL + 79 + + + 11 + - 46
----
44

query I rowsort
SELECT ALL - ( 85 ) * + + 42 * 87 - 30 + + + 94 * + 85
----
-302630

query II rowsort
SELECT DISTINCT 31 AS col1, - 22 + - 41
----
31
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-668
SELECT - 84 AS col0, + CAST( NULL AS SIGNED ) AS col1
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-668
SELECT - 84 AS col0, + CAST ( NULL AS INTEGER ) AS col1
----
-84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT DISTINCT + 87 + - 9 + + COUNT( * ) * - + 5
----
73

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT + 87 + - 9 + + COUNT ( * ) * - + 5
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-670
SELECT 81 * - + 3 * 62, + 7 DIV + + ( 32 ) AS col0
----
-15066
0

skipif mysql # not compatible
query II rowsort label-670
SELECT 81 * - + 3 * 62, + 7 / + + ( 32 ) AS col0
----
-15066
0

query I rowsort
SELECT ALL + 69 + + 19 * + 2
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-672
SELECT 55 + - - 36 * + + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * - 52 * + 87 * + 82 * - 96 + - + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT 55 + - - 36 * + + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 52 * + 87 * + 82 * - 96 + - + 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-673
SELECT COUNT( * ) col2, - 60 - + 68 + + - 5 + + + COALESCE ( + 44, ( ( + 20 ) ) * + 93 * + 86 * + 81 + 45 )
----
1
-89

skipif mysql # not compatible
query II rowsort label-673
SELECT COUNT ( * ) col2, - 60 - + 68 + + - 5 + + + COALESCE ( + 44, ( ( + 20 ) ) * + 93 * + 86 * + 81 + 45 )
----
1
-89

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

skipif mysql # not compatible
query II rowsort label-674
SELECT DISTINCT - COUNT ( * ) col2, + COUNT ( * )
----
-1
1

query I rowsort
SELECT ALL - 42 * + 65
----
-2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-676
SELECT COALESCE ( - - 31, - + 69 + + + ( - 99 ) ) * + - 69 + COALESCE ( - 9, - 91 ) + 27 * + 33 * ( - 61 ) + + + COUNT( * ) / 68 / - 20 + - CAST( NULL AS SIGNED ) / 70 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-676
SELECT COALESCE ( - - 31, - + 69 + + + ( - 99 ) ) * + - 69 + COALESCE ( - 9, - 91 ) + 27 * + 33 * ( - 61 ) + + + COUNT ( * ) / 68 / - 20 + - CAST ( NULL AS INTEGER ) / 70 col2
----
NULL

query I rowsort
SELECT ALL - ( + 5 ) AS col2
----
-5

query I rowsort
SELECT ALL - 15 * + 35
----
-525

query I rowsort
SELECT 90 + - - COALESCE ( + 70, - 98 )
----
160

query I rowsort
SELECT ALL - 43 * 44 AS col0
----
-1892

query I rowsort
SELECT 96 * - 4 AS col1
----
-384

query I rowsort
SELECT 99 + + + 49 - - 19 + + + 28 * 34 * 61 AS col2
----
58239

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-684
SELECT 86 DIV + - COALESCE ( - 36, + + COUNT( * ), + COUNT( * ) + + 51 + - 32 + COUNT( ALL + + 92 ) + 76 * + - COUNT( * ) DIV 16 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-684
SELECT 86 / + - COALESCE ( - 36, + + COUNT ( * ), + COUNT ( * ) + + 51 + - 32 + COUNT ( ALL + + 92 ) + 76 * + - COUNT ( * ) / 16 ) AS col2
----
2

query I rowsort
SELECT 21 * 96 AS col0
----
2016

onlyif mysql # aggregate syntax: 
query II rowsort label-686
SELECT DISTINCT - 57, CASE - 12 WHEN COUNT( * ) THEN MAX( - 12 ) * 25 * 99 END * 18 + + 71 AS col1
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-686
SELECT DISTINCT - 57, CASE - 12 WHEN COUNT ( * ) THEN MAX ( - 12 ) * 25 * 99 END * 18 + + 71 AS col1
----
-57
NULL

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

skipif mysql # not compatible
query I rowsort label-687
SELECT 5 * - + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-689
SELECT ALL - + 96, - NULLIF ( - + MAX( 80 ), - 76 ) AS col1
----
-96
80

skipif mysql # not compatible
query II rowsort label-689
SELECT ALL - + 96, - NULLIF ( - + MAX ( 80 ), - 76 ) AS col1
----
-96
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-690
SELECT CASE AVG ( + ( + 9 ) ) WHEN - + 46 / - 75 THEN - NULLIF ( - 84, + NULLIF ( + 2, NULLIF ( + 47, MIN( DISTINCT + 94 ) * + - 33 ) ) - - + MIN( + - 79 ) * + CASE - + CAST( + 73 AS SIGNED ) WHEN - 68 + - + COALESCE ( + 68, + 19 * - - 32 ) THEN 63 END * + ( 81 ) * - 29 / - SUM( ALL - ( - - 37 ) ) ) END + - - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-690
SELECT CASE AVG ( + ( + 9 ) ) WHEN - + 46 / - 75 THEN - NULLIF ( - 84, + NULLIF ( + 2, NULLIF ( + 47, MIN ( DISTINCT + 94 ) * + - 33 ) ) - - + MIN ( + - 79 ) * + CASE - + CAST ( + 73 AS INTEGER ) WHEN - 68 + - + COALESCE ( + 68, + 19 * - - 32 ) THEN 63 END * + ( 81 ) * - 29 / - SUM ( ALL - ( - - 37 ) ) ) END + - - 27 AS col0
----
NULL

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

query II rowsort
SELECT DISTINCT - + 40 AS col0, - 77 * - 38 AS col0
----
-40
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT - + COUNT( * ) * - COUNT( * ) * - ( - 52 ) + 88 + + 6 + 48 AS col1
----
194

skipif mysql # not compatible
query I rowsort label-693
SELECT - + COUNT ( * ) * - COUNT ( * ) * - ( - 52 ) + 88 + + 6 + 48 AS col1
----
194

query I rowsort
SELECT - 88 * 84
----
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT ALL + + 20 + + 8 + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL + + 20 + + 8 + COUNT ( * ) AS col2
----
29

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

query I rowsort
SELECT 62 + 44 AS col2
----
106

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-698
SELECT - + 77, - ( 78 ) * CAST( NULL AS DECIMAL ) + + + 32 * + + 14 + + 9 + - COALESCE ( 72, + AVG ( DISTINCT - + 99 ) ) AS col0
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-698
SELECT - + 77, - ( 78 ) * CAST ( NULL AS REAL ) + + + 32 * + + 14 + + 9 + - COALESCE ( 72, + AVG ( DISTINCT - + 99 ) ) AS col0
----
-77
NULL

query II rowsort
SELECT NULLIF ( - + 39, ( - - 90 ) ) AS col1, - 74
----
-39
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT ALL COUNT( 21 ) * + 4 * + COALESCE ( - 65, + 75 * ( + + 95 ) - - COUNT( * ) ) AS col1
----
-260

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL COUNT ( 21 ) * + 4 * + COALESCE ( - 65, + 75 * ( + + 95 ) - - COUNT ( * ) ) AS col1
----
-260

query I rowsort
SELECT + 55 + + 14 AS col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-702
SELECT ( - CAST( NULL AS SIGNED ) ) * - ( MAX( ALL 69 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT ( - CAST ( NULL AS INTEGER ) ) * - ( MAX ( ALL 69 ) )
----
NULL

query I rowsort
SELECT - ( + 26 ) + + + 87 - - - 73 * + 59 AS col2
----
-4246

query I rowsort
SELECT ALL + 20 + 49 AS col2
----
69

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

skipif mysql # not compatible
query I rowsort label-705
SELECT MAX ( - + 40 )
----
-40

query I rowsort
SELECT DISTINCT + 92 * + 20 col0
----
1840

query I rowsort
SELECT DISTINCT NULLIF ( + 66, - + 60 ) + - + 93 * - 88
----
8250

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT + COUNT( * ) * + - 66 * - ( 78 ) AS col2
----
5148

skipif mysql # not compatible
query I rowsort label-710
SELECT + COUNT ( * ) * + - 66 * - ( 78 ) AS col2
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT + ( COUNT( * ) ) + - 39 * - - 52 AS col0
----
-2027

skipif mysql # not compatible
query I rowsort label-711
SELECT + ( COUNT ( * ) ) + - 39 * - - 52 AS col0
----
-2027

query I rowsort
SELECT + 82 * - - 64
----
5248

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + SUM( ALL - 39 ) + - 17
----
-56

skipif mysql # not compatible
query I rowsort label-713
SELECT + SUM ( ALL - 39 ) + - 17
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT ALL 82 - + 43 DIV 76 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL 82 - + 43 / 76 AS col0
----
82

query I rowsort
SELECT ALL - 10 * + + 3 * NULLIF ( 55, - + 97 ) col1
----
-1650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-716
SELECT - COALESCE ( 72, - CAST( NULL AS SIGNED ) * COUNT( ALL + 30 ) * 24 + + - 89 + - COUNT( * ) DIV + 27 * + + COUNT( DISTINCT 2 ) * - - 45 + 56, - 54 * 50 )
----
-72

skipif mysql # not compatible
query I rowsort label-716
SELECT - COALESCE ( 72, - CAST ( NULL AS INTEGER ) * COUNT ( ALL + 30 ) * 24 + + - 89 + - COUNT ( * ) / + 27 * + + COUNT ( DISTINCT 2 ) * - - 45 + 56, - 54 * 50 )
----
-72

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

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

query I rowsort
SELECT DISTINCT 81 * - 23 col1
----
-1863

query I rowsort
SELECT - 86 + - 24 AS col1
----
-110

query I rowsort
SELECT CASE WHEN NOT 74 <= + + 3 THEN - - 91 END
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-721
SELECT + 56 * + 1 col2, NULLIF ( - + 19, - COUNT( * ) ) + + COUNT( * )
----
56
-18

skipif mysql # not compatible
query II rowsort label-721
SELECT + 56 * + 1 col2, NULLIF ( - + 19, - COUNT ( * ) ) + + COUNT ( * )
----
56
-18

query I rowsort
SELECT ALL + ( + 63 ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-723
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 31 * + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 31 * + 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-724
SELECT DISTINCT + MAX( ALL - - 94 ) col2, NULLIF ( + COUNT( * ), 6 - + AVG ( + COALESCE ( - 58, + - 35, 68 * - 63 ) ) * 66 / 41 ) * COUNT( * ) col2
----
94
1

skipif mysql # not compatible
query II rowsort label-724
SELECT DISTINCT + MAX ( ALL - - 94 ) col2, NULLIF ( + COUNT ( * ), 6 - + AVG ( + COALESCE ( - 58, + - 35, 68 * - 63 ) ) * 66 / 41 ) * COUNT ( * ) col2
----
94
1

query I rowsort
SELECT DISTINCT - 56 * + + 12 + - + 63 + 31 col2
----
-704

query I rowsort
SELECT - + 26 + + - 82 + - 76
----
-184

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-728
SELECT - - COUNT( * ) / + - CASE - + 15 WHEN - 20 + - 12 THEN - COUNT( * ) + - 58 / + 3 WHEN + 41 * - 6 THEN - COUNT( DISTINCT + 1 ) * - + NULLIF ( - - COUNT( - 35 ), + COUNT( * ) + COUNT( DISTINCT + + 58 ) ) END * 1 AS col1, + ( COUNT( + 90 ) ) * 90 col2
----
NULL
90

skipif mysql # not compatible
query II rowsort label-728
SELECT - - COUNT ( * ) / + - CASE - + 15 WHEN - 20 + - 12 THEN - COUNT ( * ) + - 58 / + 3 WHEN + 41 * - 6 THEN - COUNT ( DISTINCT + 1 ) * - + NULLIF ( - - COUNT ( - 35 ), + COUNT ( * ) + COUNT ( DISTINCT + + 58 ) ) END * 1 AS col1, + ( COUNT ( + 90 ) ) * 90 col2
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT ALL + + 71 * + 20 + - COUNT( * ) + + COALESCE ( 98, - 0 ) + 31 AS col0
----
1548

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL + + 71 * + 20 + - COUNT ( * ) + + COALESCE ( 98, - 0 ) + 31 AS col0
----
1548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-730
SELECT - - CASE - 92 WHEN - CASE - 76 WHEN + COUNT( * ) * - 65 * + + COUNT( * ) THEN NULLIF ( - - 73, + - COUNT( * ) * 91 * + 59 + + - 17 ) WHEN + MAX( ALL 66 ) - - - 62 + - 89 THEN NULL END + + 59 * + - COUNT( * ) + + 19 THEN - + 84 / - 87 + + + 33 * + COUNT( * ) WHEN - + 27 - + 51 - 65 * + 44 THEN NULL WHEN + 1 THEN + 1 + + COALESCE ( - CAST( + MIN( DISTINCT - 0 ) AS SIGNED ), - 97 * ( - 6 ), - 17 + + COUNT( * ) * - 71 ) * 17 END * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-730
SELECT - - CASE - 92 WHEN - CASE - 76 WHEN + COUNT ( * ) * - 65 * + + COUNT ( * ) THEN NULLIF ( - - 73, + - COUNT ( * ) * 91 * + 59 + + - 17 ) WHEN + MAX ( ALL 66 ) - - - 62 + - 89 THEN NULL END + + 59 * + - COUNT ( * ) + + 19 THEN - + 84 / - 87 + + + 33 * + COUNT ( * ) WHEN - + 27 - + 51 - 65 * + 44 THEN NULL WHEN + 1 THEN + 1 + + COALESCE ( - CAST ( + MIN ( DISTINCT - 0 ) AS INTEGER ), - 97 * ( - 6 ), - 17 + + COUNT ( * ) * - 71 ) * 17 END * 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT - ( - + ( + COALESCE ( - 75, - 9 ) ) ) DIV - 97 * + 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-731
SELECT - ( - + ( + COALESCE ( - 75, - 9 ) ) ) / - 97 * + 76 AS col2
----
0

query I rowsort
SELECT ALL + + 18 * - 75 + 40
----
-1310

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

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

query I rowsort
SELECT - 46 * 58
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT ALL - COALESCE ( - + 8, + - 4 * + MIN( - - 81 ), + 32 * + 59 )
----
8

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL - COALESCE ( - + 8, + - 4 * + MIN ( - - 81 ), + 32 * + 59 )
----
8

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

query I rowsort
SELECT + 59 - + 97 + - 23 * + 60
----
-1418

query I rowsort
SELECT ALL 82 * 90 AS col0
----
7380

query I rowsort
SELECT - 88 - - + 81 + + 35
----
28

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-742
SELECT - COUNT( * ) + - + 47 * - 16 AS col1, + 89 AS col2
----
751
89

skipif mysql # not compatible
query II rowsort label-742
SELECT - COUNT ( * ) + - + 47 * - 16 AS col1, + 89 AS col2
----
751
89

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT + 10 - - COUNT( * ) * + 97 - + 40 + + 35 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-743
SELECT + 10 - - COUNT ( * ) * + 97 - + 40 + + 35 AS col0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT ALL 16 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL 16 / 40
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-745
SELECT + 80 + + 73 + - CAST( - 78 AS SIGNED ) AS col0
----
231

skipif mysql # not compatible
query I rowsort label-745
SELECT + 80 + + 73 + - CAST ( - 78 AS INTEGER ) AS col0
----
231

query II rowsort
SELECT + COALESCE ( + 46, - - 17 ) AS col2, 85 * - 58 * - 51 col1
----
46
251430

query I rowsort
SELECT + ( + 33 ) + - - 84
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT ALL COUNT( - - 60 ) * 22 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL COUNT ( - - 60 ) * 22 AS col2
----
22

query I rowsort
SELECT 80 * - 37 + + + 52
----
-2908

query I rowsort
SELECT ALL 62 * 97 * - 98 AS col0
----
-589372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-751
SELECT ALL - 15 DIV + - 3 * COUNT( * ) + 48 * 78 AS col1
----
3749

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - 15 / + - 3 * COUNT ( * ) + 48 * 78 AS col1
----
3749

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-753
SELECT + ( - 80 ) + + 81 DIV - - ( 2 ) + + 60
----
20

skipif mysql # not compatible
query I rowsort label-753
SELECT + ( - 80 ) + + 81 / - - ( 2 ) + + 60
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-754
SELECT - 82 * - - 56 + - 18 * + 54 DIV - COUNT( * )
----
-3620

skipif mysql # not compatible
query I rowsort label-754
SELECT - 82 * - - 56 + - 18 * + 54 / - COUNT ( * )
----
-3620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-755
SELECT - + COALESCE ( - - CAST( NULL AS SIGNED ), + - 31 * 30 ) + ( 70 )
----
1000

skipif mysql # not compatible
query I rowsort label-755
SELECT - + COALESCE ( - - CAST ( NULL AS INTEGER ), + - 31 * 30 ) + ( 70 )
----
1000

query II rowsort
SELECT ALL + 1 AS col2, + 92 AS col1
----
1
92

query I rowsort
SELECT + + 80 * + 32
----
2560

query I rowsort
SELECT 75 * - + 97 + 71 AS col0
----
-7204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-759
SELECT COALESCE ( - + 82, SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) * 58, + - 39 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-759
SELECT COALESCE ( - + 82, SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * 58, + - 39 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT ALL + MAX( DISTINCT + 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL + MAX ( DISTINCT + 96 ) AS col1
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - COUNT( * ) * + - MAX( DISTINCT - 26 ) + - 88 + - 74 AS col0
----
-188

skipif mysql # not compatible
query I rowsort label-762
SELECT - COUNT ( * ) * + - MAX ( DISTINCT - 26 ) + - 88 + - 74 AS col0
----
-188

onlyif mysql # aggregate syntax: 
query II rowsort label-763
SELECT ALL + COUNT( * ) - - 68 * - 12, SUM( ALL - 97 ) AS col1
----
-815
-97

skipif mysql # not compatible
query II rowsort label-763
SELECT ALL + COUNT ( * ) - - 68 * - 12, SUM ( ALL - 97 ) AS col1
----
-815
-97

query I rowsort
SELECT DISTINCT - 12 - 40
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT 40 + COALESCE ( - 17, - - 76 + 36 * + 42 * 71 + + ( - 14 ), - NULLIF ( 44, 35 + + 24 ) * - COUNT( * ) ) * - - SUM( - + 87 ) + 76 AS col1
----
1595

skipif mysql # not compatible
query I rowsort label-766
SELECT 40 + COALESCE ( - 17, - - 76 + 36 * + 42 * 71 + + ( - 14 ), - NULLIF ( 44, 35 + + 24 ) * - COUNT ( * ) ) * - - SUM ( - + 87 ) + 76 AS col1
----
1595

query I rowsort
SELECT + ( - - 43 ) + 33 + + + 60
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-768
SELECT - CAST( + + 63 AS SIGNED ) * + + 52 + + 17 AS col2
----
-3259

skipif mysql # not compatible
query I rowsort label-768
SELECT - CAST ( + + 63 AS INTEGER ) * + + 52 + + 17 AS col2
----
-3259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-769
SELECT SUM( - 76 ) * - CAST( NULL AS SIGNED ) / - 68 AS col2, 78 + - + 80
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-769
SELECT SUM ( - 76 ) * - CAST ( NULL AS INTEGER ) / - 68 AS col2, 78 + - + 80
----
NULL
-2

query I rowsort
SELECT ALL - 56 - - 56
----
0

query I rowsort
SELECT 64 * - 35
----
-2240

query I rowsort
SELECT ALL - 83 * 69
----
-5727

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT 74 DIV 5 DIV + + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-773
SELECT 74 / 5 / + + 76 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT ALL + 83 DIV - - 70
----
1

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL + 83 / - - 70
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT MIN( + 95 ) + - - ( + - 43 )
----
52

skipif mysql # not compatible
query I rowsort label-775
SELECT MIN ( + 95 ) + - - ( + - 43 )
----
52

query I rowsort
SELECT 90 + + - 23
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-777
SELECT - 46 AS col0, - SUM( DISTINCT - 91 ) - + + 89 - + + 82 AS col0
----
-46
-80

skipif mysql # not compatible
query II rowsort label-777
SELECT - 46 AS col0, - SUM ( DISTINCT - 91 ) - + + 89 - + + 82 AS col0
----
-46
-80

query I rowsort
SELECT 6 + 18
----
24

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-780
SELECT - 9 AS col0, + COUNT( * ) * - + ( - - 15 ) DIV + 33 col1
----
-9
0

skipif mysql # not compatible
query II rowsort label-780
SELECT - 9 AS col0, + COUNT ( * ) * - + ( - - 15 ) / + 33 col1
----
-9
0

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

query I rowsort
SELECT ALL + 21 + + 29 AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-783
SELECT ALL 21 + + - CAST( - 21 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL 21 + + - CAST ( - 21 AS INTEGER )
----
42

query I rowsort
SELECT DISTINCT ( + - 72 ) + - - 88 * - 90
----
-7992

onlyif mysql # DIV for integer division: 
query I rowsort label-785
SELECT + 98 DIV - 42 - + ( + - 92 ) - - 64 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-785
SELECT + 98 / - 42 - + ( + - 92 ) - - 64 AS col0
----
154

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-787
SELECT ALL - COUNT( * ) DIV + ( - 21 ) * + 96 DIV 92 * + 96 * + COALESCE ( + + 91, 92 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL - COUNT ( * ) / + ( - 21 ) * + 96 / 92 * + 96 * + COALESCE ( + + 91, 92 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT 29 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-788
SELECT 29 / 71
----
0

query I rowsort
SELECT + NULLIF ( - 29, + + 13 * + 52 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT DISTINCT SUM( DISTINCT + 88 ) * - 50 * + NULLIF ( - 42, + - 34 - - - 70 ) * CASE - 64 WHEN COUNT( + 19 ) THEN + COUNT( * ) + 30 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT SUM ( DISTINCT + 88 ) * - 50 * + NULLIF ( - 42, + - 34 - - - 70 ) * CASE - 64 WHEN COUNT ( + 19 ) THEN + COUNT ( * ) + 30 END AS col0
----
NULL

query I rowsort
SELECT ALL + ( - + 29 ) * - - 22 AS col0
----
-638

query II rowsort
SELECT ALL - 39 AS col0, 32 AS col0
----
-39
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-793
SELECT NULLIF ( + 30, + + COALESCE ( + ( + + 50 ), + 46 ) - - - CASE - - 51 WHEN - + 51 * + 92 THEN NULL WHEN 67 THEN 86 * 27 - - CASE - CAST( NULL AS SIGNED ) WHEN COUNT( * ) * - + 22 THEN - 0 WHEN + SUM( DISTINCT + 19 ) THEN - - COALESCE ( - - 36, + 47 ) END - - 26 ELSE NULL END / 90 * + AVG ( + - 17 ) ) / 1 + - CASE + 61 WHEN - + 37 + + 32 + - 73 THEN - 85 - - ( + 63 ) END + + 94 / - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-793
SELECT NULLIF ( + 30, + + COALESCE ( + ( + + 50 ), + 46 ) - - - CASE - - 51 WHEN - + 51 * + 92 THEN NULL WHEN 67 THEN 86 * 27 - - CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) * - + 22 THEN - 0 WHEN + SUM ( DISTINCT + 19 ) THEN - - COALESCE ( - - 36, + 47 ) END - - 26 ELSE NULL END / 90 * + AVG ( + - 17 ) ) / 1 + - CASE + 61 WHEN - + 37 + + 32 + - 73 THEN - 85 - - ( + 63 ) END + + 94 / - + 67
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-794
SELECT 98 * + - COALESCE ( - 11, ( - CAST( 2 AS SIGNED ) ) ) AS col1
----
1078

skipif mysql # not compatible
query I rowsort label-794
SELECT 98 * + - COALESCE ( - 11, ( - CAST ( 2 AS INTEGER ) ) ) AS col1
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT ALL + 63 - - COUNT( * ) * 45
----
108

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + 63 - - COUNT ( * ) * 45
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT DISTINCT - MAX( - + CASE + 77 WHEN 21 THEN + 18 * + ( + 84 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT - MAX ( - + CASE + 77 WHEN 21 THEN + 18 * + ( + 84 ) END )
----
NULL

query I rowsort
SELECT + + ( 32 ) col2
----
32

query I rowsort
SELECT 78 + - + 72 + - + 51 col0
----
-45

query II rowsort
SELECT ALL - - 81, 71 + - 23 col1
----
81
48

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT ALL - COUNT( 34 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL - COUNT ( 34 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT ALL + 31 DIV - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL + 31 / - 77 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-802
SELECT ALL 5 DIV + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL 5 / + 55 AS col2
----
0

query I rowsort
SELECT DISTINCT + 97 + + 39 AS col0
----
136

query I rowsort
SELECT 89 * + 43 * + 50 AS col0
----
191350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-805
SELECT 96 - + COUNT( * ) * - 99 DIV - - 61
----
97

skipif mysql # not compatible
query I rowsort label-805
SELECT 96 - + COUNT ( * ) * - 99 / - - 61
----
97

query I rowsort
SELECT 5 * - 78
----
-390

query I rowsort
SELECT ALL - 80 + + 76
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT ALL SUM( - - 85 ) AS col0, 48 + - 8
----
85
40

skipif mysql # not compatible
query II rowsort label-808
SELECT ALL SUM ( - - 85 ) AS col0, 48 + - 8
----
85
40

query II rowsort
SELECT 15 * ( - 74 ) AS col2, ( + 36 ) * + 91 AS col2
----
-1110
3276

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

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

query I rowsort
SELECT 95 + + NULLIF ( + 10, + 80 ) AS col2
----
105

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

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

query I rowsort
SELECT DISTINCT + - 35 * 66 AS col1
----
-2310

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-814
SELECT DISTINCT 58 * 40 - - CASE + - 46 WHEN + 29 + - COUNT( * ) THEN - 94 / - - COALESCE ( - - ( - CAST( - 28 AS DECIMAL ) ), + MAX( ALL 65 ) + - + ( - 26 ) * - 48 * - 18 ) * 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT 58 * 40 - - CASE + - 46 WHEN + 29 + - COUNT ( * ) THEN - 94 / - - COALESCE ( - - ( - CAST ( - 28 AS REAL ) ), + MAX ( ALL 65 ) + - + ( - 26 ) * - 48 * - 18 ) * 91 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-815
SELECT - - 85 DIV MAX( - 94 ) + - 72 col0
----
-72

skipif mysql # not compatible
query I rowsort label-815
SELECT - - 85 / MAX ( - 94 ) + - 72 col0
----
-72

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

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

query I rowsort
SELECT + - 23 + + 28 AS col0
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT - + 20 * - COUNT( * ) - - + 51
----
71

skipif mysql # not compatible
query I rowsort label-819
SELECT - + 20 * - COUNT ( * ) - - + 51
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-820
SELECT DISTINCT + COUNT( * ) DIV + - 40 + - MIN( + CAST( COALESCE ( + + 77, 42 ) AS SIGNED ) ), 2 AS col2
----
-77
2

skipif mysql # not compatible
query II rowsort label-820
SELECT DISTINCT + COUNT ( * ) / + - 40 + - MIN ( + CAST ( COALESCE ( + + 77, 42 ) AS INTEGER ) ), 2 AS col2
----
-77
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-821
SELECT ALL + + CAST( NULLIF ( 5, + + MAX( ALL + + 48 ) * - 79 * - + 84 ) AS SIGNED ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL + + CAST ( NULLIF ( 5, + + MAX ( ALL + + 48 ) * - 79 * - + 84 ) AS INTEGER ) AS col0
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-822
SELECT DISTINCT 70 DIV + 28 AS col1, - 12 * - 15 AS col2
----
2
180

skipif mysql # not compatible
query II rowsort label-822
SELECT DISTINCT 70 / + 28 AS col1, - 12 * - 15 AS col2
----
2
180

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT ALL CASE - 34 WHEN + + 71 + 58 THEN - + COUNT( * ) END * + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL CASE - 34 WHEN + + 71 + 58 THEN - + COUNT ( * ) END * + - 61
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT DISTINCT - - 1 DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT - - 1 / + 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT DISTINCT ( - COUNT( * ) ) * - 62 + + + 69 + + 43 * 7 * + + 5 + + 42 - - 89 * 95 * + 42
----
356788

skipif mysql # not compatible
query I rowsort label-825
SELECT DISTINCT ( - COUNT ( * ) ) * - 62 + + + 69 + + 43 * 7 * + + 5 + + 42 - - 89 * 95 * + 42
----
356788

query I rowsort
SELECT + 0 * + 27 * - + 61
----
0

query I rowsort
SELECT DISTINCT 64 * + 35 AS col0
----
2240

query I rowsort
SELECT ALL 42 * - 29 + + 24 + + 64 col1
----
-1130

query I rowsort
SELECT 47 * - - 30 + - - 4
----
1414

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-832
SELECT ALL 96 AS col1, CASE + + MIN( + 8 ) WHEN + 14 THEN AVG ( 12 ) / - 16 END
----
96
NULL

skipif mysql # not compatible
query II rowsort label-832
SELECT ALL 96 AS col1, CASE + + MIN ( + 8 ) WHEN + 14 THEN AVG ( 12 ) / - 16 END
----
96
NULL

query I rowsort
SELECT - 63 * - 82 col0
----
5166

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-834
SELECT DISTINCT 22 + + COUNT( * ) * + CAST( NULL AS DECIMAL ) * - 12 + + + COUNT( * ) + 30 + + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT 22 + + COUNT ( * ) * + CAST ( NULL AS REAL ) * - 12 + + + COUNT ( * ) + 30 + + 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL + COUNT( * ) + - 24 + + 70
----
47

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL + COUNT ( * ) + - 24 + + 70
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-836
SELECT + 51 + 79 - CAST( + 93 AS SIGNED ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-836
SELECT + 51 + 79 - CAST ( + 93 AS INTEGER ) AS col1
----
37

query I rowsort
SELECT + 27 + - 94 AS col0
----
-67

query I rowsort
SELECT - 4 + - 47
----
-51

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-841
SELECT + 91 DIV 82 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-841
SELECT + 91 / 82 AS col0
----
1

query I rowsort
SELECT ALL - 49 * - 84
----
4116

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

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT - MAX( DISTINCT - 23 ) + - - ( + 7 )
----
30

skipif mysql # not compatible
query I rowsort label-844
SELECT - MAX ( DISTINCT - 23 ) + - - ( + 7 )
----
30

query II rowsort
SELECT DISTINCT 6 AS col2, 25 * - + 85 AS col1
----
6
-2125

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL - SUM( DISTINCT + 77 ) * - NULLIF ( + 74, + COALESCE ( - + 86, - 93, + ( 96 ) + + 20 ) ) + - COUNT( * ) - - - 92 * - 85
----
13517

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL - SUM ( DISTINCT + 77 ) * - NULLIF ( + 74, + COALESCE ( - + 86, - 93, + ( 96 ) + + 20 ) ) + - COUNT ( * ) - - - 92 * - 85
----
13517

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT ALL - - 70 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL - - 70 / 92 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT - SUM( 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-849
SELECT - SUM ( 60 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT - + COUNT( * ) / - CASE 8 WHEN - 79 THEN + ( 6 ) END - - - 83 * ( NULLIF ( 57, + - 26 + + 71 + 40 * 91 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-850
SELECT - + COUNT ( * ) / - CASE 8 WHEN - 79 THEN + ( 6 ) END - - - 83 * ( NULLIF ( 57, + - 26 + + 71 + 40 * 91 ) ) AS col2
----
NULL

query I rowsort
SELECT - - 35 * + - 58
----
-2030

query I rowsort
SELECT ALL + + 36 col0
----
36

query I rowsort
SELECT + NULLIF ( - - 51, + - NULLIF ( - - 32, + + 82 + NULLIF ( - 10, - 91 / - - 31 * 14 / ( - ( + ( - 44 ) ) ) - - 37 ) ) )
----
51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT DISTINCT - + AVG ( DISTINCT + 9 ) * + CAST( NULL AS SIGNED ) * - MAX( ALL 87 ) * - 54 / + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT - + AVG ( DISTINCT + 9 ) * + CAST ( NULL AS INTEGER ) * - MAX ( ALL 87 ) * - 54 / + 74
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT - NULLIF ( + - 34, + 94 - + - 39 + 14 * - 6 ) - - CAST( NULL AS SIGNED ) + - 11 + + 39 * + ( + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT - NULLIF ( + - 34, + 94 - + - 39 + 14 * - 6 ) - - CAST ( NULL AS INTEGER ) + - 11 + + 39 * + ( + 97 )
----
NULL

query II rowsort
SELECT ALL - - 99 * + 19 * - - 58 * + 5, 38 AS col2
----
545490
38

query I rowsort
SELECT DISTINCT + + 50 * + + 52 - ( + 85 ) + - 3 AS col1
----
2512

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

query I rowsort
SELECT ALL 86 * + + ( 34 ) + - 84 + - ( + 72 ) * + 11 + - + 14 * 3 * - 55
----
4358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-862
SELECT ALL CAST( NULL AS SIGNED ) * + CASE - CASE AVG ( DISTINCT 83 ) WHEN - COUNT( * ) THEN + 9 + + ( ( - COUNT( * ) ) ) END WHEN ( + 19 ) THEN NULL ELSE - 8 END * + + 71 / - - 99 + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL CAST ( NULL AS INTEGER ) * + CASE - CASE AVG ( DISTINCT 83 ) WHEN - COUNT ( * ) THEN + 9 + + ( ( - COUNT ( * ) ) ) END WHEN ( + 19 ) THEN NULL ELSE - 8 END * + + 71 / - - 99 + 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-863
SELECT CASE + 99 WHEN - CASE + + ( - MIN( ALL + 5 ) ) WHEN - COUNT( * ) THEN NULL WHEN + + COUNT( * ) * - 50 - 29 + + CASE - + AVG ( DISTINCT + 59 ) WHEN + - 34 THEN 70 DIV - 63 ELSE MIN( ALL CAST( - 62 AS SIGNED ) ) END THEN - 55 * + COUNT( * ) END + - 26 DIV AVG ( ALL + + 91 ) THEN + 32 + + + 48 * 16 * + - 52 + - 19 * - ( + 68 ) ELSE + - COUNT( * ) END * + 1 DIV + 71 + + 81 + - 82 + - 87 * COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-863
SELECT CASE + 99 WHEN - CASE + + ( - MIN ( ALL + 5 ) ) WHEN - COUNT ( * ) THEN NULL WHEN + + COUNT ( * ) * - 50 - 29 + + CASE - + AVG ( DISTINCT + 59 ) WHEN + - 34 THEN 70 / - 63 ELSE MIN ( ALL CAST ( - 62 AS INTEGER ) ) END THEN - 55 * + COUNT ( * ) END + - 26 / AVG ( ALL + + 91 ) THEN + 32 + + + 48 * 16 * + - 52 + - 19 * - ( + 68 ) ELSE + - COUNT ( * ) END * + 1 / + 71 + + 81 + - 82 + - 87 * COUNT ( * )
----
-88

query I rowsort
SELECT + COALESCE ( + + 34, - 87 ) col2
----
34

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-866
SELECT + 46 * + 58 col0, + 58 * 18 * - COUNT( * ) - + - 35
----
2668
-1009

skipif mysql # not compatible
query II rowsort label-866
SELECT + 46 * + 58 col0, + 58 * 18 * - COUNT ( * ) - + - 35
----
2668
-1009

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-868
SELECT NULLIF ( - - CAST( - - 55 AS SIGNED ), - 71 * + 64 * + 97 + - + NULLIF ( + 75, + 69 - 69 ) + - + 38 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-868
SELECT NULLIF ( - - CAST ( - - 55 AS INTEGER ), - 71 * + 64 * + 97 + - + NULLIF ( + 75, + 69 - 69 ) + - + 38 ) AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-869
SELECT ALL + 38 * + CAST( NULL AS SIGNED ) + - - ( 17 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + 38 * + CAST ( NULL AS INTEGER ) + - - ( 17 ) AS col1
----
NULL

query I rowsort
SELECT + 51 * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-871
SELECT ALL - 72 * - NULLIF ( + 86, + 98 * - + 83 * + 21 ) + - COUNT( * ), - 80 AS col0
----
6191
-80

skipif mysql # not compatible
query II rowsort label-871
SELECT ALL - 72 * - NULLIF ( + 86, + 98 * - + 83 * + 21 ) + - COUNT ( * ), - 80 AS col0
----
6191
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-872
SELECT ALL 10 * + CAST( 98 AS SIGNED ) * + + 18
----
17640

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL 10 * + CAST ( 98 AS INTEGER ) * + + 18
----
17640

onlyif mysql # aggregate syntax: 
query II rowsort label-873
SELECT - 15 - 14 * + COALESCE ( - + COUNT( * ), 80 ), 75 AS col1
----
-1
75

skipif mysql # not compatible
query II rowsort label-873
SELECT - 15 - 14 * + COALESCE ( - + COUNT ( * ), 80 ), 75 AS col1
----
-1
75

query I rowsort
SELECT + 21 * 93
----
1953

query I rowsort
SELECT ALL - 95 * + 94 * - 31 - - 74
----
276904

query I rowsort
SELECT DISTINCT 9 * + + 10 col2
----
90

query I rowsort
SELECT ALL - - 18 * + 43 AS col1
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT ALL - 86 * - - COUNT( * ) * 39 - - 39 + + 55
----
-3260

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL - 86 * - - COUNT ( * ) * 39 - - 39 + + 55
----
-3260

query I rowsort
SELECT + 51 - - + NULLIF ( + + ( NULLIF ( - 72, - + 66 ) ), - 58 ) * 13 AS col2
----
-885

query I rowsort
SELECT ALL + 26 * + - 88 AS col1
----
-2288

query I rowsort
SELECT + 94 + 25 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT 45 * - - 56 + - COUNT( * )
----
2519

skipif mysql # not compatible
query I rowsort label-882
SELECT 45 * - - 56 + - COUNT ( * )
----
2519

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL MAX( + 33 ) * + 4 AS col0
----
132

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL MAX ( + 33 ) * + 4 AS col0
----
132

query I rowsort
SELECT DISTINCT + 32 + + 66 + + 52 + - 82 * - 45 * + - 23 * 89 * + + 8 AS col0
----
-60427290

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT + CASE - COUNT( * ) WHEN + 93 THEN + + 91 * - 1 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-885
SELECT + CASE - COUNT ( * ) WHEN + 93 THEN + + 91 * - 1 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 45 + - + 59
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-887
SELECT ALL + 99 + - 60 + - + CAST( NULL AS SIGNED ) * + 28 / 23 * + 6 + + - COUNT( * ) + + 28 + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL + 99 + - 60 + - + CAST ( NULL AS INTEGER ) * + 28 / 23 * + 6 + + - COUNT ( * ) + + 28 + 26 AS col0
----
NULL

query II rowsort
SELECT 63 + + ( 22 ) + 89 AS col1, - 59
----
174
-59

query I rowsort
SELECT 74 * + 9 AS col2
----
666

query I rowsort
SELECT 29 * + + 39 + - 14
----
1117

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ALL + COUNT( * ) + + COALESCE ( + ( 10 ), + - 59 + - 88 ) * + 52 AS col1
----
521

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + COUNT ( * ) + + COALESCE ( + ( 10 ), + - 59 + - 88 ) * + 52 AS col1
----
521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-892
SELECT ALL - 66 + + COUNT( * ) + + ( + 74 ) * - 42 AS col1, - 3 DIV + CAST( - MAX( - 86 ) AS SIGNED ) - + - 68 + 54
----
-3173
122

skipif mysql # not compatible
query II rowsort label-892
SELECT ALL - 66 + + COUNT ( * ) + + ( + 74 ) * - 42 AS col1, - 3 / + CAST ( - MAX ( - 86 ) AS INTEGER ) - + - 68 + 54
----
-3173
122

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-894
SELECT 5 + + - ( + + 65 ) AS col0, CAST( - 50 AS SIGNED ) + - COALESCE ( ( - 30 ), 47 ) + 37 * + COUNT( * ) col1
----
-60
17

skipif mysql # not compatible
query II rowsort label-894
SELECT 5 + + - ( + + 65 ) AS col0, CAST ( - 50 AS INTEGER ) + - COALESCE ( ( - 30 ), 47 ) + 37 * + COUNT ( * ) col1
----
-60
17

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT DISTINCT - COALESCE ( 66, - COUNT( * ), + - 62 ) + - 47
----
-113

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT - COALESCE ( 66, - COUNT ( * ), + - 62 ) + - 47
----
-113

query I rowsort
SELECT ALL + 21 + 0
----
21

query I rowsort
SELECT 95 + - 20 AS col0
----
75

query I rowsort
SELECT 98 - - 69 * + 20 AS col0
----
1478

query I rowsort
SELECT 5 + - 52 * + ( 0 ) AS col1
----
5

query I rowsort
SELECT 40 - + 35
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT SUM( ALL - + 91 ) + - + 93
----
-184

skipif mysql # not compatible
query I rowsort label-902
SELECT SUM ( ALL - + 91 ) + - + 93
----
-184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-903
SELECT COUNT( * ) DIV 35 DIV + - 65 col2
----
0

skipif mysql # not compatible
query I rowsort label-903
SELECT COUNT ( * ) / 35 / + - 65 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-904
SELECT ALL + 31 DIV 3 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL + 31 / 3 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT DISTINCT 50 * + - COALESCE ( COUNT( * ), + 26 * + 11, - 7 * + 59 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT 50 * + - COALESCE ( COUNT ( * ), + 26 * + 11, - 7 * + 59 ) AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-906
SELECT ALL + 90 * CASE - + COUNT( * ) WHEN NULLIF ( + - 83, - CAST( - COALESCE ( 27, + + 66 * - 56 + + COUNT( * ) * + + ( + CASE CASE - + MAX( ALL - 53 ) WHEN - - 86 * + 44 + + 28 + - 32 - ( 98 ) * + 62 THEN + 11 * + ( 78 ) * - COUNT( * ) * - - 48 + - 60 + - COUNT( * ) + 11 * + 27 * + ( - 14 ) / + - SUM( - 12 ) + - + 13 END WHEN + - 11 THEN + - 74 WHEN COUNT( * ) + 23 THEN 94 WHEN + 4 THEN + + ( - CAST( NULL AS SIGNED ) ) END ) * 8, + AVG ( DISTINCT - 51 ) ) AS SIGNED ) + 95 * + 91 ) THEN NULL WHEN + COUNT( * ) THEN 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL + 90 * CASE - + COUNT ( * ) WHEN NULLIF ( + - 83, - CAST ( - COALESCE ( 27, + + 66 * - 56 + + COUNT ( * ) * + + ( + CASE CASE - + MAX ( ALL - 53 ) WHEN - - 86 * + 44 + + 28 + - 32 - ( 98 ) * + 62 THEN + 11 * + ( 78 ) * - COUNT ( * ) * - - 48 + - 60 + - COUNT ( * ) + 11 * + 27 * + ( - 14 ) / + - SUM ( - 12 ) + - + 13 END WHEN + - 11 THEN + - 74 WHEN COUNT ( * ) + 23 THEN 94 WHEN + 4 THEN + + ( - CAST ( NULL AS INTEGER ) ) END ) * 8, + AVG ( DISTINCT - 51 ) ) AS INTEGER ) + 95 * + 91 ) THEN NULL WHEN + COUNT ( * ) THEN 33 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT + 43 DIV + 37 col2
----
1

skipif mysql # not compatible
query I rowsort label-907
SELECT + 43 / + 37 col2
----
1

query I rowsort
SELECT 19 * 7 col2
----
133

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

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

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

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

query I rowsort
SELECT - 48 + - 73 + + - ( - 45 ) AS col1
----
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT ALL 32 + + SUM( DISTINCT + + 39 )
----
71

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL 32 + + SUM ( DISTINCT + + 39 )
----
71

query I rowsort
SELECT ALL 75 + + 79 - 93 * + 18
----
-1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-915
SELECT DISTINCT CAST( - - 11 AS SIGNED ) + + 82 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT CAST ( - - 11 AS INTEGER ) + + 82 AS col1
----
93

query I rowsort
SELECT ALL - 14 + - 91
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-917
SELECT ALL - 3 + ( - - NULLIF ( 5, - COALESCE ( + CAST( + 59 AS SIGNED ), + 52 ) + + 85 ) )
----
2

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL - 3 + ( - - NULLIF ( 5, - COALESCE ( + CAST ( + 59 AS INTEGER ), + 52 ) + + 85 ) )
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT - 81 - - + CASE + 30 WHEN + 46 - + + 43 + - 54 * + 94 THEN + - MIN( ALL + 50 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-919
SELECT - 81 - - + CASE + 30 WHEN + 46 - + + 43 + - 54 * + 94 THEN + - MIN ( ALL + 50 ) END col0
----
NULL

query I rowsort
SELECT 47 * - 46 AS col2
----
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT - CASE 11 WHEN + - 45 / - 90 * - + 71 THEN - COUNT( * ) - + NULLIF ( - 7, + 40 ) END * + ( - 61 ) * + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-921
SELECT - CASE 11 WHEN + - 45 / - 90 * - + 71 THEN - COUNT ( * ) - + NULLIF ( - 7, + 40 ) END * + ( - 61 ) * + 50 AS col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT - 15 DIV - 87 + - - 30
----
30

skipif mysql # not compatible
query I rowsort label-923
SELECT - 15 / - 87 + - - 30
----
30

query I rowsort
SELECT ALL - 67 * NULLIF ( + ( + - 8 ), - 13 ) + - ( 15 )
----
521

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

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

query I rowsort
SELECT DISTINCT 99 * ( - + 64 ) AS col0
----
-6336

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

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT + ( COUNT ( * ) ) / SUM ( - 79 )
----
0

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

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

query I rowsort
SELECT ( + 58 ) * 31
----
1798

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

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

query II rowsort
SELECT ALL - 69 AS col2, 1 AS col1
----
-69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT + CASE - 19 WHEN + - COUNT( - 1 ) * + + ( 75 ) THEN + - 72 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT + CASE - 19 WHEN + - COUNT ( - 1 ) * + + ( 75 ) THEN + - 72 END AS col1
----
NULL

query I rowsort
SELECT 35 * + 68 * + 14 - - 50 * + - 10 AS col0
----
32820

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

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

query II rowsort
SELECT ALL - 85 col1, - 37 AS col0
----
-85
-37

query I rowsort
SELECT - 45 * + - 64 * + + 42
----
120960

query II rowsort
SELECT ALL + 98, - 78 AS col0
----
98
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-938
SELECT DISTINCT + ( - COUNT( * ) ) * - - 1 DIV + 75 + + 54 AS col0
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT - SUM( DISTINCT - 88 ) + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-939
SELECT - SUM ( DISTINCT - 88 ) + + COUNT ( * )
----
89

query I rowsort
SELECT ALL CASE - 85 WHEN 42 THEN - 56 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT - COUNT( * ) * - + 27, 3 AS col0
----
27
3

skipif mysql # not compatible
query II rowsort label-941
SELECT - COUNT ( * ) * - + 27, 3 AS col0
----
27
3

query I rowsort
SELECT ALL + 27 * - 57
----
-1539

query I rowsort
SELECT - ( + ( - + 62 ) ) - 26 + 53 * 92 * + 37 AS col0
----
180448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-944
SELECT NULLIF ( 6, 8 * - 96 * + 6 * COALESCE ( - - 24, 35 ) + - CAST( NULL AS SIGNED ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-944
SELECT NULLIF ( 6, 8 * - 96 * + 6 * COALESCE ( - - 24, 35 ) + - CAST ( NULL AS INTEGER ) ) AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-945
SELECT - 10 DIV + SUM( DISTINCT - 34 )
----
0

skipif mysql # not compatible
query I rowsort label-945
SELECT - 10 / + SUM ( DISTINCT - 34 )
----
0

query I rowsort
SELECT - 76 * - 61 + 59
----
4695

query I rowsort
SELECT - + 48 * + 56
----
-2688

query I rowsort
SELECT ALL - 68 + - 6
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-949
SELECT DISTINCT + COUNT( * ), 24 DIV 20 * NULLIF ( - - 60, - 7 ) * - - ( + 43 ) * - + 88 * - - MAX( ALL - 12 ) AS col0
----
1
2724480

skipif mysql # not compatible
query II rowsort label-949
SELECT DISTINCT + COUNT ( * ), 24 / 20 * NULLIF ( - - 60, - 7 ) * - - ( + 43 ) * - + 88 * - - MAX ( ALL - 12 ) AS col0
----
1
2724480

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-952
SELECT + 13 DIV COUNT( * ) * - 77
----
-1001

skipif mysql # not compatible
query I rowsort label-952
SELECT + 13 / COUNT ( * ) * - 77
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL - + 92 + COUNT( * ) * + - 50
----
-142

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - + 92 + COUNT ( * ) * + - 50
----
-142

query I rowsort
SELECT - 52 + + 17 AS col2
----
-35

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

skipif mysql # not compatible
query II rowsort label-955
SELECT - COUNT ( * ) AS col2, 2
----
-1
2

query II rowsort
SELECT 45 AS col1, + ( + + 35 ) + - + 30 * - 3 AS col2
----
45
125

onlyif mysql # DIV for integer division: 
query I rowsort label-957
SELECT ALL + + 79 * 16 DIV + + 33 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL + + 79 * 16 / + + 33 AS col0
----
38

query I rowsort
SELECT - 79 + 55 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT + + 97 - + SUM( + 59 )
----
38

skipif mysql # not compatible
query I rowsort label-959
SELECT + + 97 - + SUM ( + 59 )
----
38

query I rowsort
SELECT ALL + 91 + - 92 + + 69
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT ALL + - ( - ( - + COALESCE ( + - 98, - ( + 22 ), - 34 * - 79 + - 79 + - - 76 - - 32 * + + CAST( NULL AS SIGNED ) + + + CAST( - 72 AS SIGNED ) ) ) ) * - ( - - 24 ) AS col2
----
-2352

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL + - ( - ( - + COALESCE ( + - 98, - ( + 22 ), - 34 * - 79 + - 79 + - - 76 - - 32 * + + CAST ( NULL AS INTEGER ) + + + CAST ( - 72 AS INTEGER ) ) ) ) * - ( - - 24 ) AS col2
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT COUNT( - 93 ) * - + 1 + - 23 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-962
SELECT COUNT ( - 93 ) * - + 1 + - 23 AS col1
----
-24

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

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

query I rowsort
SELECT - 94 * + 4 + + + 69 - - 15 AS col2
----
-292

query I rowsort
SELECT ALL ( - 6 ) * - 91 AS col2
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT + SUM( + 5 ) * + 96 col1
----
480

skipif mysql # not compatible
query I rowsort label-966
SELECT + SUM ( + 5 ) * + 96 col1
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT ALL ( 18 ) * - + 63 + + NULLIF ( COUNT( * ), - 81 ) + + CASE + 67 WHEN + COALESCE ( 58, - 35 * + 45 ) THEN - 79 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL ( 18 ) * - + 63 + + NULLIF ( COUNT ( * ), - 81 ) + + CASE + 67 WHEN + COALESCE ( 58, - 35 * + 45 ) THEN - 79 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT + NULLIF ( + MAX( DISTINCT 54 ), - 75 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-968
SELECT + NULLIF ( + MAX ( DISTINCT 54 ), - 75 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT 40 * - CASE ( - 62 ) WHEN + 85 * + SUM( DISTINCT - - 64 ) THEN + 30 * - 75 + + 27 + - 86 + - + 62 - - - COUNT( * ) * + 40 WHEN 79 + 49 THEN NULL END + + 67 + - - 78 / - COUNT( * ) * + + 80 * AVG ( DISTINCT - ( + - 37 ) ) * - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-969
SELECT 40 * - CASE ( - 62 ) WHEN + 85 * + SUM ( DISTINCT - - 64 ) THEN + 30 * - 75 + + 27 + - 86 + - + 62 - - - COUNT ( * ) * + 40 WHEN 79 + 49 THEN NULL END + + 67 + - - 78 / - COUNT ( * ) * + + 80 * AVG ( DISTINCT - ( + - 37 ) ) * - 1 AS col2
----
NULL

query I rowsort
SELECT ALL 39 * 86
----
3354

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT + 45 DIV + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-971
SELECT + 45 / + 89 AS col0
----
0

query I rowsort
SELECT ALL 51 * 64 AS col2
----
3264

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT CASE - 79 WHEN - - 51 * - 65 + - COUNT( DISTINCT - 56 ) THEN NULL WHEN 14 THEN NULL ELSE + 77 * - 42 - - 85 END
----
-3149

skipif mysql # not compatible
query I rowsort label-973
SELECT CASE - 79 WHEN - - 51 * - 65 + - COUNT ( DISTINCT - 56 ) THEN NULL WHEN 14 THEN NULL ELSE + 77 * - 42 - - 85 END
----
-3149

query I rowsort
SELECT DISTINCT 86 * + 61 AS col2
----
5246

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT DISTINCT COALESCE ( - COALESCE ( - ( - COUNT( 37 ) ), + - 15 + ( 0 ), + - 67 ), - 65 ) * - 0 * 12
----
0

skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT COALESCE ( - COALESCE ( - ( - COUNT ( 37 ) ), + - 15 + ( 0 ), + - 67 ), - 65 ) * - 0 * 12
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-976
SELECT ALL - 68 DIV - 99 * - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL - 68 / - 99 * - 45 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT 32 * 99 + - 10 + + 53 * - - ( - + COUNT( * ) ) * - + 10 + - 81 * - 85 AS col0
----
10573

skipif mysql # not compatible
query I rowsort label-977
SELECT 32 * 99 + - 10 + + 53 * - - ( - + COUNT ( * ) ) * - + 10 + - 81 * - 85 AS col0
----
10573

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-978
SELECT - SUM( 80 ) * + 44 DIV + + CASE - - MAX( ALL 15 ) WHEN + + AVG ( ALL - 8 ) DIV + MAX( - + 49 ) * + 90 THEN NULL ELSE 22 END AS col1, COUNT( * ) * + 6 AS col1
----
-160
6

skipif mysql # not compatible
query II rowsort label-978
SELECT - SUM ( 80 ) * + 44 / + + CASE - - MAX ( ALL 15 ) WHEN + + AVG ( ALL - 8 ) / + MAX ( - + 49 ) * + 90 THEN NULL ELSE 22 END AS col1, COUNT ( * ) * + 6 AS col1
----
-160
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-979
SELECT + 73 * + 78 - + - 73 - COUNT( ALL - 37 ) + + CAST( - + 86 AS SIGNED ) col2, + 16 AS col1
----
5680
16

skipif mysql # not compatible
query II rowsort label-979
SELECT + 73 * + 78 - + - 73 - COUNT ( ALL - 37 ) + + CAST ( - + 86 AS INTEGER ) col2, + 16 AS col1
----
5680
16

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL + MIN( - 52 ) / - CASE - 13 WHEN 76 * - - 9 + - - COUNT( * ) THEN + - 76 END * NULLIF ( AVG ( ALL 87 ), 63 * + 90 ) * + - AVG ( ALL - 38 ) * 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL + MIN ( - 52 ) / - CASE - 13 WHEN 76 * - - 9 + - - COUNT ( * ) THEN + - 76 END * NULLIF ( AVG ( ALL 87 ), 63 * + 90 ) * + - AVG ( ALL - 38 ) * 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT + + MAX( ALL 80 ) + - - 26 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-981
SELECT + + MAX ( ALL 80 ) + - - 26 AS col2
----
106

query I rowsort
SELECT - - 77 + 81 AS col2
----
158

query I rowsort
SELECT + - 8 * - 99 AS col0
----
792

query II rowsort
SELECT - + 2 + - 83, - 85
----
-85
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-985
SELECT + CASE - COALESCE ( - 27, 52 * 14 ) WHEN - COUNT( * ) THEN NULL WHEN + + 16 THEN NULL ELSE - - MIN( 52 ) / + + 39 * + CAST( NULL AS SIGNED ) END + - 98 * - 33 * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT + CASE - COALESCE ( - 27, 52 * 14 ) WHEN - COUNT ( * ) THEN NULL WHEN + + 16 THEN NULL ELSE - - MIN ( 52 ) / + + 39 * + CAST ( NULL AS INTEGER ) END + - 98 * - 33 * 55
----
NULL

query I rowsort
SELECT ALL - 13 * 46 + + + 42 + 16 * 23
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT ALL + - 57 + + - 15 - + COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL + - 57 + + - 15 - + COUNT ( * ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT - CASE 76 WHEN 56 + - COUNT( * ) THEN + NULLIF ( + + 19, + 41 - 49 + - - 47 / 25 / COUNT( * ) * + 84 * + - NULLIF ( 92, + 34 ) ) WHEN + 48 + + 83 THEN + 54 * - + COUNT( * ) END + - 41 - + 59 - - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT - CASE 76 WHEN 56 + - COUNT ( * ) THEN + NULLIF ( + + 19, + 41 - 49 + - - 47 / 25 / COUNT ( * ) * + 84 * + - NULLIF ( 92, + 34 ) ) WHEN + 48 + + 83 THEN + 54 * - + COUNT ( * ) END + - 41 - + 59 - - - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT - 97 + + 3 * - 21 + + COUNT( DISTINCT - 39 ) * + 30 AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-989
SELECT - 97 + + 3 * - 21 + + COUNT ( DISTINCT - 39 ) * + 30 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT - MAX( - 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-990
SELECT - MAX ( - 46 ) AS col1
----
46

query I rowsort
SELECT + - 81 * + 37 - 72 AS col2
----
-3069

query I rowsort
SELECT - - 75 + + 9 + + + 7
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT - + 1 + - 73 * + 58 * - MAX( ALL + - NULLIF ( - - 91, - + ( + 92 ) ) )
----
-385295

skipif mysql # not compatible
query I rowsort label-993
SELECT - + 1 + - 73 * + 58 * - MAX ( ALL + - NULLIF ( - - 91, - + ( + 92 ) ) )
----
-385295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-994
SELECT - - COUNT( * ) + + 37 / - 15 * + ( - CASE + + 5 WHEN + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * + - 3 + + + 70 - - 9 THEN NULL WHEN + + COALESCE ( + 7, + 3 ) * - 34 THEN + 14 / + 89 + + - COUNT( * ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-994
SELECT - - COUNT ( * ) + + 37 / - 15 * + ( - CASE + + 5 WHEN + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * + - 3 + + + 70 - - 9 THEN NULL WHEN + + COALESCE ( + 7, + 3 ) * - 34 THEN + 14 / + 89 + + - COUNT ( * ) END ) AS col2
----
NULL

query I rowsort
SELECT ALL - 20 - - ( - 72 ) AS col0
----
-92

query I rowsort
SELECT - 86 * COALESCE ( + - 96, ( + 91 ) - + ( - 44 ) + + 12 ) + 76
----
8332

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-997
SELECT ALL 43 * + 6, COUNT( * ) + - + COUNT( - - NULLIF ( - ( + 62 ), - 82 ) ) DIV + 66 AS col2
----
258
1

skipif mysql # not compatible
query II rowsort label-997
SELECT ALL 43 * + 6, COUNT ( * ) + - + COUNT ( - - NULLIF ( - ( + 62 ), - 82 ) ) / + 66 AS col2
----
258
1

query I rowsort
SELECT ALL - 34 - + 43 + + + 54 + - + 75
----
-98

query I rowsort
SELECT - 29 * + + 46
----
-1334

query I rowsort
SELECT ALL + ( - + 72 ) AS col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1001
SELECT + 81 DIV - 14 * COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1001
SELECT + 81 / - 14 * COUNT ( * ) AS col1
----
-5

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

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

query I rowsort
SELECT ALL + 45 * - - 71
----
3195

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT COUNT( * ) - 25 + 36 * + + 86 * - 29 + 65 AS col0
----
-89743

skipif mysql # not compatible
query I rowsort label-1004
SELECT COUNT ( * ) - 25 + 36 * + + 86 * - 29 + 65 AS col0
----
-89743

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1005
SELECT 73, + CAST( - + 31 AS SIGNED ) * COALESCE ( 80, - 7, - ( + 95 ) ) col2
----
73
-2480

skipif mysql # not compatible
query II rowsort label-1005
SELECT 73, + CAST ( - + 31 AS INTEGER ) * COALESCE ( 80, - 7, - ( + 95 ) ) col2
----
73
-2480

query I rowsort
SELECT ALL 97 + + - 59 AS col1
----
38

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

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

query I rowsort
SELECT DISTINCT 32 + + 0 * + + 63 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT 48 DIV + 22 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1009
SELECT 48 / + 22 AS col0
----
2

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT DISTINCT + 9 * - 46 + - + 35 DIV 79 col1
----
-414

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT + 9 * - 46 + - + 35 / 79 col1
----
-414

query I rowsort
SELECT DISTINCT + 98 + + + 2 col1
----
100

query I rowsort
SELECT 96 * + + 14 col0
----
1344

onlyif mysql # DIV for integer division: 
query I rowsort label-1014
SELECT 27 DIV + + 69
----
0

skipif mysql # not compatible
query I rowsort label-1014
SELECT 27 / + + 69
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL - SUM ( - 87 )
----
87

query I rowsort
SELECT NULLIF ( + 54, - 35 ) + + 48
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1018
SELECT + COUNT( * ) DIV CAST( - + 3 AS SIGNED ) * 79
----
0

skipif mysql # not compatible
query I rowsort label-1018
SELECT + COUNT ( * ) / CAST ( - + 3 AS INTEGER ) * 79
----
0

query I rowsort
SELECT ALL 87 - + + 91
----
-4

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

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

query I rowsort
SELECT DISTINCT - 91 * - 70
----
6370

onlyif mysql # aggregate syntax: 
query II rowsort label-1022
SELECT - 12, 90 * - SUM( + 57 ) * - + 75 AS col1
----
-12
384750

skipif mysql # not compatible
query II rowsort label-1022
SELECT - 12, 90 * - SUM ( + 57 ) * - + 75 AS col1
----
-12
384750

onlyif mysql # aggregate syntax: 
query II rowsort label-1023
SELECT 76 - + + 7 + + + COUNT( * ) * NULLIF ( + 4, + 41 ) * - - COUNT( * ) * + 6, 52 AS col2
----
93
52

skipif mysql # not compatible
query II rowsort label-1023
SELECT 76 - + + 7 + + + COUNT ( * ) * NULLIF ( + 4, + 41 ) * - - COUNT ( * ) * + 6, 52 AS col2
----
93
52

query II rowsort
SELECT ALL 85 AS col1, 98 AS col1
----
85
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT COALESCE ( + 84, + MIN( ALL 99 ) ) + + + 56
----
140

skipif mysql # not compatible
query I rowsort label-1025
SELECT COALESCE ( + 84, + MIN ( ALL 99 ) ) + + + 56
----
140

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

skipif mysql # not compatible
query I rowsort label-1026
SELECT 25 * 0 / COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1027
SELECT DISTINCT - 30 * SUM( - 34 ) DIV + 70
----
14

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT - 30 * SUM ( - 34 ) / + 70
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT 8 + + 39 + + - COUNT( + 92 ) * - COUNT( * ) + + - 29 * - + COUNT( * ) + + 32 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-1028
SELECT 8 + + 39 + + - COUNT ( + 92 ) * - COUNT ( * ) + + - 29 * - + COUNT ( * ) + + 32 AS col2
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1029
SELECT 15 * + 52 DIV + - COUNT( * ) AS col1
----
-780

skipif mysql # not compatible
query I rowsort label-1029
SELECT 15 * + 52 / + - COUNT ( * ) AS col1
----
-780

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1030
SELECT ALL - CAST( + 83 AS SIGNED ) AS col2, + 66 + - 18
----
-83
48

skipif mysql # not compatible
query II rowsort label-1030
SELECT ALL - CAST ( + 83 AS INTEGER ) AS col2, + 66 + - 18
----
-83
48

query I rowsort
SELECT 40 * 13 AS col2
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT 53 + - - CASE - 55 WHEN + COUNT( * ) THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT 53 + - - CASE - 55 WHEN + COUNT ( * ) THEN - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT 30 + + MAX( - 36 ) + - + 37 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-1033
SELECT 30 + + MAX ( - 36 ) + - + 37 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT MAX( + - ( 77 ) ) * - 5 * + 85 + 24 + + 52
----
32801

skipif mysql # not compatible
query I rowsort label-1034
SELECT MAX ( + - ( 77 ) ) * - 5 * + 85 + 24 + + 52
----
32801

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

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT - 96 + COUNT ( * ) AS col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1036
SELECT ALL - 14 + + 86 AS col1, 51 + CAST( NULL AS SIGNED ) + + 87 * 45 col2
----
72
NULL

skipif mysql # not compatible
query II rowsort label-1036
SELECT ALL - 14 + + 86 AS col1, 51 + CAST ( NULL AS INTEGER ) + + 87 * 45 col2
----
72
NULL

query I rowsort
SELECT ALL - 80 + - - 74
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT COUNT( * ) + + + 87 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-1038
SELECT COUNT ( * ) + + + 87 AS col2
----
88

query I rowsort
SELECT DISTINCT - + 48 + - + 7
----
-55

query I rowsort
SELECT 11 * - - 27
----
297

query I rowsort
SELECT 25 * + 10 + - ( + - 55 ) * - 70 * + 96 AS col2
----
-369350

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT - 65 * - - 99 + + MAX( DISTINCT + 27 ) AS col0
----
-6408

skipif mysql # not compatible
query I rowsort label-1042
SELECT - 65 * - - 99 + + MAX ( DISTINCT + 27 ) AS col0
----
-6408

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT + ( - MAX ( - + 42 ) )
----
42

query I rowsort
SELECT + 92 * - + 71
----
-6532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1045
SELECT - COALESCE ( + + 58, - MAX( + CAST( NULL AS SIGNED ) ), 92, - 3 * - + 45 ) + 1
----
-57

skipif mysql # not compatible
query I rowsort label-1045
SELECT - COALESCE ( + + 58, - MAX ( + CAST ( NULL AS INTEGER ) ), 92, - 3 * - + 45 ) + 1
----
-57

query I rowsort
SELECT ALL 71 - + + 37 * - + NULLIF ( - 27, 27 )
----
-928

query I rowsort
SELECT DISTINCT + 26 - 82
----
-56

query I rowsort
SELECT - 59 * + ( + 63 )
----
-3717

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

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL - COUNT ( - 20 ) - + - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 60 * + 80
----
4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1051
SELECT - + CASE - 62 WHEN + 12 + + - 64 THEN 60 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT - + CASE - 62 WHEN + 12 + + - 64 THEN 60 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 52 * - 18 AS col1
----
-936

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT + 70 DIV 42 * - 81 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-1053
SELECT + 70 / 42 * - 81 AS col1
----
-81

query I rowsort
SELECT + 28 * - 22
----
-616

query I rowsort
SELECT ALL 34 + - + 98
----
-64

query I rowsort
SELECT - NULLIF ( + 92, ( + - 26 ) )
----
-92

query I rowsort
SELECT ALL + 45 + - + 27 AS col1
----
18

query I rowsort
SELECT + 98 * 45
----
4410

query I rowsort
SELECT ALL - 72 * 67 AS col1
----
-4824

query II rowsort
SELECT - 0 col0, + 9 AS col0
----
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT + 62 - - 80 + - COUNT( * ) + - - 39
----
180

skipif mysql # not compatible
query I rowsort label-1061
SELECT + 62 - - 80 + - COUNT ( * ) + - - 39
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-1062
SELECT 82 * + 14 + 18 + + 34 - 54, + COUNT( * ) AS col0
----
1146
1

skipif mysql # not compatible
query II rowsort label-1062
SELECT 82 * + 14 + 18 + + 34 - 54, + COUNT ( * ) AS col0
----
1146
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT NULLIF ( + SUM( ALL + 60 ), - 61 * + 62 * 17 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1063
SELECT NULLIF ( + SUM ( ALL + 60 ), - 61 * + 62 * 17 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1064
SELECT ALL + 84 AS col0, ( 95 ) * - 76 + COUNT( * )
----
84
-7219

skipif mysql # not compatible
query II rowsort label-1064
SELECT ALL + 84 AS col0, ( 95 ) * - 76 + COUNT ( * )
----
84
-7219

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT ALL + 37 DIV + + 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL + 37 / + + 44 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL + COALESCE ( + 49, + 40 * + 73 ) * NULLIF ( + NULLIF ( ( 47 ), 89 ), COUNT( * ) )
----
2303

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL + COALESCE ( + 49, + 40 * + 73 ) * NULLIF ( + NULLIF ( ( 47 ), 89 ), COUNT ( * ) )
----
2303

query I rowsort
SELECT COALESCE ( 42, 19, - ( - 11 ) + 70 )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT ALL + 38 DIV 19
----
2

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL + 38 / 19
----
2

query I rowsort
SELECT NULLIF ( + COALESCE ( + 70, - 71 ), + 85 )
----
70

query I rowsort
SELECT DISTINCT + 20 * + 16 AS col2
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT - ( 65 ) + + CASE 70 WHEN + COUNT( * ) * 37 + + 69 THEN NULL WHEN + 67 THEN 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1073
SELECT - ( 65 ) + + CASE 70 WHEN + COUNT ( * ) * 37 + + 69 THEN NULL WHEN + 67 THEN 72 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1074
SELECT - 55 DIV 3 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-1074
SELECT - 55 / 3 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT - ( CASE 73 WHEN - 23 - 69 * + 34 THEN COALESCE ( - ( 69 ), COUNT( * ) * - 88 ) + + 62 WHEN - COUNT( * ) THEN 88 * SUM( 19 * + ( ( + 38 ) ) ) ELSE NULL END ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT - ( CASE 73 WHEN - 23 - 69 * + 34 THEN COALESCE ( - ( 69 ), COUNT ( * ) * - 88 ) + + 62 WHEN - COUNT ( * ) THEN 88 * SUM ( 19 * + ( ( + 38 ) ) ) ELSE NULL END ) * COUNT ( * )
----
NULL

query I rowsort
SELECT + 31 - - 79
----
110

query I rowsort
SELECT ALL - 47 * ( - 70 ) AS col2
----
3290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1078
SELECT DISTINCT + CAST( + 91 AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT + CAST ( + 91 AS INTEGER ) AS col0
----
91

query I rowsort
SELECT DISTINCT - 66 * 8 AS col0
----
-528

query I rowsort
SELECT - 95 * + 57 col1
----
-5415

query I rowsort
SELECT ALL + 48 * + 64 AS col0
----
3072

query I rowsort
SELECT DISTINCT ( - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT ALL ( - MAX( COALESCE ( 78, 85 - 16 ) ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL ( - MAX ( COALESCE ( 78, 85 - 16 ) ) ) AS col1
----
-78

query I rowsort
SELECT - 0 + + 57 col2
----
57

query I rowsort
SELECT + 65 * 51 AS col2
----
3315

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

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

query I rowsort
SELECT - 53 + + 82 col1
----
29

query I rowsort
SELECT - NULLIF ( 6, - 23 + 90 )
----
-6

query I rowsort
SELECT ALL ( - 10 ) * 39 AS col1
----
-390

query I rowsort
SELECT - 29 + 42 col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT ALL + 13 + - COUNT( DISTINCT 86 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL + 13 + - COUNT ( DISTINCT 86 ) AS col1
----
12

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

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

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

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL COUNT ( * ) + 56 AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT + 22 + + ( 64 ) DIV - 40
----
21

skipif mysql # not compatible
query I rowsort label-1094
SELECT + 22 + + ( 64 ) / - 40
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT - 86 + COUNT( - 80 )
----
-85

skipif mysql # not compatible
query I rowsort label-1096
SELECT - 86 + COUNT ( - 80 )
----
-85

query I rowsort
SELECT + ( 83 ) - 62
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT ALL 74 DIV 20
----
3

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL 74 / 20
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT + 39 + ( CAST( - 25 AS SIGNED ) )
----
14

skipif mysql # not compatible
query I rowsort label-1099
SELECT + 39 + ( CAST ( - 25 AS INTEGER ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT + COUNT( * ) - - 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1100
SELECT + COUNT ( * ) - - 6 AS col1
----
7

query I rowsort
SELECT - ( - 90 ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1102
SELECT DISTINCT CASE 15 WHEN CAST( NULL AS SIGNED ) * - 57 THEN 4 * + 15 ELSE - ( 80 ) END + - CASE 54 WHEN - 88 THEN + 52 / - CAST( + 28 / - 58 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT CASE 15 WHEN CAST ( NULL AS INTEGER ) * - 57 THEN 4 * + 15 ELSE - ( 80 ) END + - CASE 54 WHEN - 88 THEN + 52 / - CAST ( + 28 / - 58 AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 95 * - 15 + + 91
----
-1334

onlyif mysql # DIV for integer division: 
query I rowsort label-1104
SELECT ALL 31 DIV - 4 - - 80 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL 31 / - 4 - - 80 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1105
SELECT + CAST( - NULLIF ( 6, 47 ) AS SIGNED ) * - 55 col1
----
330

skipif mysql # not compatible
query I rowsort label-1105
SELECT + CAST ( - NULLIF ( 6, 47 ) AS INTEGER ) * - 55 col1
----
330

query I rowsort
SELECT - 47 * 89 AS col1
----
-4183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1107
SELECT + - 97 + - 63 * COALESCE ( MIN( DISTINCT + 52 ) * - 42, - CAST( NULL AS SIGNED ) * 22, - 47 )
----
137495

skipif mysql # not compatible
query I rowsort label-1107
SELECT + - 97 + - 63 * COALESCE ( MIN ( DISTINCT + 52 ) * - 42, - CAST ( NULL AS INTEGER ) * 22, - 47 )
----
137495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1108
SELECT DISTINCT - ( + 45 ) DIV - COUNT( * ) - CAST( 72 AS SIGNED ) * 43
----
-3051

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT - ( + 45 ) / - COUNT ( * ) - CAST ( 72 AS INTEGER ) * 43
----
-3051

query I rowsort
SELECT + 10 * 71 + - 80 AS col1
----
630

query I rowsort
SELECT + - 48 * 19 AS col1
----
-912

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

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT + + COUNT ( ALL + 79 ) AS col1
----
1

query I rowsort
SELECT - 36 + - 66 col1
----
-102

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

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

query I rowsort
SELECT - 50 + 17
----
-33

query I rowsort
SELECT - + 38 * 71 + 77 AS col0
----
-2621

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT DISTINCT - 43 DIV - 27
----
1

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT - 43 / - 27
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1117
SELECT - 77 DIV 41
----
-1

skipif mysql # not compatible
query I rowsort label-1117
SELECT - 77 / 41
----
-1

query I rowsort
SELECT + + 21 * 71
----
1491

query I rowsort
SELECT ALL + 52 * + 3 AS col0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT ( 30 ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-1120
SELECT ( 30 ) / - 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1121
SELECT ALL - CAST( CAST( + 73 AS SIGNED ) AS SIGNED ) + - 45 * - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL - CAST ( CAST ( + 73 AS INTEGER ) AS INTEGER ) + - 45 * - COUNT ( * )
----
-28

query I rowsort
SELECT 55 * 81 + 8
----
4463

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1123
SELECT ALL + 17 + + - 30 * MIN( ALL 71 * COALESCE ( - 5 DIV - 7, 77, 99 ) + + ( + 23 ) * - 81 ) col0
----
55907

skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL + 17 + + - 30 * MIN ( ALL 71 * COALESCE ( - 5 / - 7, 77, 99 ) + + ( + 23 ) * - 81 ) col0
----
55907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1124
SELECT 34 + + CAST( NULL AS SIGNED ) + + 29 / 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1124
SELECT 34 + + CAST ( NULL AS INTEGER ) + + 29 / 28
----
NULL

query I rowsort
SELECT ALL - 45 + - - 52 col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1126
SELECT ALL + CAST( + 78 AS SIGNED ) + CAST( NULL AS SIGNED ) * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL + CAST ( + 78 AS INTEGER ) + CAST ( NULL AS INTEGER ) * + 62
----
NULL

query I rowsort
SELECT 69 + + ( 46 )
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT ALL + 55 * + + CAST( NULL AS SIGNED ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + 55 * + + CAST ( NULL AS INTEGER ) * 16
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT COUNT( * ) * - 85 * - 55 AS col2
----
4675

skipif mysql # not compatible
query I rowsort label-1130
SELECT COUNT ( * ) * - 85 * - 55 AS col2
----
4675

query I rowsort
SELECT ALL 27 - + + 38 AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT 68 DIV - ( 20 )
----
-3

skipif mysql # not compatible
query I rowsort label-1132
SELECT 68 / - ( 20 )
----
-3

query I rowsort
SELECT 74 + + 46
----
120

query I rowsort
SELECT DISTINCT - 37 * + 17 * 60
----
-37740

query I rowsort
SELECT ALL + 83 - + 38 * ( + 77 )
----
-2843

query I rowsort
SELECT 94 * - 12 AS col0
----
-1128

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

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

query I rowsort
SELECT + 45 * + + 45
----
2025

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT DISTINCT - 99 DIV 86 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT - 99 / 86 AS col2
----
-1

query I rowsort
SELECT - 12 * + 58 - - 8
----
-688

query I rowsort
SELECT - 39 - + - 40 AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-1142
SELECT + + SUM ( - + 18 )
----
-18

query I rowsort
SELECT DISTINCT 26 * 28 + 36 col2
----
764

query I rowsort
SELECT 22 * - COALESCE ( 75, 66 ) AS col0
----
-1650

query I rowsort
SELECT + 88 - + 26
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL - + 36 + - + 88 * - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL - + 36 + - + 88 * - COUNT ( * )
----
52

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

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

query I rowsort
SELECT NULLIF ( 62, - 69 + 43 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL - COALESCE ( MIN( + 16 ), + 1 + - 74, 27 )
----
-16

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL - COALESCE ( MIN ( + 16 ), + 1 + - 74, 27 )
----
-16

query II rowsort
SELECT + 74, + 85 + + 49 * 90 col2
----
74
4495

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1152
SELECT 14, MAX( CAST( + 53 AS SIGNED ) ) * 1 AS col2
----
14
53

skipif mysql # not compatible
query II rowsort label-1152
SELECT 14, MAX ( CAST ( + 53 AS INTEGER ) ) * 1 AS col2
----
14
53

query I rowsort
SELECT 24 + + 15 col2
----
39

query I rowsort
SELECT ALL - 23 * - - 97
----
-2231

query I rowsort
SELECT 43 + + 49 + + 96 * 11 AS col1
----
1148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1156
SELECT 78 DIV ( + CAST( 74 AS SIGNED ) ) * 70 col1
----
70

skipif mysql # not compatible
query I rowsort label-1156
SELECT 78 / ( + CAST ( 74 AS INTEGER ) ) * 70 col1
----
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT DISTINCT MIN( DISTINCT + ( + - 53 ) ) * - 16 AS col0
----
848

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT MIN ( DISTINCT + ( + - 53 ) ) * - 16 AS col0
----
848

query I rowsort
SELECT ALL + 50 - + - 22 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT 59 + COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1160
SELECT 59 + COUNT ( * ) AS col1
----
60

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

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL MAX ( 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1162
SELECT 78 + + 11 DIV + - COUNT( * ) + - 30 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-1162
SELECT 78 + + 11 / + - COUNT ( * ) + - 30 AS col1
----
37

query I rowsort
SELECT 49 * - 44 col1
----
-2156

query I rowsort
SELECT 84 * 60
----
5040

query I rowsort
SELECT 87 + + 16
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL MAX( DISTINCT 7 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL MAX ( DISTINCT 7 ) col1
----
7

query I rowsort
SELECT 3 - 37 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT 74 * + 52 * + CASE COUNT( * ) WHEN 90 - - 49 THEN + 85 * 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1168
SELECT 74 * + 52 * + CASE COUNT ( * ) WHEN 90 - - 49 THEN + 85 * 90 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT 77 + - - COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1169
SELECT 77 + - - COUNT ( * ) AS col2
----
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT - MIN( DISTINCT + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT - MIN ( DISTINCT + 73 )
----
-73

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( - + 84, 16 ) * - 34 AS col1
----
-2856

query I rowsort
SELECT ALL - NULLIF ( - 72, + 97 )
----
72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1176
SELECT + COUNT( * ) AS col1, - 9 + 21 col2
----
1
12

skipif mysql # not compatible
query II rowsort label-1176
SELECT + COUNT ( * ) AS col1, - 9 + 21 col2
----
1
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1177
SELECT 11 DIV 14 DIV COUNT( * ) * 21 + + 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1177
SELECT 11 / 14 / COUNT ( * ) * 21 + + 29 AS col0
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT SUM( ALL - + 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-1179
SELECT SUM ( ALL - + 5 ) AS col2
----
-5

query I rowsort
SELECT - - COALESCE ( ( - + 81 ), - 50 * 11, - 93 + ( + 82 - + 91 ) * + 83 ) * + 86 AS col1
----
-6966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1181
SELECT - + 1 * - - COUNT( * ) + + - 48 - 8 DIV + 37 * COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1181
SELECT - + 1 * - - COUNT ( * ) + + - 48 - 8 / + 37 * COUNT ( * ) AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT + 68 DIV + + 52
----
1

skipif mysql # not compatible
query I rowsort label-1182
SELECT + 68 / + + 52
----
1

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

query I rowsort
SELECT DISTINCT + 93 * - 78 + + 32
----
-7222

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT ALL - 69 * + - 92 + + COUNT( * )
----
6349

skipif mysql # not compatible
query I rowsort label-1185
SELECT ALL - 69 * + - 92 + + COUNT ( * )
----
6349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1186
SELECT + - SUM( 89 ) + - 28 + COUNT( * ) DIV + COUNT( * ) DIV - COUNT( * ) AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-1186
SELECT + - SUM ( 89 ) + - 28 + COUNT ( * ) / + COUNT ( * ) / - COUNT ( * ) AS col1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL - MAX( - - 95 ) * - 60 + + 99
----
5799

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL - MAX ( - - 95 ) * - 60 + + 99
----
5799

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT + COUNT( - 88 ) * + + 9 + - - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-1189
SELECT + COUNT ( - 88 ) * + + 9 + - - COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT SUM( - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-1190
SELECT SUM ( - 51 )
----
-51

query I rowsort
SELECT ALL 58 * - - 60
----
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT MAX( + COALESCE ( ( 62 ), + 16 ) )
----
62

skipif mysql # not compatible
query I rowsort label-1192
SELECT MAX ( + COALESCE ( ( 62 ), + 16 ) )
----
62

query I rowsort
SELECT - COALESCE ( + 31, - 81 ) col0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-1194
SELECT ALL COUNT( * ) * - 63 AS col1, - MAX( ALL 77 )
----
-63
-77

skipif mysql # not compatible
query II rowsort label-1194
SELECT ALL COUNT ( * ) * - 63 AS col1, - MAX ( ALL 77 )
----
-63
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1195
SELECT ALL - SUM( ALL + 55 ) / + COALESCE ( 33, 9 - ( + 1 ) / + 63 ) / + CAST( NULL AS SIGNED ) + + CASE 74 WHEN 54 - - ( COUNT( + 57 ) - COUNT( * ) ) THEN 96 * + 38 WHEN + CASE - COUNT( * ) WHEN 11 / NULLIF ( - MIN( DISTINCT + 52 ), COUNT( * ) * ( 77 ) ) THEN 12 WHEN 23 THEN NULL ELSE NULL END * 84 THEN ( - ( 47 ) ) * + 97 ELSE - COUNT( * ) END * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL - SUM ( ALL + 55 ) / + COALESCE ( 33, 9 - ( + 1 ) / + 63 ) / + CAST ( NULL AS INTEGER ) + + CASE 74 WHEN 54 - - ( COUNT ( + 57 ) - COUNT ( * ) ) THEN 96 * + 38 WHEN + CASE - COUNT ( * ) WHEN 11 / NULLIF ( - MIN ( DISTINCT + 52 ), COUNT ( * ) * ( 77 ) ) THEN 12 WHEN 23 THEN NULL ELSE NULL END * 84 THEN ( - ( 47 ) ) * + 97 ELSE - COUNT ( * ) END * 4
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT + 98 DIV - + 82 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1196
SELECT + 98 / - + 82 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT - NULLIF ( - + 28, - 94 ) * COUNT( * ) DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-1197
SELECT - NULLIF ( - + 28, - 94 ) * COUNT ( * ) / + 51
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1198
SELECT DISTINCT 9 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT 9 / + 76
----
0

query I rowsort
SELECT - 80 * - + 97
----
7760

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT - NULLIF ( - 41, + + COUNT( * ) + 37 ) * + COUNT( 57 )
----
41

skipif mysql # not compatible
query I rowsort label-1200
SELECT - NULLIF ( - 41, + + COUNT ( * ) + 37 ) * + COUNT ( 57 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT ALL - 20 * + MAX( - 89 ) AS col0
----
1780

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL - 20 * + MAX ( - 89 ) AS col0
----
1780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1202
SELECT ALL 8 + MAX( DISTINCT + CAST( ( + 71 ) AS SIGNED ) ) * ( 49 + - 93 ) AS col1
----
-3116

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL 8 + MAX ( DISTINCT + CAST ( ( + 71 ) AS INTEGER ) ) * ( 49 + - 93 ) AS col1
----
-3116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1203
SELECT ALL CASE + - COUNT( * ) WHEN - 94 + + CAST( 55 AS DECIMAL ) THEN NULL WHEN 3 * - 49 THEN NULL ELSE CASE 91 WHEN 94 THEN + 27 WHEN + 82 * 47 + 58 THEN COUNT( DISTINCT - ( - COALESCE ( + CASE + 38 WHEN - 96 / 69 + ( + 26 + - 27 ) THEN NULL ELSE + 69 END, - 45 + - 53 ) ) ) / NULLIF ( 10 * + 89, ( 18 ) ) END * + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL CASE + - COUNT ( * ) WHEN - 94 + + CAST ( 55 AS REAL ) THEN NULL WHEN 3 * - 49 THEN NULL ELSE CASE 91 WHEN 94 THEN + 27 WHEN + 82 * 47 + 58 THEN COUNT ( DISTINCT - ( - COALESCE ( + CASE + 38 WHEN - 96 / 69 + ( + 26 + - 27 ) THEN NULL ELSE + 69 END, - 45 + - 53 ) ) ) / NULLIF ( 10 * + 89, ( 18 ) ) END * + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT DISTINCT MAX( ALL + 25 ) + - + 37 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT MAX ( ALL + 25 ) + - + 37 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL - MAX( ALL 67 ) * 52 AS col0
----
-3484

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL - MAX ( ALL 67 ) * 52 AS col0
----
-3484

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT - 3 + - CASE + 0 WHEN - 57 * + 29 THEN ( + 44 ) * + 1 WHEN + 77 THEN - COUNT( DISTINCT 70 ) END + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1206
SELECT - 3 + - CASE + 0 WHEN - 57 * + 29 THEN ( + 44 ) * + 1 WHEN + 77 THEN - COUNT ( DISTINCT 70 ) END + - 15
----
NULL

query I rowsort
SELECT ALL + + 32 + - COALESCE ( - 14, 33 + 48 ) AS col1
----
46

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

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

query I rowsort
SELECT - 60 - 46
----
-106

query I rowsort
SELECT - + 8 * - 0 + + 5
----
5

query I rowsort
SELECT - 74 + + 29
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1212
SELECT - 15 / + CASE WHEN NOT NULL IN ( - CASE 96 WHEN + CAST( - 0 AS SIGNED ) * + ( + CAST( 65 AS SIGNED ) - + 87 ) + - 51 THEN NULL ELSE 26 * + CAST( COUNT( * ) AS SIGNED ) END ) THEN NULL WHEN NULL NOT BETWEEN + CAST( NULL AS DECIMAL ) + + 34 AND ( 24 - 71 ) THEN 89 - 36 * COUNT( ALL - COALESCE ( 23, + 32 ) ) END * + 68 + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1212
SELECT - 15 / + CASE WHEN NOT NULL IN ( - CASE 96 WHEN + CAST ( - 0 AS INTEGER ) * + ( + CAST ( 65 AS INTEGER ) - + 87 ) + - 51 THEN NULL ELSE 26 * + CAST ( COUNT ( * ) AS INTEGER ) END ) THEN NULL WHEN NULL NOT BETWEEN + CAST ( NULL AS REAL ) + + 34 AND ( 24 - 71 ) THEN 89 - 36 * COUNT ( ALL - COALESCE ( 23, + 32 ) ) END * + 68 + 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1213
SELECT ALL - 64 * CAST( 57 AS SIGNED ) AS col0
----
-3648

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL - 64 * CAST ( 57 AS INTEGER ) AS col0
----
-3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1214
SELECT DISTINCT + + COUNT( * ) DIV - 99 + + + MIN( CAST( + 31 AS SIGNED ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT + + COUNT ( * ) / - 99 + + + MIN ( CAST ( + 31 AS INTEGER ) ) AS col2
----
31

query I rowsort
SELECT ALL + 60 * + - 87 * 39 - 87 * - 82 - 96
----
-196542

query I rowsort
SELECT + 59 * 20 AS col0
----
1180

query I rowsort
SELECT ALL + ( - + NULLIF ( + 92, - 39 ) ) AS col1
----
-92

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1219
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), + 77 + + 24 * 94 + 23 * - 44 ) * - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1219
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), + 77 + + 24 * 94 + 23 * - 44 ) * - 0 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1220
SELECT DISTINCT + 5 DIV 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT + 5 / 47 AS col1
----
0

query I rowsort
SELECT - 57 * - + 67
----
3819

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

skipif mysql # not compatible
query I rowsort label-1222
SELECT MIN ( DISTINCT - 50 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1223
SELECT - CAST( NULL AS SIGNED ) AS col0, - 64 * - NULLIF ( - + 5, + - 65 + - 60 ) * + 41
----
NULL
-13120

skipif mysql # not compatible
query II rowsort label-1223
SELECT - CAST ( NULL AS INTEGER ) AS col0, - 64 * - NULLIF ( - + 5, + - 65 + - 60 ) * + 41
----
NULL
-13120

query I rowsort
SELECT + COALESCE ( + - ( - 63 ), 45 ) + + - 20
----
43

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT ALL 8 + COUNT( * ) * + 19 - 87 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL 8 + COUNT ( * ) * + 19 - 87 AS col1
----
-60

query I rowsort
SELECT DISTINCT 67 + + 25
----
92

query I rowsort
SELECT + 96 + + - 16
----
80

query I rowsort
SELECT ALL 48 + - 31 AS col1
----
17

query I rowsort
SELECT DISTINCT - ( - - 36 )
----
-36

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1234
SELECT ( - SUM( - CAST( + + 40 AS SIGNED ) ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1234
SELECT ( - SUM ( - CAST ( + + 40 AS INTEGER ) ) ) AS col2
----
40

query I rowsort
SELECT ALL 88 + 89 AS col1
----
177

query I rowsort
SELECT DISTINCT 93 + + - 49 AS col2
----
44

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1238
SELECT + AVG ( - CAST( NULL AS SIGNED ) ) / + + 80 + CAST( + 0 AS DECIMAL ) * 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1238
SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) / + + 80 + CAST ( + 0 AS REAL ) * 41 AS col1
----
NULL

query I rowsort
SELECT ALL + 93 + 17 AS col0
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1240
SELECT + 80 * + - 47 DIV + + COUNT( * )
----
-3760

skipif mysql # not compatible
query I rowsort label-1240
SELECT + 80 * + - 47 / + + COUNT ( * )
----
-3760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1241
SELECT ALL 50 * + CAST( + AVG ( DISTINCT + 97 ) AS SIGNED ) AS col1
----
4850

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL 50 * + CAST ( + AVG ( DISTINCT + 97 ) AS INTEGER ) AS col1
----
4850

query I rowsort
SELECT ALL - 24 + + 40
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT 59 + - MIN( ALL - 50 ) * + NULLIF ( - 70, COALESCE ( + 50, + COUNT( * ) + 30, 29 ) * + 1 )
----
-3441

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT 59 + - MIN ( ALL - 50 ) * + NULLIF ( - 70, COALESCE ( + 50, + COUNT ( * ) + 30, 29 ) * + 1 )
----
-3441

query I rowsort
SELECT ALL - 44 - + 3
----
-47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1246
SELECT 99 * + + 20 * - - 42 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1246
SELECT 99 * + + 20 * - - 42 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + NULLIF ( 40, - AVG ( DISTINCT - 50 ) * + 4 ) AS col2
----
40

query II rowsort
SELECT + 46 AS col0, + 5 AS col0
----
46
5

query I rowsort
SELECT + COALESCE ( 90, 50 + - 62, 17 + - 77 * - 41 ) * 31 + + 64
----
2854

query I rowsort
SELECT ( - + 52 ) - + - 86 col0
----
34

query I rowsort
SELECT DISTINCT - + 87 - - 60 AS col0
----
-27

query II rowsort
SELECT + 70, + 6 AS col1
----
70
6

query I rowsort
SELECT DISTINCT + 9 * + 7
----
63

query I rowsort
SELECT ALL + 91 * 92 AS col1
----
8372

query I rowsort
SELECT 68 + 59
----
127

query I rowsort
SELECT ALL + 19 * 26
----
494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1257
SELECT 52 / + CASE + AVG ( + 62 ) WHEN 88 THEN + COUNT( * ) END / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT 52 / + CASE + AVG ( + 62 ) WHEN 88 THEN + COUNT ( * ) END / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 43 * - ( 25 ) + - 1 + - 21 * - 53 AS col0
----
37

query II rowsort
SELECT 17 AS col1, 99
----
17
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1260
SELECT + 81 * + COALESCE ( - 88, - - 25 DIV - 87 DIV - - 52 + - 7 ) + 83 * 4 AS col2
----
-6796

skipif mysql # not compatible
query I rowsort label-1260
SELECT + 81 * + COALESCE ( - 88, - - 25 / - 87 / - - 52 + - 7 ) + 83 * 4 AS col2
----
-6796

onlyif mysql # aggregate syntax: 
query II rowsort label-1261
SELECT ALL - 42, - COUNT( * ) * SUM( - 81 ) AS col0
----
-42
81

skipif mysql # not compatible
query II rowsort label-1261
SELECT ALL - 42, - COUNT ( * ) * SUM ( - 81 ) AS col0
----
-42
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1262
SELECT 77 DIV 33
----
2

skipif mysql # not compatible
query I rowsort label-1262
SELECT 77 / 33
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT DISTINCT - 75 + + SUM( DISTINCT + 43 ) * 3 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - 75 + + SUM ( DISTINCT + 43 ) * 3 AS col1
----
54

query I rowsort
SELECT ALL 91 + + 37 + - - 73
----
201

query I rowsort
SELECT 3 * + 85
----
255

query I rowsort
SELECT ALL - 57 + - - 86 AS col0
----
29

query I rowsort
SELECT DISTINCT - 48 + - 21 * + 88 AS col0
----
-1896

query II rowsort
SELECT DISTINCT + 60 AS col0, 28
----
60
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT ALL - CASE - 1 WHEN + - 29 * - 78 + CAST( + + 66 AS SIGNED ) + ( 26 ) THEN 30 * + ( 5 ) + + 53 END + - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL - CASE - 1 WHEN + - 29 * - 78 + CAST ( + + 66 AS INTEGER ) + ( 26 ) THEN 30 * + ( 5 ) + + 53 END + - 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT DISTINCT MAX( + 0 ) + + + 41 col2
----
41

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT MAX ( + 0 ) + + + 41 col2
----
41

query I rowsort
SELECT ( + 4 ) * + ( 54 )
----
216

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1273
SELECT 10, + CASE - - 3 WHEN - CAST( NULL AS DECIMAL ) + - - COUNT( * ) * 83 THEN + 29 END * 39 AS col0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-1273
SELECT 10, + CASE - - 3 WHEN - CAST ( NULL AS REAL ) + - - COUNT ( * ) * 83 THEN + 29 END * 39 AS col0
----
10
NULL

query I rowsort
SELECT ALL - 28 + CASE - 76 WHEN 38 THEN - 31 END * 86 + 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT DISTINCT MAX( 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT MAX ( 98 ) AS col0
----
98

query I rowsort
SELECT DISTINCT + 15 - - 73
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT + 45 * + 52 AS col1, CASE + CASE - COUNT( * ) WHEN 75 THEN + COUNT( * ) WHEN COUNT( * ) + 59 * - 77 THEN NULL END WHEN ( - 93 ) + + NULLIF ( COUNT( * ), + 21 * - 86 ) THEN + 44 ELSE NULL END
----
2340
NULL

skipif mysql # not compatible
query II rowsort label-1277
SELECT + 45 * + 52 AS col1, CASE + CASE - COUNT ( * ) WHEN 75 THEN + COUNT ( * ) WHEN COUNT ( * ) + 59 * - 77 THEN NULL END WHEN ( - 93 ) + + NULLIF ( COUNT ( * ), + 21 * - 86 ) THEN + 44 ELSE NULL END
----
2340
NULL

query I rowsort
SELECT + 14 * + ( - - 62 ) AS col2
----
868

query I rowsort
SELECT ( 38 ) + - 10
----
28

query I rowsort
SELECT - - 45 col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1281
SELECT NULLIF ( + 6, - + 59 - - + 81 - + - 57 ) * 57 + + 7 DIV 75 AS col1
----
342

skipif mysql # not compatible
query I rowsort label-1281
SELECT NULLIF ( + 6, - + 59 - - + 81 - + - 57 ) * 57 + + 7 / 75 AS col1
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT ALL + 21 * + + COUNT( * ) + - + NULLIF ( + - 28, - COUNT( * ) * + + 15 + - 2 + + COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL + 21 * + + COUNT ( * ) + - + NULLIF ( + - 28, - COUNT ( * ) * + + 15 + - 2 + + COUNT ( * ) )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT - ( - CAST( + + COUNT( * ) AS SIGNED ) ) * + - COUNT( * ) - + + COALESCE ( 90, ( COUNT( * ) ) + 84 )
----
-91

skipif mysql # not compatible
query I rowsort label-1283
SELECT - ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) * + - COUNT ( * ) - + + COALESCE ( 90, ( COUNT ( * ) ) + 84 )
----
-91

query II rowsort
SELECT ALL - + 55 AS col0, + 2 * - 31 AS col1
----
-55
-62

query I rowsort
SELECT - 94 * 4 AS col0
----
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ALL + 23 * + CASE - NULLIF ( COUNT( * ), + + 22 ) WHEN - + COALESCE ( 21, + COUNT( DISTINCT - 70 ) ) / 89 THEN - 73 - 91 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL + 23 * + CASE - NULLIF ( COUNT ( * ), + + 22 ) WHEN - + COALESCE ( 21, + COUNT ( DISTINCT - 70 ) ) / 89 THEN - 73 - 91 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1287
SELECT ALL 99 * - - 70 * + ( ( - CAST( 13 AS SIGNED ) ) ) col0
----
-90090

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL 99 * - - 70 * + ( ( - CAST ( 13 AS INTEGER ) ) ) col0
----
-90090

query I rowsort
SELECT 72 + - 84 * 84
----
-6984

query II rowsort
SELECT 78 * + + 41 AS col2, + ( - 21 )
----
3198
-21

query I rowsort
SELECT ALL 93 * + 9
----
837

query I rowsort
SELECT ALL - 60 + - 75 - - - NULLIF ( 13, + CASE 99 WHEN + - NULLIF ( CASE + 84 WHEN - 9 THEN NULL ELSE + 67 - 73 END, + 36 ) - 4 * - 23 THEN + 90 END - 94 ) AS col1
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT DISTINCT - MIN( + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT - MIN ( + 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT ALL - 61 + + 77 + - + 52 * + MAX( DISTINCT - - NULLIF ( + 59, - 73 ) ) AS col1
----
-3052

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL - 61 + + 77 + - + 52 * + MAX ( DISTINCT - - NULLIF ( + 59, - 73 ) ) AS col1
----
-3052

query I rowsort
SELECT 93 - - 84 AS col2
----
177

onlyif mysql # DIV for integer division: 
query II rowsort label-1295
SELECT 12 DIV + - 1 AS col2, - 65
----
-12
-65

skipif mysql # not compatible
query II rowsort label-1295
SELECT 12 / + - 1 AS col2, - 65
----
-12
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL - SUM( + - ( - + 5 ) ) + + 26 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - SUM ( + - ( - + 5 ) ) + + 26 AS col2
----
21

query I rowsort
SELECT - 85 + 40 + + 97
----
52

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

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL + COUNT ( ALL + + 52 ) + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT - 83 - - COALESCE ( + + 1, + + 56 * + + 92 * - 5 * + + 3 - - COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-1299
SELECT - 83 - - COALESCE ( + + 1, + + 56 * + + 92 * - 5 * + + 3 - - COUNT ( * ) )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1300
SELECT - NULLIF ( 25, - CAST( NULL AS SIGNED ) )
----
-25

skipif mysql # not compatible
query I rowsort label-1300
SELECT - NULLIF ( 25, - CAST ( NULL AS INTEGER ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT - NULLIF ( + 29, - AVG ( + 65 ) ) * - MAX( - 88 ) * + 88 + - 43 AS col1
----
-224619

skipif mysql # not compatible
query I rowsort label-1301
SELECT - NULLIF ( + 29, - AVG ( + 65 ) ) * - MAX ( - 88 ) * + 88 + - 43 AS col1
----
-224619

query II rowsort
SELECT DISTINCT - - 96 * 17 AS col2, 34 * + - 68 * 59 AS col1
----
1632
-136408

query I rowsort
SELECT DISTINCT - 99 - + 51 * - 31 AS col1
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT - 54 * + - COUNT( * ) * - 37 + - ( ( + 5 ) )
----
-2003

skipif mysql # not compatible
query I rowsort label-1304
SELECT - 54 * + - COUNT ( * ) * - 37 + - ( ( + 5 ) )
----
-2003

onlyif mysql # DIV for integer division: 
query I rowsort label-1305
SELECT ALL 93 DIV - + 20 col0
----
-4

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL 93 / - + 20 col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1306
SELECT - + MAX( DISTINCT - 4 ) + - COUNT( * ) + + 79 DIV - 16 AS col1, 80
----
-1
80

skipif mysql # not compatible
query II rowsort label-1306
SELECT - + MAX ( DISTINCT - 4 ) + - COUNT ( * ) + + 79 / - 16 AS col1, 80
----
-1
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1307
SELECT - - 97 + + - 82 AS col1, 17, - CASE 93 WHEN - 9 THEN NULL WHEN CASE - COUNT( 73 ) WHEN CAST( 51 AS SIGNED ) THEN + 46 WHEN 18 * - 39 - - ( 6 ) THEN + CASE AVG ( - 75 ) WHEN CAST( NULL AS SIGNED ) * - ( + 13 ) THEN 25 * MAX( 47 * NULLIF ( + CAST( - 81 AS SIGNED ), 68 ) ) + 60 ELSE 19 END WHEN 29 THEN 8 ELSE NULL END * 39 THEN - 6 + + 24 * 57 ELSE - 95 END AS col0
----
15
17
95

skipif mysql # not compatible
query III rowsort label-1307
SELECT - - 97 + + - 82 AS col1, 17, - CASE 93 WHEN - 9 THEN NULL WHEN CASE - COUNT ( 73 ) WHEN CAST ( 51 AS INTEGER ) THEN + 46 WHEN 18 * - 39 - - ( 6 ) THEN + CASE AVG ( - 75 ) WHEN CAST ( NULL AS INTEGER ) * - ( + 13 ) THEN 25 * MAX ( 47 * NULLIF ( + CAST ( - 81 AS INTEGER ), 68 ) ) + 60 ELSE 19 END WHEN 29 THEN 8 ELSE NULL END * 39 THEN - 6 + + 24 * 57 ELSE - 95 END AS col0
----
15
17
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1308
SELECT CASE + + COUNT( * ) WHEN + 95 THEN - 48 + - CAST( - CASE 82 WHEN COALESCE ( + CASE + 68 WHEN NULLIF ( 38, 11 ) + + 72 / 29 THEN + 7 * - 30 WHEN CAST( 2 AS DECIMAL ) / - 50 + - 23 THEN NULL WHEN 63 THEN NULL END, + CAST( NULL AS SIGNED ) * + 21 + + 95 * - 17 ) + 73 * 70 THEN + 73 WHEN 18 THEN 16 * ( ( - 60 ) ) END AS SIGNED ) + + 22 * ( + 60 ) / 44 WHEN COUNT( - ( - 80 ) ) THEN NULL ELSE 60 + 60 * + 68 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT CASE + + COUNT ( * ) WHEN + 95 THEN - 48 + - CAST ( - CASE 82 WHEN COALESCE ( + CASE + 68 WHEN NULLIF ( 38, 11 ) + + 72 / 29 THEN + 7 * - 30 WHEN CAST ( 2 AS REAL ) / - 50 + - 23 THEN NULL WHEN 63 THEN NULL END, + CAST ( NULL AS INTEGER ) * + 21 + + 95 * - 17 ) + 73 * 70 THEN + 73 WHEN 18 THEN 16 * ( ( - 60 ) ) END AS INTEGER ) + + 22 * ( + 60 ) / 44 WHEN COUNT ( - ( - 80 ) ) THEN NULL ELSE 60 + 60 * + 68 END AS col0
----
NULL

query I rowsort
SELECT + - 47 + + 42 AS col1
----
-5

query I rowsort
SELECT DISTINCT - 92 * + + 53
----
-4876

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT DISTINCT - NULLIF ( - 57, - - 42 * CASE - AVG ( DISTINCT + 21 ) WHEN - - 10 * ( 25 ) + COUNT( * ) THEN NULL ELSE + 24 END + 56 ) * 80
----
4560

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT - NULLIF ( - 57, - - 42 * CASE - AVG ( DISTINCT + 21 ) WHEN - - 10 * ( 25 ) + COUNT ( * ) THEN NULL ELSE + 24 END + 56 ) * 80
----
4560

query I rowsort
SELECT DISTINCT 66 * 0 + - + ( - 67 ) * - + 7 AS col2
----
-469

query I rowsort
SELECT + COALESCE ( ( - 91 ), + 62 * - + 35 ) AS col2
----
-91

query II rowsort
SELECT ALL + 42 col0, + 16
----
42
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1315
SELECT ALL + 17 AS col1, CASE - ( + - 22 ) WHEN + + COUNT( * ) THEN - 58 * - CASE - + 14 WHEN + COALESCE ( 16, + 82 ) THEN NULL WHEN ( - 30 ) * + ( 1 ) THEN NULL WHEN ( 73 ) - - 40 / + 28 THEN 3 * - COUNT( * ) ELSE 40 END WHEN 30 THEN - COUNT( * ) + + ( + 5 ) END AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-1315
SELECT ALL + 17 AS col1, CASE - ( + - 22 ) WHEN + + COUNT ( * ) THEN - 58 * - CASE - + 14 WHEN + COALESCE ( 16, + 82 ) THEN NULL WHEN ( - 30 ) * + ( 1 ) THEN NULL WHEN ( 73 ) - - 40 / + 28 THEN 3 * - COUNT ( * ) ELSE 40 END WHEN 30 THEN - COUNT ( * ) + + ( + 5 ) END AS col2
----
17
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + CASE 83 WHEN + 74 THEN + 53 * + - 9 + - COUNT( * ) + + COUNT( + 12 ) ELSE NULL END + ( 95 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT + CASE 83 WHEN + 74 THEN + 53 * + - 9 + - COUNT ( * ) + + COUNT ( + 12 ) ELSE NULL END + ( 95 ) col2
----
NULL

query I rowsort
SELECT ( - 54 ) col2
----
-54

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

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

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

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

query II rowsort
SELECT ALL 48 * + 8 * - 89 + - 90 AS col0, - 87
----
-34266
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1322
SELECT ALL AVG ( 70 ) * + - 67 + + CASE - 11 WHEN + ( + + 32 ) + - + 49 / + CAST( NULL AS SIGNED ) THEN COUNT( * ) + 72 WHEN ( COALESCE ( + COUNT( * ), - 61, 72 + - 39 ) ) - + 17 THEN 16 + 9 END + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL AVG ( 70 ) * + - 67 + + CASE - 11 WHEN + ( + + 32 ) + - + 49 / + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) + 72 WHEN ( COALESCE ( + COUNT ( * ), - 61, 72 + - 39 ) ) - + 17 THEN 16 + 9 END + 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1323
SELECT CASE + COUNT( * ) WHEN + - 79 THEN - - 16 WHEN 37 + + + 5 * + - 63 * 99 THEN CAST( + 45 AS SIGNED ) * 23 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT CASE + COUNT ( * ) WHEN + - 79 THEN - - 16 WHEN 37 + + + 5 * + - 63 * 99 THEN CAST ( + 45 AS INTEGER ) * 23 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1324
SELECT 93 / + + 17 * 78 + - 0 + - + 45 - ( - COALESCE ( + 30, - 15 + 77, + 51 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1324
SELECT 93 / + + 17 * 78 + - 0 + - + 45 - ( - COALESCE ( + 30, - 15 + 77, + 51 ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1325
SELECT DISTINCT 91 * + CAST( NULL AS SIGNED ) * + 45 + 73 + + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT 91 * + CAST ( NULL AS INTEGER ) * + 45 + 73 + + + 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1326
SELECT ALL + 32 AS col2, 82 * NULLIF ( + CAST( NULL AS SIGNED ), - + ( - 18 ) * + ( CASE 90 WHEN + 86 THEN 43 WHEN - 99 + - COUNT( * ) / - SUM( - 74 * + 50 ) THEN NULL WHEN + NULLIF ( 30, - 10 ) * 77 THEN NULL ELSE 89 END ) - + 98 )
----
32
NULL

skipif mysql # not compatible
query II rowsort label-1326
SELECT ALL + 32 AS col2, 82 * NULLIF ( + CAST ( NULL AS INTEGER ), - + ( - 18 ) * + ( CASE 90 WHEN + 86 THEN 43 WHEN - 99 + - COUNT ( * ) / - SUM ( - 74 * + 50 ) THEN NULL WHEN + NULLIF ( 30, - 10 ) * 77 THEN NULL ELSE 89 END ) - + 98 )
----
32
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT DISTINCT 28 * COUNT( ALL + + 84 ) + + 39 - ( + + 89 )
----
-22

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT 28 * COUNT ( ALL + + 84 ) + + 39 - ( + + 89 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL 3 * + + 10 * + ( - COUNT( * ) ) + 9 + + NULLIF ( + 10, + 9 ) + - 36 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL 3 * + + 10 * + ( - COUNT ( * ) ) + 9 + + NULLIF ( + 10, + 9 ) + - 36 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT + 61 * 90 * + COUNT( * )
----
5490

skipif mysql # not compatible
query I rowsort label-1329
SELECT + 61 * 90 * + COUNT ( * )
----
5490

query II rowsort
SELECT 93 * + 20 + - - 57 AS col2, - ( + - 83 )
----
1917
83

query I rowsort
SELECT COALESCE ( 94, + 55 ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1332
SELECT CASE CAST( 61 AS SIGNED ) WHEN + COUNT( * ) THEN + 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1332
SELECT CASE CAST ( 61 AS INTEGER ) WHEN + COUNT ( * ) THEN + 92 END
----
NULL

query I rowsort
SELECT - 43 + - 30 + - - 80
----
7

query I rowsort
SELECT - + 75 * - 60
----
4500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1335
SELECT DISTINCT + + 3 AS col2, + 18 DIV + NULLIF ( - 74, - ( - + MIN( DISTINCT + 6 ) ) + + + 5 ) * - 58
----
3
0

skipif mysql # not compatible
query II rowsort label-1335
SELECT DISTINCT + + 3 AS col2, + 18 / + NULLIF ( - 74, - ( - + MIN ( DISTINCT + 6 ) ) + + + 5 ) * - 58
----
3
0

query I rowsort
SELECT DISTINCT + - 26 * - 75 - + - 9 AS col2
----
1959

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

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

query I rowsort
SELECT - 69 * 31 AS col1
----
-2139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT + 13 - + - 58 * - COUNT( * ) * + + MAX( - - 6 )
----
-335

skipif mysql # not compatible
query I rowsort label-1340
SELECT + 13 - + - 58 * - COUNT ( * ) * + + MAX ( - - 6 )
----
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT - + CASE + CASE + + 34 WHEN - + 42 THEN NULL WHEN - 22 + ( - 7 ) * + - 25 THEN 31 * + 64 ELSE - 17 END WHEN 47 - COALESCE ( + 25, 26 + - 98 ) THEN NULL ELSE + 38 * + SUM( + 80 ) END * + 45
----
-136800

skipif mysql # not compatible
query I rowsort label-1341
SELECT - + CASE + CASE + + 34 WHEN - + 42 THEN NULL WHEN - 22 + ( - 7 ) * + - 25 THEN 31 * + 64 ELSE - 17 END WHEN 47 - COALESCE ( + 25, 26 + - 98 ) THEN NULL ELSE + 38 * + SUM ( + 80 ) END * + 45
----
-136800

query I rowsort
SELECT - 27 - + 98 + - 15 AS col1
----
-140

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT - 54 * - 73 * + CAST( - + NULLIF ( - + 86, + - 98 / + 18 / - 13 ) AS SIGNED ) AS col1
----
339012

skipif mysql # not compatible
query I rowsort label-1344
SELECT - 54 * - 73 * + CAST ( - + NULLIF ( - + 86, + - 98 / + 18 / - 13 ) AS INTEGER ) AS col1
----
339012

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT - + 24 - - ( + 62 ) - - + MAX( DISTINCT + - 62 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-1345
SELECT - + 24 - - ( + 62 ) - - + MAX ( DISTINCT + - 62 ) AS col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1346
SELECT - ( + 95 ) DIV 25 DIV 62 DIV - - 18 * - 64 AS col1, ( - - NULLIF ( 89, + 58 + ( 36 + COUNT( * ) ) ) ) AS col1
----
0
89

skipif mysql # not compatible
query II rowsort label-1346
SELECT - ( + 95 ) / 25 / 62 / - - 18 * - 64 AS col1, ( - - NULLIF ( 89, + 58 + ( 36 + COUNT ( * ) ) ) ) AS col1
----
0
89

query II rowsort
SELECT ALL + 60 + + 55, 34 AS col0
----
115
34

query I rowsort
SELECT ALL - 5 + + + 24 AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1349
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) AS col2, NULLIF ( + CAST( + - 27 AS SIGNED ), 28 * - CAST( NULL AS SIGNED ) ) + - 28 AS col0
----
1
-55

skipif mysql # not compatible
query II rowsort label-1349
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) AS col2, NULLIF ( + CAST ( + - 27 AS INTEGER ), 28 * - CAST ( NULL AS INTEGER ) ) + - 28 AS col0
----
1
-55

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1351
SELECT - NULLIF ( + 68, - - COUNT( DISTINCT - 18 ) ) + 10 * - 25 * 19, 17 col0
----
-4818
17

skipif mysql # not compatible
query II rowsort label-1351
SELECT - NULLIF ( + 68, - - COUNT ( DISTINCT - 18 ) ) + 10 * - 25 * 19, 17 col0
----
-4818
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1352
SELECT ALL + 83 DIV + SUM( DISTINCT + CAST( - + COALESCE ( - + 87, + 40 ) AS SIGNED ) ) + + 86 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL + 83 / + SUM ( DISTINCT + CAST ( - + COALESCE ( - + 87, + 40 ) AS INTEGER ) ) + + 86 AS col1
----
86

query I rowsort
SELECT + CASE + 3 WHEN - 50 + + 0 THEN + 18 WHEN + 82 THEN 2 END
----
NULL

query I rowsort
SELECT ALL - 70 * + + 39
----
-2730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1355
SELECT ALL 24 DIV + 40 + - + SUM( ALL 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL 24 / + 40 + - + SUM ( ALL 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL COALESCE ( - COUNT( * ), 69 ) * - 2 * - 39 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL COALESCE ( - COUNT ( * ), 69 ) * - 2 * - 39 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT NULLIF ( SUM( ALL + 27 ), 34 ) - 96 + - 70
----
-139

skipif mysql # not compatible
query I rowsort label-1357
SELECT NULLIF ( SUM ( ALL + 27 ), 34 ) - 96 + - 70
----
-139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1358
SELECT DISTINCT COUNT( 70 ) DIV 21 col2
----
0

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT COUNT ( 70 ) / 21 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1359
SELECT - CAST( NULL AS SIGNED ) - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT - CAST ( NULL AS INTEGER ) - 91
----
NULL

query I rowsort
SELECT ALL - 66 * + ( - 38 ) AS col0
----
2508

query I rowsort
SELECT - 62 * - 8 - - + 41 * + 22 AS col0
----
1398

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT ALL COUNT( * ) * - 93 + + COUNT( * ) + - 39 col0
----
-131

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL COUNT ( * ) * - 93 + + COUNT ( * ) + - 39 col0
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1363
SELECT - 84 DIV SUM( - 38 ) * - + COUNT( 61 ) + + 53 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1363
SELECT - 84 / SUM ( - 38 ) * - + COUNT ( 61 ) + + 53 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT ALL COUNT( * ) * + 75 - - ( + 32 ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL COUNT ( * ) * + 75 - - ( + 32 ) AS col2
----
107

query I rowsort
SELECT + 25 + 31 + + + 85
----
141

query I rowsort
SELECT 9 - + 41
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT + COUNT( * ) * - ( ( - 22 ) ) * + 7
----
154

skipif mysql # not compatible
query I rowsort label-1367
SELECT + COUNT ( * ) * - ( ( - 22 ) ) * + 7
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT COUNT( * ) + - + 99 + + + 85
----
-13

skipif mysql # not compatible
query I rowsort label-1368
SELECT COUNT ( * ) + - + 99 + + + 85
----
-13

query I rowsort
SELECT DISTINCT + COALESCE ( - ( - COALESCE ( 79, - - ( + 93 ) ) ), + + NULLIF ( - 29, + + 60 ) + - 13 )
----
79

query I rowsort
SELECT ALL - 64 + 94 * 66 * + + 92
----
570704

query I rowsort
SELECT ALL + + 65 * ( 45 ) AS col0
----
2925

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

skipif mysql # not compatible
query I rowsort label-1372
SELECT - SUM ( ALL - + 28 ) + ( ( COUNT ( * ) ) ) * - - CAST ( NULL AS INTEGER ) + + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL 44 + 78 * - COUNT( * ) * - 39 - + 19 * 38 * + 69
----
-46732

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL 44 + 78 * - COUNT ( * ) * - 39 - + 19 * 38 * + 69
----
-46732

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT 81 + MAX( + + 92 )
----
173

skipif mysql # not compatible
query I rowsort label-1374
SELECT 81 + MAX ( + + 92 )
----
173

query I rowsort
SELECT DISTINCT + 47 + - 78 + + - 25 + + + 37 col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT 71 * COUNT( * ) * - + COUNT( DISTINCT + + 66 ) * + 31 * + 23 AS col0
----
-50623

skipif mysql # not compatible
query I rowsort label-1376
SELECT 71 * COUNT ( * ) * - + COUNT ( DISTINCT + + 66 ) * + 31 * + 23 AS col0
----
-50623

query I rowsort
SELECT DISTINCT + 29 + - - 48 col1
----
77

query I rowsort
SELECT DISTINCT + 47 + - 79 * 23 * 76 AS col2
----
-138045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1379
SELECT 3 + 92 + - - 41 * - AVG ( ALL - 50 ) * + CASE 78 WHEN + 31 THEN + 56 * + - 35 * 7 WHEN CAST( NULLIF ( 29, - 35 * SUM( + 6 / + 32 ) ) AS SIGNED ) THEN + 5 * 75 END + NULLIF ( + 43, 89 / 44 + AVG ( 54 ) * COUNT( * ) ) * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT 3 + 92 + - - 41 * - AVG ( ALL - 50 ) * + CASE 78 WHEN + 31 THEN + 56 * + - 35 * 7 WHEN CAST ( NULLIF ( 29, - 35 * SUM ( + 6 / + 32 ) ) AS INTEGER ) THEN + 5 * 75 END + NULLIF ( + 43, 89 / 44 + AVG ( 54 ) * COUNT ( * ) ) * 18 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 29 - + 89 + - + 0 AS col2, - 4 + - - 88
----
-60
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT 86 DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1381
SELECT 86 / - 89 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT COALESCE ( COUNT( * ), + 8 * COALESCE ( 65, - 29 ), 10 ) * 55 + + + 76
----
131

skipif mysql # not compatible
query I rowsort label-1382
SELECT COALESCE ( COUNT ( * ), + 8 * COALESCE ( 65, - 29 ), 10 ) * 55 + + + 76
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1383
SELECT ALL - CAST( - 36 AS SIGNED ) col1
----
36

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL - CAST ( - 36 AS INTEGER ) col1
----
36

query I rowsort
SELECT ALL + 39 * + + 1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT COUNT( * ) + - 41 + + 56 * - - 82
----
4552

skipif mysql # not compatible
query I rowsort label-1385
SELECT COUNT ( * ) + - 41 + + 56 * - - 82
----
4552

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT 30 * - 32 + + 78 + + - COUNT( * ) col1
----
-883

skipif mysql # not compatible
query I rowsort label-1387
SELECT 30 * - 32 + + 78 + + - COUNT ( * ) col1
----
-883

query II rowsort
SELECT DISTINCT - 60 col1, - 23 * + + 8 - - 4 * + 9 AS col2
----
-60
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT DISTINCT - + MIN( DISTINCT - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT - + MIN ( DISTINCT - 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT DISTINCT + - SUM( DISTINCT 44 ) * 68 + 55
----
-2937

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT + - SUM ( DISTINCT 44 ) * 68 + 55
----
-2937

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

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

query I rowsort
SELECT - 73 * - 21 AS col1
----
1533

query I rowsort
SELECT - - 93 * - 46 - - 2 + + 39
----
-4237

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

query II rowsort
SELECT 75, + 22 AS col2
----
75
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1396
SELECT 47 DIV + 45 + 74 * + MAX( ALL - 62 ) AS col2, ( 49 ) + - - 20
----
-4587
69

skipif mysql # not compatible
query II rowsort label-1396
SELECT 47 / + 45 + 74 * + MAX ( ALL - 62 ) AS col2, ( 49 ) + - - 20
----
-4587
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1397
SELECT ALL + MIN( - - CAST( + 26 AS SIGNED ) ) DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL + MIN ( - - CAST ( + 26 AS INTEGER ) ) / - 80 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1398
SELECT NULLIF ( COUNT( * ), COUNT( * ) + CAST( + 21 AS SIGNED ) ) * 86, + CASE 58 WHEN - 0 + + 76 + + 89 * - 66 THEN NULL WHEN + CAST( NULL AS SIGNED ) + + 50 THEN 53 END AS col0
----
86
NULL

skipif mysql # not compatible
query II rowsort label-1398
SELECT NULLIF ( COUNT ( * ), COUNT ( * ) + CAST ( + 21 AS INTEGER ) ) * 86, + CASE 58 WHEN - 0 + + 76 + + 89 * - 66 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + + 50 THEN 53 END AS col0
----
86
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT CAST( - 46 AS SIGNED ) + - + CAST( - 69 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-1399
SELECT CAST ( - 46 AS INTEGER ) + - + CAST ( - 69 AS INTEGER )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT ALL 48 * + COALESCE ( 45, + 39 ) * 63 - - - COUNT( * )
----
136079

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL 48 * + COALESCE ( 45, + 39 ) * 63 - - - COUNT ( * )
----
136079

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + ( - - MAX( + 10 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1401
SELECT + ( - - MAX ( + 10 ) ) AS col2
----
10

query I rowsort
SELECT ALL 62 + - 41 - - 87 - + 90
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1403
SELECT DISTINCT ( + COUNT( DISTINCT + + 41 ) ) + + 46 + - ( - 49 ) + + + 94 DIV + COUNT( * ) + 31 + + 53 + 75 * + 74 AS col1
----
5824

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT ( + COUNT ( DISTINCT + + 41 ) ) + + 46 + - ( - 49 ) + + + 94 / + COUNT ( * ) + 31 + + 53 + 75 * + 74 AS col1
----
5824

query I rowsort
SELECT ALL 89 + 98 - - 49 AS col2
----
236

query II rowsort
SELECT + 82, - 48 * + 47 AS col0
----
82
-2256

query I rowsort
SELECT DISTINCT 64 + - 87
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT - COUNT( ALL - - 64 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1407
SELECT - COUNT ( ALL - - 64 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT ALL + NULLIF ( + COUNT( * ), - 32 ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + NULLIF ( + COUNT ( * ), - 32 ) + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT ( 91 ) * - 69
----
-6279

onlyif mysql # aggregate syntax: 
query II rowsort label-1410
SELECT ALL + 33 * 40, 44 + + + COUNT( * ) AS col2
----
1320
45

skipif mysql # not compatible
query II rowsort label-1410
SELECT ALL + 33 * 40, 44 + + + COUNT ( * ) AS col2
----
1320
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1411
SELECT DISTINCT 28 - + CAST( NULL AS SIGNED ) * + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1411
SELECT DISTINCT 28 - + CAST ( NULL AS INTEGER ) * + 44 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1413
SELECT + ( CAST( NULL AS DECIMAL ) ) * + ( - 70 ) / - SUM( DISTINCT - 73 ) * 49 + + 29 + - 91 + - 78 * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1413
SELECT + ( CAST ( NULL AS REAL ) ) * + ( - 70 ) / - SUM ( DISTINCT - 73 ) * 49 + + 29 + - 91 + - 78 * - 33
----
NULL

query II rowsort
SELECT 9 AS col2, 73
----
9
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT - COALESCE ( - + 3, 12, + MAX( DISTINCT - ( 88 ) ), 64 ) col2
----
3

skipif mysql # not compatible
query I rowsort label-1415
SELECT - COALESCE ( - + 3, 12, + MAX ( DISTINCT - ( 88 ) ), 64 ) col2
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT - COUNT( * ) + + - 5
----
-6

skipif mysql # not compatible
query I rowsort label-1417
SELECT - COUNT ( * ) + + - 5
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT DISTINCT SUM( DISTINCT - - 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT SUM ( DISTINCT - - 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-1419
SELECT COALESCE ( + - 38, - - COUNT( * ) * - 31 - + 95, - + 14 ) AS col1, + 95 + - + 37 AS col1
----
-38
58

skipif mysql # not compatible
query II rowsort label-1419
SELECT COALESCE ( + - 38, - - COUNT ( * ) * - 31 - + 95, - + 14 ) AS col1, + 95 + - + 37 AS col1
----
-38
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1420
SELECT ALL - 71 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL - 71 / - 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1421
SELECT DISTINCT + 63, 96 + - ( CAST( + 42 AS SIGNED ) ) AS col1
----
63
54

skipif mysql # not compatible
query II rowsort label-1421
SELECT DISTINCT + 63, 96 + - ( CAST ( + 42 AS INTEGER ) ) AS col1
----
63
54

query I rowsort
SELECT ALL + COALESCE ( + 70, - + ( - - 88 ) )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1423
SELECT + 63, SUM( ALL - 90 ) AS col1
----
63
-90

skipif mysql # not compatible
query II rowsort label-1423
SELECT + 63, SUM ( ALL - 90 ) AS col1
----
63
-90

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1425
SELECT ALL - MIN( ALL 59 ) DIV + - 32 + - 4 * - 19 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - MIN ( ALL 59 ) / + - 32 + - 4 * - 19 AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1426
SELECT + + NULLIF ( + + COALESCE ( 19, 51 * + NULLIF ( - 69, + - ( + 42 ) ) * + CAST( + + 75 AS SIGNED ) + - 81 * 72, + 52 * + 53 ), 35 + - 23 DIV + 80 ) DIV 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT + + NULLIF ( + + COALESCE ( 19, 51 * + NULLIF ( - 69, + - ( + 42 ) ) * + CAST ( + + 75 AS INTEGER ) + - 81 * 72, + 52 * + 53 ), 35 + - 23 / + 80 ) / 27 AS col2
----
0

query II rowsort
SELECT 27 * - 33 - + NULLIF ( - + 65, AVG ( 13 ) ) AS col1, + ( 46 ) col1
----
-826
46

query I rowsort
SELECT + NULLIF ( 22, 5 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT ALL - ( + - 1 ) * 20 + + + 86 + + + CAST( NULL AS SIGNED ) * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL - ( + - 1 ) * 20 + + + 86 + + + CAST ( NULL AS INTEGER ) * 36 AS col2
----
NULL

query II rowsort
SELECT + ( - 26 ) AS col0, - 87
----
-26
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT DISTINCT - 31 * + COUNT( * ) * + 63 + - 79 + + 38 col2
----
-1994

skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT - 31 * + COUNT ( * ) * + 63 + - 79 + + 38 col2
----
-1994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT ALL - ( ( 38 ) ) * + 32 + - + 58 + + + 67 * + - AVG ( + - 34 ) / ( - - 94 ) * - - ( 71 ) * 38 + + 0 * 78 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL - ( ( 38 ) ) * + 32 + - + 58 + + + 67 * + - AVG ( + - 34 ) / ( - - 94 ) * - - ( 71 ) * 38 + + 0 * 78 + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - - 86 - - 77 AS col2
----
163

query II rowsort
SELECT DISTINCT + + 55 AS col2, + 55
----
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT MAX( DISTINCT + 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1435
SELECT MAX ( DISTINCT + 44 ) AS col1
----
44

query I rowsort
SELECT + COALESCE ( - + 32, 1 ) AS col1
----
-32

query I rowsort
SELECT - + 51 + + + 53
----
2

query II rowsort
SELECT + 89, - 37 col1
----
89
-37

query II rowsort
SELECT ALL + 93, - 24 AS col1
----
93
-24

onlyif mysql # aggregate syntax: 
query III rowsort label-1440
SELECT ALL COUNT( * ) * - COUNT( * ) * + 39 * COUNT( * ) + - MAX( ALL + - 38 ) col1, 95 AS col1, 69 AS col1
----
-1
95
69

skipif mysql # not compatible
query III rowsort label-1440
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + 39 * COUNT ( * ) + - MAX ( ALL + - 38 ) col1, 95 AS col1, 69 AS col1
----
-1
95
69

query I rowsort
SELECT 76 * 40 * + + 0 - + + 66 + + 19 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT + SUM( - ( + + 87 ) ) - - 61
----
-26

skipif mysql # not compatible
query I rowsort label-1442
SELECT + SUM ( - ( + + 87 ) ) - - 61
----
-26

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

skipif mysql # not compatible
query I rowsort label-1443
SELECT - CAST ( NULL AS INTEGER ) + 35 / 54 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1444
SELECT - 11, 93 + + + CAST( - AVG ( 62 ) AS SIGNED ) col1
----
-11
31

skipif mysql # not compatible
query II rowsort label-1444
SELECT - 11, 93 + + + CAST ( - AVG ( 62 ) AS INTEGER ) col1
----
-11
31

query I rowsort
SELECT + 5 * + 84
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT ALL 16 * - 95 * MAX( + 5 ) AS col2
----
-7600

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL 16 * - 95 * MAX ( + 5 ) AS col2
----
-7600

query I rowsort
SELECT ALL 63 - - 0
----
63

query I rowsort
SELECT - 69 * + 26 AS col1
----
-1794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1449
SELECT + 75 * 6 DIV + SUM( DISTINCT + - 29 )
----
-15

skipif mysql # not compatible
query I rowsort label-1449
SELECT + 75 * 6 / + SUM ( DISTINCT + - 29 )
----
-15

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1451
SELECT ALL CASE - - 47 WHEN - 33 * 20 + + MIN( - ( 78 ) ) * 6 + - - 46 THEN NULL WHEN ( - 99 ) * - 40 + 71 / COUNT( * ) THEN NULL WHEN 68 / - 66 + 25 / CASE WHEN + CAST( 32 AS SIGNED ) IS NOT NULL THEN 20 WHEN NOT 13 IN ( - 78 - + 44 ) THEN NULL ELSE + 76 * NULLIF ( 96, 90 + MAX( DISTINCT + 91 ) ) END THEN NULL ELSE + COALESCE ( - 69, + 92, NULLIF ( 50, 15 * - 59 ) * COUNT( * ) + + 83 ) END * + MAX( DISTINCT ( - 15 ) ) AS col1
----
1035

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL CASE - - 47 WHEN - 33 * 20 + + MIN ( - ( 78 ) ) * 6 + - - 46 THEN NULL WHEN ( - 99 ) * - 40 + 71 / COUNT ( * ) THEN NULL WHEN 68 / - 66 + 25 / CASE WHEN + CAST ( 32 AS INTEGER ) IS NOT NULL THEN 20 WHEN NOT 13 IN ( - 78 - + 44 ) THEN NULL ELSE + 76 * NULLIF ( 96, 90 + MAX ( DISTINCT + 91 ) ) END THEN NULL ELSE + COALESCE ( - 69, + 92, NULLIF ( 50, 15 * - 59 ) * COUNT ( * ) + + 83 ) END * + MAX ( DISTINCT ( - 15 ) ) AS col1
----
1035

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1452
SELECT + CAST( - - 77 AS SIGNED ) + - 37
----
40

skipif mysql # not compatible
query I rowsort label-1452
SELECT + CAST ( - - 77 AS INTEGER ) + - 37
----
40

query I rowsort
SELECT - COALESCE ( 25, - - 29, 19 + + + 19 ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1454
SELECT + 39 + 8 + - - CASE + 49 WHEN 44 THEN + COALESCE ( CAST( - - 3 AS SIGNED ), 39 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT + 39 + 8 + - - CASE + 49 WHEN 44 THEN + COALESCE ( CAST ( - - 3 AS INTEGER ), 39 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1455
SELECT ALL COUNT( - 18 ) AS col0, - 37 col0
----
1
-37

skipif mysql # not compatible
query II rowsort label-1455
SELECT ALL COUNT ( - 18 ) AS col0, - 37 col0
----
1
-37

query I rowsort
SELECT + 9 + - - 40
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT + 85 + - 86 + + 13 * + - 87 * + 3 + COUNT( * ) AS col0
----
-3393

skipif mysql # not compatible
query I rowsort label-1457
SELECT + 85 + - 86 + + 13 * + - 87 * + 3 + COUNT ( * ) AS col0
----
-3393

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1458
SELECT - CAST( - + 76 AS SIGNED ), 4 * + 81 AS col0
----
76
324

skipif mysql # not compatible
query II rowsort label-1458
SELECT - CAST ( - + 76 AS INTEGER ), 4 * + 81 AS col0
----
76
324

onlyif mysql # DIV for integer division: 
query I rowsort label-1459
SELECT ALL + 65 DIV - 50 + + 48
----
47

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL + 65 / - 50 + + 48
----
47

query I rowsort
SELECT + 73 + + + 11 AS col1
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1461
SELECT ALL - + 65 DIV + CAST( 86 AS SIGNED ) + 65 + + - 51 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL - + 65 / + CAST ( 86 AS INTEGER ) + 65 + + - 51 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1462
SELECT 76 DIV - COUNT( * ) - 40 + - 32 - - + 50 + 89 * + ( 8 ) col0
----
614

skipif mysql # not compatible
query I rowsort label-1462
SELECT 76 / - COUNT ( * ) - 40 + - 32 - - + 50 + 89 * + ( 8 ) col0
----
614

onlyif mysql # DIV for integer division: 
query I rowsort label-1463
SELECT DISTINCT + + 79 DIV - - 73 + - 37 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT + + 79 / - - 73 + - 37 AS col0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1464
SELECT ALL - COUNT( * ) DIV - 60 + 51 * - 62 - 28 AS col2, - 80 AS col0
----
-3190
-80

skipif mysql # not compatible
query II rowsort label-1464
SELECT ALL - COUNT ( * ) / - 60 + 51 * - 62 - 28 AS col2, - 80 AS col0
----
-3190
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT - - 41 + - - MIN( 91 ) * 52
----
4773

skipif mysql # not compatible
query I rowsort label-1465
SELECT - - 41 + - - MIN ( 91 ) * 52
----
4773

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

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

query I rowsort
SELECT ALL + + 88 col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1468
SELECT - + 66 + CAST( NULL AS SIGNED ) + - + COALESCE ( - 19, - + COUNT( * ) / + 31 + + COUNT( * ), 15 ) * 8 * - + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT - + 66 + CAST ( NULL AS INTEGER ) + - + COALESCE ( - 19, - + COUNT ( * ) / + 31 + + COUNT ( * ), 15 ) * 8 * - + 58 AS col1
----
NULL

query II rowsort
SELECT + 66 * + + 72, + ( + 85 ) AS col2
----
4752
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1470
SELECT + + 76 * - - CAST( + 95 AS SIGNED ) * + 18 + - - 95 AS col1, - ( + 32 ) * CAST( COUNT( * ) AS SIGNED ) AS col0
----
130055
-32

skipif mysql # not compatible
query II rowsort label-1470
SELECT + + 76 * - - CAST ( + 95 AS INTEGER ) * + 18 + - - 95 AS col1, - ( + 32 ) * CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
130055
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT DISTINCT + COUNT( * ) * - 56 - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT + COUNT ( * ) * - 56 - COUNT ( * )
----
-57

query I rowsort
SELECT 97 * + COALESCE ( COALESCE ( - 93, - - ( 23 ), + + 38 * + + 96 ), - 56 ) * - 85 * + 15 AS col1
----
11501775

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1473
SELECT ALL - 43 * + 4 * - 70 * - CAST( NULL AS SIGNED ), 87 DIV - 62 - + 56 - 6 AS col1
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-1473
SELECT ALL - 43 * + 4 * - 70 * - CAST ( NULL AS INTEGER ), 87 / - 62 - + 56 - 6 AS col1
----
NULL
-63

query I rowsort
SELECT DISTINCT - 25 * - 32 AS col1
----
800

query I rowsort
SELECT 22 * - + 76 AS col2
----
-1672

query I rowsort
SELECT 96 - 12
----
84

query II rowsort
SELECT 34 AS col0, 72 AS col1
----
34
72

query I rowsort
SELECT 6 + - 63 * + 84 col0
----
-5286

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT 12 DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-1479
SELECT 12 / 24
----
0

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

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

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

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

query I rowsort
SELECT ALL - CASE - 21 WHEN 74 + - - 52 * 66 * 51 THEN 13 ELSE + + 64 END * - 31 + - 91 * - 78 * 84 * - 80
----
-47696576

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1483
SELECT DISTINCT - 26 + 85 * ( + + NULLIF ( - COUNT( DISTINCT + 61 ), + - COUNT( * ) ) ) * + - COALESCE ( COUNT( * ), + 15 * - CAST( NULL AS DECIMAL ) * + 80 + - 35 + - ( - 3 ) * + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT - 26 + 85 * ( + + NULLIF ( - COUNT ( DISTINCT + 61 ), + - COUNT ( * ) ) ) * + - COALESCE ( COUNT ( * ), + 15 * - CAST ( NULL AS REAL ) * + 80 + - 35 + - ( - 3 ) * + 80 )
----
NULL

query I rowsort
SELECT 41 - + 68
----
-27

query II rowsort
SELECT - 4, - 21 AS col0
----
-4
-21

query I rowsort
SELECT ALL 67 + + 22
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1487
SELECT ALL COALESCE ( - 80, - + 77 * - COUNT( * ) DIV 97 * + ( - 83 ) DIV + COUNT( * ) * - + CAST( NULL AS SIGNED ) - - 52 - + 21 + + + 57 ) + - + 23 * 94
----
-2242

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL COALESCE ( - 80, - + 77 * - COUNT ( * ) / 97 * + ( - 83 ) / + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) - - 52 - + 21 + + + 57 ) + - + 23 * 94
----
-2242

query I rowsort
SELECT 40 * - 77 * + 48
----
-147840

query I rowsort
SELECT ALL - 30 + - - 25 AS col1
----
-5

query II rowsort
SELECT 69 col1, 29 + + 98
----
69
127

query I rowsort
SELECT ALL - 50 + - - 21
----
-29

query II rowsort
SELECT + - 33 AS col2, + 88 - + + 89 AS col0
----
-33
-1

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

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL 28 + + COUNT ( * ) AS col1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1494
SELECT 63 * + + 87 * - - CAST( NULL AS SIGNED ) * + - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT 63 * + + 87 * - - CAST ( NULL AS INTEGER ) * + - 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1495
SELECT DISTINCT - + 76, COUNT( * ) * 52 AS col1
----
-76
52

skipif mysql # not compatible
query II rowsort label-1495
SELECT DISTINCT - + 76, COUNT ( * ) * 52 AS col1
----
-76
52

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1497
SELECT - 31 * - 22 + + MIN( - 20 ) + + - COALESCE ( + - MIN( DISTINCT COALESCE ( 7, 41 * + 86 DIV CASE - - 87 WHEN + 11 THEN + 14 + + 48 END + + 13 ) ), 70 ) + + MIN( - 35 ) col0
----
634

skipif mysql # not compatible
query I rowsort label-1497
SELECT - 31 * - 22 + + MIN ( - 20 ) + + - COALESCE ( + - MIN ( DISTINCT COALESCE ( 7, 41 * + 86 / CASE - - 87 WHEN + 11 THEN + 14 + + 48 END + + 13 ) ), 70 ) + + MIN ( - 35 ) col0
----
634

onlyif mysql # DIV for integer division: 
query I rowsort label-1498
SELECT + + 79 DIV - 85 + 11 + + 78 * + ( + + 91 )
----
7109

skipif mysql # not compatible
query I rowsort label-1498
SELECT + + 79 / - 85 + 11 + + 78 * + ( + + 91 )
----
7109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT ALL CAST( NULL AS SIGNED ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL CAST ( NULL AS INTEGER ) * 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT + SUM( DISTINCT - 31 ) + - + 42
----
-73

skipif mysql # not compatible
query I rowsort label-1500
SELECT + SUM ( DISTINCT - 31 ) + - + 42
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1501
SELECT ALL - CASE - - ( 60 ) WHEN 66 / - COUNT( * ) THEN 47 ELSE NULL END * CAST( NULL AS SIGNED ) * + MIN( DISTINCT 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL - CASE - - ( 60 ) WHEN 66 / - COUNT ( * ) THEN 47 ELSE NULL END * CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT 76 )
----
NULL

query I rowsort
SELECT + 0 * - ( - 70 ) * 3
----
0

query I rowsort
SELECT ALL - ( - 12 ) AS col1
----
12

query II rowsort
SELECT ALL - + 58 AS col0, 47
----
-58
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1505
SELECT - 68 * - CAST( + 80 AS SIGNED ) + - NULLIF ( COUNT( * ), + 63 * + 22 + - + COUNT( * ) - 60 * - 94 + - 53 * 24 / + CASE 83 WHEN - COUNT( * ) + + 91 THEN 76 * 64 + - 92 * + NULLIF ( 92, - 50 + + 58 / + 51 ) END ) + 75 * 42 AS col1
----
8589

skipif mysql # not compatible
query I rowsort label-1505
SELECT - 68 * - CAST ( + 80 AS INTEGER ) + - NULLIF ( COUNT ( * ), + 63 * + 22 + - + COUNT ( * ) - 60 * - 94 + - 53 * 24 / + CASE 83 WHEN - COUNT ( * ) + + 91 THEN 76 * 64 + - 92 * + NULLIF ( 92, - 50 + + 58 / + 51 ) END ) + 75 * 42 AS col1
----
8589

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1506
SELECT ( CASE - 92 WHEN - 38 THEN 24 END ) * + - NULLIF ( + + 52, 42 * - COALESCE ( - 90, - CAST( NULL AS DECIMAL ) * + 62 ) * - CAST( NULL AS DECIMAL ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT ( CASE - 92 WHEN - 38 THEN 24 END ) * + - NULLIF ( + + 52, 42 * - COALESCE ( - 90, - CAST ( NULL AS REAL ) * + 62 ) * - CAST ( NULL AS REAL ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1507
SELECT ALL + 84 DIV - 12 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL + 84 / - 12 AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT 22 DIV - + MAX( 24 ) * + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1508
SELECT 22 / - + MAX ( 24 ) * + 17 AS col1
----
0

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

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

query I rowsort
SELECT 3 * 77
----
231

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

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

query II rowsort
SELECT 15 * + 83 AS col0, + 28
----
1245
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1513
SELECT ALL - CAST( - 72 AS SIGNED ) * 20 - - ( - + 81 )
----
1359

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL - CAST ( - 72 AS INTEGER ) * 20 - - ( - + 81 )
----
1359

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1514
SELECT ALL - NULLIF ( ( ( + + 30 ) ), - 58 * + 12 + - NULLIF ( + 80, - + 83 * - + 68 ) / - CAST( + 2 AS SIGNED ) * 30 * + 6 + 96 + + 77 ) * - 66
----
1980

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL - NULLIF ( ( ( + + 30 ) ), - 58 * + 12 + - NULLIF ( + 80, - + 83 * - + 68 ) / - CAST ( + 2 AS INTEGER ) * 30 * + 6 + 96 + + 77 ) * - 66
----
1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1515
SELECT ALL + ( ( - 67 ) ) + - - CAST( NULL AS SIGNED ), + 49 + + 78 - - + 0 + + 72 - + - COUNT( * ) * - + CAST( - NULLIF ( - 22, + 40 / + + CAST( + COUNT( * ) AS SIGNED ) - + CAST( - 72 AS SIGNED ) ) AS SIGNED ) + + 7 * 99 AS col1
----
NULL
870

skipif mysql # not compatible
query II rowsort label-1515
SELECT ALL + ( ( - 67 ) ) + - - CAST ( NULL AS INTEGER ), + 49 + + 78 - - + 0 + + 72 - + - COUNT ( * ) * - + CAST ( - NULLIF ( - 22, + 40 / + + CAST ( + COUNT ( * ) AS INTEGER ) - + CAST ( - 72 AS INTEGER ) ) AS INTEGER ) + + 7 * 99 AS col1
----
NULL
870

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT DISTINCT + ( + - SUM( - 35 ) ) + 83
----
118

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT + ( + - SUM ( - 35 ) ) + 83
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1517
SELECT 27 + - CAST( NULL AS DECIMAL ) * - COUNT( * ) + + 13 - + ( + + COUNT( * ) ) * - CAST( NULL AS SIGNED ) - + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT 27 + - CAST ( NULL AS REAL ) * - COUNT ( * ) + + 13 - + ( + + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) - + 17 AS col0
----
NULL

query I rowsort
SELECT 31 * 51 * - 26 col2
----
-41106

query I rowsort
SELECT 37 + + 80
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1520
SELECT ALL + 77 + - 83 + - 96 DIV 50 * + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL + 77 + - 83 + - 96 / 50 * + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ALL - ( COUNT( * ) ) + COALESCE ( + ( + ( + 46 ) ), + 9 + - - 16 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL - ( COUNT ( * ) ) + COALESCE ( + ( + ( + 46 ) ), + 9 + - - 16 ) AS col2
----
45

query I rowsort
SELECT DISTINCT 55 * 46 AS col2
----
2530

query I rowsort
SELECT ALL + 21 + 82 AS col2
----
103

query I rowsort
SELECT - 73 * - 29
----
2117

onlyif mysql # DIV for integer division: 
query I rowsort label-1525
SELECT ALL + 10 DIV + 21 * 31 - - 94
----
94

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL + 10 / + 21 * 31 - - 94
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1526
SELECT - 82 + - 42 DIV + 61 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-1526
SELECT - 82 + - 42 / + 61 AS col2
----
-82

query I rowsort
SELECT ALL - - 88 - + 13 * + + 44 AS col2
----
-484

query I rowsort
SELECT - 39 * - 31
----
1209

query I rowsort
SELECT + 48 + - 33 * 90 + + - 75 AS col1
----
-2997

onlyif mysql # aggregate syntax: 
query I rowsort label-1530
SELECT - CASE + - 13 WHEN - - 53 * + + 62 THEN 45 + + + 13 ELSE + COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1530
SELECT - CASE + - 13 WHEN - - 53 * + + 62 THEN 45 + + + 13 ELSE + COUNT ( * ) END AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT + COUNT( * ) * - 20 * - - 53 + - 95 AS col2
----
-1155

skipif mysql # not compatible
query I rowsort label-1531
SELECT + COUNT ( * ) * - 20 * - - 53 + - 95 AS col2
----
-1155

query I rowsort
SELECT + 32 + + 28 * + - 56
----
-1536

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT 16 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-1533
SELECT 16 / + 66
----
0

query II rowsort
SELECT + 75 * - 51 AS col0, + 73
----
-3825
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1535
SELECT DISTINCT + 24 * + - 77 - MIN( - - 99 ), CAST( NULL AS SIGNED ) + + 82 AS col2
----
-1947
NULL

skipif mysql # not compatible
query II rowsort label-1535
SELECT DISTINCT + 24 * + - 77 - MIN ( - - 99 ), CAST ( NULL AS INTEGER ) + + 82 AS col2
----
-1947
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1536
SELECT + CAST( - 32 AS SIGNED ) col1, COUNT( * ) + + 15 AS col1
----
-32
16

skipif mysql # not compatible
query II rowsort label-1536
SELECT + CAST ( - 32 AS INTEGER ) col1, COUNT ( * ) + + 15 AS col1
----
-32
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1537
SELECT CAST( - 89 AS SIGNED ) / 58 + - CAST( NULL AS SIGNED ) * + 11 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT CAST ( - 89 AS INTEGER ) / 58 + - CAST ( NULL AS INTEGER ) * + 11 + + COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT - 55 * - COUNT( * ) * + - 57
----
-3135

skipif mysql # not compatible
query I rowsort label-1539
SELECT - 55 * - COUNT ( * ) * + - 57
----
-3135

query I rowsort
SELECT - - 24 * + 16 + 59
----
443

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

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

query I rowsort
SELECT + 10 * 58 * - 14
----
-8120

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

skipif mysql # not compatible
query I rowsort label-1543
SELECT SUM ( ALL - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT - 28 + + 60 + - 46 + + + 43 * NULLIF ( - 64, COUNT( * ) )
----
-2766

skipif mysql # not compatible
query I rowsort label-1544
SELECT - 28 + + 60 + - 46 + + + 43 * NULLIF ( - 64, COUNT ( * ) )
----
-2766

query I rowsort
SELECT + 40 * - 72
----
-2880

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

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

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

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL 4 + COUNT ( * ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1548
SELECT + 75 * COALESCE ( + 94, 73 + CAST( NULL AS SIGNED ), 12 * + 90 )
----
7050

skipif mysql # not compatible
query I rowsort label-1548
SELECT + 75 * COALESCE ( + 94, 73 + CAST ( NULL AS INTEGER ), 12 * + 90 )
----
7050

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT + CASE - 74 WHEN + 32 THEN + - MIN( 31 ) WHEN AVG ( + 48 ) THEN 94 WHEN + 30 + - 66 * + + 67 THEN - SUM( - + 68 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT + CASE - 74 WHEN + 32 THEN + - MIN ( 31 ) WHEN AVG ( + 48 ) THEN 94 WHEN + 30 + - 66 * + + 67 THEN - SUM ( - + 68 ) END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL ( + 73 ) + - 40 * - + 97
----
3953

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1552
SELECT - CASE - 76 WHEN + - 75 THEN - CAST( NULL AS DECIMAL ) * + - 87 * + 6 * 0 + + + 36 + 93 * + + 26 + - - 71 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT - CASE - 76 WHEN + - 75 THEN - CAST ( NULL AS REAL ) * + - 87 * + 6 * 0 + + + 36 + 93 * + + 26 + - - 71 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 21 * + ( 53 )
----
-1113

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL COUNT( * ) + - 63 + - 82 * + MAX( 92 ) + + 11 AS col0
----
-7595

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL COUNT ( * ) + - 63 + - 82 * + MAX ( 92 ) + + 11 AS col0
----
-7595

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT - NULLIF ( ( - 97 ), 80 * + COUNT( * ) * - - 48 )
----
97

skipif mysql # not compatible
query I rowsort label-1556
SELECT - NULLIF ( ( - 97 ), 80 * + COUNT ( * ) * - - 48 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT + 8 - 68 DIV 94 * + + 64 col0
----
8

skipif mysql # not compatible
query I rowsort label-1557
SELECT + 8 - 68 / 94 * + + 64 col0
----
8

query I rowsort
SELECT - 14 * + - NULLIF ( - COALESCE ( + 64, - - 25 ), + 93 )
----
-896

query I rowsort
SELECT ALL - 18 * + 40
----
-720

query I rowsort
SELECT ALL + 45 * 70
----
3150

query I rowsort
SELECT ALL - 91 - 86 + 70 + + 41 + 59 * - - ( - + 71 ) * - 12 * 1 * + 88 + + - 42 + + - 64 * - 33 * 68
----
4567092

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1562
SELECT DISTINCT + 36 * + COALESCE ( + 61, + 12 - + 78 + - 93 + - - 30 DIV + + 20 * + + 85 + - 2 + - MIN( ALL 12 ) * - MAX( DISTINCT - + 74 ) * 8 * CASE WHEN NOT 66 * 24 IS NULL THEN 35 - - 67 ELSE NULL END ) AS col0
----
2196

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT + 36 * + COALESCE ( + 61, + 12 - + 78 + - 93 + - - 30 / + + 20 * + + 85 + - 2 + - MIN ( ALL 12 ) * - MAX ( DISTINCT - + 74 ) * 8 * CASE WHEN NOT 66 * 24 IS NULL THEN 35 - - 67 ELSE NULL END ) AS col0
----
2196

query I rowsort
SELECT DISTINCT + - 98 * - 15 * - 29 * + 82
----
-3495660

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT - 71 - 56 * - 31 * - COUNT( * )
----
-1807

skipif mysql # not compatible
query I rowsort label-1564
SELECT - 71 - 56 * - 31 * - COUNT ( * )
----
-1807

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL - - CASE - 6 WHEN + - COUNT( * ) * + - 24 THEN - 33 * - 73 * - + 32 ELSE NULL END - - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL - - CASE - 6 WHEN + - COUNT ( * ) * + - 24 THEN - 33 * - 73 * - + 32 ELSE NULL END - - 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT - MIN( - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-1566
SELECT - MIN ( - 76 )
----
76

query II rowsort
SELECT - 79 col2, - 68
----
-79
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-1568
SELECT - - COUNT( * ) * - 82 * 45 AS col1, 40
----
-3690
40

skipif mysql # not compatible
query II rowsort label-1568
SELECT - - COUNT ( * ) * - 82 * 45 AS col1, 40
----
-3690
40

query I rowsort
SELECT - + 34 + 8 + 25
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT - 73 * - COALESCE ( + + COUNT( ALL + 83 ), - 68 ) + 4
----
77

skipif mysql # not compatible
query I rowsort label-1571
SELECT - 73 * - COALESCE ( + + COUNT ( ALL + 83 ), - 68 ) + 4
----
77

query I rowsort
SELECT ALL + - 72 * + 10 AS col1
----
-720

query II rowsort
SELECT + + 64 AS col1, 49 + - + CASE + 63 WHEN - - AVG ( 32 ) THEN NULL WHEN + ( + ( + + 93 ) ) THEN NULL ELSE - - 43 * - ( - - 82 ) * 65 END
----
64
229239

query I rowsort
SELECT ALL + - 56 col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1575
SELECT DISTINCT + 4 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT + 4 / 92 AS col2
----
0

query I rowsort
SELECT - 0 + 29
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1577
SELECT + MAX( ALL + - 90 ) * - - 90 * + 94 + - 84 * 57, - 81 AS col2
----
-766188
-81

skipif mysql # not compatible
query II rowsort label-1577
SELECT + MAX ( ALL + - 90 ) * - - 90 * + 94 + - 84 * 57, - 81 AS col2
----
-766188
-81

query I rowsort
SELECT + + 77 * + 16 AS col1
----
1232

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

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

query I rowsort
SELECT - - 66 + - 30 * 58
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT - - 8 * - MIN( DISTINCT + 98 ) AS col1
----
-784

skipif mysql # not compatible
query I rowsort label-1581
SELECT - - 8 * - MIN ( DISTINCT + 98 ) AS col1
----
-784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1582
SELECT + + CAST( NULL AS SIGNED ) * - 93 + + 12 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT + + CAST ( NULL AS INTEGER ) * - 93 + + 12 + 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT 15 AS col2, - 81 + 49 + CASE 65 WHEN + 4 THEN NULLIF ( - 55, + 52 * - - 94 * + 6 ) * + 62 / - + 62 + + MAX( ALL + 27 ) + COUNT( * ) END
----
15
NULL

skipif mysql # not compatible
query II rowsort label-1583
SELECT 15 AS col2, - 81 + 49 + CASE 65 WHEN + 4 THEN NULLIF ( - 55, + 52 * - - 94 * + 6 ) * + 62 / - + 62 + + MAX ( ALL + 27 ) + COUNT ( * ) END
----
15
NULL

query I rowsort
SELECT + 45 * 65 - + 24
----
2901

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ( + + CASE - 56 WHEN + 16 THEN + COALESCE ( + + 94, - 87 ) + - + 89 + 53 WHEN 22 THEN - - 70 ELSE + - SUM( + + 50 ) END ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-1585
SELECT ( + + CASE - 56 WHEN + 16 THEN + COALESCE ( + + 94, - 87 ) + - + 89 + 53 WHEN 22 THEN - - 70 ELSE + - SUM ( + + 50 ) END ) AS col2
----
-50

query I rowsort
SELECT DISTINCT + 12 * - 14 col1
----
-168

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

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + 32 * COUNT ( * ) + + - COUNT ( * ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT + 92 - 5 + - - CASE - 28 WHEN - 41 + CASE - 58 WHEN COUNT( * ) THEN - + 15 WHEN + 54 THEN NULL END THEN + 76 + + 47 WHEN - 78 THEN NULL END + - + 21 * ( + 97 ) * + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1588
SELECT + 92 - 5 + - - CASE - 28 WHEN - 41 + CASE - 58 WHEN COUNT ( * ) THEN - + 15 WHEN + 54 THEN NULL END THEN + 76 + + 47 WHEN - 78 THEN NULL END + - + 21 * ( + 97 ) * + 19 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1589
SELECT DISTINCT - 88 * - 56 + - ( - CASE 83 WHEN + ( - 66 ) THEN + ( - 0 ) - - + COUNT( - 38 ) ELSE NULL END ) / ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT - 88 * - 56 + - ( - CASE 83 WHEN + ( - 66 ) THEN + ( - 0 ) - - + COUNT ( - 38 ) ELSE NULL END ) / ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT NULLIF ( + - 82, + + ( - + 64 ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL + 55 * - 88 / + CASE + - 6 WHEN 73 * + 53 THEN + 19 * + 86 + - 84 WHEN + + 52 * + MAX( - 33 ) + + MAX( DISTINCT 3 ) * + 76 * COUNT( * ) + AVG ( + 18 ) THEN NULL ELSE NULL END + MAX( DISTINCT 4 ) * ( - ( 24 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + 55 * - 88 / + CASE + - 6 WHEN 73 * + 53 THEN + 19 * + 86 + - 84 WHEN + + 52 * + MAX ( - 33 ) + + MAX ( DISTINCT 3 ) * + 76 * COUNT ( * ) + AVG ( + 18 ) THEN NULL ELSE NULL END + MAX ( DISTINCT 4 ) * ( - ( 24 ) )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT + COALESCE ( - COUNT( * ), COUNT( * ) ) + + 56 + 35 * + - 23
----
-750

skipif mysql # not compatible
query I rowsort label-1593
SELECT + COALESCE ( - COUNT ( * ), COUNT ( * ) ) + + 56 + 35 * + - 23
----
-750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT ALL CAST( NULL AS SIGNED ) * 45 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL CAST ( NULL AS INTEGER ) * 45 col0
----
NULL

query II rowsort
SELECT ALL + 95, - 71 AS col0
----
95
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT 58 * 8 + - NULLIF ( + + 21, + - 78 ) + - 85 + 51 * 36 * 29 DIV - 25 AS col1
----
-1771

skipif mysql # not compatible
query I rowsort label-1596
SELECT 58 * 8 + - NULLIF ( + + 21, + - 78 ) + - 85 + 51 * 36 * 29 / - 25 AS col1
----
-1771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1597
SELECT DISTINCT 79 * + NULLIF ( + CAST( + 44 AS SIGNED ), - 69 * - + ( - 4 ) ) col0
----
3476

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT 79 * + NULLIF ( + CAST ( + 44 AS INTEGER ), - 69 * - + ( - 4 ) ) col0
----
3476

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT + COUNT( 44 ) + + - 40 + + - 53 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-1598
SELECT + COUNT ( 44 ) + + - 40 + + - 53 AS col0
----
-92

query I rowsort
SELECT ALL 39 * + 88 + - 58 AS col2
----
3374

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1600
SELECT ALL CASE - 28 WHEN - 23 * - + 45 - - - COALESCE ( - - 76, + ( + - CAST( - 45 AS SIGNED ) ) * 28 * + - 69 * + 51 ) THEN - CAST( 17 AS SIGNED ) ELSE + 60 + + 21 + 59 DIV 52 * 44 END AS col1
----
125

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL CASE - 28 WHEN - 23 * - + 45 - - - COALESCE ( - - 76, + ( + - CAST ( - 45 AS INTEGER ) ) * 28 * + - 69 * + 51 ) THEN - CAST ( 17 AS INTEGER ) ELSE + 60 + + 21 + 59 / 52 * 44 END AS col1
----
125

query I rowsort
SELECT DISTINCT ( + 66 ) - - 91
----
157

query I rowsort
SELECT + - 24 + - + 44
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL - COUNT( * ) - 87 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL - COUNT ( * ) - 87 AS col0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1604
SELECT - 91 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-1604
SELECT - 91 / - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT + 30 + 88 + - 41 + - 89 * - 82 + - COUNT( ( - ( - 10 ) ) ) * ( - CASE + + 52 WHEN 71 THEN + 25 END ) * 82 * + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1605
SELECT + 30 + 88 + - 41 + - 89 * - 82 + - COUNT ( ( - ( - 10 ) ) ) * ( - CASE + + 52 WHEN 71 THEN + 25 END ) * 82 * + 92 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1606
SELECT - 5 * + - ( MIN( DISTINCT - 95 ) ), 63 col1
----
-475
63

skipif mysql # not compatible
query II rowsort label-1606
SELECT - 5 * + - ( MIN ( DISTINCT - 95 ) ), 63 col1
----
-475
63

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

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

query II rowsort
SELECT ALL + 30, 60 AS col1
----
30
60

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

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

query I rowsort
SELECT ALL + - 45 * + - 21 AS col0
----
945

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1611
SELECT + ( + 58 ) + + - NULLIF ( - + 42, 96 / ( + - 22 ) * - 13 * - COUNT( * ) - ( 42 ) ) + + 61 + - - 72 * - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT + ( + 58 ) + + - NULLIF ( - + 42, 96 / ( + - 22 ) * - 13 * - COUNT ( * ) - ( 42 ) ) + + 61 + - - 72 * - - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1612
SELECT - - 97, COUNT( DISTINCT - 50 ) AS col0
----
97
1

skipif mysql # not compatible
query II rowsort label-1612
SELECT - - 97, COUNT ( DISTINCT - 50 ) AS col0
----
97
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1613
SELECT 15 DIV COUNT( * ) * + - 61 + COUNT( * ) + - 97
----
-1011

skipif mysql # not compatible
query I rowsort label-1613
SELECT 15 / COUNT ( * ) * + - 61 + COUNT ( * ) + - 97
----
-1011

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1614
SELECT ALL + - CASE + - CAST( + 71 AS SIGNED ) WHEN + 0 * CAST( + 56 AS SIGNED ) + + 97 + + - 11 THEN - - 66 WHEN 5 THEN - 23 ELSE - - 79 END + 83
----
4

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL + - CASE + - CAST ( + 71 AS INTEGER ) WHEN + 0 * CAST ( + 56 AS INTEGER ) + + 97 + + - 11 THEN - - 66 WHEN 5 THEN - 23 ELSE - - 79 END + 83
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL COALESCE ( + 42, - COUNT( ALL - 81 ) + 42 * + MIN( + 44 ) ) * - CAST( NULL AS SIGNED ) * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL COALESCE ( + 42, - COUNT ( ALL - 81 ) + 42 * + MIN ( + 44 ) ) * - CAST ( NULL AS INTEGER ) * - 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1616
SELECT 35 * + - 22 * + + 10 * + 1 * + ( 39 ) + - - CAST( - 9 AS SIGNED ) + 9 * - - 47 + + - 4 + 25 + 29 - - 83 DIV 34 DIV - ( + 74 ) + 17 AS col0
----
-299819

skipif mysql # not compatible
query I rowsort label-1616
SELECT 35 * + - 22 * + + 10 * + 1 * + ( 39 ) + - - CAST ( - 9 AS INTEGER ) + 9 * - - 47 + + - 4 + 25 + 29 - - 83 / 34 / - ( + 74 ) + 17 AS col0
----
-299819

query II rowsort
SELECT DISTINCT - ( - - 93 ) AS col0, + 27 col1
----
-93
27

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

query I rowsort
SELECT DISTINCT - 35 * - - 83 AS col1
----
-2905

query I rowsort
SELECT ALL + 63 * - 31
----
-1953

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT ( + MIN( 58 ) ) + - 31 * - COUNT( * ) - - 73 col1
----
162

skipif mysql # not compatible
query I rowsort label-1621
SELECT ( + MIN ( 58 ) ) + - 31 * - COUNT ( * ) - - 73 col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT DISTINCT - NULLIF ( - MAX( ALL - 7 ), + 66 ) * - - COUNT( * ) + 61 * 90 * + ( COUNT( * ) )
----
5483

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT - NULLIF ( - MAX ( ALL - 7 ), + 66 ) * - - COUNT ( * ) + 61 * 90 * + ( COUNT ( * ) )
----
5483

query I rowsort
SELECT 47 * ( + 84 )
----
3948

query I rowsort
SELECT ALL + ( - 85 ) * + 90 * 50 AS col2
----
-382500

onlyif mysql # aggregate syntax: 
query II rowsort label-1625
SELECT 33 - COUNT( * ), - 6 AS col0
----
32
-6

skipif mysql # not compatible
query II rowsort label-1625
SELECT 33 - COUNT ( * ), - 6 AS col0
----
32
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT DISTINCT 50 * - + 84 * 8 + + MIN( - + ( + - 2 ) ) AS col1
----
-33598

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT 50 * - + 84 * 8 + + MIN ( - + ( + - 2 ) ) AS col1
----
-33598

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT + 28 * + - MAX( + ( - 5 ) ) col1
----
140

skipif mysql # not compatible
query I rowsort label-1627
SELECT + 28 * + - MAX ( + ( - 5 ) ) col1
----
140

query I rowsort
SELECT DISTINCT - ( + - 77 ) * ( + 23 ) AS col2
----
1771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT ALL + ( - CAST( 98 AS SIGNED ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL + ( - CAST ( 98 AS INTEGER ) ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT DISTINCT + 38 * + MAX( + 60 )
----
2280

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT + 38 * + MAX ( + 60 )
----
2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1631
SELECT 32 * - - 84 * - 90 DIV + COUNT( * ) - + + COALESCE ( + 47, - 47 * + 10 + + 79 ) + 19 + + + 19 AS col2
----
-241929

skipif mysql # not compatible
query I rowsort label-1631
SELECT 32 * - - 84 * - 90 / + COUNT ( * ) - + + COALESCE ( + 47, - 47 * + 10 + + 79 ) + 19 + + + 19 AS col2
----
-241929

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT NULLIF ( - + 66, - COUNT( * ) + - - CASE + + NULLIF ( + 92, - 38 * + - ( - - ( + 3 ) ) ) WHEN ( 14 ) THEN - - 89 WHEN + - 91 - MAX( ALL - + 15 ) + 19 THEN NULL END * - COUNT( * ) ) * 71 AS col1
----
-4686

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT NULLIF ( - + 66, - COUNT ( * ) + - - CASE + + NULLIF ( + 92, - 38 * + - ( - - ( + 3 ) ) ) WHEN ( 14 ) THEN - - 89 WHEN + - 91 - MAX ( ALL - + 15 ) + 19 THEN NULL END * - COUNT ( * ) ) * 71 AS col1
----
-4686

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT DISTINCT - MIN( - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT - MIN ( - 9 ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1634
SELECT ALL MIN( - + 10 ) + + COUNT( * ) - + 85 DIV 87 * + 37 * - 83
----
-9

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL MIN ( - + 10 ) + + COUNT ( * ) - + 85 / 87 * + 37 * - 83
----
-9

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

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

query I rowsort
SELECT - 35 + - 37 * + - ( - 84 )
----
-3143

query I rowsort
SELECT DISTINCT 79 + - + 24
----
55

query II rowsort
SELECT DISTINCT + 72 * - + 74, - 37 AS col0
----
-5328
-37

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

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

query II rowsort
SELECT + 66, 35 AS col1
----
66
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL CASE - + MIN( ALL + ( - 31 ) ) WHEN 85 THEN + + 36 ELSE NULL END + 36 + - NULLIF ( - COUNT( * ), + + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL CASE - + MIN ( ALL + ( - 31 ) ) WHEN 85 THEN + + 36 ELSE NULL END + 36 + - NULLIF ( - COUNT ( * ), + + 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT ALL 34 * - + 66 * + - ( - MIN( - 70 ) )
----
157080

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL 34 * - + 66 * + - ( - MIN ( - 70 ) )
----
157080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1643
SELECT 30 * + MAX( - 26 ) + - 48 - CASE - COUNT( * ) WHEN - + CASE + - 91 WHEN 59 + - - AVG ( ALL + 56 ) THEN NULLIF ( - CASE + 53 WHEN - 77 * - - 0 * 67 THEN + 52 * 87 END, MIN( + CAST( ( + 13 ) AS SIGNED ) ) ) END + - 23 THEN NULL WHEN + 15 * - 15 THEN - 92 * 12 ELSE + COUNT( DISTINCT 80 ) + 17 END + COUNT( * ) DIV 87 * - 12
----
-846

skipif mysql # not compatible
query I rowsort label-1643
SELECT 30 * + MAX ( - 26 ) + - 48 - CASE - COUNT ( * ) WHEN - + CASE + - 91 WHEN 59 + - - AVG ( ALL + 56 ) THEN NULLIF ( - CASE + 53 WHEN - 77 * - - 0 * 67 THEN + 52 * 87 END, MIN ( + CAST ( ( + 13 ) AS INTEGER ) ) ) END + - 23 THEN NULL WHEN + 15 * - 15 THEN - 92 * 12 ELSE + COUNT ( DISTINCT 80 ) + 17 END + COUNT ( * ) / 87 * - 12
----
-846

query I rowsort
SELECT 12 + + 81
----
93

query I rowsort
SELECT ALL - CASE - 37 WHEN - AVG ( ALL + 98 ) THEN + - 68 END
----
NULL

query I rowsort
SELECT 57 - - - 89
----
-32

query II rowsort
SELECT + 29 col1, - 96 AS col0
----
29
-96

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

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT - SUM ( - 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1649
SELECT ALL + 59 - - COALESCE ( - + 71, + 77, MIN( ALL CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) + + 24 + + + COUNT( * ) + + + 88 * + COUNT( * ) * 65 + - + 95 + - - ( + 90 ) + - CAST( COUNT( * ) AS SIGNED ) DIV + ( - CAST( CASE + 88 WHEN - 92 * + 40 + - ( 75 ) THEN NULL ELSE 70 * 16 END AS SIGNED ) ) * 62, 7 * - MAX( + 5 ) ) + + 15 * 92 AS col2
----
1368

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL + 59 - - COALESCE ( - + 71, + 77, MIN ( ALL CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + + 24 + + + COUNT ( * ) + + + 88 * + COUNT ( * ) * 65 + - + 95 + - - ( + 90 ) + - CAST ( COUNT ( * ) AS INTEGER ) / + ( - CAST ( CASE + 88 WHEN - 92 * + 40 + - ( 75 ) THEN NULL ELSE 70 * 16 END AS INTEGER ) ) * 62, 7 * - MAX ( + 5 ) ) + + 15 * 92 AS col2
----
1368

query II rowsort
SELECT ALL - 85 AS col2, 16
----
-85
16

query I rowsort
SELECT ALL - 86 * 10 AS col0
----
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT + COALESCE ( + ( - COUNT( * ) ), - 60 ) * 39 + - 25
----
-64

skipif mysql # not compatible
query I rowsort label-1652
SELECT + COALESCE ( + ( - COUNT ( * ) ), - 60 ) * 39 + - 25
----
-64

query I rowsort
SELECT ALL + 59 - + 27 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1654
SELECT 99 AS col0, CAST( - 89 AS SIGNED ) DIV - 26 AS col2
----
99
3

skipif mysql # not compatible
query II rowsort label-1654
SELECT 99 AS col0, CAST ( - 89 AS INTEGER ) / - 26 AS col2
----
99
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1655
SELECT + 0 col1, 62 * - MIN( - - 35 ) AS col0
----
0
-2170

skipif mysql # not compatible
query II rowsort label-1655
SELECT + 0 col1, 62 * - MIN ( - - 35 ) AS col0
----
0
-2170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT 75 + - CAST( + 41 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-1656
SELECT 75 + - CAST ( + 41 AS INTEGER )
----
34

query I rowsort
SELECT ALL + 87 * + + 55 AS col2
----
4785

query II rowsort
SELECT + 83 * + - 92 + + ( + - 29 ) AS col1, + 47 * + ( - 78 )
----
-7665
-3666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT ( CASE + + 96 WHEN + - COUNT( * ) / + 92 + + CASE + - 3 WHEN + COALESCE ( + 96, - CAST( + 94 AS SIGNED ), + - COUNT( * ) ) THEN 26 WHEN + 91 * + + 26 + + ( ( + + 2 ) ) + 63 THEN + 6 ELSE 93 + ( - 10 ) END / + ( 49 ) THEN NULL WHEN - 54 THEN CAST( + 69 AS SIGNED ) WHEN 96 + MIN( DISTINCT - 73 ) THEN + NULLIF ( 5, - 39 + - 58 ) WHEN COUNT( * ) / + COALESCE ( CAST( NULL AS SIGNED ), + CAST( 66 AS SIGNED ) * 27 ) THEN NULL END ) / - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT ( CASE + + 96 WHEN + - COUNT ( * ) / + 92 + + CASE + - 3 WHEN + COALESCE ( + 96, - CAST ( + 94 AS INTEGER ), + - COUNT ( * ) ) THEN 26 WHEN + 91 * + + 26 + + ( ( + + 2 ) ) + 63 THEN + 6 ELSE 93 + ( - 10 ) END / + ( 49 ) THEN NULL WHEN - 54 THEN CAST ( + 69 AS INTEGER ) WHEN 96 + MIN ( DISTINCT - 73 ) THEN + NULLIF ( 5, - 39 + - 58 ) WHEN COUNT ( * ) / + COALESCE ( CAST ( NULL AS INTEGER ), + CAST ( 66 AS INTEGER ) * 27 ) THEN NULL END ) / - 79
----
NULL

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

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

query I rowsort
SELECT ALL 65 + - + 83
----
-18

query I rowsort
SELECT DISTINCT - + 37 * - 86 AS col1
----
3182

query I rowsort
SELECT ALL 83 + 25 + - + 79 * 76 * 2
----
-11900

query I rowsort
SELECT ALL - 84 + + 16 AS col0
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1665
SELECT - - 78 + + 2 * + 66 * COUNT( * ) - - 73 DIV 76, - 15 AS col1
----
210
-15

skipif mysql # not compatible
query II rowsort label-1665
SELECT - - 78 + + 2 * + 66 * COUNT ( * ) - - 73 / 76, - 15 AS col1
----
210
-15

query II rowsort
SELECT 66 AS col0, 66 AS col0
----
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT - + 4 + - + COALESCE ( COUNT( * ), 48 ) + + 94 * - MIN( + 88 )
----
-8277

skipif mysql # not compatible
query I rowsort label-1667
SELECT - + 4 + - + COALESCE ( COUNT ( * ), 48 ) + + 94 * - MIN ( + 88 )
----
-8277

query I rowsort
SELECT - + NULLIF ( + 53, + + 24 + - 29 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1669
SELECT CAST( NULL AS SIGNED ) AS col1, + ( - - 75 ) AS col1
----
NULL
75

skipif mysql # not compatible
query II rowsort label-1669
SELECT CAST ( NULL AS INTEGER ) AS col1, + ( - - 75 ) AS col1
----
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT ALL 95 + - 78 * - COUNT( ALL - + 88 ) * 73
----
5789

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL 95 + - 78 * - COUNT ( ALL - + 88 ) * 73
----
5789

query I rowsort
SELECT + 65 + + - CASE + 34 WHEN - 92 THEN 63 ELSE NULL END + + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT DISTINCT - COUNT( * ) + + 20 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT - COUNT ( * ) + + 20 AS col1
----
19

query II rowsort
SELECT ALL + 52, + 13 AS col1
----
52
13

query I rowsort
SELECT + ( - 74 ) + - 54 + + + 97 AS col0
----
-31

query II rowsort
SELECT ALL 89 col0, - 12
----
89
-12

query I rowsort
SELECT + 46 + + 80 * - - 69 - - 85
----
5651

query I rowsort
SELECT + 57 * + + 71
----
4047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1678
SELECT 90 / + CAST( NULL AS SIGNED ) / - 82 + + 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT 90 / + CAST ( NULL AS INTEGER ) / - 82 + + 86 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1679
SELECT + CASE + 52 WHEN + 49 + - 4 * 84 * + 0 * 71 THEN NULL WHEN - + 78 THEN + CAST( - - 41 AS SIGNED ) ELSE - COUNT( + 53 ) * + 68 * - 48 / 76 + - + 53 + + 19 + CAST( NULL AS SIGNED ) * - + 56 * 73 END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1679
SELECT + CASE + 52 WHEN + 49 + - 4 * 84 * + 0 * 71 THEN NULL WHEN - + 78 THEN + CAST ( - - 41 AS INTEGER ) ELSE - COUNT ( + 53 ) * + 68 * - 48 / 76 + - + 53 + + 19 + CAST ( NULL AS INTEGER ) * - + 56 * 73 END * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + CASE 49 WHEN - 29 THEN ( - + 34 ) WHEN 32 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1681
SELECT ALL 15 * - 45 - - - 11 + 47 + - - 6 - + CASE 26 WHEN - CAST( - 51 AS SIGNED ) THEN + COUNT( * ) + 20 ELSE + 40 END * 28 + - + 79 - + + 56 * + COUNT( * )
----
-1888

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL 15 * - 45 - - - 11 + 47 + - - 6 - + CASE 26 WHEN - CAST ( - 51 AS INTEGER ) THEN + COUNT ( * ) + 20 ELSE + 40 END * 28 + - + 79 - + + 56 * + COUNT ( * )
----
-1888

query I rowsort
SELECT + 3 * - + 17 col0
----
-51

query II rowsort
SELECT ALL + 63 * 86 AS col0, 74 AS col1
----
5418
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1684
SELECT ALL CAST( - - 15 AS SIGNED ) * - + 76
----
-1140

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL CAST ( - - 15 AS INTEGER ) * - + 76
----
-1140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1685
SELECT ALL - 0 * COALESCE ( + 94, 97 + - + 3 ) * + 65 DIV - 33 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - 0 * COALESCE ( + 94, 97 + - + 3 ) * + 65 / - 33 * COUNT ( * ) AS col0
----
0

query I rowsort
SELECT + 67 * + + 51 * - - 39 AS col0
----
133263

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT - 76 * - + 26 - + COUNT( * )
----
1975

skipif mysql # not compatible
query I rowsort label-1687
SELECT - 76 * - + 26 - + COUNT ( * )
----
1975

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT CASE - 70 WHEN - 20 THEN + COUNT( + - 8 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT CASE - 70 WHEN - 20 THEN + COUNT ( + - 8 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1689
SELECT DISTINCT - - 46 * NULLIF ( - + 42, + 95 * 99 - + 12 * + 29 * - SUM( ALL 63 ) ) + 87 + - CAST( NULL AS DECIMAL ) * + 1 * - COUNT( * ) * - ( + 85 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT - - 46 * NULLIF ( - + 42, + 95 * 99 - + 12 * + 29 * - SUM ( ALL 63 ) ) + 87 + - CAST ( NULL AS REAL ) * + 1 * - COUNT ( * ) * - ( + 85 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT + 63 * + - COUNT( - 98 ) + - 77 col0
----
-140

skipif mysql # not compatible
query I rowsort label-1690
SELECT + 63 * + - COUNT ( - 98 ) + - 77 col0
----
-140

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

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

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

skipif mysql # not compatible
query I rowsort label-1692
SELECT - - 93 / COUNT ( * ) AS col0
----
93

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

skipif mysql # not compatible
query I rowsort label-1693
SELECT - NULLIF ( + COUNT ( * ), - 70 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1694
SELECT ALL + - 72 + + + ( + - COALESCE ( - 99, SUM( - + 64 ) * + - 81 + - 28 + ( - 49 ) * 73 * - - 82, - 69 * - 34 DIV + 4 - + + 70 ) )
----
27

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + - 72 + + + ( + - COALESCE ( - 99, SUM ( - + 64 ) * + - 81 + - 28 + ( - 49 ) * 73 * - - 82, - 69 * - 34 / + 4 - + + 70 ) )
----
27

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

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

query I rowsort
SELECT ALL + 94 + - 13 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT - COUNT( * ) * + SUM( + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-1697
SELECT - COUNT ( * ) * + SUM ( + 77 )
----
-77

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1699
SELECT - + 67 DIV 57 + - ( + - 67 ), + 44 AS col2
----
66
44

skipif mysql # not compatible
query II rowsort label-1699
SELECT - + 67 / 57 + - ( + - 67 ), + 44 AS col2
----
66
44

query I rowsort
SELECT - 67 - - - 40 col1
----
-107

query I rowsort
SELECT - - 48 * + + 66 * 26 AS col1
----
82368

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT - ( - + MIN( DISTINCT + 83 ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1702
SELECT - ( - + MIN ( DISTINCT + 83 ) ) AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1703
SELECT - SUM( + + 44 ) * - - ( - + 39 ) * - 0 * - 33 DIV - ( 57 ) - 26 * + 14
----
-364

skipif mysql # not compatible
query I rowsort label-1703
SELECT - SUM ( + + 44 ) * - - ( - + 39 ) * - 0 * - 33 / - ( 57 ) - 26 * + 14
----
-364

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1705
SELECT + COUNT( * ) - + 39 * COUNT( * ) * - 12 - 80 DIV - 89 AS col0
----
469

skipif mysql # not compatible
query I rowsort label-1705
SELECT + COUNT ( * ) - + 39 * COUNT ( * ) * - 12 - 80 / - 89 AS col0
----
469

query I rowsort
SELECT + COALESCE ( - 26, - 70 * - - 95 ) AS col2
----
-26

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

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

query I rowsort
SELECT + ( + 6 ) col1
----
6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1710
SELECT - NULLIF ( COALESCE ( - + 93, + - 32, - MAX( ALL + + 30 ) ), - - 99 ) DIV + 13 + COUNT( - + 95 ) + + 72 + - 35 * - COUNT( * ) AS col2
----
115

skipif mysql # not compatible
query I rowsort label-1710
SELECT - NULLIF ( COALESCE ( - + 93, + - 32, - MAX ( ALL + + 30 ) ), - - 99 ) / + 13 + COUNT ( - + 95 ) + + 72 + - 35 * - COUNT ( * ) AS col2
----
115

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

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

query I rowsort
SELECT + 10 * - 28 * + 42 + + 17
----
-11743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1713
SELECT + CASE - NULLIF ( - 20, - 25 ) WHEN 47 THEN 95 / 20 * - 51 END * 73 * + 57 * - 95 * + CAST( + 11 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT + CASE - NULLIF ( - 20, - 25 ) WHEN 47 THEN 95 / 20 * - 51 END * 73 * + 57 * - 95 * + CAST ( + 11 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1714
SELECT DISTINCT - NULLIF ( + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ), + 95 ) DIV + 85 + - 37 - - 62 * 49 * - 5 * - ( - - 6 ) * + + 39 - - 54
----
3554477

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT - NULLIF ( + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ), + 95 ) / + 85 + - 37 - - 62 * 49 * - 5 * - ( - - 6 ) * + + 39 - - 54
----
3554477

onlyif mysql # DIV for integer division: 
query I rowsort label-1715
SELECT ALL 67 DIV 34
----
1

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL 67 / 34
----
1

query I rowsort
SELECT 75 + 85 AS col1
----
160

query I rowsort
SELECT ALL 78 + - 72 + + ( + + ( + 99 ) ) * - 42 + - 4 AS col2
----
-4156

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT ALL SUM( DISTINCT + 87 ) + CASE + COUNT( * ) WHEN - - 0 THEN - 28 * + + ( 85 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL SUM ( DISTINCT + 87 ) + CASE + COUNT ( * ) WHEN - - 0 THEN - 28 * + + ( 85 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT + 3 * + COALESCE ( + ( MAX( - 11 ) ), - - 26 ) + - - 22 + + + 5 + - 84
----
-90

skipif mysql # not compatible
query I rowsort label-1719
SELECT + 3 * + COALESCE ( + ( MAX ( - 11 ) ), - - 26 ) + - - 22 + + + 5 + - 84
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL - + CASE COUNT( * ) WHEN 77 THEN 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL - + CASE COUNT ( * ) WHEN 77 THEN 2 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 82 * - - 37 * + 28 AS col1
----
84952

query I rowsort
SELECT DISTINCT 0 + - 22 AS col0
----
-22

query I rowsort
SELECT ALL + 59 + + 6 + - + ( - 57 )
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1724
SELECT 46 + - 63 * + 80 DIV - - COUNT( * ) - + 13
----
-5007

skipif mysql # not compatible
query I rowsort label-1724
SELECT 46 + - 63 * + 80 / - - COUNT ( * ) - + 13
----
-5007

query I rowsort
SELECT DISTINCT - 56 + 57
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT - NULLIF ( MAX( 41 ), 92 )
----
-41

skipif mysql # not compatible
query I rowsort label-1726
SELECT - NULLIF ( MAX ( 41 ), 92 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT DISTINCT + + MIN( - ( - + 51 ) ) + + 96
----
147

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT + + MIN ( - ( - + 51 ) ) + + 96
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL + COUNT( * ) - + 36 - + 80 AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + COUNT ( * ) - + 36 - + 80 AS col0
----
-115

query I rowsort
SELECT + 38 * 62 AS col2
----
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL - - SUM( - 65 ) - + 43 + + 69 * + - COUNT( * )
----
-177

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL - - SUM ( - 65 ) - + 43 + + 69 * + - COUNT ( * )
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-1731
SELECT - COALESCE ( + + 95, + - 51, 30 + - 35 ) * + 83 * - 61 * 57 col0, + NULLIF ( - 31, CASE 20 WHEN + + 81 THEN 78 WHEN - + COUNT( * ) THEN - - COUNT( * ) END )
----
27416145
-31

skipif mysql # not compatible
query II rowsort label-1731
SELECT - COALESCE ( + + 95, + - 51, 30 + - 35 ) * + 83 * - 61 * 57 col0, + NULLIF ( - 31, CASE 20 WHEN + + 81 THEN 78 WHEN - + COUNT ( * ) THEN - - COUNT ( * ) END )
----
27416145
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT - 13 + 65 - - 38 + - COUNT( * ) + 90
----
179

skipif mysql # not compatible
query I rowsort label-1733
SELECT - 13 + 65 - - 38 + - COUNT ( * ) + 90
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT 28 * - SUM( + 54 )
----
-1512

skipif mysql # not compatible
query I rowsort label-1734
SELECT 28 * - SUM ( + 54 )
----
-1512

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

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

query I rowsort
SELECT 40 * - 93
----
-3720

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT ALL 18, 47 - - + ( COUNT( * ) ) col0
----
18
48

skipif mysql # not compatible
query II rowsort label-1737
SELECT ALL 18, 47 - - + ( COUNT ( * ) ) col0
----
18
48

query I rowsort
SELECT DISTINCT - 90 * 74
----
-6660

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1739
SELECT 56 + + CASE ( + + SUM( 31 ) ) WHEN CAST( NULL AS DECIMAL ) + - - 43 + + + 48 - 1 THEN NULL WHEN - 33 THEN - 53 * - 48 * CASE 98 WHEN + 41 - 5 * - + 39 THEN - 39 ELSE + - 91 END + - 80 END * + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT 56 + + CASE ( + + SUM ( 31 ) ) WHEN CAST ( NULL AS REAL ) + - - 43 + + + 48 - 1 THEN NULL WHEN - 33 THEN - 53 * - 48 * CASE 98 WHEN + 41 - 5 * - + 39 THEN - 39 ELSE + - 91 END + - 80 END * + 58 AS col0
----
NULL

query I rowsort
SELECT 30 * - + 46
----
-1380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1741
SELECT MAX( - 29 ) + - CAST( - - 11 AS SIGNED ) + - ( + ( - COUNT( * ) ) ) * 19 * - MIN( - 0 ) * + - 38 + 63 + 55 * + 64 + 87
----
3630

skipif mysql # not compatible
query I rowsort label-1741
SELECT MAX ( - 29 ) + - CAST ( - - 11 AS INTEGER ) + - ( + ( - COUNT ( * ) ) ) * 19 * - MIN ( - 0 ) * + - 38 + 63 + 55 * + 64 + 87
----
3630

onlyif mysql # aggregate syntax: 
query II rowsort label-1742
SELECT ALL + 0 + + 29 + - COUNT( * ) * + 90 AS col2, 20
----
-61
20

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL + 0 + + 29 + - COUNT ( * ) * + 90 AS col2, 20
----
-61
20

query II rowsort
SELECT - 85, 14 AS col1
----
-85
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT COUNT( - 49 ) * + 30 / - 77 * 57 * - + 33 + MAX( + 83 ) + - 91 * + 64 - + CASE + 4 WHEN + 47 + + + COUNT( * ) * + COUNT( * ) THEN 41 * + COALESCE ( - 46, + 44 - + + 55 * + COUNT( * ) ) + 95 * + COUNT( * ) WHEN + 12 THEN 31 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT COUNT ( - 49 ) * + 30 / - 77 * 57 * - + 33 + MAX ( + 83 ) + - 91 * + 64 - + CASE + 4 WHEN + 47 + + + COUNT ( * ) * + COUNT ( * ) THEN 41 * + COALESCE ( - 46, + 44 - + + 55 * + COUNT ( * ) ) + 95 * + COUNT ( * ) WHEN + 12 THEN 31 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 1 + - 63 AS col2
----
-62

query II rowsort
SELECT + 48 col1, - 94
----
48
-94

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1750
SELECT ALL - NULLIF ( + CASE + - 26 WHEN - 63 THEN - + 35 * - 72 * + SUM( - 25 ) + 50 - MAX( - 99 ) + - - CAST( - - ( + CAST( ( - AVG ( ALL + 37 ) ) AS SIGNED ) ) AS SIGNED ) + + CAST( + COUNT( * ) AS SIGNED ) END, + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL - NULLIF ( + CASE + - 26 WHEN - 63 THEN - + 35 * - 72 * + SUM ( - 25 ) + 50 - MAX ( - 99 ) + - - CAST ( - - ( + CAST ( ( - AVG ( ALL + 37 ) ) AS INTEGER ) ) AS INTEGER ) + + CAST ( + COUNT ( * ) AS INTEGER ) END, + 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT 61 AS col1, 14 + + + ( + - CASE COALESCE ( + - 50, - COUNT( * ) ) WHEN - - 6 THEN 18 WHEN + 40 THEN NULL ELSE NULL END ) + - 46 + + - 10 + 93 AS col2
----
61
NULL

skipif mysql # not compatible
query II rowsort label-1751
SELECT 61 AS col1, 14 + + + ( + - CASE COALESCE ( + - 50, - COUNT ( * ) ) WHEN - - 6 THEN 18 WHEN + 40 THEN NULL ELSE NULL END ) + - 46 + + - 10 + 93 AS col2
----
61
NULL

query II rowsort
SELECT + + 9, 87 AS col2
----
9
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1753
SELECT ALL 89 + - 33 + ( + MAX( ALL - 92 ) ) DIV - 95 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL 89 + - 33 + ( + MAX ( ALL - 92 ) ) / - 95 AS col1
----
56

query I rowsort
SELECT ALL - + 88 - + 38 AS col2
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT + CAST( + COALESCE ( 1, 60, - COUNT( * ) / 98 / + 39 + 15 ) AS SIGNED ) * ( - - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-1755
SELECT + CAST ( + COALESCE ( 1, 60, - COUNT ( * ) / 98 / + 39 + 15 ) AS INTEGER ) * ( - - 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT ALL - COUNT( * ) - - - 40 * - 69
----
2759

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL - COUNT ( * ) - - - 40 * - 69
----
2759

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

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

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

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

query I rowsort
SELECT - 61 * + + 16 + 90 AS col0
----
-886

query I rowsort
SELECT DISTINCT 1 * 41 + - 52
----
-11

query I rowsort
SELECT 4 * + - 8 - + 8
----
-40

query II rowsort
SELECT - 18 AS col0, - 27 * + + 88 + - 1 * ( - - 72 ) + - 73
----
-18
-2521

query I rowsort
SELECT - ( - 6 ) + - 5 + 23
----
24

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

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

query II rowsort
SELECT ALL - ( 38 ) * - 16 + - 0 col0, + 59 + 74
----
608
133

query I rowsort
SELECT 50 * - - 86 AS col1
----
4300

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

skipif mysql # not compatible
query I rowsort label-1767
SELECT - COALESCE ( + 15, + ( + COUNT ( * ) ) ) AS col2
----
-15

query I rowsort
SELECT DISTINCT - 59 * + 33 AS col0
----
-1947

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT 40 DIV 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1769
SELECT 40 / 42 AS col1
----
0

query I rowsort
SELECT 75 * + 87 AS col2
----
6525

query I rowsort
SELECT DISTINCT - 59 * + + 32 * 21
----
-39648

onlyif mysql # aggregate syntax: 
query II rowsort label-1772
SELECT SUM( + 53 ) + NULLIF ( - 1, - 28 ) * 51 - + + 50 AS col1, 2 AS col1
----
-48
2

skipif mysql # not compatible
query II rowsort label-1772
SELECT SUM ( + 53 ) + NULLIF ( - 1, - 28 ) * 51 - + + 50 AS col1, 2 AS col1
----
-48
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL - 41 * - COALESCE ( + COUNT( * ), + 83 * - - 30 + + SUM( DISTINCT 35 ), + 3 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - 41 * - COALESCE ( + COUNT ( * ), + 83 * - - 30 + + SUM ( DISTINCT 35 ), + 3 ) AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT - CAST( - 80 AS SIGNED ) - - NULLIF ( - - 61, - 2 )
----
141

skipif mysql # not compatible
query I rowsort label-1774
SELECT - CAST ( - 80 AS INTEGER ) - - NULLIF ( - - 61, - 2 )
----
141

query II rowsort
SELECT DISTINCT 96 * - 12 AS col1, 31 * 31 AS col1
----
-1152
961

query I rowsort
SELECT ALL - 42 * + ( + - 45 ) * 49 + 85 AS col0
----
92695

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT + 37 + MAX( - - 52 )
----
89

skipif mysql # not compatible
query I rowsort label-1777
SELECT + 37 + MAX ( - - 52 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL COUNT( * ) * - 30 + + - 79 AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL COUNT ( * ) * - 30 + + - 79 AS col2
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT - 36 * - 77 + - - ( COUNT( * ) ) - COUNT( * )
----
2772

skipif mysql # not compatible
query I rowsort label-1779
SELECT - 36 * - 77 + - - ( COUNT ( * ) ) - COUNT ( * )
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT - - 62 + + MIN( ALL - COALESCE ( - 28, - + 32, - 94 * - 38 + - 35 ) ) + + 47
----
137

skipif mysql # not compatible
query I rowsort label-1780
SELECT - - 62 + + MIN ( ALL - COALESCE ( - 28, - + 32, - 94 * - 38 + - 35 ) ) + + 47
----
137

query I rowsort
SELECT ALL - 69 * + 89 + + 15 - - 34 - 8 AS col0
----
-6100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1782
SELECT - 93 * - 7 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT - 93 * - 7 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT - 56 * 36 / - CAST( NULL AS SIGNED ) + - NULLIF ( - 94, + MIN( 80 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1783
SELECT - 56 * 36 / - CAST ( NULL AS INTEGER ) + - NULLIF ( - 94, + MIN ( 80 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1784
SELECT 21 * - ( + 1 ) * - CAST( NULL AS SIGNED ) + + 15 AS col1, + 67 AS col1
----
NULL
67

skipif mysql # not compatible
query II rowsort label-1784
SELECT 21 * - ( + 1 ) * - CAST ( NULL AS INTEGER ) + + 15 AS col1, + 67 AS col1
----
NULL
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1785
SELECT + - 4 * CAST( NULL AS SIGNED ) + - ( + COUNT( * ) ) * 37 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT + - 4 * CAST ( NULL AS INTEGER ) + - ( + COUNT ( * ) ) * 37 * - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT + 33 + NULLIF ( - 57, - SUM( DISTINCT + 70 ) + - 77 + + 72 * - + COUNT( * ) * + + ( + CASE + 22 WHEN + COUNT( * ) + - 86 + - NULLIF ( 87, - SUM( ALL + 84 ) ) * + 99 + + 60 THEN + 37 WHEN + COUNT( * ) THEN NULL ELSE NULL END ) ) * - + 82 AS col0
----
4707

skipif mysql # not compatible
query I rowsort label-1786
SELECT + 33 + NULLIF ( - 57, - SUM ( DISTINCT + 70 ) + - 77 + + 72 * - + COUNT ( * ) * + + ( + CASE + 22 WHEN + COUNT ( * ) + - 86 + - NULLIF ( 87, - SUM ( ALL + 84 ) ) * + 99 + + 60 THEN + 37 WHEN + COUNT ( * ) THEN NULL ELSE NULL END ) ) * - + 82 AS col0
----
4707

query I rowsort
SELECT CASE + + 39 WHEN 0 * + 76 THEN NULL ELSE 56 END AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT DISTINCT COALESCE ( - 89, 46 + + + ( - - 43 ) * + SUM( - 76 ) * + 79 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT COALESCE ( - 89, 46 + + + ( - - 43 ) * + SUM ( - 76 ) * + 79 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ALL - 0 * + 86 * COUNT( - 93 ) + + - ( + - 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL - 0 * + 86 * COUNT ( - 93 ) + + - ( + - 37 ) AS col0
----
37

query II rowsort
SELECT DISTINCT ( + 71 ), 51 AS col2
----
71
51

query I rowsort
SELECT DISTINCT 28 + - - 80
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT - COALESCE ( + 59, + - 25 * COUNT( ALL 43 ), COUNT( * ) - 63 )
----
-59

skipif mysql # not compatible
query I rowsort label-1792
SELECT - COALESCE ( + 59, + - 25 * COUNT ( ALL 43 ), COUNT ( * ) - 63 )
----
-59

query I rowsort
SELECT - 51 * - + 19
----
969

query I rowsort
SELECT + 57 * 8 AS col2
----
456

query I rowsort
SELECT ALL 63 + - - 46 AS col1
----
109

query II rowsort
SELECT 48 AS col0, 98 AS col1
----
48
98

query I rowsort
SELECT - ( - 67 ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT + COUNT( * ) + ( - 63 ) - - 44 col0
----
-18

skipif mysql # not compatible
query I rowsort label-1798
SELECT + COUNT ( * ) + ( - 63 ) - - 44 col0
----
-18

query I rowsort
SELECT + 27 - + + 16
----
11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1801
SELECT ALL COUNT( * ) + - COUNT( * ) + + 17 AS col2, + 9 AS col1
----
17
9

skipif mysql # not compatible
query II rowsort label-1801
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + 17 AS col2, + 9 AS col1
----
17
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1803
SELECT - COALESCE ( + 89, 9 * + 16 + + 20 * + 67 DIV + + 51 * COALESCE ( - CAST( + COUNT( * ) AS SIGNED ), - 93 ) - - 39 )
----
-89

skipif mysql # not compatible
query I rowsort label-1803
SELECT - COALESCE ( + 89, 9 * + 16 + + 20 * + 67 / + + 51 * COALESCE ( - CAST ( + COUNT ( * ) AS INTEGER ), - 93 ) - - 39 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + 43 + - 14 * + 15 + 67 + + - ( - MAX( DISTINCT 33 ) ) * - 79 + - 76 - - 53 + + MIN( DISTINCT - + 19 )
----
-2749

skipif mysql # not compatible
query I rowsort label-1804
SELECT + 43 + - 14 * + 15 + 67 + + - ( - MAX ( DISTINCT 33 ) ) * - 79 + - 76 - - 53 + + MIN ( DISTINCT - + 19 )
----
-2749

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

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL 49 + + COUNT ( * ) AS col2
----
50

query II rowsort
SELECT - 20 + - + 58 + + + 59 AS col0, 44 * - - 51
----
-19
2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT + CASE + 67 WHEN - - 22 THEN 47 + + COALESCE ( + 96, - 50 ) + - 63 / + SUM( DISTINCT - 49 ) * + - 18 * - 37 + - 24 ELSE NULL END * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT + CASE + 67 WHEN - - 22 THEN 47 + + COALESCE ( + 96, - 50 ) + - 63 / + SUM ( DISTINCT - 49 ) * + - 18 * - 37 + - 24 ELSE NULL END * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 11 * - 11
----
-121

query I rowsort
SELECT ALL + + NULLIF ( + + 81, 1 ) AS col1
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-1810
SELECT ALL + + 20 DIV - 55 - - + 58 - - 67 * + 53 * + + 87, 29 col2
----
308995
29

skipif mysql # not compatible
query II rowsort label-1810
SELECT ALL + + 20 / - 55 - - + 58 - - 67 * + 53 * + + 87, 29 col2
----
308995
29

query II rowsort
SELECT + 7, - 60 AS col2
----
7
-60

query I rowsort
SELECT DISTINCT + - 33 AS col2
----
-33

query I rowsort
SELECT DISTINCT - 78 * + + 74 * + 38 + - - 4 AS col0
----
-219332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1814
SELECT + 30 AS col0, 44 * CAST( + 64 AS SIGNED ) + + ( - + 92 ) + 61 * + - ( - 40 ) + + CASE 38 WHEN - - 94 * - + 12 * + 43 + CASE - 28 WHEN + 88 * + + 88 - + 81 THEN - 6 * 73 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END THEN COUNT( * ) WHEN 75 THEN 28 * 75 END + + 47 * - 83
----
30
NULL

skipif mysql # not compatible
query II rowsort label-1814
SELECT + 30 AS col0, 44 * CAST ( + 64 AS INTEGER ) + + ( - + 92 ) + 61 * + - ( - 40 ) + + CASE 38 WHEN - - 94 * - + 12 * + 43 + CASE - 28 WHEN + 88 * + + 88 - + 81 THEN - 6 * 73 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END THEN COUNT ( * ) WHEN 75 THEN 28 * 75 END + + 47 * - 83
----
30
NULL

query I rowsort
SELECT + 34 * - 44 AS col1
----
-1496

query II rowsort
SELECT ALL + 75 AS col1, 32
----
75
32

query I rowsort
SELECT - + 89 - - - 58
----
-147

query I rowsort
SELECT ALL + - ( - 67 )
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-1819
SELECT 26, 98 + - + 84 + - 96 * + 14 * 23 + + - 74 + - + 76 + + COALESCE ( CASE + 99 WHEN 29 THEN + 21 END, - - 39 - - + 89 * - + 38 ) DIV 54 AS col2
----
26
-31109

skipif mysql # not compatible
query II rowsort label-1819
SELECT 26, 98 + - + 84 + - 96 * + 14 * 23 + + - 74 + - + 76 + + COALESCE ( CASE + 99 WHEN 29 THEN + 21 END, - - 39 - - + 89 * - + 38 ) / 54 AS col2
----
26
-31109

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT + - COUNT( 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-1820
SELECT + - COUNT ( 75 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL - + 33 * - COUNT( + 39 ) * - - 20 * - 50 + 22
----
-32978

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL - + 33 * - COUNT ( + 39 ) * - - 20 * - 50 + 22
----
-32978

query I rowsort
SELECT DISTINCT + 71 * + 20
----
1420

query I rowsort
SELECT ALL 20 * 13 + + 48 AS col1
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT - + 32 * NULLIF ( + - ( + + 10 ), COUNT( * ) )
----
320

skipif mysql # not compatible
query I rowsort label-1824
SELECT - + 32 * NULLIF ( + - ( + + 10 ), COUNT ( * ) )
----
320

query I rowsort
SELECT NULLIF ( + 40, 57 ) AS col2
----
40

query I rowsort
SELECT COALESCE ( + + 86, + 15 ) col1
----
86

query II rowsort
SELECT - ( - 22 ) AS col2, 49 AS col1
----
22
49

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

skipif mysql # not compatible
query I rowsort label-1828
SELECT - COUNT ( * ) / - 92 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1829
SELECT DISTINCT + CASE + + 92 WHEN 24 - CAST( NULL AS SIGNED ) THEN NULL ELSE + - MIN( ALL + 35 ) + - 5 END * + - 94 * 25 AS col2
----
94000

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT + CASE + + 92 WHEN 24 - CAST ( NULL AS INTEGER ) THEN NULL ELSE + - MIN ( ALL + 35 ) + - 5 END * + - 94 * 25 AS col2
----
94000

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT DISTINCT - 87 + + - COUNT( * ) + 54 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1830
SELECT DISTINCT - 87 + + - COUNT ( * ) + 54 AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1831
SELECT DISTINCT COALESCE ( 79, + NULLIF ( + + SUM( DISTINCT + 13 ), + CAST( NULL AS SIGNED ) ) + + 84 ) * - + 41 AS col2
----
-3239

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT COALESCE ( 79, + NULLIF ( + + SUM ( DISTINCT + 13 ), + CAST ( NULL AS INTEGER ) ) + + 84 ) * - + 41 AS col2
----
-3239

onlyif mysql # DIV for integer division: 
query II rowsort label-1832
SELECT DISTINCT + 24 DIV - 51, - 53 AS col0
----
0
-53

skipif mysql # not compatible
query II rowsort label-1832
SELECT DISTINCT + 24 / - 51, - 53 AS col0
----
0
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT - 69 + + MAX( + - 82 ) AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT - 69 + + MAX ( + - 82 ) AS col0
----
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-1834
SELECT 81 - - COUNT( * ) col0, + COALESCE ( + 5, - - 90 ) * 62 AS col1
----
82
310

skipif mysql # not compatible
query II rowsort label-1834
SELECT 81 - - COUNT ( * ) col0, + COALESCE ( + 5, - - 90 ) * 62 AS col1
----
82
310

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT 90 + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-1835
SELECT 90 + - COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1836
SELECT DISTINCT + 98 * + ( + COUNT( ALL + 3 ) ), + 80 AS col0
----
98
80

skipif mysql # not compatible
query II rowsort label-1836
SELECT DISTINCT + 98 * + ( + COUNT ( ALL + 3 ) ), + 80 AS col0
----
98
80

query I rowsort
SELECT DISTINCT 26 * - + 54
----
-1404

query I rowsort
SELECT - 66 * - 5 * 14 AS col2
----
4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT - + COUNT( * ) / + 73 + 23 + - + CAST( NULL AS SIGNED ) * + + SUM( - 73 ) - - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT - + COUNT ( * ) / + 73 + 23 + - + CAST ( NULL AS INTEGER ) * + + SUM ( - 73 ) - - 30 AS col1
----
NULL

query I rowsort
SELECT + 32 * 89 AS col1
----
2848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1841
SELECT CASE 0 WHEN - + COUNT( * ) THEN 51 * ( - 59 ) WHEN - 56 / + + 46 + 58 + + - 4 * COUNT( * ) + - 86 * + CASE - 25 WHEN + - 96 THEN 67 END * - 59 - CASE + - 74 WHEN + CAST( NULL AS SIGNED ) / + 64 THEN NULL ELSE + COUNT( * ) END THEN NULL ELSE NULL END * - MIN( + + 24 ) + - 48 * ( 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT CASE 0 WHEN - + COUNT ( * ) THEN 51 * ( - 59 ) WHEN - 56 / + + 46 + 58 + + - 4 * COUNT ( * ) + - 86 * + CASE - 25 WHEN + - 96 THEN 67 END * - 59 - CASE + - 74 WHEN + CAST ( NULL AS INTEGER ) / + 64 THEN NULL ELSE + COUNT ( * ) END THEN NULL ELSE NULL END * - MIN ( + + 24 ) + - 48 * ( 83 )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT DISTINCT + 55 DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT + 55 / 40
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT DISTINCT + 97 + - 69 + - + COUNT( * ) * 61 + - 1
----
-34

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT + 97 + - 69 + - + COUNT ( * ) * 61 + - 1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ALL - 22 * + + 5 + + + 59 * + COUNT( + 86 ) + - 76
----
-127

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL - 22 * + + 5 + + + 59 * + COUNT ( + 86 ) + - 76
----
-127

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

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

query I rowsort
SELECT 78 * 97 + 31 AS col2
----
7597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1848
SELECT + - MIN( DISTINCT - + CAST( - ( - 61 ) AS SIGNED ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1848
SELECT + - MIN ( DISTINCT - + CAST ( - ( - 61 ) AS INTEGER ) ) AS col0
----
61

onlyif mysql # DIV for integer division: 
query II rowsort label-1849
SELECT - 13 DIV + 52, 45 AS col1
----
0
45

skipif mysql # not compatible
query II rowsort label-1849
SELECT - 13 / + 52, 45 AS col1
----
0
45

query I rowsort
SELECT NULLIF ( 57, + 81 ) + - 4 * 85 AS col0
----
-283

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT 56 + COALESCE ( - + 58, + + 59, ( - 77 ) + MIN( - + 28 ) * 17 ) + 34 * 67 AS col2
----
2276

skipif mysql # not compatible
query I rowsort label-1851
SELECT 56 + COALESCE ( - + 58, + + 59, ( - 77 ) + MIN ( - + 28 ) * 17 ) + 34 * 67 AS col2
----
2276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1852
SELECT ALL ( - + 99 ) + + - 24 - - - CAST( 3 AS SIGNED ) + + COUNT( ALL - 16 ) * + - 66 + 45 * 40 * + 31 DIV 31 * - 59 + + COALESCE ( 31, - 78 + 73 )
----
-106361

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL ( - + 99 ) + + - 24 - - - CAST ( 3 AS INTEGER ) + + COUNT ( ALL - 16 ) * + - 66 + 45 * 40 * + 31 / 31 * - 59 + + COALESCE ( 31, - 78 + 73 )
----
-106361

query I rowsort
SELECT DISTINCT - 1 + - 76
----
-77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1855
SELECT 91 + - - CAST( + - 34 AS SIGNED ) * 38 AS col1
----
-1201

skipif mysql # not compatible
query I rowsort label-1855
SELECT 91 + - - CAST ( + - 34 AS INTEGER ) * 38 AS col1
----
-1201

query I rowsort
SELECT DISTINCT + 37 - + + ( - - 72 ) + 0 AS col2
----
-35

query I rowsort
SELECT 0 + 88 AS col0
----
88

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

skipif mysql # not compatible
query I rowsort label-1858
SELECT COUNT ( * ) / 64
----
0

query I rowsort
SELECT 74 * 24 * + 3 AS col0
----
5328

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1860
SELECT 81 + ( + + CAST( NULL AS SIGNED ) ) AS col1, - CAST( NULL AS SIGNED ) / + 13
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1860
SELECT 81 + ( + + CAST ( NULL AS INTEGER ) ) AS col1, - CAST ( NULL AS INTEGER ) / + 13
----
NULL
NULL

query I rowsort
SELECT 0 * - 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1862
SELECT DISTINCT 13 DIV - + 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT 13 / - + 58 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1863
SELECT 16 + - COUNT( ALL - 45 ) * + 44 * CAST( - - CASE - 98 WHEN ( + - 7 ) * 8 + + 28 THEN + 66 + 39 ELSE NULL END AS SIGNED ) * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT 16 + - COUNT ( ALL - 45 ) * + 44 * CAST ( - - CASE - 98 WHEN ( + - 7 ) * 8 + + 28 THEN + 66 + 39 ELSE NULL END AS INTEGER ) * + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT MIN( ALL - 39 ) col1
----
-39

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT MIN ( ALL - 39 ) col1
----
-39

query I rowsort
SELECT ALL - 89 * 23 AS col0
----
-2047

onlyif mysql # DIV for integer division: 
query I rowsort label-1866
SELECT ALL - 78 DIV 60
----
-1

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - 78 / 60
----
-1

query I rowsort
SELECT 91 + 78 + - - 87
----
256

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT 94 DIV - 46 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1868
SELECT 94 / - 46 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1869
SELECT - 86 DIV + 61 + COUNT( DISTINCT - + 72 ) + + 19
----
19

skipif mysql # not compatible
query I rowsort label-1869
SELECT - 86 / + 61 + COUNT ( DISTINCT - + 72 ) + + 19
----
19

query I rowsort
SELECT ALL 56 + + 46
----
102

query I rowsort
SELECT 25 * + 20
----
500

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

skipif mysql # not compatible
query I rowsort label-1872
SELECT - SUM ( ALL 12 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1873
SELECT 84 * + 32 + - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
2687

skipif mysql # not compatible
query I rowsort label-1873
SELECT 84 * + 32 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
2687

query I rowsort
SELECT COALESCE ( - 72, - 20, 81 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ALL + MAX( DISTINCT - - 39 ) * + - 14 * - 53 * + 88 + - - 4 + + CASE + + AVG ( + - 75 ) WHEN - 73 + CASE + COUNT( * ) WHEN 27 THEN - COUNT( * ) WHEN 82 + - 7 THEN - 57 WHEN 48 THEN - SUM( DISTINCT + 5 ) * + COALESCE ( - + 32, + - ( - 35 ), + 91 - 44 ) + 61 END + COUNT( * ) THEN 2 WHEN 62 THEN NULL ELSE + 47 END * 83
----
2550449

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL + MAX ( DISTINCT - - 39 ) * + - 14 * - 53 * + 88 + - - 4 + + CASE + + AVG ( + - 75 ) WHEN - 73 + CASE + COUNT ( * ) WHEN 27 THEN - COUNT ( * ) WHEN 82 + - 7 THEN - 57 WHEN 48 THEN - SUM ( DISTINCT + 5 ) * + COALESCE ( - + 32, + - ( - 35 ), + 91 - 44 ) + 61 END + COUNT ( * ) THEN 2 WHEN 62 THEN NULL ELSE + 47 END * 83
----
2550449

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1876
SELECT DISTINCT - 33 * + ( 9 ) + 75 * - 97 + - SUM( ALL + - 6 ) DIV + 59 * - + 9 AS col0
----
-7572

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT - 33 * + ( 9 ) + 75 * - 97 + - SUM ( ALL + - 6 ) / + 59 * - + 9 AS col0
----
-7572

query I rowsort
SELECT ALL 45 * - - 78 * 15 - - - 6 + - 94
----
52550

query I rowsort
SELECT ALL - 5 * 31 + - - 13 AS col1
----
-142

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1879
SELECT - CASE 97 WHEN - CAST( NULL AS DECIMAL ) * ( COUNT( + 56 ) ) + - AVG ( + 4 ) - + + 70 - + 30 THEN + 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT - CASE 97 WHEN - CAST ( NULL AS REAL ) * ( COUNT ( + 56 ) ) + - AVG ( + 4 ) - + + 70 - + 30 THEN + 34 END
----
NULL

query II rowsort
SELECT ALL - 83 AS col2, 42 col1
----
-83
42

query I rowsort
SELECT 42 * + 12 * - 62 + + 21 AS col0
----
-31227

query I rowsort
SELECT - 2 * + 99 + + 79 * 57 + - 24 AS col0
----
4281

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT DISTINCT - COUNT( - - NULLIF ( + + 42, - 69 * COALESCE ( - 90, + 45 - + - 98 ) + 28 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT - COUNT ( - - NULLIF ( + + 42, - 69 * COALESCE ( - 90, + 45 - + - 98 ) + 28 ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1884
SELECT ALL + CASE - 97 WHEN - MAX( 82 ) * + COUNT( * ) * + 77 THEN NULL WHEN + 8 * - - MIN( + + CAST( NULL AS SIGNED ) ) THEN - 79 END * - 75 + - + COUNT( * ) + - + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL + CASE - 97 WHEN - MAX ( 82 ) * + COUNT ( * ) * + 77 THEN NULL WHEN + 8 * - - MIN ( + + CAST ( NULL AS INTEGER ) ) THEN - 79 END * - 75 + - + COUNT ( * ) + - + 93
----
NULL

query I rowsort
SELECT - 55 - 89 * + - 83
----
7332

onlyif mysql # DIV for integer division: 
query II rowsort label-1886
SELECT DISTINCT 4 DIV NULLIF ( - 49, - 39 ), 13 + 2 - 79 * + 71 * + 68 * + 20 - + 95 AS col1
----
0
-7628320

skipif mysql # not compatible
query II rowsort label-1886
SELECT DISTINCT 4 / NULLIF ( - 49, - 39 ), 13 + 2 - 79 * + 71 * + 68 * + 20 - + 95 AS col1
----
0
-7628320

query I rowsort
SELECT ALL CASE 59 WHEN - - 51 THEN NULL ELSE 77 + - 82 END * - - 36 * 25 + - 49 - - ( - + 94 ) AS col0
----
-4643

query I rowsort
SELECT ALL 39 * 82
----
3198

query I rowsort
SELECT DISTINCT 98 - - 92 + - 88 AS col2
----
102

query I rowsort
SELECT ALL 56 * NULLIF ( - + 43, 33 + - 62 * + 57 * + 38 * - + 91 * + - 13 )
----
-2408

query I rowsort
SELECT + 86 * + ( - 1 ) + - 64
----
-150

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

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

query I rowsort
SELECT ALL 33 * - + 22
----
-726

query I rowsort
SELECT - 3 - + + ( - COALESCE ( + 71, - ( 31 ) + + 42 ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT - 20 * COUNT( * ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-1895
SELECT - 20 * COUNT ( * ) col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT - COALESCE ( - 96, - - 96 - + 99, COUNT( * ) + + 40 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-1896
SELECT - COALESCE ( - 96, - - 96 - + 99, COUNT ( * ) + + 40 ) AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1897
SELECT + CAST( - 15 AS SIGNED ) + + 67 - 60 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-1897
SELECT + CAST ( - 15 AS INTEGER ) + + 67 - 60 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1898
SELECT - 97 * - COUNT( * ) * - CAST( NULL AS SIGNED ) * - 92 / - - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT - 97 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 92 / - - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT - CASE + CASE - 14 WHEN + 75 THEN + - 40 / 91 + - - 62 WHEN 55 / - ( 72 ) + + 50 * + 11 THEN + 19 END WHEN + 31 + + - 55 + + COUNT( * ) + + 81 THEN NULL ELSE - 26 END col0
----
26

skipif mysql # not compatible
query I rowsort label-1899
SELECT - CASE + CASE - 14 WHEN + 75 THEN + - 40 / 91 + - - 62 WHEN 55 / - ( 72 ) + + 50 * + 11 THEN + 19 END WHEN + 31 + + - 55 + + COUNT ( * ) + + 81 THEN NULL ELSE - 26 END col0
----
26

query II rowsort
SELECT ALL 44, - 40 * + 48 AS col0
----
44
-1920

query I rowsort
SELECT - 61 * + 16 AS col2
----
-976

query II rowsort
SELECT ALL - ( + + 72 ) * - + 73 + - 75 AS col0, 40
----
5181
40

query I rowsort
SELECT - 13 + - 57 AS col2
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1904
SELECT ALL - 48 * 43 DIV - - 34 col0
----
-60

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL - 48 * 43 / - - 34 col0
----
-60

query I rowsort
SELECT + 87 * 33 * 14
----
40194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1906
SELECT - 57 * CASE - - 14 WHEN - 85 / MIN( DISTINCT - COALESCE ( - 32, + - 90 ) ) * - - 80 * + 38 * 55 THEN + - 50 * + 78 WHEN CAST( 82 AS SIGNED ) - 28 + + AVG ( DISTINCT - ( - 21 ) ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT - 57 * CASE - - 14 WHEN - 85 / MIN ( DISTINCT - COALESCE ( - 32, + - 90 ) ) * - - 80 * + 38 * 55 THEN + - 50 * + 78 WHEN CAST ( 82 AS INTEGER ) - 28 + + AVG ( DISTINCT - ( - 21 ) ) THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT - - COALESCE ( + 66, - 35 ) - - CAST( NULL AS SIGNED ) * - - AVG ( - + 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT - - COALESCE ( + 66, - 35 ) - - CAST ( NULL AS INTEGER ) * - - AVG ( - + 48 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1908
SELECT ALL + + 14 + - 63 * + MAX( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL + + 14 + - 63 * + MAX ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - + 52 - + - 51 AS col0
----
-1

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

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

query II rowsort
SELECT - + 52 AS col0, + 7 col1
----
-52
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT COUNT( ALL - 83 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1912
SELECT COUNT ( ALL - 83 ) col1
----
1

query I rowsort
SELECT ALL + 97 + - + 33 AS col2
----
64

query I rowsort
SELECT DISTINCT - 38 + + 63 * + CASE 52 WHEN + 62 THEN + + 51 WHEN 96 - + 77 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1915
SELECT - CAST( NULL AS SIGNED ), 47 * + 62 AS col1
----
NULL
2914

skipif mysql # not compatible
query II rowsort label-1915
SELECT - CAST ( NULL AS INTEGER ), 47 * + 62 AS col1
----
NULL
2914

query I rowsort
SELECT ALL 90 + - 84
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1917
SELECT - CASE - 20 WHEN + COALESCE ( 38, ( + AVG ( DISTINCT 71 ) ) - + 72 ) + - 24 THEN NULLIF ( - 25, - - 42 * CAST( - 19 AS SIGNED ) - + - 44 / - MAX( ALL - 88 ) + - 24 * - 86 ) WHEN - 46 THEN NULL ELSE NULL END - - - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT - CASE - 20 WHEN + COALESCE ( 38, ( + AVG ( DISTINCT 71 ) ) - + 72 ) + - 24 THEN NULLIF ( - 25, - - 42 * CAST ( - 19 AS INTEGER ) - + - 44 / - MAX ( ALL - 88 ) + - 24 * - 86 ) WHEN - 46 THEN NULL ELSE NULL END - - - 69
----
NULL

query II rowsort
SELECT - 99 AS col1, 98
----
-99
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1919
SELECT + 30 DIV - + 97 - - ( + + CASE 11 WHEN + - AVG ( ALL 41 ) + 70 THEN NULL WHEN + + 1 THEN NULL ELSE 95 END ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1919
SELECT + 30 / - + 97 - - ( + + CASE 11 WHEN + - AVG ( ALL 41 ) + 70 THEN NULL WHEN + + 1 THEN NULL ELSE 95 END ) AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1920
SELECT DISTINCT + 65 DIV + 25 + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT + 65 / + 25 + - COUNT ( * ) AS col1
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-1922
SELECT + - CAST ( NULL AS INTEGER ) * + 26 - 22
----
NULL

query II rowsort
SELECT DISTINCT + - 18 AS col2, - 48
----
-18
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-1924
SELECT + - 65 AS col2, 40 - + MIN( DISTINCT + - 31 ) - - 36
----
-65
107

skipif mysql # not compatible
query II rowsort label-1924
SELECT + - 65 AS col2, 40 - + MIN ( DISTINCT + - 31 ) - - 36
----
-65
107

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT NULLIF ( - + 47, + 42 * - MIN( 55 ) + + + NULLIF ( - + 49, - + 64 / - 33 * 20 + - + 1 ) )
----
-47

skipif mysql # not compatible
query I rowsort label-1925
SELECT NULLIF ( - + 47, + 42 * - MIN ( 55 ) + + + NULLIF ( - + 49, - + 64 / - 33 * 20 + - + 1 ) )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1926
SELECT - 39 * + MIN( + CAST( 2 AS SIGNED ) )
----
-78

skipif mysql # not compatible
query I rowsort label-1926
SELECT - 39 * + MIN ( + CAST ( 2 AS INTEGER ) )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-1927
SELECT + ( + COUNT( * ) ) AS col0, - 14 * - 80
----
1
1120

skipif mysql # not compatible
query II rowsort label-1927
SELECT + ( + COUNT ( * ) ) AS col0, - 14 * - 80
----
1
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT + 3 + + COUNT( + 85 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1928
SELECT + 3 + + COUNT ( + 85 ) AS col0
----
4

query I rowsort
SELECT + ( + - CASE ( ( - 82 ) ) WHEN - - 75 THEN 16 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT + 97 * + MIN( 11 ) AS col1
----
1067

skipif mysql # not compatible
query I rowsort label-1930
SELECT + 97 * + MIN ( 11 ) AS col1
----
1067

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

skipif mysql # not compatible
query I rowsort label-1931
SELECT + COUNT ( * ) + - 50 AS col1
----
-49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1933
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col0, - 91 AS col2
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-1933
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0, - 91 AS col2
----
NULL
-91

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

skipif mysql # not compatible
query I rowsort label-1934
SELECT + 61 / COUNT ( * ) AS col0
----
61

query I rowsort
SELECT ALL COALESCE ( 33, + 46 + + + 60 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT COUNT( + 93 )
----
1

skipif mysql # not compatible
query I rowsort label-1936
SELECT COUNT ( + 93 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1937
SELECT - CASE 42 WHEN + 70 + - 31 + - + 86 * - CAST( NULL AS SIGNED ) THEN NULL WHEN ( - 74 ) THEN + 12 ELSE + 22 END AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1937
SELECT - CASE 42 WHEN + 70 + - 31 + - + 86 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN ( - 74 ) THEN + 12 ELSE + 22 END AS col2
----
-22

query I rowsort
SELECT + 55 + - 9 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1939
SELECT - CAST( - 60 AS SIGNED ) AS col1, 86 * + COUNT( * )
----
60
86

skipif mysql # not compatible
query II rowsort label-1939
SELECT - CAST ( - 60 AS INTEGER ) AS col1, 86 * + COUNT ( * )
----
60
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL - SUM( + ( 91 ) ) * + + 76 + + 94 + - COUNT( DISTINCT - 60 )
----
-6823

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - SUM ( + ( 91 ) ) * + + 76 + + 94 + - COUNT ( DISTINCT - 60 )
----
-6823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1941
SELECT - - COUNT( ALL - 56 ) * CAST( + COUNT( * ) AS SIGNED ) * 85 + + + 24 + - 28 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1941
SELECT - - COUNT ( ALL - 56 ) * CAST ( + COUNT ( * ) AS INTEGER ) * 85 + + + 24 + - 28 AS col1
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1942
SELECT + + ( - 92 ) + + CAST( NULL AS DECIMAL ) + CASE + 17 WHEN + - CASE + + 6 WHEN + ( 96 ) THEN NULL WHEN - 73 THEN + ( + 67 ) * 39 + + NULLIF ( + + COALESCE ( - 10, + + 81 ), - 85 * + + 30 * + 78 + 92 ) ELSE NULL END THEN + 96 ELSE + + 90 END * - + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT + + ( - 92 ) + + CAST ( NULL AS REAL ) + CASE + 17 WHEN + - CASE + + 6 WHEN + ( 96 ) THEN NULL WHEN - 73 THEN + ( + 67 ) * 39 + + NULLIF ( + + COALESCE ( - 10, + + 81 ), - 85 * + + 30 * + 78 + 92 ) ELSE NULL END THEN + 96 ELSE + + 90 END * - + 16 AS col1
----
NULL

query I rowsort
SELECT ALL 77 + + 69 AS col0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT + COUNT( * ) * + MIN( ALL + 82 ) * - + 18
----
-1476

skipif mysql # not compatible
query I rowsort label-1944
SELECT + COUNT ( * ) * + MIN ( ALL + 82 ) * - + 18
----
-1476

query I rowsort
SELECT ALL ( + 59 ) + - 81 AS col2
----
-22

query I rowsort
SELECT DISTINCT + 67 + - ( - + 36 )
----
103

query I rowsort
SELECT DISTINCT + NULLIF ( - ( 25 ), - - 71 ) AS col0
----
-25

query I rowsort
SELECT - 44 + 20
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-1949
SELECT DISTINCT + 18 + + 53 AS col1, - 50 DIV + 80 AS col1
----
71
0

skipif mysql # not compatible
query II rowsort label-1949
SELECT DISTINCT + 18 + + 53 AS col1, - 50 / + 80 AS col1
----
71
0

query I rowsort
SELECT DISTINCT - 43 * - - 27 col2
----
-1161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1951
SELECT ALL + + SUM( - - 63 ) + + + CAST( + 49 AS SIGNED ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL + + SUM ( - - 63 ) + + + CAST ( + 49 AS INTEGER ) AS col2
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1952
SELECT CAST( + 67 AS SIGNED ) AS col2, COUNT( * ) + + ( - 44 ) + 77 - + - 3 AS col0
----
67
37

skipif mysql # not compatible
query II rowsort label-1952
SELECT CAST ( + 67 AS INTEGER ) AS col2, COUNT ( * ) + + ( - 44 ) + 77 - + - 3 AS col0
----
67
37

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT DISTINCT 2 * + 62 - + 27 + + - 31 + - + 4 * - + ( COUNT( * ) ) * + + 35 + - 85 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT 2 * + 62 - + 27 + + - 31 + - + 4 * - + ( COUNT ( * ) ) * + + 35 + - 85 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL COUNT( * ) - 30 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL COUNT ( * ) - 30 AS col2
----
-29

query I rowsort
SELECT ALL + 49 * + 28 * + 50 AS col2
----
68600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1958
SELECT DISTINCT - 91 - + NULLIF ( + 5, - + 92 / 10 * - 0 + + 68 ) + + 19, - 50 + - + 5 * CAST( NULL AS SIGNED ) AS col1
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-1958
SELECT DISTINCT - 91 - + NULLIF ( + 5, - + 92 / 10 * - 0 + + 68 ) + + 19, - 50 + - + 5 * CAST ( NULL AS INTEGER ) AS col1
----
-77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1959
SELECT 2, - COALESCE ( - COUNT( 62 ), CAST( NULL AS SIGNED ) ) AS col1
----
2
1

skipif mysql # not compatible
query II rowsort label-1959
SELECT 2, - COALESCE ( - COUNT ( 62 ), CAST ( NULL AS INTEGER ) ) AS col1
----
2
1

query I rowsort
SELECT + 40 * - 44 + - 32
----
-1792

query I rowsort
SELECT 75 * 88 AS col2
----
6600

query I rowsort
SELECT 10 * 30 AS col2
----
300

query I rowsort
SELECT 84 - + + 51
----
33

query I rowsort
SELECT 91 * - 55 AS col0
----
-5005

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT DISTINCT + 79 DIV + 23 col1
----
3

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT + 79 / + 23 col1
----
3

query I rowsort
SELECT 0 * + 56 AS col0
----
0

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

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

query II rowsort
SELECT DISTINCT - 87 AS col1, + 41 AS col1
----
-87
41

query I rowsort
SELECT 90 * 72
----
6480

query I rowsort
SELECT 25 * - - 80
----
2000

query II rowsort
SELECT 70 AS col1, - 84
----
70
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-1972
SELECT DISTINCT 1 AS col1, + COALESCE ( 50, - + 68 + + COUNT( * ), - MIN( - + 34 ) + - 73 + - 22 ) - - COUNT( * ) AS col1
----
1
51

skipif mysql # not compatible
query II rowsort label-1972
SELECT DISTINCT 1 AS col1, + COALESCE ( 50, - + 68 + + COUNT ( * ), - MIN ( - + 34 ) + - 73 + - 22 ) - - COUNT ( * ) AS col1
----
1
51

query I rowsort
SELECT 15 * - 6
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1974
SELECT 19 + + CAST( - CASE - 96 WHEN + MIN( ALL + 53 ) THEN - 4 / - - 56 * + 59 + - 5 END AS SIGNED ) + + + 77 * + + ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT 19 + + CAST ( - CASE - 96 WHEN + MIN ( ALL + 53 ) THEN - 4 / - - 56 * + 59 + - 5 END AS INTEGER ) + + + 77 * + + ( COUNT ( * ) ) AS col1
----
NULL

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

query I rowsort
SELECT ALL - 49 + + 96 AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + + 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1978
SELECT - - CAST( NULL AS SIGNED ), 89 AS col1
----
NULL
89

skipif mysql # not compatible
query II rowsort label-1978
SELECT - - CAST ( NULL AS INTEGER ), 89 AS col1
----
NULL
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT - 32 * 5 + - - NULLIF ( - - 77, - 19 ) * 57 DIV + + 7
----
467

skipif mysql # not compatible
query I rowsort label-1979
SELECT - 32 * 5 + - - NULLIF ( - - 77, - 19 ) * 57 / + + 7
----
467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1980
SELECT + 41 DIV + 22 - + 67 * + MAX( ALL 28 )
----
-1875

skipif mysql # not compatible
query I rowsort label-1980
SELECT + 41 / + 22 - + 67 * + MAX ( ALL 28 )
----
-1875

query I rowsort
SELECT ALL + 89 + - 22 AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1982
SELECT - CAST( - 72 AS SIGNED ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-1982
SELECT - CAST ( - 72 AS INTEGER ) AS col2
----
72

query I rowsort
SELECT ALL 25 - 2 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT + MIN( ALL 46 ) * - COUNT( * ) + + - NULLIF ( + COUNT( * ), + 0 * - 28 )
----
-47

skipif mysql # not compatible
query I rowsort label-1984
SELECT + MIN ( ALL 46 ) * - COUNT ( * ) + + - NULLIF ( + COUNT ( * ), + 0 * - 28 )
----
-47

query I rowsort
SELECT - 8 + + - 92 AS col2
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-1986
SELECT DISTINCT 47 DIV - 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT 47 / - 58 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT - 21 + - - NULLIF ( - 65, - + 66 ) * - 94 + 18 + + + 64 DIV 7 AS col0
----
6116

skipif mysql # not compatible
query I rowsort label-1987
SELECT - 21 + - - NULLIF ( - 65, - + 66 ) * - 94 + 18 + + + 64 / 7 AS col0
----
6116

query I rowsort
SELECT ALL 91 - - + 55 - + 6 * 96 col1
----
-430

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1990
SELECT COUNT( * ) DIV + 21 + - 23 + + - 7 * 79 * MAX( ALL + 77 ) * - - MAX( - 86 ) + - 88 AS col0
----
3661855

skipif mysql # not compatible
query I rowsort label-1990
SELECT COUNT ( * ) / + 21 + - 23 + + - 7 * 79 * MAX ( ALL + 77 ) * - - MAX ( - 86 ) + - 88 AS col0
----
3661855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1991
SELECT ALL + 92 * + - COALESCE ( - 82, 61 + + 58 - + COUNT( * ) + + AVG ( DISTINCT + - ( + + 55 ) ) DIV + 32 * - 14 )
----
7544

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL + 92 * + - COALESCE ( - 82, 61 + + 58 - + COUNT ( * ) + + AVG ( DISTINCT + - ( + + 55 ) ) / + 32 * - 14 )
----
7544

query I rowsort
SELECT + 11 * + 1 + + 76 + - + 44 + + 84
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1993
SELECT 10 * - CASE + - 59 WHEN + 26 + + 83 + + - 57 * - 89 * + + 52 * + 58 * 22 THEN + 69 WHEN CASE - - CAST( + 84 AS SIGNED ) WHEN MIN( CAST( 64 AS SIGNED ) ) THEN NULL WHEN - ( + - 91 ) * + + SUM( ALL - - 30 ) THEN - - 28 + COUNT( * ) END + 74 THEN NULL WHEN + 15 / + 55 THEN + + ( + MAX( ALL - + ( - 44 ) ) ) * - COUNT( * ) WHEN 50 THEN NULL ELSE 0 * - 3 END
----
0

skipif mysql # not compatible
query I rowsort label-1993
SELECT 10 * - CASE + - 59 WHEN + 26 + + 83 + + - 57 * - 89 * + + 52 * + 58 * 22 THEN + 69 WHEN CASE - - CAST ( + 84 AS INTEGER ) WHEN MIN ( CAST ( 64 AS INTEGER ) ) THEN NULL WHEN - ( + - 91 ) * + + SUM ( ALL - - 30 ) THEN - - 28 + COUNT ( * ) END + 74 THEN NULL WHEN + 15 / + 55 THEN + + ( + MAX ( ALL - + ( - 44 ) ) ) * - COUNT ( * ) WHEN 50 THEN NULL ELSE 0 * - 3 END
----
0

query I rowsort
SELECT DISTINCT + 83 * - ( 62 )
----
-5146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT CAST( - 40 AS SIGNED ) * 70 * - - CAST( NULL AS SIGNED ) + + - 74 * + 8 * + AVG ( + ( 52 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT CAST ( - 40 AS INTEGER ) * 70 * - - CAST ( NULL AS INTEGER ) + + - 74 * + 8 * + AVG ( + ( 52 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL - CASE 72 WHEN - + 15 * + 42 * - - 26 + + - COUNT( * ) + + 92 + - 44 + 38 THEN + 38 WHEN - 90 THEN COUNT( ALL 17 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL - CASE 72 WHEN - + 15 * + 42 * - - 26 + + - COUNT ( * ) + + 92 + - 44 + 38 THEN + 38 WHEN - 90 THEN COUNT ( ALL 17 ) ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL 74 * - + 9
----
-666

query I rowsort
SELECT 3 + 49 AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2000
SELECT CAST( - 57 AS SIGNED ) DIV - 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2000
SELECT CAST ( - 57 AS INTEGER ) / - 53 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT DISTINCT + COUNT( * ) + + 83 + - COALESCE ( + + 59, + NULLIF ( - 17, 72 ) )
----
25

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT + COUNT ( * ) + + 83 + - COALESCE ( + + 59, + NULLIF ( - 17, 72 ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT 35 * + COUNT( * ) * + - 72 AS col0
----
-2520

skipif mysql # not compatible
query I rowsort label-2002
SELECT 35 * + COUNT ( * ) * + - 72 AS col0
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT COUNT( * ) + - - 28 * - + 66 AS col0
----
-1847

skipif mysql # not compatible
query I rowsort label-2003
SELECT COUNT ( * ) + - - 28 * - + 66 AS col0
----
-1847

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT DISTINCT - MIN( DISTINCT 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT - MIN ( DISTINCT 52 ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-2005
SELECT ALL + 21 + + 48 + - + 23 * - + 95 AS col0, - COUNT( * ) AS col1
----
2254
-1

skipif mysql # not compatible
query II rowsort label-2005
SELECT ALL + 21 + + 48 + - + 23 * - + 95 AS col0, - COUNT ( * ) AS col1
----
2254
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2006
SELECT ALL + CAST( + 26 AS SIGNED ) * - COUNT( ALL 60 ) AS col1, 14
----
-26
14

skipif mysql # not compatible
query II rowsort label-2006
SELECT ALL + CAST ( + 26 AS INTEGER ) * - COUNT ( ALL 60 ) AS col1, 14
----
-26
14

query I rowsort
SELECT ALL + 85 + - - 84 + - 35
----
134

query I rowsort
SELECT ALL + 78 + - 75 + + 74 - + + 89 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - CASE - - 84 WHEN + - 56 THEN + COUNT( * ) + - + 4 ELSE 84 + - NULLIF ( - - ( + MAX( - ( 43 ) ) ), 69 * - COUNT( * ) + CASE + 10 WHEN + 72 + 85 + 80 THEN + + COUNT( * ) END + ( + + 37 ) + COUNT( * ) ) END AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-2009
SELECT - CASE - - 84 WHEN + - 56 THEN + COUNT ( * ) + - + 4 ELSE 84 + - NULLIF ( - - ( + MAX ( - ( 43 ) ) ), 69 * - COUNT ( * ) + CASE + 10 WHEN + 72 + 85 + 80 THEN + + COUNT ( * ) END + ( + + 37 ) + COUNT ( * ) ) END AS col1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT 14 + COUNT( ALL + CASE - 48 WHEN - + 51 * + 86 + 35 + + 90 THEN - 95 * - 8 ELSE NULL END ) col2
----
14

skipif mysql # not compatible
query I rowsort label-2010
SELECT 14 + COUNT ( ALL + CASE - 48 WHEN - + 51 * + 86 + 35 + + 90 THEN - 95 * - 8 ELSE NULL END ) col2
----
14

query I rowsort
SELECT ALL - NULLIF ( - 52, - + 55 ) - - - CASE - 62 WHEN + + AVG ( 95 ) THEN + + 49 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT - COUNT( * ) * - 6 + 54 + - - 25 * - + CASE - - 96 WHEN + 64 * - - 40 + 25 THEN NULL WHEN + 98 + + 32 THEN 43 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT - COUNT ( * ) * - 6 + 54 + - - 25 * - + CASE - - 96 WHEN + 64 * - - 40 + 25 THEN NULL WHEN + 98 + + 32 THEN 43 END col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT ALL - MIN( COALESCE ( + ( 15 ), - 7 - 14 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL - MIN ( COALESCE ( + ( 15 ), - 7 - 14 ) )
----
-15

query II rowsort
SELECT + + 38 * + 46 + - 97 * - + ( + 73 ) AS col1, + 78 * 11 col0
----
8829
858

query I rowsort
SELECT ALL + 33 * - 73
----
-2409

onlyif mysql # aggregate syntax: 
query II rowsort label-2017
SELECT + 55 + 23 + - MAX( + - 61 ), 17 AS col2
----
139
17

skipif mysql # not compatible
query II rowsort label-2017
SELECT + 55 + 23 + - MAX ( + - 61 ), 17 AS col2
----
139
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2018
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - - 83 + 95, 67 * COUNT( * ) AS col2
----
178
67

skipif mysql # not compatible
query II rowsort label-2018
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - - 83 + 95, 67 * COUNT ( * ) AS col2
----
178
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT + 69 * + 61 + - CAST( - 43 AS SIGNED )
----
4252

skipif mysql # not compatible
query I rowsort label-2019
SELECT + 69 * + 61 + - CAST ( - 43 AS INTEGER )
----
4252

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT ALL COUNT( 2 ) + - 3
----
-2

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL COUNT ( 2 ) + - 3
----
-2

query I rowsort
SELECT - 98 + - 38 - - 55 * - - 61
----
3219

query I rowsort
SELECT + 68 * + + 69
----
4692

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

query I rowsort
SELECT ( - - 14 ) col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL 75 * + 18 * 36 + SUM( ALL - - 7 ) - + - ( + + 97 )
----
48704

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL 75 * + 18 * 36 + SUM ( ALL - - 7 ) - + - ( + + 97 )
----
48704

onlyif mysql # aggregate syntax: 
query II rowsort label-2026
SELECT DISTINCT + COUNT( + + 37 ) * + + 70 + 85 + + 33 AS col1, 56 + + 94 AS col2
----
188
150

skipif mysql # not compatible
query II rowsort label-2026
SELECT DISTINCT + COUNT ( + + 37 ) * + + 70 + 85 + + 33 AS col1, 56 + + 94 AS col2
----
188
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + 94 * + ( 91 ) * - 56 + + ( 65 ) + + 14 + - + 82 + - ( - 23 ) * - + 58 * - + 37 * + CASE + - 13 WHEN - 83 * - 35 * + + COUNT( * ) + + ( - 45 ) * - 10 THEN NULL WHEN - 70 * - + 1 - + 54 * - 69 THEN - NULLIF ( + 48, + - 41 - + 50 * - 82 ) ELSE - MAX( ALL - 10 ) END * 69 - - 93 * + 18
----
33579667

skipif mysql # not compatible
query I rowsort label-2027
SELECT + 94 * + ( 91 ) * - 56 + + ( 65 ) + + 14 + - + 82 + - ( - 23 ) * - + 58 * - + 37 * + CASE + - 13 WHEN - 83 * - 35 * + + COUNT ( * ) + + ( - 45 ) * - 10 THEN NULL WHEN - 70 * - + 1 - + 54 * - 69 THEN - NULLIF ( + 48, + - 41 - + 50 * - 82 ) ELSE - MAX ( ALL - 10 ) END * 69 - - 93 * + 18
----
33579667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2028
SELECT - 14 * - 68 * - - 10 * - + COALESCE ( 74, + ( + 72 ) + - + 24, - - CAST( - 78 AS SIGNED ) )
----
-704480

skipif mysql # not compatible
query I rowsort label-2028
SELECT - 14 * - 68 * - - 10 * - + COALESCE ( 74, + ( + 72 ) + - + 24, - - CAST ( - 78 AS INTEGER ) )
----
-704480

onlyif mysql # aggregate syntax: 
query II rowsort label-2029
SELECT ALL - 27 * - COUNT( * ) + + - 81, 3 AS col2
----
-54
3

skipif mysql # not compatible
query II rowsort label-2029
SELECT ALL - 27 * - COUNT ( * ) + + - 81, 3 AS col2
----
-54
3

query II rowsort
SELECT COALESCE ( - 34, + 75 ), + 59 AS col0
----
-34
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT + NULLIF ( + 35, + - 28 + - 22 * - - 16 - - 30 / - 82 * - + COUNT( * ) * 57 )
----
35

skipif mysql # not compatible
query I rowsort label-2031
SELECT + NULLIF ( + 35, + - 28 + - 22 * - - 16 - - 30 / - 82 * - + COUNT ( * ) * 57 )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2032
SELECT ALL + 80, 84 + MAX( - 81 ) + COUNT( * ) + SUM( + 2 ) * + - SUM( 42 ) DIV 17 AS col0
----
80
0

skipif mysql # not compatible
query II rowsort label-2032
SELECT ALL + 80, 84 + MAX ( - 81 ) + COUNT ( * ) + SUM ( + 2 ) * + - SUM ( 42 ) / 17 AS col0
----
80
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2033
SELECT 35 * - CAST( NULL AS SIGNED ) + - 32 AS col1, - CASE - - 65 WHEN - 22 THEN SUM( ALL 91 ) * + - 26 + - 26 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2033
SELECT 35 * - CAST ( NULL AS INTEGER ) + - 32 AS col1, - CASE - - 65 WHEN - 22 THEN SUM ( ALL 91 ) * + - 26 + - 26 ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT DISTINCT ( + MIN( ALL 23 ) ) * - + 90
----
-2070

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT ( + MIN ( ALL 23 ) ) * - + 90
----
-2070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2035
SELECT ALL SUM( ALL + - 75 ) * - COUNT( 19 ) * - COUNT( 63 ) - - CAST( - - 0 AS SIGNED ) + - 48 * NULLIF ( 75, 96 ) - + 47 * 84 col2
----
-7623

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL SUM ( ALL + - 75 ) * - COUNT ( 19 ) * - COUNT ( 63 ) - - CAST ( - - 0 AS INTEGER ) + - 48 * NULLIF ( 75, 96 ) - + 47 * 84 col2
----
-7623

query I rowsort
SELECT - 48 * + + 54 * - + 30 AS col0
----
77760

query I rowsort
SELECT DISTINCT + - 11 * - + 67 - ( - 18 ) * 35 - 13
----
1354

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT DISTINCT - - 12 * - ( + COUNT( * ) ) - - - 48 + 6
----
-54

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT - - 12 * - ( + COUNT ( * ) ) - - - 48 + 6
----
-54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2041
SELECT DISTINCT - - 50 DIV 68 + + 77 col1
----
77

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT - - 50 / 68 + + 77 col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT DISTINCT - - 25 * - 26 * CASE - 34 WHEN - - COUNT( * ) THEN 3 END + + + 93 + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT - - 25 * - 26 * CASE - 34 WHEN - - COUNT ( * ) THEN 3 END + + + 93 + 43
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2044
SELECT ALL - 28 DIV - 16
----
1

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL - 28 / - 16
----
1

query I rowsort
SELECT DISTINCT - + ( - - 88 ) * - 15 AS col2
----
1320

query I rowsort
SELECT DISTINCT + + 45 * + ( + 16 ) * + - 52
----
-37440

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

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

query I rowsort
SELECT - 70 + + 83 - + - 40 * + + 8 col0
----
333

query I rowsort
SELECT ALL NULLIF ( - 0, + 47 * - ( - 92 ) ) AS col2
----
0

query II rowsort
SELECT - - 80 AS col2, 44
----
80
44

query II rowsort
SELECT - - 26 AS col2, - 88 + - + ( - 64 ) AS col1
----
26
-24

query I rowsort
SELECT ALL - 21 + - + 74 AS col1
----
-95

query I rowsort
SELECT - - 15 + + ( 35 ) + + 90 AS col1
----
140

query I rowsort
SELECT ALL ( - 60 ) col1
----
-60

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

query I rowsort
SELECT DISTINCT ( ( 98 ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT DISTINCT + COUNT( * ) + + + 29
----
30

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT + COUNT ( * ) + + + 29
----
30

query II rowsort
SELECT DISTINCT 67 AS col2, 26 AS col1
----
67
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - COUNT( DISTINCT NULLIF ( + - 16, + + 21 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2059
SELECT - COUNT ( DISTINCT NULLIF ( + - 16, + + 21 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2060
SELECT 66 DIV 16 + 59 + + 44 + - 51 + - 70 * COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2060
SELECT 66 / 16 + 59 + + 44 + - 51 + - 70 * COUNT ( * ) AS col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2061
SELECT ALL - 83 DIV SUM( 30 ) + + 3 * + 14 + + 27 + - COUNT( ( + + 87 ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL - 83 / SUM ( 30 ) + + 3 * + 14 + + 27 + - COUNT ( ( + + 87 ) ) AS col1
----
66

query I rowsort
SELECT - 64 * - 25 + + - 99
----
1501

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT ALL + 83 DIV 77 + 38
----
39

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL + 83 / 77 + 38
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2064
SELECT 66 DIV + - 78 + - + ( + - SUM( 56 ) ) * + COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2064
SELECT 66 / + - 78 + - + ( + - SUM ( 56 ) ) * + COUNT ( * ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2065
SELECT ALL - COALESCE ( ( - 18 ), - 69, + + 37 * + 83 * - 43 DIV + 58 * + - 88 * - CAST( NULL AS SIGNED ), + - 77 + - - 23 * + - COUNT( * ) ) * + + 50 AS col1
----
900

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL - COALESCE ( ( - 18 ), - 69, + + 37 * + 83 * - 43 / + 58 * + - 88 * - CAST ( NULL AS INTEGER ), + - 77 + - - 23 * + - COUNT ( * ) ) * + + 50 AS col1
----
900

query I rowsort
SELECT DISTINCT + 76 * - 39 * - 36
----
106704

query I rowsort
SELECT + 55 + - 13 + - - 91
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2068
SELECT 40 * + - MAX( - - 3 ) * 44 + - COUNT( + CAST( NULL AS SIGNED ) ) + + 21 AS col2
----
-5259

skipif mysql # not compatible
query I rowsort label-2068
SELECT 40 * + - MAX ( - - 3 ) * 44 + - COUNT ( + CAST ( NULL AS INTEGER ) ) + + 21 AS col2
----
-5259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2069
SELECT ALL - 6 DIV - COUNT( NULLIF ( + 78, - - 54 ) ) - - ( 36 )
----
42

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL - 6 / - COUNT ( NULLIF ( + 78, - - 54 ) ) - - ( 36 )
----
42

query II rowsort
SELECT 57 AS col0, - 34
----
57
-34

query I rowsort
SELECT + ( - COALESCE ( + - 7, + 95 - + - 90 * + 2 ) )
----
7

query I rowsort
SELECT 44 * - 99 AS col2
----
-4356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT ALL - CAST( NULL AS SIGNED ) * + 86 + 95 / - 12 + - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL - CAST ( NULL AS INTEGER ) * + 86 + 95 / - 12 + - 9 AS col0
----
NULL

query I rowsort
SELECT - 61 + - 63 AS col0
----
-124

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

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

query I rowsort
SELECT DISTINCT - - 23 - + 62 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT DISTINCT + 99 * 78 * 10 + - 43 + + 44 * + - COUNT( + 59 ) * - ( - - 99 ) - - 28 AS col1
----
81561

skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT + 99 * 78 * 10 + - 43 + + 44 * + - COUNT ( + 59 ) * - ( - - 99 ) - - 28 AS col1
----
81561

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT 23 * + - 19 * + 94 * CAST( NULL AS SIGNED ) + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT 23 * + - 19 * + 94 * CAST ( NULL AS INTEGER ) + 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL SUM( ALL + - 7 ) * + + 51 + 65 - + + 15 col2
----
-307

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL SUM ( ALL + - 7 ) * + + 51 + 65 - + + 15 col2
----
-307

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

query II rowsort
SELECT DISTINCT + 28 AS col2, 49
----
28
49

query I rowsort
SELECT ALL + 25 + - 55
----
-30

query I rowsort
SELECT - COALESCE ( + 21, + 69 + + 84 * 36 * - - COALESCE ( - 53, - 17 ), + 41 ) AS col0
----
-21

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

query I rowsort
SELECT ALL 60 + + 69 AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT + 34 * - MIN( 76 )
----
-2584

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT + 34 * - MIN ( 76 )
----
-2584

query I rowsort
SELECT DISTINCT 69 + 30
----
99

query I rowsort
SELECT DISTINCT - ( 11 ) + - - 68 AS col2
----
57

query II rowsort
SELECT ALL - 34 + + 44 AS col0, 82 * 15 AS col1
----
10
1230

query I rowsort
SELECT 19 + - - 82 * 77 + + - 37
----
6296

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

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - CAST ( NULL AS REAL ) + 26 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2093
SELECT 9 * COUNT ( * )
----
9

query I rowsort
SELECT DISTINCT - 16 - + + 73 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL COUNT( 80 ) * + - 6 * 22
----
-132

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL COUNT ( 80 ) * + - 6 * 22
----
-132

query I rowsort
SELECT 35 * + + 35 * 3
----
3675

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

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

query I rowsort
SELECT DISTINCT 84 * + + 29 * + - 6 AS col2
----
-14616

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2099
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - + 97, COUNT( * ) + + 76 * 68 * - - 82 AS col0
----
NULL
423777

skipif mysql # not compatible
query II rowsort label-2099
SELECT DISTINCT - CAST ( NULL AS REAL ) - + 97, COUNT ( * ) + + 76 * 68 * - - 82 AS col0
----
NULL
423777

query I rowsort
SELECT 72 * 84 + - 8
----
6040

onlyif mysql # DIV for integer division: 
query II rowsort label-2101
SELECT 54 DIV - 1 AS col1, + 53
----
-54
53

skipif mysql # not compatible
query II rowsort label-2101
SELECT 54 / - 1 AS col1, + 53
----
-54
53

query I rowsort
SELECT ALL - 99 * - + 40
----
3960

query I rowsort
SELECT DISTINCT 66 * - 44 * - 76 col2
----
220704

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2104
SELECT CASE 38 WHEN + + CAST( NULL AS DECIMAL ) + - ( 95 ) THEN + 33 * + + 31 - + - 52 + 34 WHEN - 33 THEN NULL END / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT CASE 38 WHEN + + CAST ( NULL AS REAL ) + - ( 95 ) THEN + 33 * + + 31 - + - 52 + 34 WHEN - 33 THEN NULL END / + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 49 - + - 2 * + 24
----
97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2107
SELECT ALL COUNT( * ) DIV COALESCE ( - CAST( + 22 AS SIGNED ), + - COUNT( * ) * + 36 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL COUNT ( * ) / COALESCE ( - CAST ( + 22 AS INTEGER ), + - COUNT ( * ) * + 36 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2108
SELECT SUM( + 4 ) DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2108
SELECT SUM ( + 4 ) / 95 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2109
SELECT ALL - 89 DIV + MAX( DISTINCT - 36 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL - 89 / + MAX ( DISTINCT - 36 ) AS col1
----
2

query I rowsort
SELECT DISTINCT - + 51 col0
----
-51

query III rowsort
SELECT ALL + 15 + 16 AS col2, - 56 col1, - + 34 + + + 98 AS col0
----
31
-56
64

query I rowsort
SELECT + - ( - 19 ) col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2113
SELECT + CAST( - 68 AS SIGNED ) - - 60 * 62 * + MAX( - 95 ) * - 68 + - COUNT( * ) * 93 * + 97
----
24022111

skipif mysql # not compatible
query I rowsort label-2113
SELECT + CAST ( - 68 AS INTEGER ) - - 60 * 62 * + MAX ( - 95 ) * - 68 + - COUNT ( * ) * 93 * + 97
----
24022111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2114
SELECT DISTINCT 73 + + 90 DIV - 89 + - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT 73 + + 90 / - 89 + - COUNT ( * )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2115
SELECT 30 - - - COALESCE ( + 85, 52 + + 4 + - + 61 * - - COALESCE ( 32, - 53 ) DIV - 60, + COUNT( * ) + + 50 * 22 + - + COUNT( * ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2115
SELECT 30 - - - COALESCE ( + 85, 52 + + 4 + - + 61 * - - COALESCE ( 32, - 53 ) / - 60, + COUNT ( * ) + + 50 * 22 + - + COUNT ( * ) ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2116
SELECT + - COALESCE ( - + 99, + + 58, - 0 * + + 74 * + + CAST( NULL AS SIGNED ) + - ( - CASE - + COUNT( * ) WHEN - ( + 25 ) - - 82 THEN + COUNT( * ) ELSE + - 25 DIV 0 END ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2116
SELECT + - COALESCE ( - + 99, + + 58, - 0 * + + 74 * + + CAST ( NULL AS INTEGER ) + - ( - CASE - + COUNT ( * ) WHEN - ( + 25 ) - - 82 THEN + COUNT ( * ) ELSE + - 25 / 0 END ) ) AS col0
----
99

query II rowsort
SELECT + ( - 64 ) AS col1, - 16
----
-64
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT DISTINCT + 21 + MAX( DISTINCT + - 4 )
----
17

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT + 21 + MAX ( DISTINCT + - 4 )
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT ALL 58 + 16 * MAX( ALL - 57 )
----
-854

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL 58 + 16 * MAX ( ALL - 57 )
----
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ( + + 33 ) - 51 - SUM( + 31 ) / CASE + ( 59 ) WHEN - + 8 THEN - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT ( + + 33 ) - 51 - SUM ( + 31 ) / CASE + ( 59 ) WHEN - + 8 THEN - 73 END
----
NULL

query I rowsort
SELECT 19 * 16 AS col0
----
304

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

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

query I rowsort
SELECT ( - 39 ) + + 43
----
4

query I rowsort
SELECT 45 * 80 * - 12 * + 95 AS col0
----
-4104000

query I rowsort
SELECT 19 + + 17 AS col0
----
36

query I rowsort
SELECT 35 * - 22
----
-770

query I rowsort
SELECT 38 + + 87 col2
----
125

query I rowsort
SELECT ALL - 3 * - - 89 AS col1
----
-267

query I rowsort
SELECT 44 * 94
----
4136

query I rowsort
SELECT ALL - COALESCE ( NULLIF ( 99, 95 ), + 46 * 69 ) * + - 60
----
5940

query II rowsort
SELECT 92 AS col1, ( + 10 ) + + COALESCE ( - 93, - - 88 * + 29 * + - 82 ) + - + ( + 44 ) col1
----
92
-127

query I rowsort
SELECT 54 + + - 43
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT DISTINCT COUNT( - 93 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT COUNT ( - 93 ) col0
----
1

query I rowsort
SELECT - 13 * - + 8 AS col1
----
104

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

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

query II rowsort
SELECT NULLIF ( + 52, + + 5 ) AS col0, + 64 * + NULLIF ( - 91, - 1 ) AS col2
----
52
-5824

onlyif mysql # DIV for integer division: 
query I rowsort label-2138
SELECT + - 50 DIV + ( - 45 ) + 58 + + 11 - + 34 + + NULLIF ( - - 75, 77 ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-2138
SELECT + - 50 / + ( - 45 ) + 58 + + 11 - + 34 + + NULLIF ( - - 75, 77 ) AS col1
----
111

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

query II rowsort
SELECT DISTINCT + + 12 AS col1, 54 + + 5 + + - 5 * + 16 + - 23 AS col1
----
12
-44

query I rowsort
SELECT DISTINCT 68 * + ( - 9 ) + 96 + - 23 * 18
----
-930

query I rowsort
SELECT ALL + 60 * 5 AS col1
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2143
SELECT - NULLIF ( + 38, + CASE - COUNT( * ) WHEN - 65 + + 35 + CAST( NULL AS SIGNED ) + AVG ( 8 ) THEN NULL ELSE - 28 * - 58 - + 92 END + 47 + + - CASE 57 WHEN - 52 + - + 72 / + MAX( DISTINCT + - 51 ) THEN NULL ELSE + - 86 / COUNT( * ) END )
----
-38

skipif mysql # not compatible
query I rowsort label-2143
SELECT - NULLIF ( + 38, + CASE - COUNT ( * ) WHEN - 65 + + 35 + CAST ( NULL AS INTEGER ) + AVG ( 8 ) THEN NULL ELSE - 28 * - 58 - + 92 END + 47 + + - CASE 57 WHEN - 52 + - + 72 / + MAX ( DISTINCT + - 51 ) THEN NULL ELSE + - 86 / COUNT ( * ) END )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT ALL + CAST( NULL AS SIGNED ) * 10 * - + 54 + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL + CAST ( NULL AS INTEGER ) * 10 * - + 54 + + 79 AS col2
----
NULL

query I rowsort
SELECT - 63 * 31 col0
----
-1953

query II rowsort
SELECT DISTINCT - 81 * - 15 * + + 76 col0, + 2
----
92340
2

query I rowsort
SELECT ALL - 55 * - 35 * - 68 * - - 17 + - 73 + 9 AS col2
----
-2225364

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL + 27 * 51 + - 81 + + 7 + + - CASE + 50 WHEN + 86 THEN + 71 + - SUM( 1 ) END * - + 96 / + - 20 * 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL + 27 * 51 + - 81 + + 7 + + - CASE + 50 WHEN + 86 THEN + 71 + - SUM ( 1 ) END * - + 96 / + - 20 * 78 AS col0
----
NULL

query I rowsort
SELECT + + 78 * 9
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT - COUNT( - - 76 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2150
SELECT - COUNT ( - - 76 ) AS col0
----
-1

query I rowsort
SELECT + 62 * - 85 * + + 5
----
-26350

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT DISTINCT ( ( 87 ) ) * 32 DIV - 42 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT ( ( 87 ) ) * 32 / - 42 AS col2
----
-66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2155
SELECT + COUNT( * ) DIV - 4 AS col0, COALESCE ( - - ( 16 ), - + 96, + COUNT( * ) )
----
0
16

skipif mysql # not compatible
query II rowsort label-2155
SELECT + COUNT ( * ) / - 4 AS col0, COALESCE ( - - ( 16 ), - + 96, + COUNT ( * ) )
----
0
16

query I rowsort
SELECT - NULLIF ( + 54, + 79 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT + 96 * CASE + COUNT( * ) WHEN + 37 THEN - MIN( - ( + 82 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT + 96 * CASE + COUNT ( * ) WHEN + 37 THEN - MIN ( - ( + 82 ) ) ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT - ( 99 ) col2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2160
SELECT - ( + 12 ) DIV - - 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT - ( + 12 ) / - - 20 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT DISTINCT + 54 DIV - ( 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + 54 / - ( 38 )
----
-1

query I rowsort
SELECT ALL - 36 * - - 5 AS col0
----
-180

onlyif mysql # DIV for integer division: 
query II rowsort label-2163
SELECT + 83 DIV 95 AS col0, 64 AS col0
----
0
64

skipif mysql # not compatible
query II rowsort label-2163
SELECT + 83 / 95 AS col0, 64 AS col0
----
0
64

query I rowsort
SELECT DISTINCT 89 + - - 73
----
162

query I rowsort
SELECT DISTINCT - + 16 + - - 34
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2166
SELECT DISTINCT NULLIF ( - 69, + - 64 + - 14 ) DIV - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT NULLIF ( - 69, + - 64 + - 14 ) / - COUNT ( * )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT - - 0 DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-2167
SELECT - - 0 / + - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT + - 3 * + COUNT( * ) * 44 + + + 59 + - 27 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT + - 3 * + COUNT ( * ) * 44 + + + 59 + - 27 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT + MIN( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT + MIN ( 20 )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT 40 DIV + 33 + + ( + - COALESCE ( 28, + 40 * + 4, + 90 ) ) DIV - 6
----
5

skipif mysql # not compatible
query I rowsort label-2170
SELECT 40 / + 33 + + ( + - COALESCE ( 28, + 40 * + 4, + 90 ) ) / - 6
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2171
SELECT ALL 74 DIV ( + 86 ) + MIN( 59 ) * + 90 + + 90 + - 6 * + ( + + SUM( - 49 ) ) + + + 92
----
5786

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL 74 / ( + 86 ) + MIN ( 59 ) * + 90 + + 90 + - 6 * + ( + + SUM ( - 49 ) ) + + + 92
----
5786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2172
SELECT - 95 * + - 36 * COALESCE ( - 81, + 42 ) / 65 + + CASE + 57 WHEN CASE + 51 WHEN - 84 + - + 25 + CAST( NULL AS SIGNED ) * 44 * + 98 + - 79 + + + ( + + 10 ) * + 66 THEN - 58 WHEN - - 86 + + + 34 * - ( + 84 ) * 7 * + - CAST( NULL AS SIGNED ) THEN + - ( 50 ) * - + 66 ELSE 45 END + + + 12 / + 43 + NULLIF ( + 86, 3 ) THEN 80 / - 16 + + 74 * + ( - MAX( 59 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT - 95 * + - 36 * COALESCE ( - 81, + 42 ) / 65 + + CASE + 57 WHEN CASE + 51 WHEN - 84 + - + 25 + CAST ( NULL AS INTEGER ) * 44 * + 98 + - 79 + + + ( + + 10 ) * + 66 THEN - 58 WHEN - - 86 + + + 34 * - ( + 84 ) * 7 * + - CAST ( NULL AS INTEGER ) THEN + - ( 50 ) * - + 66 ELSE 45 END + + + 12 / + 43 + NULLIF ( + 86, 3 ) THEN 80 / - 16 + + 74 * + ( - MAX ( 59 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - 34 + 50 * + - COUNT( * ) * + 34
----
-1734

skipif mysql # not compatible
query I rowsort label-2173
SELECT - 34 + 50 * + - COUNT ( * ) * + 34
----
-1734

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT - + 32 * - - CAST( + ( - + ( + CASE - + 30 WHEN + CAST( + COUNT( * ) AS SIGNED ) * AVG ( DISTINCT + 99 ) + - 9 - 9 + 67 THEN - 57 * - 36 + + - 39 - + 56 WHEN + - 51 / - 75 * - + 17 + 74 THEN NULL WHEN - 49 + - 11 * + - 75 - - 12 THEN NULL ELSE NULL END ) ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT - + 32 * - - CAST ( + ( - + ( + CASE - + 30 WHEN + CAST ( + COUNT ( * ) AS INTEGER ) * AVG ( DISTINCT + 99 ) + - 9 - 9 + 67 THEN - 57 * - 36 + + - 39 - + 56 WHEN + - 51 / - 75 * - + 17 + 74 THEN NULL WHEN - 49 + - 11 * + - 75 - - 12 THEN NULL ELSE NULL END ) ) AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT DISTINCT - 44 DIV ( - + 3 ) + - 49 * - 31 + + 81
----
1614

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - 44 / ( - + 3 ) + - 49 * - 31 + + 81
----
1614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT ALL 57 * CAST( + - CASE + 48 WHEN - 74 THEN MIN( ALL + CAST( NULL AS SIGNED ) ) END AS SIGNED ) + - ( - 11 ) * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL 57 * CAST ( + - CASE + 48 WHEN - 74 THEN MIN ( ALL + CAST ( NULL AS INTEGER ) ) END AS INTEGER ) + - ( - 11 ) * - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT + ( - MAX( DISTINCT - + 82 ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2178
SELECT + ( - MAX ( DISTINCT - + 82 ) ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT ALL - 37 * + 83 - 98 + - + CAST( + - 45 AS SIGNED )
----
-3124

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL - 37 * + 83 - 98 + - + CAST ( + - 45 AS INTEGER )
----
-3124

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2180
SELECT DISTINCT - 55 * CASE + 94 WHEN 20 + + ( + 87 ) THEN - + 91 + + COUNT( DISTINCT + 44 ) * + 4 + + CAST( NULL AS DECIMAL ) ELSE NULL END * - 47 AS col2, + 6 + - + 89
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-2180
SELECT DISTINCT - 55 * CASE + 94 WHEN 20 + + ( + 87 ) THEN - + 91 + + COUNT ( DISTINCT + 44 ) * + 4 + + CAST ( NULL AS REAL ) ELSE NULL END * - 47 AS col2, + 6 + - + 89
----
NULL
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + - 29 * + 90 + - COUNT( * ) + ( - - 28 ) - 53
----
-2636

skipif mysql # not compatible
query I rowsort label-2181
SELECT + - 29 * + 90 + - COUNT ( * ) + ( - - 28 ) - 53
----
-2636

query I rowsort
SELECT - 97 - + 20
----
-117

query I rowsort
SELECT DISTINCT + + ( - 6 ) AS col0
----
-6

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

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

query I rowsort
SELECT - 62 * 8 * + - 36
----
17856

query I rowsort
SELECT + 68 * - 38
----
-2584

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

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL + COUNT ( * ) * + 77 / + 84
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT DISTINCT CAST( - 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT CAST ( - 60 AS INTEGER )
----
-60

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

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

query I rowsort
SELECT - 20 + + - 87
----
-107

query I rowsort
SELECT 28 + - 61 + - 36 * - 28
----
975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT COUNT( * ) * - 84 * - + 52 DIV COUNT( * ) * + + 42 AS col0
----
183456

skipif mysql # not compatible
query I rowsort label-2192
SELECT COUNT ( * ) * - 84 * - + 52 / COUNT ( * ) * + + 42 AS col0
----
183456

query I rowsort
SELECT DISTINCT 2 * + - 34 AS col0
----
-68

query I rowsort
SELECT ALL 60 + + + 32
----
92

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

skipif mysql # not compatible
query I rowsort label-2195
SELECT 53 + - 93 * + COUNT ( * ) AS col1
----
-40

query I rowsort
SELECT ALL 37 + - 1 * - 58 AS col0
----
95

query I rowsort
SELECT ( - 67 ) + 13 AS col2
----
-54

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

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL 69 + - COUNT ( 97 ) AS col2
----
68

query I rowsort
SELECT 44 + 85 AS col0
----
129

query I rowsort
SELECT ALL 12 + - - 44 AS col2
----
56

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

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

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

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

query I rowsort
SELECT ALL - 58 + NULLIF ( + 85, - 33 ) AS col0
----
27

query II rowsort
SELECT + 44 AS col0, 10
----
44
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2205
SELECT + ( - + CAST( + COALESCE ( 51, + COUNT( * ) ) AS SIGNED ) ) * 72
----
-3672

skipif mysql # not compatible
query I rowsort label-2205
SELECT + ( - + CAST ( + COALESCE ( 51, + COUNT ( * ) ) AS INTEGER ) ) * 72
----
-3672

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2206
SELECT CAST( NULL AS DECIMAL ) * 54 + 7 * + ( - + 58 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT CAST ( NULL AS REAL ) * 54 + 7 * + ( - + 58 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2207
SELECT ALL - COALESCE ( - + 91, - CAST( + + 8 AS SIGNED ) + + ( 59 ) ) + + 90 AS col2
----
181

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL - COALESCE ( - + 91, - CAST ( + + 8 AS INTEGER ) + + ( 59 ) ) + + 90 AS col2
----
181

query I rowsort
SELECT ALL - 97 + + - 84
----
-181

query I rowsort
SELECT DISTINCT - - 71 * - 55 * 34
----
-132770

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2210
SELECT 92 * - CAST( NULL AS DECIMAL ) / + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2210
SELECT 92 * - CAST ( NULL AS REAL ) / + 38 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL 24 / - 75 * + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT + 34 * + 42 + 6 DIV - 7
----
1428

skipif mysql # not compatible
query I rowsort label-2212
SELECT + 34 * + 42 + 6 / - 7
----
1428

query I rowsort
SELECT + 77 + - 27
----
50

query I rowsort
SELECT DISTINCT - 15 - 12
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ALL - + MIN( + + 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL - + MIN ( + + 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT ALL + + CASE - 41 WHEN 66 THEN + + 30 ELSE NULL END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + + CASE - 41 WHEN 66 THEN + + 30 ELSE NULL END - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT + 34 * + COUNT( * ) + + 72
----
106

skipif mysql # not compatible
query I rowsort label-2217
SELECT + 34 * + COUNT ( * ) + + 72
----
106

query I rowsort
SELECT - 43 + 26 col1
----
-17

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

skipif mysql # not compatible
query I rowsort label-2219
SELECT + - MIN ( - 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL - SUM( + 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL - SUM ( + 78 ) AS col0
----
-78

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

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

query I rowsort
SELECT 54 + + ( + 1 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2223
SELECT ALL - SUM( ALL 26 ) DIV + - 49 * - 99
----
0

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - SUM ( ALL 26 ) / + - 49 * - 99
----
0

query II rowsort
SELECT - 74, 25 + - 84 AS col1
----
-74
-59

query I rowsort
SELECT ALL - 54 * - 44 AS col1
----
2376

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT 37 DIV - ( + 56 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2226
SELECT 37 / - ( + 56 ) AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2228
SELECT 79 + - - SUM( DISTINCT 92 ) + - 12 DIV - CAST( + + 74 AS SIGNED )
----
171

skipif mysql # not compatible
query I rowsort label-2228
SELECT 79 + - - SUM ( DISTINCT 92 ) + - 12 / - CAST ( + + 74 AS INTEGER )
----
171

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

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

query I rowsort
SELECT ALL + 81 + - 96 AS col2
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2231
SELECT DISTINCT - 27 + - 87 AS col0, 97 * - + 56 - - 15 - - 0 + + 54 * - NULLIF ( - - 1, 4 ) * - 12 * + - COUNT( * ) + - 56 * SUM( - + 62 ) DIV 65 + + MAX( 75 ) AS col1
----
-114
-5937

skipif mysql # not compatible
query II rowsort label-2231
SELECT DISTINCT - 27 + - 87 AS col0, 97 * - + 56 - - 15 - - 0 + + 54 * - NULLIF ( - - 1, 4 ) * - 12 * + - COUNT ( * ) + - 56 * SUM ( - + 62 ) / 65 + + MAX ( 75 ) AS col1
----
-114
-5937

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

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL - COUNT ( ALL + + 26 ) * + - 53 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2233
SELECT 63 DIV SUM( 20 )
----
3

skipif mysql # not compatible
query I rowsort label-2233
SELECT 63 / SUM ( 20 )
----
3

query I rowsort
SELECT 53 / + CASE - - 44 WHEN - 63 THEN - 13 * - 82 + - - 91 WHEN + 27 - + + 37 THEN + 8 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2235
SELECT 58 / + CAST( + 3 AS SIGNED ) + + - 35 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT 58 / + CAST ( + 3 AS INTEGER ) + + - 35 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 62 + 54
----
116

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

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

query I rowsort
SELECT ALL + 87 + + 56
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT COUNT( * ) - + 83
----
-82

skipif mysql # not compatible
query I rowsort label-2239
SELECT COUNT ( * ) - + 83
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT - CAST( NULL AS SIGNED ) * - CASE - + 76 WHEN + 29 * + 68 - + 16 THEN - 70 ELSE 98 + - - 59 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT - CAST ( NULL AS INTEGER ) * - CASE - + 76 WHEN + 29 * + 68 - + 16 THEN - 70 ELSE 98 + - - 59 END col0
----
NULL

query I rowsort
SELECT ALL - 26 - 72 AS col2
----
-98

query I rowsort
SELECT DISTINCT - 4 * + 9
----
-36

query II rowsort
SELECT + 73 AS col2, 49 + 41 * + 55 - NULLIF ( + - 22, + + 94 ) col1
----
73
2326

query I rowsort
SELECT ALL 13 * - 66 AS col2
----
-858

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2246
SELECT 97, - 30 DIV + 90 + + 67 AS col1
----
97
67

skipif mysql # not compatible
query II rowsort label-2246
SELECT 97, - 30 / + 90 + + 67 AS col1
----
97
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT + - 99 AS col1, - 47 * + COUNT( * )
----
-99
-47

skipif mysql # not compatible
query II rowsort label-2247
SELECT + - 99 AS col1, - 47 * + COUNT ( * )
----
-99
-47

query I rowsort
SELECT 30 * - + 28 * - - 71 AS col1
----
-59640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT ALL - - CASE - ( - 64 ) WHEN + - 5 THEN - 98 - 21 WHEN 14 THEN - COALESCE ( + NULLIF ( COUNT( - 14 ), + 51 ), - - 42 ) WHEN - CAST( NULL AS SIGNED ) * + - COUNT( * ) THEN + 0 + + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL - - CASE - ( - 64 ) WHEN + - 5 THEN - 98 - 21 WHEN 14 THEN - COALESCE ( + NULLIF ( COUNT ( - 14 ), + 51 ), - - 42 ) WHEN - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) THEN + 0 + + 79 END
----
NULL

query II rowsort
SELECT ALL - 20 AS col0, + COALESCE ( + - 60, - 47 ) col1
----
-20
-60

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

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

query I rowsort
SELECT DISTINCT - ( - 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT DISTINCT + ( COUNT( * ) ) * - 74 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT + ( COUNT ( * ) ) * - 74 AS col1
----
-74

query I rowsort
SELECT 38 * + 46
----
1748

onlyif mysql # DIV for integer division: 
query I rowsort label-2255
SELECT + 21 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2255
SELECT + 21 / - 76 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2256
SELECT - COUNT ( * ) * + 54 / + - 74
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2257
SELECT ALL 91 * + COUNT( * ) AS col1, COUNT( * ) + CASE - + ( - ( 8 ) ) WHEN + 37 THEN NULL ELSE + - 52 * 12 + + 37 END DIV + 95
----
91
-5

skipif mysql # not compatible
query II rowsort label-2257
SELECT ALL 91 * + COUNT ( * ) AS col1, COUNT ( * ) + CASE - + ( - ( 8 ) ) WHEN + 37 THEN NULL ELSE + - 52 * 12 + + 37 END / + 95
----
91
-5

query I rowsort
SELECT + 97 * 27 AS col2
----
2619

query I rowsort
SELECT - 3 * - 47
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT + CASE + MIN( DISTINCT + 12 ) WHEN - + 99 THEN + 42 WHEN MIN( DISTINCT 24 ) + - 36 * + 94 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT + CASE + MIN ( DISTINCT + 12 ) WHEN - + 99 THEN + 42 WHEN MIN ( DISTINCT 24 ) + - 36 * + 94 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2261
SELECT ALL + 13 + + 85 AS col1, + 23 + + NULLIF ( + 84, + - 87 * + - 34 * 6 * 90 ) * - COUNT( * ) col2, + 72 * + + 0
----
98
-61
0

skipif mysql # not compatible
query III rowsort label-2261
SELECT ALL + 13 + + 85 AS col1, + 23 + + NULLIF ( + 84, + - 87 * + - 34 * 6 * 90 ) * - COUNT ( * ) col2, + 72 * + + 0
----
98
-61
0

query I rowsort
SELECT - ( - 46 ) * + 22 - - 9
----
1021

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT ( + 45 ) + - - COUNT( * ) + MIN( - 36 ) * + - 91
----
3322

skipif mysql # not compatible
query I rowsort label-2263
SELECT DISTINCT ( + 45 ) + - - COUNT ( * ) + MIN ( - 36 ) * + - 91
----
3322

query I rowsort
SELECT ALL - 50 + 12 AS col2
----
-38

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

query I rowsort
SELECT DISTINCT + 96 + 69
----
165

query I rowsort
SELECT ALL - 23 * - ( - 48 ) AS col2
----
-1104

query I rowsort
SELECT - 73 + 94 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT DISTINCT + - 30 * CAST( ( 29 ) AS SIGNED )
----
-870

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + - 30 * CAST ( ( 29 ) AS INTEGER )
----
-870

query II rowsort
SELECT - 87 + - 40 AS col2, 18 * + 80 * + 45
----
-127
64800

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

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

query I rowsort
SELECT - 27 + + ( 82 ) + - + 99 col0
----
-44

query I rowsort
SELECT - 76 * + 70 AS col1
----
-5320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2274
SELECT + - 20 + 25 AS col1, CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
5
NULL

skipif mysql # not compatible
query II rowsort label-2274
SELECT + - 20 + 25 AS col1, CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT - 89 * COUNT( * ) + + - 1 * ( 69 ) AS col0
----
-158

skipif mysql # not compatible
query I rowsort label-2275
SELECT - 89 * COUNT ( * ) + + - 1 * ( 69 ) AS col0
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT - + 51 * CASE - + 20 WHEN + - COUNT( * ) THEN NULL WHEN - + 83 THEN 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT - + 51 * CASE - + 20 WHEN + - COUNT ( * ) THEN NULL WHEN - + 83 THEN 78 END
----
NULL

query I rowsort
SELECT + + COALESCE ( + 67, - - 54 ) + - - 53 col2
----
120

query I rowsort
SELECT DISTINCT + + 38 AS col1
----
38

query I rowsort
SELECT 70 * - 45 + - ( - 62 ) * + 54 * + - 8 AS col0
----
-29934

query I rowsort
SELECT DISTINCT - 32 * + - 86 AS col1
----
2752

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT ALL + ( 95 ) * + ( 95 ) * - COUNT( * ) col2
----
-9025

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL + ( 95 ) * + ( 95 ) * - COUNT ( * ) col2
----
-9025

query I rowsort
SELECT + + 93 * + + 81 AS col1
----
7533

query I rowsort
SELECT + 27 + - 57
----
-30

query II rowsort
SELECT DISTINCT - 81 * 34 * - 86 + + - 87, - 29 AS col1
----
236757
-29

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

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

query I rowsort
SELECT CASE + 5 WHEN - + 2 - + - 60 THEN - + 11 + - 87 END col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT + CASE - 92 WHEN - NULLIF ( - - COUNT( * ), + + COUNT( * ) ) + - 83 THEN - - 70 ELSE NULL END * - + 94 * - 63 + 94 + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT + CASE - 92 WHEN - NULLIF ( - - COUNT ( * ), + + COUNT ( * ) ) + - 83 THEN - - 70 ELSE NULL END * - + 94 * - 63 + 94 + 5
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT ALL - ( 27 ) * - 92 / + + 0 / CASE + ( + 27 ) WHEN - 36 THEN NULL WHEN - NULLIF ( - COUNT( + 36 ), - 78 ) THEN + 46 ELSE NULL END * + 53 + - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL - ( 27 ) * - 92 / + + 0 / CASE + ( + 27 ) WHEN - 36 THEN NULL WHEN - NULLIF ( - COUNT ( + 36 ), - 78 ) THEN + 46 ELSE NULL END * + 53 + - - 8
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-2292
SELECT + COUNT ( * ) + + ( 83 ) AS col1
----
84

query I rowsort
SELECT ALL 78 * + 26 * + 32 * - 53
----
-3439488

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT COUNT( DISTINCT - 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2294
SELECT COUNT ( DISTINCT - 24 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT MIN( DISTINCT - + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-2295
SELECT MIN ( DISTINCT - + 79 )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2296
SELECT ALL 11 * + ( + + COUNT( * ) ) DIV + 42 + + 31 + + + ( + NULLIF ( - 90, - 98 * - 46 + + 84 + + COUNT( * ) DIV 92 ) ) - + 21 - 69
----
-149

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL 11 * + ( + + COUNT ( * ) ) / + 42 + + 31 + + + ( + NULLIF ( - 90, - 98 * - 46 + + 84 + + COUNT ( * ) / 92 ) ) - + 21 - 69
----
-149

query I rowsort
SELECT ALL NULLIF ( - + 31, - 8 + - 23 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT - SUM( ALL - 83 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-2298
SELECT - SUM ( ALL - 83 ) col2
----
83

query II rowsort
SELECT - + 47 AS col0, 99 + 77 AS col0
----
-47
176

onlyif mysql # DIV for integer division: 
query I rowsort label-2300
SELECT ALL + - 35 DIV - + 41
----
0

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL + - 35 / - + 41
----
0

query I rowsort
SELECT + 73 * + 83
----
6059

query I rowsort
SELECT DISTINCT + 27 * + 91
----
2457

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2304
SELECT DISTINCT - ( - ( 7 ) ), + ( COUNT( * ) ) DIV + 32 AS col1
----
7
0

skipif mysql # not compatible
query II rowsort label-2304
SELECT DISTINCT - ( - ( 7 ) ), + ( COUNT ( * ) ) / + 32 AS col1
----
7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ALL + - COUNT( 83 ) * + 69 * 61 - 39 * - 87 + - COUNT( * ) AS col0
----
-817

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL + - COUNT ( 83 ) * + 69 * 61 - 39 * - 87 + - COUNT ( * ) AS col0
----
-817

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - - 89 - + 37 + 91 + MIN( ALL 48 )
----
191

skipif mysql # not compatible
query I rowsort label-2306
SELECT - - 89 - + 37 + 91 + MIN ( ALL 48 )
----
191

query I rowsort
SELECT ALL + ( + 31 )
----
31

query I rowsort
SELECT ALL + 33 + - 57 * - 76
----
4365

query II rowsort
SELECT + 42 AS col1, 30
----
42
30

query I rowsort
SELECT DISTINCT + + 35 + 9
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2311
SELECT + CASE ( + - 54 ) WHEN + CASE - COALESCE ( 27, - 58, + + COUNT( * ) / 86 - - 99 * COUNT( ALL + CAST( NULL AS DECIMAL ) ), - COUNT( * ) + + + CASE 81 WHEN 27 * + + 96 + - COUNT( * ) THEN + CAST( + + 68 AS SIGNED ) * + 51 / COUNT( * ) END + 9 ) WHEN + 32 / + 46 + - 82 THEN + 85 - COALESCE ( COUNT( * ), - 14, CAST( NULL AS DECIMAL ) + - 78 ) WHEN ( - - 36 ) THEN 54 WHEN + 74 THEN NULL END + - + 33 + CAST( - 52 AS SIGNED ) THEN 25 + 46 ELSE ( - 65 ) END * - 19 + + NULLIF ( + 47, 98 ) col2
----
1282

skipif mysql # not compatible
query I rowsort label-2311
SELECT + CASE ( + - 54 ) WHEN + CASE - COALESCE ( 27, - 58, + + COUNT ( * ) / 86 - - 99 * COUNT ( ALL + CAST ( NULL AS REAL ) ), - COUNT ( * ) + + + CASE 81 WHEN 27 * + + 96 + - COUNT ( * ) THEN + CAST ( + + 68 AS INTEGER ) * + 51 / COUNT ( * ) END + 9 ) WHEN + 32 / + 46 + - 82 THEN + 85 - COALESCE ( COUNT ( * ), - 14, CAST ( NULL AS REAL ) + - 78 ) WHEN ( - - 36 ) THEN 54 WHEN + 74 THEN NULL END + - + 33 + CAST ( - 52 AS INTEGER ) THEN 25 + 46 ELSE ( - 65 ) END * - 19 + + NULLIF ( + 47, 98 ) col2
----
1282

query I rowsort
SELECT 26 * - + 87 AS col1
----
-2262

query I rowsort
SELECT ALL - 13 + - - 35 + + ( - - 45 ) * + - 92 * - 52
----
215302

query I rowsort
SELECT ALL + 49 + 12 + - 52
----
9

query I rowsort
SELECT 47 + + + 17 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT + 57 * 39 * - 80 * - ( - COUNT( * ) ) + + 79
----
-177761

skipif mysql # not compatible
query I rowsort label-2316
SELECT + 57 * 39 * - 80 * - ( - COUNT ( * ) ) + + 79
----
-177761

query I rowsort
SELECT ALL - ( - 83 ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2318
SELECT ALL - 95 + - NULLIF ( 66, - 7 + 57 ) * ( - 8 ) + - 80 - - + 27 + 39 * CAST( - - 23 AS SIGNED ) + + 92 + 37 * - - COUNT( * ) * - - 99 + 79
----
5111

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL - 95 + - NULLIF ( 66, - 7 + 57 ) * ( - 8 ) + - 80 - - + 27 + 39 * CAST ( - - 23 AS INTEGER ) + + 92 + 37 * - - COUNT ( * ) * - - 99 + 79
----
5111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT DISTINCT AVG ( ALL + - CAST( NULL AS SIGNED ) ) * + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT AVG ( ALL + - CAST ( NULL AS INTEGER ) ) * + 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT 47 * + - MIN( ALL + 3 ) AS col1
----
-141

skipif mysql # not compatible
query I rowsort label-2320
SELECT 47 * + - MIN ( ALL + 3 ) AS col1
----
-141

query I rowsort
SELECT ALL + 23 * - 7 AS col1
----
-161

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT 92 + + + 36 DIV 92 col1
----
92

skipif mysql # not compatible
query I rowsort label-2322
SELECT 92 + + + 36 / 92 col1
----
92

query I rowsort
SELECT 69 - + - 58 + 71 AS col2
----
198

query II rowsort
SELECT ALL + 50 * - 89 AS col2, ( - 0 ) * 20
----
-4450
0

query I rowsort
SELECT 36 * - + 57
----
-2052

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT 67 DIV - + 12
----
-5

skipif mysql # not compatible
query I rowsort label-2326
SELECT 67 / - + 12
----
-5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2328
SELECT - 9 DIV - - COUNT( * ) - + - COUNT( * ) * + 49 AS col2, - 28 AS col0
----
40
-28

skipif mysql # not compatible
query II rowsort label-2328
SELECT - 9 / - - COUNT ( * ) - + - COUNT ( * ) * + 49 AS col2, - 28 AS col0
----
40
-28

query I rowsort
SELECT ALL 79 * - - 5 * + + 9 * 2
----
7110

query I rowsort
SELECT - 18 - 66 AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2331
SELECT COALESCE ( + - COUNT( * ), - NULLIF ( - 19, - 29 ) * - 76 * + + CAST( - COUNT( * ) AS SIGNED ) ) DIV 86 DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT COALESCE ( + - COUNT ( * ), - NULLIF ( - 19, - 29 ) * - 76 * + + CAST ( - COUNT ( * ) AS INTEGER ) ) / 86 / 8
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2332
SELECT - + SUM( + 63 ) AS col0, COALESCE ( - + 94, + 48 ) AS col2
----
-63
-94

skipif mysql # not compatible
query II rowsort label-2332
SELECT - + SUM ( + 63 ) AS col0, COALESCE ( - + 94, + 48 ) AS col2
----
-63
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT + 71 + + 71 DIV 32
----
73

skipif mysql # not compatible
query I rowsort label-2333
SELECT + 71 + + 71 / 32
----
73

query I rowsort
SELECT 36 * + 34 - - 8 AS col1
----
1232

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

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + 23 + + + COUNT ( * ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2336
SELECT + 85 + - - 74 + + 50 * + 11 col0, MIN( - 81 ) * - COUNT( * ) + + - 71 + - 98 - + 19
----
709
-107

skipif mysql # not compatible
query II rowsort label-2336
SELECT + 85 + - - 74 + + 50 * + 11 col0, MIN ( - 81 ) * - COUNT ( * ) + + - 71 + - 98 - + 19
----
709
-107

query I rowsort
SELECT ALL + ( + 53 ) * - + 86 AS col1
----
-4558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2338
SELECT DISTINCT CAST( - 1 AS SIGNED ) AS col0, - COUNT( * ) - - 51
----
-1
50

skipif mysql # not compatible
query II rowsort label-2338
SELECT DISTINCT CAST ( - 1 AS INTEGER ) AS col0, - COUNT ( * ) - - 51
----
-1
50

query I rowsort
SELECT + 12 + - 96 AS col2
----
-84

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

query I rowsort
SELECT 64 * + + 63 AS col1
----
4032

query I rowsort
SELECT - 34 + - + 35
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT COALESCE ( - 85, + ( ( 12 ) ) * 30, + NULLIF ( - 28, + COUNT( * ) ), - COUNT( * ) * + 73 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-2343
SELECT COALESCE ( - 85, + ( ( 12 ) ) * 30, + NULLIF ( - 28, + COUNT ( * ) ), - COUNT ( * ) * + 73 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT MIN( 4 ) + + 47 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2344
SELECT MIN ( 4 ) + + 47 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT CASE CASE + 3 WHEN 50 THEN - - COUNT( * ) + + + SUM( DISTINCT + 70 ) END WHEN - - 61 THEN NULL WHEN - 38 THEN + 0 ELSE - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2345
SELECT CASE CASE + 3 WHEN 50 THEN - - COUNT ( * ) + + + SUM ( DISTINCT + 70 ) END WHEN - - 61 THEN NULL WHEN - 38 THEN + 0 ELSE - COUNT ( * ) END AS col0
----
-1

query I rowsort
SELECT ALL + 63 + - + 56
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT DISTINCT - 8 + + 74 + 43 DIV 93 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT - 8 + + 74 + 43 / 93 AS col0
----
66

query I rowsort
SELECT DISTINCT - 82 + + + 63
----
-19

query I rowsort
SELECT DISTINCT - 9 * + 17 AS col2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT - 52 * - COUNT( * ) + 38
----
90

skipif mysql # not compatible
query I rowsort label-2350
SELECT - 52 * - COUNT ( * ) + 38
----
90

query I rowsort
SELECT 82 * - 68
----
-5576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2352
SELECT DISTINCT - COALESCE ( - COUNT( * ), + COALESCE ( 36, + 50 DIV 71 * 12 + + 64 + - COUNT( * ) ) * 23 + + COUNT( * ), - COALESCE ( 77, - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + COALESCE ( 36, + 50 / 71 * 12 + + 64 + - COUNT ( * ) ) * 23 + + COUNT ( * ), - COALESCE ( 77, - COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2353
SELECT SUM( ALL NULLIF ( 89, + 99 ) ) * - 35 + + 87 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT SUM ( ALL NULLIF ( 89, + 99 ) ) * - 35 + + 87 / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 9 col2, - 42 AS col2
----
9
-42

query I rowsort
SELECT ALL - ( 34 ) AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2356
SELECT 72 DIV - 48 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2356
SELECT 72 / - 48 col0
----
-1

query I rowsort
SELECT 78 + 81 col2
----
159

query II rowsort
SELECT + 77 * - ( + ( - 71 ) ) - 23 + - 97 * + 61 + 60, 64 * + 74 * + 67 AS col0
----
-413
317312

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT + COUNT( * ) * 73 + MAX( ALL + 93 ) AS col1
----
166

skipif mysql # not compatible
query I rowsort label-2359
SELECT + COUNT ( * ) * 73 + MAX ( ALL + 93 ) AS col1
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2360
SELECT DISTINCT - CAST( NULL AS SIGNED ), 62 * + 96 + - CAST( + - COUNT( * ) AS SIGNED ) - - 24 * COUNT( + 14 ) * - 19 + + - 41 + CASE - - MIN( + 10 ) WHEN 14 THEN + 23 ELSE - 15 * 37 + - CAST( NULL AS DECIMAL ) END * COUNT( * ) + + 54 + + COUNT( * ) * 68
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2360
SELECT DISTINCT - CAST ( NULL AS INTEGER ), 62 * + 96 + - CAST ( + - COUNT ( * ) AS INTEGER ) - - 24 * COUNT ( + 14 ) * - 19 + + - 41 + CASE - - MIN ( + 10 ) WHEN 14 THEN + 23 ELSE - 15 * 37 + - CAST ( NULL AS REAL ) END * COUNT ( * ) + + 54 + + COUNT ( * ) * 68
----
NULL
NULL

query I rowsort
SELECT 51 * + 55 col2
----
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT COUNT( DISTINCT - 88 ) + - + 28
----
-27

skipif mysql # not compatible
query I rowsort label-2362
SELECT COUNT ( DISTINCT - 88 ) + - + 28
----
-27

query II rowsort
SELECT ALL + COALESCE ( + 54, 36 ) AS col0, + 33 AS col2
----
54
33

query II rowsort
SELECT DISTINCT 75, + 26 AS col2
----
75
26

query I rowsort
SELECT DISTINCT - 94 + 9 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT - SUM( ALL + ( + - 70 ) ) * - + 43 * - 53 + - 99 col2
----
159431

skipif mysql # not compatible
query I rowsort label-2366
SELECT - SUM ( ALL + ( + - 70 ) ) * - + 43 * - 53 + - 99 col2
----
159431

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2368
SELECT - + 11 - + + COUNT( * ) - COUNT( * ) DIV 20
----
-12

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

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

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

skipif mysql # not compatible
query I rowsort label-2370
SELECT COUNT ( - 35 )
----
1

query I rowsort
SELECT ALL - 51 + + 39 col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2372
SELECT + - COALESCE ( + CAST( 82 AS SIGNED ), + 7 * 99 ) * + - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2372
SELECT + - COALESCE ( + CAST ( 82 AS INTEGER ), + 7 * 99 ) * + - COUNT ( * ) AS col1
----
82

query I rowsort
SELECT ALL CASE - 67 WHEN + - 17 * + + 74 THEN 48 * - 91 - + 38 * - 64 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 51 - - 38 - - - 34 AS col0
----
55

query I rowsort
SELECT DISTINCT 74 * + 25 * 94 col0
----
173900

query I rowsort
SELECT ALL COALESCE ( - 14, 93 ) - - 46 AS col1
----
32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT - COALESCE ( 41, - SUM( ALL 71 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-2378
SELECT - COALESCE ( 41, - SUM ( ALL 71 ) )
----
-41

query I rowsort
SELECT ALL - 95 - + 63
----
-158

query I rowsort
SELECT + 20 * + 11 AS col0
----
220

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

skipif mysql # not compatible
query I rowsort label-2381
SELECT - COUNT ( * ) * - 81 + - 94 AS col1
----
-13

query I rowsort
SELECT NULLIF ( - 56, - 7 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT + CASE - + ( + + 95 ) WHEN NULLIF ( 62, - ( + 41 ) ) THEN 70 WHEN - ( - 53 ) * + 98 * - - 35 THEN - COUNT( * ) + + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT + CASE - + ( + + 95 ) WHEN NULLIF ( 62, - ( + 41 ) ) THEN 70 WHEN - ( - 53 ) * + 98 * - - 35 THEN - COUNT ( * ) + + 86 END
----
NULL

query II rowsort
SELECT + 79, 31 - - 2 AS col2
----
79
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL - 60 * + 66 * - + COUNT( * ) AS col2
----
3960

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL - 60 * + 66 * - + COUNT ( * ) AS col2
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT - MAX( - - 97 ) * COUNT( * ) * + SUM( 9 ) + - + 9 AS col1
----
-882

skipif mysql # not compatible
query I rowsort label-2386
SELECT - MAX ( - - 97 ) * COUNT ( * ) * + SUM ( 9 ) + - + 9 AS col1
----
-882

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2389
SELECT - 7 DIV + MAX( 90 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2389
SELECT - 7 / + MAX ( 90 ) AS col2
----
0

query I rowsort
SELECT ALL - 61 * + 64
----
-3904

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

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

query II rowsort
SELECT COALESCE ( + - 73, + ( + 22 ) ) AS col1, 76 AS col0
----
-73
76

query I rowsort
SELECT + COALESCE ( 30, - + 5 * + 4 - + 85 ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2394
SELECT - + MIN( - 25 ) DIV + 18 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2394
SELECT - + MIN ( - 25 ) / + 18 AS col0
----
1

query II rowsort
SELECT - 40 - + + 7, + 95 AS col0
----
-47
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT DISTINCT 87 * - COUNT( * ) * NULLIF ( + 18, - - 60 + - ( - + 75 ) + + 84 * - 72 ) + COUNT( * ) + 80
----
-1485

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT 87 * - COUNT ( * ) * NULLIF ( + 18, - - 60 + - ( - + 75 ) + + 84 * - 72 ) + COUNT ( * ) + 80
----
-1485

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

query I rowsort
SELECT ALL - - 2 * + ( - + 68 ) + + ( 54 ) AS col2
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL - COUNT( * ) * + + 97 + - - COUNT( * ) + + 87 + + 75 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL - COUNT ( * ) * + + 97 + - - COUNT ( * ) + + 87 + + 75 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT - CASE - + 86 WHEN + - MAX( DISTINCT - 59 ) THEN - 30 WHEN ( + - COUNT( * ) ) + + + 8 THEN - + 82 * - 50 ELSE NULL END * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT - CASE - + 86 WHEN + - MAX ( DISTINCT - 59 ) THEN - 30 WHEN ( + - COUNT ( * ) ) + + + 8 THEN - + 82 * - 50 ELSE NULL END * + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT ALL - 35 * + 57 * + NULLIF ( + 39, + + COALESCE ( - + 89, - 96 + - + MAX( DISTINCT - - 34 ) * - + 53, + + 87 ) ) + - COUNT( * ) AS col1
----
-77806

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL - 35 * + 57 * + NULLIF ( + 39, + + COALESCE ( - + 89, - 96 + - + MAX ( DISTINCT - - 34 ) * - + 53, + + 87 ) ) + - COUNT ( * ) AS col1
----
-77806

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT DISTINCT - 4 * MIN( - - COALESCE ( + 32, + 23 ) ) AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT - 4 * MIN ( - - COALESCE ( + 32, + 23 ) ) AS col2
----
-128

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

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

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

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

query I rowsort
SELECT - + 35 - - 12 + + 96
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-2407
SELECT - + 66 + + 53 col1, 95 DIV - - 19 + - 47 * - 58 col1
----
-13
2731

skipif mysql # not compatible
query II rowsort label-2407
SELECT - + 66 + + 53 col1, 95 / - - 19 + - 47 * - 58 col1
----
-13
2731

query I rowsort
SELECT 60 * + - 87 + + - 59 AS col2
----
-5279

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT ALL - MIN( - - 96 ) + 64
----
-32

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL - MIN ( - - 96 ) + 64
----
-32

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2410
SELECT - - CASE WHEN ( NOT + + 38 BETWEEN - 11 / + + 85 AND 90 + + + CAST( NULL AS DECIMAL ) ) THEN 50 / 92 * + - AVG ( ALL - - 16 ) ELSE 32 * - + CAST( - 42 AS SIGNED ) + + 36 + - - CASE + 86 WHEN + 7 THEN - - 38 + - 68 WHEN 85 THEN NULL END + - + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2410
SELECT - - CASE WHEN ( NOT + + 38 BETWEEN - 11 / + + 85 AND 90 + + + CAST ( NULL AS REAL ) ) THEN 50 / 92 * + - AVG ( ALL - - 16 ) ELSE 32 * - + CAST ( - 42 AS INTEGER ) + + 36 + - - CASE + 86 WHEN + 7 THEN - - 38 + - 68 WHEN 85 THEN NULL END + - + 84 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2411
SELECT + 30 + - 48 + - CAST( NULL AS SIGNED ) + - - CASE AVG ( DISTINCT 77 ) WHEN - 4 THEN + 93 * - - 8 + - + 92 ELSE - 26 + + 31 * - 31 END - - 90 * - - CASE 41 WHEN - NULLIF ( + - 58, 97 - COUNT( * ) ) THEN NULL WHEN + MIN( DISTINCT + + 37 ) / 11 * ( 57 ) + - 59 * 92 * - 67 THEN 6 ELSE - 43 - - 38 END * 9 * 92 + 22 + CASE - SUM( DISTINCT - - COALESCE ( - + 55, - - 49 + + 76 * 78 + 56 ) ) WHEN CAST( + 3 AS SIGNED ) THEN + NULLIF ( 55, + COUNT( * ) ) + + ( - COUNT( * ) + AVG ( ALL 51 ) ) END * - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT + 30 + - 48 + - CAST ( NULL AS INTEGER ) + - - CASE AVG ( DISTINCT 77 ) WHEN - 4 THEN + 93 * - - 8 + - + 92 ELSE - 26 + + 31 * - 31 END - - 90 * - - CASE 41 WHEN - NULLIF ( + - 58, 97 - COUNT ( * ) ) THEN NULL WHEN + MIN ( DISTINCT + + 37 ) / 11 * ( 57 ) + - 59 * 92 * - 67 THEN 6 ELSE - 43 - - 38 END * 9 * 92 + 22 + CASE - SUM ( DISTINCT - - COALESCE ( - + 55, - - 49 + + 76 * 78 + 56 ) ) WHEN CAST ( + 3 AS INTEGER ) THEN + NULLIF ( 55, + COUNT ( * ) ) + + ( - COUNT ( * ) + AVG ( ALL 51 ) ) END * - 84 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2412
SELECT + SUM ( 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT DISTINCT + CASE 4 WHEN 46 THEN + 55 - COUNT( * ) WHEN 76 THEN 56 * - + 5 + - 24 END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT + CASE 4 WHEN 46 THEN + 55 - COUNT ( * ) WHEN 76 THEN 56 * - + 5 + - 24 END - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL + MAX( ALL - + 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL + MAX ( ALL - + 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT + COUNT( * ) + MAX( 92 )
----
93

skipif mysql # not compatible
query I rowsort label-2415
SELECT + COUNT ( * ) + MAX ( 92 )
----
93

query I rowsort
SELECT ALL 15 - 27 * - - 46 * 60
----
-74505

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2417
SELECT + COUNT( * ) * COUNT( * ) AS col2, 49 DIV + ( - + 45 ), + + 0 AS col0
----
1
-1
0

skipif mysql # not compatible
query III rowsort label-2417
SELECT + COUNT ( * ) * COUNT ( * ) AS col2, 49 / + ( - + 45 ), + + 0 AS col0
----
1
-1
0

query I rowsort
SELECT + 97 + + 25 + + - 82 * + 6 * - - 25 AS col1
----
-12178

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2420
SELECT ALL 79 - - COUNT( * ) AS col1, + 15 AS col2
----
80
15

skipif mysql # not compatible
query II rowsort label-2420
SELECT ALL 79 - - COUNT ( * ) AS col1, + 15 AS col2
----
80
15

query II rowsort
SELECT + 49 + 19 AS col2, 17 + 18
----
68
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT + 61 * - - CAST( NULL AS SIGNED ) / - ( - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT + 61 * - - CAST ( NULL AS INTEGER ) / - ( - 22 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT ALL 73 * + + SUM( ALL - 20 ) * - - 17 * COUNT( ALL + + 31 ) + - 71 * + + 56 AS col0
----
-28796

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL 73 * + + SUM ( ALL - 20 ) * - - 17 * COUNT ( ALL + + 31 ) + - 71 * + + 56 AS col0
----
-28796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT ( + - CAST( NULL AS SIGNED ) ) * - ( + CASE - + 69 WHEN + 79 THEN 37 + + ( + 14 ) - - 23 * + 58 ELSE NULL END ) + + + 27 * - 74 * - 52 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT ( + - CAST ( NULL AS INTEGER ) ) * - ( + CASE - + 69 WHEN + 79 THEN 37 + + ( + 14 ) - - 23 * + 58 ELSE NULL END ) + + + 27 * - 74 * - 52 col0
----
NULL

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

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

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

query I rowsort
SELECT ALL 19 * 79 * - 0 AS col2
----
0

query I rowsort
SELECT ALL + CASE + 43 WHEN 41 THEN NULL ELSE 49 END AS col2
----
49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2430
SELECT - CAST( + 22 AS SIGNED ) * + + 82 + + - 59 AS col1
----
-1863

skipif mysql # not compatible
query I rowsort label-2430
SELECT - CAST ( + 22 AS INTEGER ) * + + 82 + + - 59 AS col1
----
-1863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2431
SELECT + + 80 + + 18 + - 84 * 21 * + - 76 + - 10 - - CASE + 67 WHEN - 50 THEN - + 92 * + + 70 + COUNT( * ) + CAST( - + 71 AS SIGNED ) * - ( + 6 ) * - COUNT( * ) * 86 * - 53 WHEN - - 34 THEN - COALESCE ( - 20, + 86 * - 68 + 63 + + - 80 + - 64 + - 32 + - + 69 * ( - - 39 ) * - 94 * + 49 ) ELSE + 48 END * - + MAX( DISTINCT + 0 )
----
134152

skipif mysql # not compatible
query I rowsort label-2431
SELECT + + 80 + + 18 + - 84 * 21 * + - 76 + - 10 - - CASE + 67 WHEN - 50 THEN - + 92 * + + 70 + COUNT ( * ) + CAST ( - + 71 AS INTEGER ) * - ( + 6 ) * - COUNT ( * ) * 86 * - 53 WHEN - - 34 THEN - COALESCE ( - 20, + 86 * - 68 + 63 + + - 80 + - 64 + - 32 + - + 69 * ( - - 39 ) * - 94 * + 49 ) ELSE + 48 END * - + MAX ( DISTINCT + 0 )
----
134152

query I rowsort
SELECT + - 5 + + 48
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2433
SELECT ALL - 53 / COUNT( * ) / - 16 * + ( + ( 55 ) ) + - CAST( NULL AS SIGNED ) + - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - 53 / COUNT ( * ) / - 16 * + ( + ( 55 ) ) + - CAST ( NULL AS INTEGER ) + - + 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2434
SELECT ALL + - CAST( + - 19 AS SIGNED ) * 77 + - 18 AS col1
----
1445

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + - CAST ( + - 19 AS INTEGER ) * 77 + - 18 AS col1
----
1445

onlyif mysql # DIV for integer division: 
query I rowsort label-2435
SELECT ALL + - 1 + + 52 DIV + 77 - + 73 + - 26
----
-100

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + - 1 + + 52 / + 77 - + 73 + - 26
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-2436
SELECT - + COUNT( * ) * - - 35 + + - 57 * - 68 * 57, - 60 AS col0
----
220897
-60

skipif mysql # not compatible
query II rowsort label-2436
SELECT - + COUNT ( * ) * - - 35 + + - 57 * - 68 * 57, - 60 AS col0
----
220897
-60

query I rowsort
SELECT DISTINCT - 17 + ( + + 8 ) * 64
----
495

query I rowsort
SELECT ALL + - ( 4 ) + - 14 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT - COUNT( * ) * - 92 + - 19 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2439
SELECT - COUNT ( * ) * - 92 + - 19 AS col2
----
73

query I rowsort
SELECT 15 * - 49 + + 49
----
-686

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT 8 * - 0 * - COUNT( * ) * + 57
----
0

skipif mysql # not compatible
query I rowsort label-2441
SELECT 8 * - 0 * - COUNT ( * ) * + 57
----
0

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

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL + + COUNT ( * ) / COUNT ( * ) - + 5 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL - COUNT( * ) - - - 8
----
-9

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL - COUNT ( * ) - - - 8
----
-9

query I rowsort
SELECT ALL - + 21 - - 3 col1
----
-18

query I rowsort
SELECT - 90 * + ( - + 79 )
----
7110

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL + 4 * + ( + 84 ) * - COUNT( * )
----
-336

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + 4 * + ( + 84 ) * - COUNT ( * )
----
-336

query I rowsort
SELECT 56 + - 94
----
-38

query I rowsort
SELECT DISTINCT + 78 * + 49 AS col2
----
3822

query I rowsort
SELECT 72 - + ( + + 32 ) - + 31 AS col0
----
9

query I rowsort
SELECT DISTINCT + 87 * 84 AS col2
----
7308

onlyif mysql # aggregate syntax: 
query II rowsort label-2451
SELECT 38, - 55 + + COUNT( * ) AS col2
----
38
-54

skipif mysql # not compatible
query II rowsort label-2451
SELECT 38, - 55 + + COUNT ( * ) AS col2
----
38
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2452
SELECT ALL NULLIF ( - - COUNT( * ), + + 3 * + - 4 ) / - ( + - 11 ) * + CAST( NULL AS SIGNED ) * + + ( - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL NULLIF ( - - COUNT ( * ), + + 3 * + - 4 ) / - ( + - 11 ) * + CAST ( NULL AS INTEGER ) * + + ( - 30 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2453
SELECT MAX( ALL + + 72 ) DIV - + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2453
SELECT MAX ( ALL + + 72 ) / - + 97 AS col0
----
0

query I rowsort
SELECT ALL + 60 + + + 93 AS col0
----
153

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

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

query I rowsort
SELECT DISTINCT ( 5 ) * + - 12 + + 38 * - + 60
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL + COUNT( * ) + 87
----
88

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL + COUNT ( * ) + 87
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT + 22 DIV 30
----
0

skipif mysql # not compatible
query I rowsort label-2458
SELECT + 22 / 30
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT ALL + ( + 98 ) * - 66 * COALESCE ( + + 3, 55 * - - 6 DIV 4 + - 20 - - MAX( + 5 ) ) + + + COUNT( * ) + - - COUNT( * )
----
-19402

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL + ( + 98 ) * - 66 * COALESCE ( + + 3, 55 * - - 6 / 4 + - 20 - - MAX ( + 5 ) ) + + + COUNT ( * ) + - - COUNT ( * )
----
-19402

query I rowsort
SELECT DISTINCT 75 + 89
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL - + CASE WHEN NOT ( MIN( + + 1 ) ) IS NULL THEN NULL ELSE + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - + CASE WHEN NOT ( MIN ( + + 1 ) ) IS NULL THEN NULL ELSE + 99 END
----
NULL

query II rowsort
SELECT + 88, + 37 AS col0
----
88
37

query I rowsort
SELECT ALL - - 19 col0
----
19

query II rowsort
SELECT + + 51 AS col1, 83 * - - 17 AS col1
----
51
1411

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2465
SELECT - 2 + + 41 DIV + - 45 * + - ( + - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-2465
SELECT - 2 + + 41 / + - 45 * + - ( + - COUNT ( * ) )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT - ( + + AVG ( + 30 ) ) * - + CASE 84 WHEN - + MAX( ALL 18 ) + - 85 THEN NULL WHEN 57 + - - CAST( NULL AS SIGNED ) + 88 * - CAST( + - MAX( ALL + 93 ) AS SIGNED ) * - + 4 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT - ( + + AVG ( + 30 ) ) * - + CASE 84 WHEN - + MAX ( ALL 18 ) + - 85 THEN NULL WHEN 57 + - - CAST ( NULL AS INTEGER ) + 88 * - CAST ( + - MAX ( ALL + 93 ) AS INTEGER ) * - + 4 THEN COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT 85 + - - 72
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT + NULLIF ( + + COUNT( * ), + 90 * 10 * + 36 * - - 14 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2468
SELECT + NULLIF ( + + COUNT ( * ), + 90 * 10 * + 36 * - - 14 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT 58 * - - ( - 72 ) + + + COUNT( * ) * ( + ( + + 43 ) )
----
-4133

skipif mysql # not compatible
query I rowsort label-2469
SELECT 58 * - - ( - 72 ) + + + COUNT ( * ) * ( + ( + + 43 ) )
----
-4133

onlyif mysql # aggregate syntax: 
query II rowsort label-2470
SELECT ALL COUNT( * ) - 63 * 17 AS col2, - 42 + - + COUNT( * ) AS col0
----
-1070
-43

skipif mysql # not compatible
query II rowsort label-2470
SELECT ALL COUNT ( * ) - 63 * 17 AS col2, - 42 + - + COUNT ( * ) AS col0
----
-1070
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2471
SELECT ALL + 94 DIV - 1
----
-94

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL + 94 / - 1
----
-94

query I rowsort
SELECT ALL + 72 - + 26
----
46

query I rowsort
SELECT DISTINCT 44 * + - 40 + - 75 * 23 col1
----
-3485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2474
SELECT - 88 - 89 DIV COUNT( * )
----
-177

skipif mysql # not compatible
query I rowsort label-2474
SELECT - 88 - 89 / COUNT ( * )
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT 46 * - COUNT( * ) * 53 * + 38 AS col0
----
-92644

skipif mysql # not compatible
query I rowsort label-2475
SELECT 46 * - COUNT ( * ) * 53 * + 38 AS col0
----
-92644

query I rowsort
SELECT 33 + ( + 49 ) + - ( + 67 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT 82 - - COUNT( * ) col2
----
83

skipif mysql # not compatible
query I rowsort label-2477
SELECT 82 - - COUNT ( * ) col2
----
83

query I rowsort
SELECT 92 + 54
----
146

query I rowsort
SELECT 66 * + 72 col2
----
4752

onlyif mysql # aggregate syntax: 
query II rowsort label-2480
SELECT 1 + - + MIN( DISTINCT + 47 ) * - - 80 AS col2, + COUNT( * )
----
-3759
1

skipif mysql # not compatible
query II rowsort label-2480
SELECT 1 + - + MIN ( DISTINCT + 47 ) * - - 80 AS col2, + COUNT ( * )
----
-3759
1

query I rowsort
SELECT 72 + + + ( + 11 ) + 5 * + - 37 AS col2
----
-102

query I rowsort
SELECT 82 + - - NULLIF ( - 53, + 80 )
----
29

query I rowsort
SELECT 91 + + 10 + + - 15 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT + COALESCE ( 39, - ( 0 ), - + ( - NULLIF ( 8, + - COUNT( * ) ) ) + + + 50 ) * - ( + 48 )
----
-1872

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + COALESCE ( 39, - ( 0 ), - + ( - NULLIF ( 8, + - COUNT ( * ) ) ) + + + 50 ) * - ( + 48 )
----
-1872

query II rowsort
SELECT 1 + - - 54 AS col2, ( 8 ) AS col0
----
55
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2486
SELECT CAST( - + COUNT( * ) AS SIGNED ) + + 95 - + - 93 - - NULLIF ( - + 78, - 65 ) AS col1, CASE - 70 WHEN + 48 THEN - - 35 WHEN - ( 80 ) * - 66 + - ( - 93 ) THEN NULL ELSE NULL END + + - 2
----
109
NULL

skipif mysql # not compatible
query II rowsort label-2486
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) + + 95 - + - 93 - - NULLIF ( - + 78, - 65 ) AS col1, CASE - 70 WHEN + 48 THEN - - 35 WHEN - ( 80 ) * - 66 + - ( - 93 ) THEN NULL ELSE NULL END + + - 2
----
109
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2487
SELECT DISTINCT + 56 + + + NULLIF ( - 42, + - COUNT( * ) ) + + 75 DIV 92 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT + 56 + + + NULLIF ( - 42, + - COUNT ( * ) ) + + 75 / 92 AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2488
SELECT 91 * - - 60 * + - MAX( 53 ), - 23 + - COUNT( * ) + - + 21 * + 38 col0
----
-289380
-822

skipif mysql # not compatible
query II rowsort label-2488
SELECT 91 * - - 60 * + - MAX ( 53 ), - 23 + - COUNT ( * ) + - + 21 * + 38 col0
----
-289380
-822

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT COUNT( * ) + 61 * 66 col1
----
4027

skipif mysql # not compatible
query I rowsort label-2489
SELECT COUNT ( * ) + 61 * 66 col1
----
4027

query I rowsort
SELECT ALL + ( + 32 ) + + 76 col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT + MAX( + 67 ) + 9 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT + MAX ( + 67 ) + 9 AS col2
----
76

query I rowsort
SELECT 16 * + COALESCE ( + + 84, 29, - 85 ) * - - 47 + + + 39
----
63207

query I rowsort
SELECT ALL + 39 * + 37 AS col2
----
1443

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT DISTINCT - + CASE 36 WHEN + 17 * - 35 - + COUNT( * ) THEN 84 WHEN - 69 THEN NULL ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT - + CASE 36 WHEN + 17 * - 35 - + COUNT ( * ) THEN 84 WHEN - 69 THEN NULL ELSE COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2495
SELECT DISTINCT + COUNT( - - 27 ) DIV 1 + - 50 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT + COUNT ( - - 27 ) / 1 + - 50 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT + - COUNT( * ) + - 21 + 85
----
63

skipif mysql # not compatible
query I rowsort label-2496
SELECT + - COUNT ( * ) + - 21 + 85
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT + - CASE MAX( - + 7 ) WHEN ( 75 ) THEN - + 89 + - MIN( CASE - 55 WHEN - 11 THEN - - ( + ( + 60 ) ) ELSE NULL END ) + + CASE + - 73 WHEN + 57 THEN NULL ELSE 49 * + - 23 + 15 * 22 END + - 2 WHEN 50 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT + - CASE MAX ( - + 7 ) WHEN ( 75 ) THEN - + 89 + - MIN ( CASE - 55 WHEN - 11 THEN - - ( + ( + 60 ) ) ELSE NULL END ) + + CASE + - 73 WHEN + 57 THEN NULL ELSE 49 * + - 23 + 15 * 22 END + - 2 WHEN 50 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + + 1 * 92 + - + 12 col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2499
SELECT MIN( ALL 70 ) DIV COUNT( * ) + - - 4, + 42 col1
----
74
42

skipif mysql # not compatible
query II rowsort label-2499
SELECT MIN ( ALL 70 ) / COUNT ( * ) + - - 4, + 42 col1
----
74
42

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

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

query I rowsort
SELECT ALL + 32 * - - 78
----
2496

query I rowsort
SELECT DISTINCT + - 37 AS col1
----
-37

query I rowsort
SELECT + - NULLIF ( + 70, 83 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT + + COUNT( * ) + 94 + - 59 * 89 * 99 * 64 + 36
----
-33270205

skipif mysql # not compatible
query I rowsort label-2504
SELECT + + COUNT ( * ) + 94 + - 59 * 89 * 99 * 64 + 36
----
-33270205

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

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

query I rowsort
SELECT ALL + + 60 col0
----
60

query I rowsort
SELECT + - 77 * - 34 * + 0 + + ( - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT - SUM( ALL + - 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2508
SELECT - SUM ( ALL + - 83 ) AS col2
----
83

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT + 38 * COALESCE ( - 91, - 77 ) * - SUM( - 61 )
----
-210938

skipif mysql # not compatible
query I rowsort label-2511
SELECT + 38 * COALESCE ( - 91, - 77 ) * - SUM ( - 61 )
----
-210938

query I rowsort
SELECT ALL 50 * 41
----
2050

query I rowsort
SELECT - ( - 6 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2514
SELECT ALL 96 + - 95 + + MAX( ALL + 61 ) DIV + 91 * - 4, 43 - + COALESCE ( - COUNT( ( 2 ) ), CAST( NULL AS SIGNED ) ) * - 25 * + 46 * - 16 - 64 AS col1
----
1
18379

skipif mysql # not compatible
query II rowsort label-2514
SELECT ALL 96 + - 95 + + MAX ( ALL + 61 ) / + 91 * - 4, 43 - + COALESCE ( - COUNT ( ( 2 ) ), CAST ( NULL AS INTEGER ) ) * - 25 * + 46 * - 16 - 64 AS col1
----
1
18379

query I rowsort
SELECT + 2 - + 58 AS col0
----
-56

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2517
SELECT + 55 + - 39 * + 83 * + 27 * + 72 * - CAST( - ( - - 75 ) AS SIGNED )
----
-471954545

skipif mysql # not compatible
query I rowsort label-2517
SELECT + 55 + - 39 * + 83 * + 27 * + 72 * - CAST ( - ( - - 75 ) AS INTEGER )
----
-471954545

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT + SUM( 65 ) * + 79 * ( + 60 ) AS col2
----
308100

skipif mysql # not compatible
query I rowsort label-2519
SELECT + SUM ( 65 ) * + 79 * ( + 60 ) AS col2
----
308100

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2521
SELECT ALL + COUNT( * ) + - 91 * 90, 93 AS col1
----
-8189
93

skipif mysql # not compatible
query II rowsort label-2521
SELECT ALL + COUNT ( * ) + - 91 * 90, 93 AS col1
----
-8189
93

query I rowsort
SELECT + 48 - - 17 AS col1
----
65

query I rowsort
SELECT + 24 - ( + - 63 ) + + 97
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT ALL 48 DIV + + 17 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL 48 / + + 17 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL + 32 * - + ( 95 ) + + 18 + + ( + - 5 ) * - + COUNT( * )
----
-3017

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL + 32 * - + ( 95 ) + + 18 + + ( + - 5 ) * - + COUNT ( * )
----
-3017

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2526
SELECT + 61 + + NULLIF ( + - SUM( ALL 93 ), + MIN( - 5 ) * + NULLIF ( - COUNT( * ), - CAST( - 68 AS SIGNED ) * - 38 + CAST( COALESCE ( COUNT( 18 ), MAX( - + 5 ) * COUNT( * ) + 78 ) AS DECIMAL ) - + 28 ) + - 93 ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-2526
SELECT + 61 + + NULLIF ( + - SUM ( ALL 93 ), + MIN ( - 5 ) * + NULLIF ( - COUNT ( * ), - CAST ( - 68 AS INTEGER ) * - 38 + CAST ( COALESCE ( COUNT ( 18 ), MAX ( - + 5 ) * COUNT ( * ) + 78 ) AS REAL ) - + 28 ) + - 93 ) col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT - - MAX( ALL - + 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-2527
SELECT - - MAX ( ALL - + 76 ) AS col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2528
SELECT + + 22 AS col0, CAST( NULL AS SIGNED ) AS col1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-2528
SELECT + + 22 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
22
NULL

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

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

query I rowsort
SELECT + - 82 * + 36 * - 81 + + + 23 * - 37 + + 30
----
238291

query I rowsort
SELECT DISTINCT - 94 * + 2 + - 72
----
-260

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2533
SELECT + CASE + 86 WHEN + 36 + + + 98 - - + CAST( + 35 AS SIGNED ) - + 63 + - + COUNT( * ) - COUNT( - 88 ) + - 35 * 58 * + + 89 THEN + + 83 + AVG ( - 40 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT + CASE + 86 WHEN + 36 + + + 98 - - + CAST ( + 35 AS INTEGER ) - + 63 + - + COUNT ( * ) - COUNT ( - 88 ) + - 35 * 58 * + + 89 THEN + + 83 + AVG ( - 40 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT ALL - + 47 DIV + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL - + 47 / + 78 AS col0
----
0

query I rowsort
SELECT - + 6 + 63
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT + CASE - + 80 WHEN + + MIN( + 37 ) + 20 + + - 53 * + 89 * + - 67 * + 0 / - CASE COUNT( * ) WHEN 94 THEN - 37 / - 33 + + 32 ELSE NULL END + + - 76 THEN + 49 WHEN 23 THEN NULL WHEN + NULLIF ( - 78, + 1 ) THEN NULL END * + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT + CASE - + 80 WHEN + + MIN ( + 37 ) + 20 + + - 53 * + 89 * + - 67 * + 0 / - CASE COUNT ( * ) WHEN 94 THEN - 37 / - 33 + + 32 ELSE NULL END + + - 76 THEN + 49 WHEN 23 THEN NULL WHEN + NULLIF ( - 78, + 1 ) THEN NULL END * + 11 AS col2
----
NULL

query I rowsort
SELECT - 22 + - 68 + 26 AS col1
----
-64

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

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

query I rowsort
SELECT ALL + 53 * + 34 + ( 27 )
----
1829

query I rowsort
SELECT + - 95 * + NULLIF ( + + 93, - - 42 ) * - 36 + - - 78 + NULLIF ( 69, + + 68 + + + 82 + + 40 * - 51 )
----
318207

query I rowsort
SELECT NULLIF ( 53, 72 )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT ALL - 46 DIV - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - 46 / - 65 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT ALL - 54 * + 77 + - COUNT( * ) + + CASE + - 94 WHEN - + ( + 75 ) THEN NULL WHEN + 63 + + 49 THEN - - COUNT( * ) WHEN + - NULLIF ( + 99, + 82 * - 97 ) * - + 52 + - 82 THEN + COALESCE ( - 28, + - 39, - SUM( + - ( - 69 ) ) + - 68 ) ELSE + 98 END + - + ( - 43 ) + - + 60 * + + COUNT( * ) + - NULLIF ( 35, - 13 ) * - 58 + 66 * COUNT( * ) AS col2
----
-1982

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL - 54 * + 77 + - COUNT ( * ) + + CASE + - 94 WHEN - + ( + 75 ) THEN NULL WHEN + 63 + + 49 THEN - - COUNT ( * ) WHEN + - NULLIF ( + 99, + 82 * - 97 ) * - + 52 + - 82 THEN + COALESCE ( - 28, + - 39, - SUM ( + - ( - 69 ) ) + - 68 ) ELSE + 98 END + - + ( - 43 ) + - + 60 * + + COUNT ( * ) + - NULLIF ( 35, - 13 ) * - 58 + 66 * COUNT ( * ) AS col2
----
-1982

query I rowsort
SELECT + 91 + + ( 47 )
----
138

query I rowsort
SELECT + 8 - + + 56 * 97
----
-5424

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

query I rowsort
SELECT - 79 + + - 8
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT + 85 + + + 87 + + 19 + ( - - 52 ) DIV ( - 64 ) * - + 50 + + 95
----
286

skipif mysql # not compatible
query I rowsort label-2548
SELECT + 85 + + + 87 + + 19 + ( - - 52 ) / ( - 64 ) * - + 50 + + 95
----
286

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT + 61 + + MIN( + 57 )
----
118

skipif mysql # not compatible
query I rowsort label-2550
SELECT + 61 + + MIN ( + 57 )
----
118

query I rowsort
SELECT ALL 43 + 79 + 96 AS col0
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT DISTINCT COUNT( 69 ) * + 2 * + + 66 + - 79 col1
----
53

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT COUNT ( 69 ) * + 2 * + + 66 + - 79 col1
----
53

query I rowsort
SELECT 26 + + 73
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT DISTINCT COUNT( * ) - + 21 - - 78
----
58

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT COUNT ( * ) - + 21 - - 78
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT MIN( DISTINCT 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2555
SELECT MIN ( DISTINCT 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2556
SELECT COUNT( * ) * 80 DIV 74
----
1

skipif mysql # not compatible
query I rowsort label-2556
SELECT COUNT ( * ) * 80 / 74
----
1

query I rowsort
SELECT 49 + + - 90
----
-41

query III rowsort
SELECT - - 80 AS col2, + 9 * - 21 + + - 11 AS col1, + 57 * + + 19 * 3 * COALESCE ( - ( NULLIF ( + - 72, + 10 ) ), 12 )
----
80
-200
233928

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

skipif mysql # not compatible
query I rowsort label-2559
SELECT 83 / + - 43 * - COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2560
SELECT - 66 * + 58 / + 41 + - ( 33 ) + 40 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT - 66 * + 58 / + 41 + - ( 33 ) + 40 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2561
SELECT + 79 DIV + 92 * - 48 + + + MIN( ALL 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2561
SELECT + 79 / + 92 * - 48 + + + MIN ( ALL 63 ) AS col2
----
63

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

skipif mysql # not compatible
query I rowsort label-2562
SELECT + 31 / + 46
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-2563
SELECT 6, 83 AS col2, 17 * COUNT( * ) AS col0
----
6
83
17

skipif mysql # not compatible
query III rowsort label-2563
SELECT 6, 83 AS col2, 17 * COUNT ( * ) AS col0
----
6
83
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2564
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) * + 32 DIV - 15
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-2564
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) * + 32 / - 15
----
NULL
-2

query I rowsort
SELECT 39 * - + 65 AS col2
----
-2535

query I rowsort
SELECT 82 + + - ( + 36 )
----
46

query II rowsort
SELECT + + 98 AS col1, 22 AS col2
----
98
22

query I rowsort
SELECT DISTINCT - 82 + + + 24
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2569
SELECT + COALESCE ( - + 85, - 81 + - - 80 - - 46 DIV 76, - 36 + - 28 + CAST( + NULLIF ( COUNT( * ), - 95 DIV - COUNT( * ) * + 50 ) AS SIGNED ) ) DIV + - 91 + + + ( + ( + 9 ) )
----
9

skipif mysql # not compatible
query I rowsort label-2569
SELECT + COALESCE ( - + 85, - 81 + - - 80 - - 46 / 76, - 36 + - 28 + CAST ( + NULLIF ( COUNT ( * ), - 95 / - COUNT ( * ) * + 50 ) AS INTEGER ) ) / + - 91 + + + ( + ( + 9 ) )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2570
SELECT DISTINCT - COUNT( * ) AS col0, - 58 + - - 26 AS col1
----
-1
-32

skipif mysql # not compatible
query II rowsort label-2570
SELECT DISTINCT - COUNT ( * ) AS col0, - 58 + - - 26 AS col1
----
-1
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT DISTINCT 99 + - COUNT( * ) + + 5
----
103

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT 99 + - COUNT ( * ) + + 5
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT ALL + 63 + + 57 + + - COUNT( * ) * 65 DIV + - 78 * - 10 * - NULLIF ( - 27, + MIN( + + 92 ) + - + 3 ) + 51 + + COUNT( * ) + - 50 + 9 * - 38 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL + 63 + + 57 + + - COUNT ( * ) * 65 / + - 78 * - 10 * - NULLIF ( - 27, + MIN ( + + 92 ) + - + 3 ) + 51 + + COUNT ( * ) + - 50 + 9 * - 38 AS col2
----
-220

query I rowsort
SELECT 91 * 27
----
2457

query II rowsort
SELECT ALL + 42 + - 62 col2, 12 * - 46 AS col2
----
-20
-552

query I rowsort
SELECT DISTINCT - 87 + 62 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2576
SELECT 81 DIV + 90 AS col2, - COUNT( DISTINCT 71 ) * + CAST( - + 28 AS SIGNED ) AS col2
----
0
28

skipif mysql # not compatible
query II rowsort label-2576
SELECT 81 / + 90 AS col2, - COUNT ( DISTINCT 71 ) * + CAST ( - + 28 AS INTEGER ) AS col2
----
0
28

query I rowsort
SELECT 88 * + 57 AS col1
----
5016

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT DISTINCT + 97 DIV - 82
----
-1

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT + 97 / - 82
----
-1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2580
SELECT 7 DIV 88 * - - COUNT( * ) col2, - 16
----
0
-16

skipif mysql # not compatible
query II rowsort label-2580
SELECT 7 / 88 * - - COUNT ( * ) col2, - 16
----
0
-16

query I rowsort
SELECT ALL - 43 - + 40 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL + 80 * + MAX( 76 )
----
6080

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL + 80 * + MAX ( 76 )
----
6080

query I rowsort
SELECT 16 + + 94
----
110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT COALESCE ( + + 50, - 47, SUM( DISTINCT 49 ) ) * 20
----
1000

skipif mysql # not compatible
query I rowsort label-2585
SELECT COALESCE ( + + 50, - 47, SUM ( DISTINCT 49 ) ) * 20
----
1000

query I rowsort
SELECT ( 80 ) * - 26
----
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT + 79 - + NULLIF ( + ( + NULLIF ( - 22, 86 ) ), + + COALESCE ( - ( - - 77 ), 39 * 96 + - - 82 * + 36 ) ) * MIN( DISTINCT + - 15 ) AS col2
----
-251

skipif mysql # not compatible
query I rowsort label-2587
SELECT + 79 - + NULLIF ( + ( + NULLIF ( - 22, 86 ) ), + + COALESCE ( - ( - - 77 ), 39 * 96 + - - 82 * + 36 ) ) * MIN ( DISTINCT + - 15 ) AS col2
----
-251

query I rowsort
SELECT 28 * - 2 AS col1
----
-56

query I rowsort
SELECT + 7 + - - 85 AS col2
----
92

query I rowsort
SELECT DISTINCT + 78 * + 40 AS col1
----
3120

query I rowsort
SELECT 77 + + COALESCE ( + 24, - + 19 + + 21 ) * - 11 AS col0
----
-187

query I rowsort
SELECT ALL 99 * 47 AS col0
----
4653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2593
SELECT + 38 * - COALESCE ( - + 45, COUNT( * ) * + COUNT( * ) DIV + 29 * - COUNT( * ) + 94 ) AS col0
----
1710

skipif mysql # not compatible
query I rowsort label-2593
SELECT + 38 * - COALESCE ( - + 45, COUNT ( * ) * + COUNT ( * ) / + 29 * - COUNT ( * ) + 94 ) AS col0
----
1710

onlyif mysql # aggregate syntax: 
query II rowsort label-2594
SELECT + NULLIF ( - 83, - - COUNT( * ) ) AS col1, - 64 + 18
----
-83
-46

skipif mysql # not compatible
query II rowsort label-2594
SELECT + NULLIF ( - 83, - - COUNT ( * ) ) AS col1, - 64 + 18
----
-83
-46

query I rowsort
SELECT DISTINCT + 66 * + 81 + - 22 + - 69 * + 87
----
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL - - COUNT( * ) * + 98 + + 20
----
118

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - - COUNT ( * ) * + 98 + + 20
----
118

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

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT COUNT ( * ) / 89 AS col0
----
0

query I rowsort
SELECT 81 + 52 + - - 62 * + 34 * - - 28 col1
----
59157

onlyif mysql # aggregate syntax: 
query II rowsort label-2599
SELECT COUNT( * ) AS col1, + MIN( DISTINCT 38 ) - + 69 + + + 39
----
1
8

skipif mysql # not compatible
query II rowsort label-2599
SELECT COUNT ( * ) AS col1, + MIN ( DISTINCT 38 ) - + 69 + + + 39
----
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT ALL + COUNT( * ) - + - 10 * COALESCE ( + + 17, + 71 )
----
171

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL + COUNT ( * ) - + - 10 * COALESCE ( + + 17, + 71 )
----
171

query II rowsort
SELECT + NULLIF ( + 72, 30 ) AS col0, - ( - - 64 ) * + - 66 + 6 + 57
----
72
4287

query I rowsort
SELECT DISTINCT 96 * 18 * - 84
----
-145152

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT - 25 + + COUNT( * ) * - - 60 - + 96 col1
----
-61

skipif mysql # not compatible
query I rowsort label-2603
SELECT - 25 + + COUNT ( * ) * - - 60 - + 96 col1
----
-61

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

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

query I rowsort
SELECT ALL - 11 - - 39
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT - CASE - - ( + - 72 ) WHEN 32 THEN NULL WHEN + + 34 THEN NULL WHEN - + MAX( ALL ( 27 ) ) * + 4 + - CASE 63 WHEN - CASE + ( + - 23 ) WHEN + COUNT( * ) THEN - 70 WHEN - ( + 31 ) * 29 / + 42 + 30 THEN 22 * - + MAX( ALL 18 ) ELSE - 65 END + - 14 THEN - NULLIF ( + 70, COUNT( * ) ) + - 66 - + - 19 END + 29 THEN 88 + ( - - 41 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT - CASE - - ( + - 72 ) WHEN 32 THEN NULL WHEN + + 34 THEN NULL WHEN - + MAX ( ALL ( 27 ) ) * + 4 + - CASE 63 WHEN - CASE + ( + - 23 ) WHEN + COUNT ( * ) THEN - 70 WHEN - ( + 31 ) * 29 / + 42 + 30 THEN 22 * - + MAX ( ALL 18 ) ELSE - 65 END + - 14 THEN - NULLIF ( + 70, COUNT ( * ) ) + - 66 - + - 19 END + 29 THEN 88 + ( - - 41 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT DISTINCT COUNT( 96 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT COUNT ( 96 ) AS col0
----
1

query I rowsort
SELECT - 42 * 66
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT ALL + COALESCE ( - COUNT( * ), + - 72 ) * 71
----
-71

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL + COALESCE ( - COUNT ( * ), + - 72 ) * 71
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2611
SELECT 11 AS col0, COALESCE ( - NULLIF ( - ( - - 16 ), + CAST( NULL AS DECIMAL ) * - + 66 ), - 28 + + COUNT( * ) DIV - + COALESCE ( NULLIF ( - - 19, - + COUNT( * ) DIV - 5 + + - 22 + + 80 ), - - 73 + - 94 * 98, 31 + - + 29 ) * + ( 50 ) ) AS col1
----
11
16

skipif mysql # not compatible
query II rowsort label-2611
SELECT 11 AS col0, COALESCE ( - NULLIF ( - ( - - 16 ), + CAST ( NULL AS REAL ) * - + 66 ), - 28 + + COUNT ( * ) / - + COALESCE ( NULLIF ( - - 19, - + COUNT ( * ) / - 5 + + - 22 + + 80 ), - - 73 + - 94 * 98, 31 + - + 29 ) * + ( 50 ) ) AS col1
----
11
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT - ( + 91 ) DIV - 35 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2612
SELECT - ( + 91 ) / - 35 AS col0
----
2

query I rowsort
SELECT ALL - 9 * - 6 AS col1
----
54

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

query I rowsort
SELECT DISTINCT + COALESCE ( - 8, + 39 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2616
SELECT DISTINCT - COALESCE ( COALESCE ( - - 31, 46 ), - COALESCE ( + 85, - ( - 83 ) - 43, - COUNT( - - 94 ) + 26 ) + - 38 * + - 74 * NULLIF ( MIN( 39 ), + 84 ) ) * - 3 AS col1, + 37 + + 80 + + NULLIF ( SUM( + + 40 ), + - 91 ) * - 25 * - 83 AS col2
----
93
83117

skipif mysql # not compatible
query II rowsort label-2616
SELECT DISTINCT - COALESCE ( COALESCE ( - - 31, 46 ), - COALESCE ( + 85, - ( - 83 ) - 43, - COUNT ( - - 94 ) + 26 ) + - 38 * + - 74 * NULLIF ( MIN ( 39 ), + 84 ) ) * - 3 AS col1, + 37 + + 80 + + NULLIF ( SUM ( + + 40 ), + - 91 ) * - 25 * - 83 AS col2
----
93
83117

query I rowsort
SELECT ALL + ( 40 ) * + 18
----
720

query I rowsort
SELECT - - 43 + + 51 + 63 + - 50 AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT - COUNT( * ) * - + 40 * + CASE + 61 WHEN - COUNT( * ) THEN + 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT - COUNT ( * ) * - + 40 * + CASE + 61 WHEN - COUNT ( * ) THEN + 66 END
----
NULL

query I rowsort
SELECT - 57 * 28 + - 9
----
-1605

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + 27 + COUNT( - - 0 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-2621
SELECT + 27 + COUNT ( - - 0 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT + + COUNT( * ) + 81
----
82

skipif mysql # not compatible
query I rowsort label-2622
SELECT + + COUNT ( * ) + 81
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT ALL + 24 + - + COALESCE ( 57, - - COUNT( ALL + + 60 ) + + + 66 + 66, - 74 + + COUNT( * ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL + 24 + - + COALESCE ( 57, - - COUNT ( ALL + + 60 ) + + + 66 + 66, - 74 + + COUNT ( * ) ) AS col1
----
-33

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

skipif mysql # not compatible
query I rowsort label-2624
SELECT - SUM ( ALL - 37 )
----
37

query I rowsort
SELECT DISTINCT + 55 + - 16 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT DISTINCT - 96 + NULLIF ( 46, COUNT( * ) ) DIV - - 83 * + 71 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT - 96 + NULLIF ( 46, COUNT ( * ) ) / - - 83 * + 71 AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT ALL 33 * + NULLIF ( + - 78, - COUNT( * ) * + MAX( DISTINCT + 50 ) - COUNT( * ) * 20 )
----
-2574

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL 33 * + NULLIF ( + - 78, - COUNT ( * ) * + MAX ( DISTINCT + 50 ) - COUNT ( * ) * 20 )
----
-2574

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2628
SELECT + 20 * - 31 * - COUNT( * ) * 52 + - COALESCE ( 17, 73 ) + - 24 DIV 9, - MAX( - 66 ) AS col0
----
32221
66

skipif mysql # not compatible
query II rowsort label-2628
SELECT + 20 * - 31 * - COUNT ( * ) * 52 + - COALESCE ( 17, 73 ) + - 24 / 9, - MAX ( - 66 ) AS col0
----
32221
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT COALESCE ( + - 95, SUM( + ( - 31 ) ) )
----
-95

skipif mysql # not compatible
query I rowsort label-2629
SELECT COALESCE ( + - 95, SUM ( + ( - 31 ) ) )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT + NULLIF ( 78, + + CAST( NULL AS SIGNED ) )
----
78

skipif mysql # not compatible
query I rowsort label-2630
SELECT + NULLIF ( 78, + + CAST ( NULL AS INTEGER ) )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL + MIN( - - 51 ) * - 21 * + 40 - + 16 AS col2
----
-42856

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL + MIN ( - - 51 ) * - 21 * + 40 - + 16 AS col2
----
-42856

onlyif mysql # DIV for integer division: 
query II rowsort label-2632
SELECT + 73 DIV 4, 76 AS col1
----
18
76

skipif mysql # not compatible
query II rowsort label-2632
SELECT + 73 / 4, 76 AS col1
----
18
76

query I rowsort
SELECT ALL + NULLIF ( 54, + 82 )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT ALL 20 DIV - 81 * + 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL 20 / - 81 * + 44 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2635
SELECT + NULLIF ( COALESCE ( + COUNT( * ), + 59 ), + COUNT( CAST( NULL AS SIGNED ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2635
SELECT + NULLIF ( COALESCE ( + COUNT ( * ), + 59 ), + COUNT ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
1

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

query I rowsort
SELECT + 19 * - 55
----
-1045

onlyif mysql # DIV for integer division: 
query II rowsort label-2638
SELECT + 78 * - + 29 AS col2, 64 * 55 DIV 79
----
-2262
44

skipif mysql # not compatible
query II rowsort label-2638
SELECT + 78 * - + 29 AS col2, 64 * 55 / 79
----
-2262
44

onlyif mysql # DIV for integer division: 
query II rowsort label-2639
SELECT ALL 84 DIV - - 59 AS col2, 79 * - 20 AS col0
----
1
-1580

skipif mysql # not compatible
query II rowsort label-2639
SELECT ALL 84 / - - 59 AS col2, 79 * - 20 AS col0
----
1
-1580

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT + MAX( - 58 ) * + 4
----
-232

skipif mysql # not compatible
query I rowsort label-2640
SELECT + MAX ( - 58 ) * + 4
----
-232

onlyif mysql # aggregate syntax: 
query II rowsort label-2641
SELECT ALL + SUM( DISTINCT - 98 ) col1, 81 / - 11 - + + CASE 60 WHEN - AVG ( + 77 ) THEN NULL WHEN - + 86 THEN 18 END * - 28 * + MIN( ALL - 21 ) AS col1
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-2641
SELECT ALL + SUM ( DISTINCT - 98 ) col1, 81 / - 11 - + + CASE 60 WHEN - AVG ( + 77 ) THEN NULL WHEN - + 86 THEN 18 END * - 28 * + MIN ( ALL - 21 ) AS col1
----
-98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT MAX( + 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2642
SELECT MAX ( + 52 ) AS col1
----
52

query I rowsort
SELECT 80 * + 50 - - 48 col2
----
4048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2644
SELECT ALL ( + 9 ) * 51 DIV + COUNT( * )
----
459

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL ( + 9 ) * 51 / + COUNT ( * )
----
459

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT 31 * - + 60 + 46 + + COUNT( * ) + 61 * - COUNT( * )
----
-1874

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT 31 * - + 60 + 46 + + COUNT ( * ) + 61 * - COUNT ( * )
----
-1874

query I rowsort
SELECT DISTINCT 36 * 42 * 21 AS col2
----
31752

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

query I rowsort
SELECT ALL - + 80 + + 16 + + - 12 * + 31 * - 18 + ( - 53 )
----
6579

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

query I rowsort
SELECT + - 14 + - + 72 * - 34
----
2434

query I rowsort
SELECT CASE - 62 WHEN - 58 + + + 34 THEN 20 END
----
NULL

query I rowsort
SELECT + + 39 + + 80
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT - + 33 * + 37 * COUNT( * ) * - 98
----
119658

skipif mysql # not compatible
query I rowsort label-2653
SELECT - + 33 * + 37 * COUNT ( * ) * - 98
----
119658

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT + MAX( ALL - - 4 ) + COALESCE ( 60, + + ( + - 97 ) )
----
64

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT + MAX ( ALL - - 4 ) + COALESCE ( 60, + + ( + - 97 ) )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2655
SELECT - 78 + 68 AS col1, COUNT( * ) + - 27 AS col0
----
-10
-26

skipif mysql # not compatible
query II rowsort label-2655
SELECT - 78 + 68 AS col1, COUNT ( * ) + - 27 AS col0
----
-10
-26

query I rowsort
SELECT DISTINCT + 4 + 67
----
71

query I rowsort
SELECT - 91 + 48 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT DISTINCT - + 46 * - 65 col2, COUNT( * ) AS col2
----
2990
1

skipif mysql # not compatible
query II rowsort label-2658
SELECT DISTINCT - + 46 * - 65 col2, COUNT ( * ) AS col2
----
2990
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL - + 96 * COUNT( * ) * 20 AS col1
----
-1920

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL - + 96 * COUNT ( * ) * 20 AS col1
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT - COUNT( DISTINCT + - 65 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2660
SELECT - COUNT ( DISTINCT + - 65 ) AS col2
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT DISTINCT + 21 DIV 12 - + 96 * + 74 * + 7 AS col2
----
-49727

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT + 21 / 12 - + 96 * + 74 * + 7 AS col2
----
-49727

query II rowsort
SELECT + 45 AS col2, + 26
----
45
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2664
SELECT DISTINCT - 11 - - CASE + CASE - + CAST( - - COUNT( * ) AS SIGNED ) WHEN - 58 THEN + 69 WHEN - 71 THEN - 53 WHEN 31 THEN NULL END WHEN + 16 THEN NULL WHEN - 45 * - MAX( DISTINCT - + 31 ) * - 6 + - - CASE - COUNT( * ) WHEN - + AVG ( ALL - - ( + 76 ) ) + + 53 THEN 56 WHEN 24 + MAX( ALL + - 78 ) * - 34 THEN NULL ELSE NULL END THEN 19 * - + 80 WHEN + 87 * - 15 + 18 / - CAST( 91 AS SIGNED ) THEN + 57 / - 44 + - 61 + ( + 3 ) + - 19 * SUM( DISTINCT 81 ) WHEN + - 74 * + - AVG ( DISTINCT 27 ) * ( - - 48 ) + + 35 + - 45 + 15 + - - 82 + 17 THEN NULL END + - COUNT( * ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT - 11 - - CASE + CASE - + CAST ( - - COUNT ( * ) AS INTEGER ) WHEN - 58 THEN + 69 WHEN - 71 THEN - 53 WHEN 31 THEN NULL END WHEN + 16 THEN NULL WHEN - 45 * - MAX ( DISTINCT - + 31 ) * - 6 + - - CASE - COUNT ( * ) WHEN - + AVG ( ALL - - ( + 76 ) ) + + 53 THEN 56 WHEN 24 + MAX ( ALL + - 78 ) * - 34 THEN NULL ELSE NULL END THEN 19 * - + 80 WHEN + 87 * - 15 + 18 / - CAST ( 91 AS INTEGER ) THEN + 57 / - 44 + - 61 + ( + 3 ) + - 19 * SUM ( DISTINCT 81 ) WHEN + - 74 * + - AVG ( DISTINCT 27 ) * ( - - 48 ) + + 35 + - 45 + 15 + - - 82 + 17 THEN NULL END + - COUNT ( * ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2665
SELECT ALL - 55 AS col0, 58 DIV + - 48 AS col0, + + 1 * - - 68 + - COUNT( * )
----
-55
-1
67

skipif mysql # not compatible
query III rowsort label-2665
SELECT ALL - 55 AS col0, 58 / + - 48 AS col0, + + 1 * - - 68 + - COUNT ( * )
----
-55
-1
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2666
SELECT ALL - ( - MAX( DISTINCT - CASE + 68 WHEN - CASE 57 WHEN 65 THEN - + CASE 93 WHEN - 44 THEN 12 WHEN 17 + - 9 THEN + 87 END ELSE NULL END THEN + 90 * - - 13 * 31 * - 80 * + 9 + + - 99 + + - 43 DIV ( 12 ) * 42 * + 11 * + 35 * ( - 26 ) ELSE + 43 END ) )
----
-43

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL - ( - MAX ( DISTINCT - CASE + 68 WHEN - CASE 57 WHEN 65 THEN - + CASE 93 WHEN - 44 THEN 12 WHEN 17 + - 9 THEN + 87 END ELSE NULL END THEN + 90 * - - 13 * 31 * - 80 * + 9 + + - 99 + + - 43 / ( 12 ) * 42 * + 11 * + 35 * ( - 26 ) ELSE + 43 END ) )
----
-43

query I rowsort
SELECT 16 + + + 49 + + + 29
----
94

query II rowsort
SELECT + 23 col0, + 48 * 61
----
23
2928

query I rowsort
SELECT ALL 78 * 88
----
6864

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT ALL 30 + - - 31 + + 46 + - + COUNT( * ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL 30 + - - 31 + + 46 + - + COUNT ( * ) AS col1
----
106

query I rowsort
SELECT 85 * 84 + + 15
----
7155

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT ALL 71 + COUNT( * ) * + 32
----
103

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL 71 + COUNT ( * ) * + 32
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2674
SELECT MIN( DISTINCT + 61 ) DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-2674
SELECT MIN ( DISTINCT + 61 ) / - 84
----
0

query I rowsort
SELECT + 3 * ( + 34 ) + + 69
----
171

query I rowsort
SELECT ALL 64 + 57
----
121

query I rowsort
SELECT 95 + 9 AS col1
----
104

query I rowsort
SELECT ALL 58 * 93 AS col2
----
5394

query I rowsort
SELECT ALL 17 + - 74
----
-57

query I rowsort
SELECT DISTINCT 87 * 11
----
957

query I rowsort
SELECT 85 * + 98 AS col2
----
8330

onlyif mysql # DIV for integer division: 
query I rowsort label-2682
SELECT ( - 88 ) + + ( - 42 + + 5 * - 84 ) DIV 75 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2682
SELECT ( - 88 ) + + ( - 42 + + 5 * - 84 ) / 75 AS col2
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT 75 DIV + MIN( DISTINCT 59 )
----
1

skipif mysql # not compatible
query I rowsort label-2683
SELECT 75 / + MIN ( DISTINCT 59 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2684
SELECT 11 * - NULLIF ( 77, CASE 24 WHEN + 52 + COALESCE ( 17 + CASE + COALESCE ( 86, COALESCE ( 19, + 72, MAX( ( - 34 ) ) * 82 + 5, - 16 * - ( 54 / - ( COUNT( * ) ) ) ) ) + + 43 WHEN - 4 + - 94 THEN NULL WHEN 62 THEN 25 ELSE NULL END, - MAX( + 25 ) * - CAST( NULL AS DECIMAL ), - COUNT( * ), 82 / 58 ) THEN NULL WHEN 99 / 29 THEN NULL ELSE + 9 * 74 END ) col1
----
-847

skipif mysql # not compatible
query I rowsort label-2684
SELECT 11 * - NULLIF ( 77, CASE 24 WHEN + 52 + COALESCE ( 17 + CASE + COALESCE ( 86, COALESCE ( 19, + 72, MAX ( ( - 34 ) ) * 82 + 5, - 16 * - ( 54 / - ( COUNT ( * ) ) ) ) ) + + 43 WHEN - 4 + - 94 THEN NULL WHEN 62 THEN 25 ELSE NULL END, - MAX ( + 25 ) * - CAST ( NULL AS REAL ), - COUNT ( * ), 82 / 58 ) THEN NULL WHEN 99 / 29 THEN NULL ELSE + 9 * 74 END ) col1
----
-847

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT DISTINCT - 70 DIV - 22
----
3

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT - 70 / - 22
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT NULLIF ( ( 43 ), - SUM( + ( 69 ) ) ) * ( + 10 * 53 )
----
22790

skipif mysql # not compatible
query I rowsort label-2686
SELECT NULLIF ( ( 43 ), - SUM ( + ( 69 ) ) ) * ( + 10 * 53 )
----
22790

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL - MIN( DISTINCT 98 ) * + 29
----
-2842

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL - MIN ( DISTINCT 98 ) * + 29
----
-2842

query I rowsort
SELECT 7 + - 84 AS col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT DISTINCT 56 DIV + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT 56 / + 57 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2690
SELECT DISTINCT 73 DIV - 66 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT 73 / - 66 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2691
SELECT ALL - CASE - 95 WHEN 25 * CAST( NULL AS DECIMAL ) THEN NULL WHEN + CAST( + MAX( ALL - ( + 99 ) ) AS SIGNED ) * 62 THEN 55 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL - CASE - 95 WHEN 25 * CAST ( NULL AS REAL ) THEN NULL WHEN + CAST ( + MAX ( ALL - ( + 99 ) ) AS INTEGER ) * 62 THEN 55 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL + 52 * - COALESCE ( + ( - 90 ), 21 + + COUNT( DISTINCT 99 ), 14 )
----
4680

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + 52 * - COALESCE ( + ( - 90 ), 21 + + COUNT ( DISTINCT 99 ), 14 )
----
4680

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL - CASE 85 WHEN + 31 + - 4 THEN NULL WHEN COUNT( * ) * - 87 THEN NULL ELSE - 7 END
----
7

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - CASE 85 WHEN + 31 + - 4 THEN NULL WHEN COUNT ( * ) * - 87 THEN NULL ELSE - 7 END
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2696
SELECT 16 DIV + 3 col1
----
5

skipif mysql # not compatible
query I rowsort label-2696
SELECT 16 / + 3 col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2697
SELECT + COUNT( * ) * 68 + - 79 DIV ( MAX( - 82 ) * + 35 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2697
SELECT + COUNT ( * ) * 68 + - 79 / ( MAX ( - 82 ) * + 35 ) AS col1
----
68

query I rowsort
SELECT ALL + 90 + - 22
----
68

query I rowsort
SELECT DISTINCT - 35 + + 86
----
51

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

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL 24 + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT 31 - 83
----
-52

query I rowsort
SELECT 41 * + 51 AS col0
----
2091

query I rowsort
SELECT ALL - - 97 * 92
----
8924

query I rowsort
SELECT ALL + - 5 * - 19
----
95

query I rowsort
SELECT + 46 - 78 col2
----
-32

query I rowsort
SELECT ALL COALESCE ( - 6, + 51 * 7 - - 42 * + 9 )
----
-6

query I rowsort
SELECT DISTINCT + 67 * - ( + 94 ) AS col1
----
-6298

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2708
SELECT ALL + NULLIF ( + CAST( 43 AS SIGNED ), + 16 ) DIV ( 40 + + 62 )
----
0

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL + NULLIF ( + CAST ( 43 AS INTEGER ), + 16 ) / ( 40 + + 62 )
----
0

query I rowsort
SELECT 97 * - 23
----
-2231

query I rowsort
SELECT - 13 + 8 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2711
SELECT - 96 - 69 * NULLIF ( + 45 + - ( 54 + - CAST( NULL AS SIGNED ) / 9 ), - COUNT( * ) / 80 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT - 96 - 69 * NULLIF ( + 45 + - ( 54 + - CAST ( NULL AS INTEGER ) / 9 ), - COUNT ( * ) / 80 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT ALL 65 DIV - 4 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL 65 / - 4 AS col1
----
-16

query I rowsort
SELECT 77 * 27
----
2079

query I rowsort
SELECT + 5 + + 31 AS col1
----
36

query I rowsort
SELECT + 49 * 5 col1
----
245

query I rowsort
SELECT ALL + 93 * 10
----
930

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

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

query I rowsort
SELECT - + COALESCE ( 76, 83 ) AS col1
----
-76

query I rowsort
SELECT + 27 * ( - 31 ) * - 61 AS col1
----
51057

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL COUNT( DISTINCT + NULLIF ( 50, + ( - 16 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL COUNT ( DISTINCT + NULLIF ( 50, + ( - 16 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ALL SUM( DISTINCT + 26 ) * ( 67 ) AS col1
----
1742

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL SUM ( DISTINCT + 26 ) * ( 67 ) AS col1
----
1742

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

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

query I rowsort
SELECT + 91 * - 27 col0
----
-2457

query I rowsort
SELECT DISTINCT - 87 * 99 + 38 AS col1
----
-8575

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT ALL + 54 * - COUNT( * ) * ( - 88 ) + 21
----
4773

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL + 54 * - COUNT ( * ) * ( - 88 ) + 21
----
4773

query I rowsort
SELECT CASE + CASE 37 WHEN - 7 + - AVG ( DISTINCT + ( ( + 68 ) ) ) THEN + ( + 13 ) * 83 + + 36 ELSE NULL END WHEN - 70 THEN 51 ELSE + 90 * 59 END AS col2
----
5310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2728
SELECT + SUM( ALL - 79 ) * NULLIF ( - 84, CASE WHEN + CASE - CASE 69 WHEN + ( - 32 ) THEN + COUNT( 48 ) / 44 WHEN - COUNT( * ) THEN - 0 ELSE - NULLIF ( COUNT( * ), 17 ) / CAST( NULL AS SIGNED ) + + 2 END WHEN 61 / - 62 THEN COUNT( * ) ELSE NULL END <= NULL THEN + 9 * 21 END / + 61 + + AVG ( - 10 ) ) AS col0
----
6636

skipif mysql # not compatible
query I rowsort label-2728
SELECT + SUM ( ALL - 79 ) * NULLIF ( - 84, CASE WHEN + CASE - CASE 69 WHEN + ( - 32 ) THEN + COUNT ( 48 ) / 44 WHEN - COUNT ( * ) THEN - 0 ELSE - NULLIF ( COUNT ( * ), 17 ) / CAST ( NULL AS INTEGER ) + + 2 END WHEN 61 / - 62 THEN COUNT ( * ) ELSE NULL END <= NULL THEN + 9 * 21 END / + 61 + + AVG ( - 10 ) ) AS col0
----
6636

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT ALL ( + 69 ) DIV - 10 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL ( + 69 ) / - 10 AS col2
----
-6

query I rowsort
SELECT ALL - 77 * + 10 + 34 AS col1
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT 22 * MIN( 4 ) * + 42 + ( 96 ) AS col1
----
3792

skipif mysql # not compatible
query I rowsort label-2731
SELECT 22 * MIN ( 4 ) * + 42 + ( 96 ) AS col1
----
3792

query I rowsort
SELECT - 7 - - 61 + 99 * 71 AS col0
----
7083

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT + MIN( - + 77 ) + 8
----
-69

skipif mysql # not compatible
query I rowsort label-2733
SELECT + MIN ( - + 77 ) + 8
----
-69

query I rowsort
SELECT ALL + COALESCE ( + 32, - 63 ) AS col0
----
32

query I rowsort
SELECT ALL - 31 * - 77 AS col1
----
2387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2736
SELECT + 53 + - - CAST( + 11 AS SIGNED ) + - 70 * - COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-2736
SELECT + 53 + - - CAST ( + 11 AS INTEGER ) + - 70 * - COUNT ( * )
----
134

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

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

query I rowsort
SELECT - ( 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL - COUNT( * ) * - 94 * - 87 - 0 AS col0
----
-8178

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL - COUNT ( * ) * - 94 * - 87 - 0 AS col0
----
-8178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2740
SELECT ALL + - MAX( ALL CAST( + 76 AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL + - MAX ( ALL CAST ( + 76 AS INTEGER ) )
----
-76

query I rowsort
SELECT ALL + - ( - + 2 ) * 31
----
62

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT - ( - SUM( 91 ) ) + - 38 * + 99
----
-3671

skipif mysql # not compatible
query I rowsort label-2744
SELECT - ( - SUM ( 91 ) ) + - 38 * + 99
----
-3671

query I rowsort
SELECT - 66 * + + 53 * + 99 + 47 * 70 AS col2
----
-343012

query I rowsort
SELECT ALL - COALESCE ( + 8, - 53 * - 71 + 92 ) AS col0
----
-8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - - COUNT( * ) * + 77 * + 34 AS col2
----
2618

skipif mysql # not compatible
query I rowsort label-2748
SELECT - - COUNT ( * ) * + 77 * + 34 AS col2
----
2618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2749
SELECT - CASE - ( NULLIF ( CASE - 7 WHEN + 8 THEN 53 END, ( 12 ) * COUNT( ALL 41 ) ) ) WHEN - 5 THEN + 17 WHEN - 33 * CASE - COUNT( * ) WHEN 50 * 36 + + COUNT( DISTINCT 25 ) THEN NULL WHEN ( 9 ) THEN ( CAST( + 28 AS SIGNED ) ) - 61 END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT - CASE - ( NULLIF ( CASE - 7 WHEN + 8 THEN 53 END, ( 12 ) * COUNT ( ALL 41 ) ) ) WHEN - 5 THEN + 17 WHEN - 33 * CASE - COUNT ( * ) WHEN 50 * 36 + + COUNT ( DISTINCT 25 ) THEN NULL WHEN ( 9 ) THEN ( CAST ( + 28 AS INTEGER ) ) - 61 END THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 95 * 48 * 29 + 31 AS col0
----
132271

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT DISTINCT - NULLIF ( - SUM( DISTINCT 49 ), + 22 + 34 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT - NULLIF ( - SUM ( DISTINCT 49 ), + 22 + 34 ) AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2752
SELECT DISTINCT + + 85 + 59 + + 21 DIV - 46 AS col2
----
144

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT + + 85 + 59 + + 21 / - 46 AS col2
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT ALL + NULLIF ( - + 60, - - 90 * NULLIF ( - 47 + - 66, CAST( NULL AS SIGNED ) ) ) + - CAST( NULL AS SIGNED ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL + NULLIF ( - + 60, - - 90 * NULLIF ( - 47 + - 66, CAST ( NULL AS INTEGER ) ) ) + - CAST ( NULL AS INTEGER ) * 65
----
NULL

query I rowsort
SELECT - 73 - + 97
----
-170

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

query I rowsort
SELECT - 67 * 78
----
-5226

query I rowsort
SELECT + 49 / - CASE + 97 WHEN 36 THEN + 76 * 6 WHEN 90 * 3 THEN NULL WHEN 79 + 78 THEN - 22 END
----
NULL

query I rowsort
SELECT ALL 55 + 81
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL 14 + + COUNT( + - 81 )
----
15

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL 14 + + COUNT ( + - 81 )
----
15

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

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

query I rowsort
SELECT DISTINCT - ( 53 ) + 46
----
-7

query I rowsort
SELECT + 96 - + - 30
----
126

query I rowsort
SELECT DISTINCT ( - NULLIF ( - + 87, + 93 ) ) * - 12 AS col2
----
-1044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2764
SELECT ALL - COUNT( * ) DIV + 43 * - ( - 55 ) + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - COUNT ( * ) / + 43 * - ( - 55 ) + COUNT ( * ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2765
SELECT ALL + 49 DIV + + ( 74 ) * 3 + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL + 49 / + + ( 74 ) * 3 + - 35
----
-35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2768
SELECT ALL + 5 AS col1, 22 DIV - + SUM( ALL COALESCE ( + 67, - 14 ) ) * 83
----
5
0

skipif mysql # not compatible
query II rowsort label-2768
SELECT ALL + 5 AS col1, 22 / - + SUM ( ALL COALESCE ( + 67, - 14 ) ) * 83
----
5
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT + ( 36 ) * + - MIN( DISTINCT + 92 )
----
-3312

skipif mysql # not compatible
query I rowsort label-2770
SELECT + ( 36 ) * + - MIN ( DISTINCT + 92 )
----
-3312

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

query I rowsort
SELECT + 85 * - 70 + + 18
----
-5932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2773
SELECT ALL ( + 43 ) / - + 36 - 54 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL ( + 43 ) / - + 36 - 54 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2774
SELECT CAST( 83 AS SIGNED ) col2
----
83

skipif mysql # not compatible
query I rowsort label-2774
SELECT CAST ( 83 AS INTEGER ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT DISTINCT - 55 / CASE - + 36 WHEN + COUNT( * ) THEN 88 WHEN 35 THEN - 87 END * AVG ( DISTINCT - 55 + + 31 * + 70 ) - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - 55 / CASE - + 36 WHEN + COUNT ( * ) THEN 88 WHEN 35 THEN - 87 END * AVG ( DISTINCT - 55 + + 31 * + 70 ) - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT + + 6 * + - 4 * + ( - COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-2776
SELECT + + 6 * + - 4 * + ( - COUNT ( * ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL + - NULLIF ( COUNT( * ), + + 95 ) * 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL + - NULLIF ( COUNT ( * ), + + 95 ) * 36 AS col2
----
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT - 42 * COUNT( * ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-2779
SELECT - 42 * COUNT ( * ) col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT + + COUNT( * ) - + ( 51 ) + + 77 * 70
----
5340

skipif mysql # not compatible
query I rowsort label-2780
SELECT + + COUNT ( * ) - + ( 51 ) + + 77 * 70
----
5340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2781
SELECT - + COUNT( * ) DIV - CASE - 72 WHEN 98 THEN + 20 WHEN 45 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-2781
SELECT - + COUNT ( * ) / - CASE - 72 WHEN 98 THEN + 20 WHEN 45 THEN NULL ELSE + COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL + 59 * - - SUM( 34 ) + + 31 AS col0
----
2037

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + 59 * - - SUM ( 34 ) + + 31 AS col0
----
2037

query I rowsort
SELECT + 4 * - 67
----
-268

query I rowsort
SELECT + + 79 * + - 93 * + 50
----
-367350

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT - COALESCE ( + 11, + + CASE 56 WHEN - 57 DIV + 14 THEN + 65 + 99 DIV - 75 ELSE NULL END * - 53 + - 43 * 36 ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-2785
SELECT - COALESCE ( + 11, + + CASE 56 WHEN - 57 / + 14 THEN + 65 + 99 / - 75 ELSE NULL END * - 53 + - 43 * 36 ) / - 59
----
0

query I rowsort
SELECT 6 - - - 48
----
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT + CASE - 18 WHEN - + COUNT( * ) THEN + 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT + CASE - 18 WHEN - + COUNT ( * ) THEN + 54 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL NULLIF ( + 8, + ( COUNT( * ) ) / - 71 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL NULLIF ( + 8, + ( COUNT ( * ) ) / - 71 ) AS col1
----
8

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

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

query I rowsort
SELECT - ( - 69 )
----
69

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT 10 + + - COUNT( 25 )
----
9

skipif mysql # not compatible
query I rowsort label-2794
SELECT 10 + + - COUNT ( 25 )
----
9

query I rowsort
SELECT 19 + - - 5 col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL + COUNT( 2 ) + - 53 * + 89 AS col2
----
-4716

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + COUNT ( 2 ) + - 53 * + 89 AS col2
----
-4716

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2797
SELECT 35 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT 35 * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - 30 * - ( - 75 ) AS col0
----
-2250

onlyif mysql # DIV for integer division: 
query II rowsort label-2799
SELECT 41 DIV + 71 col0, + CASE 83 WHEN - 11 + + 25 THEN 77 + 76 WHEN + 94 THEN NULL END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2799
SELECT 41 / + 71 col0, + CASE 83 WHEN - 11 + + 25 THEN 77 + 76 WHEN + 94 THEN NULL END
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL - ( - - 99 ) + - MIN( + - 6 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL - ( - - 99 ) + - MIN ( + - 6 ) AS col2
----
-93

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

query I rowsort
SELECT CASE - 25 WHEN + 26 THEN - 6 + ( 55 ) END * 40
----
NULL

query I rowsort
SELECT 80 * 73 AS col2
----
5840

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT + 43 * + 95 / - 6 * NULLIF ( - 64, + CAST( NULL AS SIGNED ) ) * ( 93 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT + 43 * + 95 / - 6 * NULLIF ( - 64, + CAST ( NULL AS INTEGER ) ) * ( 93 ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT DISTINCT COUNT( DISTINCT 33 ) * 5 + COALESCE ( - 68, 58 ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT COUNT ( DISTINCT 33 ) * 5 + COALESCE ( - 68, 58 ) col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2807
SELECT 96 DIV 58 + - COUNT( * ) * ( + 84 ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-2807
SELECT 96 / 58 + - COUNT ( * ) * ( + 84 ) col0
----
-83

query I rowsort
SELECT ALL 43 * + 43 * - 80 AS col1
----
-147920

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT DISTINCT MAX( ALL + 11 ) * + + 19 + 87
----
296

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT MAX ( ALL + 11 ) * + + 19 + 87
----
296

query I rowsort
SELECT ALL - 89 * 25 AS col0
----
-2225

query I rowsort
SELECT CASE WHEN ( - 95 ) BETWEEN ( - 85 ) AND ( - 5 ) THEN + 61 END + 7 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT + COUNT( * ) * + - 89 - 73 - + 27
----
-189

skipif mysql # not compatible
query I rowsort label-2812
SELECT + COUNT ( * ) * + - 89 - 73 - + 27
----
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2813
SELECT + + 29 * COUNT( * ) DIV + 19 + - 57 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2813
SELECT + + 29 * COUNT ( * ) / + 19 + - 57 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT - NULLIF ( - 32, + MIN( - 50 ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT - NULLIF ( - 32, + MIN ( - 50 ) ) AS col2
----
32

query I rowsort
SELECT 44 * 48
----
2112

query I rowsort
SELECT ALL ( + 14 ) + + 34
----
48

query I rowsort
SELECT + 27 * + + ( + 55 ) + - - 18
----
1503

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

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT - COUNT ( * ) / 54 * - + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT ALL 59 + 2 + - MAX( DISTINCT - 24 )
----
85

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL 59 + 2 + - MAX ( DISTINCT - 24 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2820
SELECT - 39 * 52 + - 91 * - CASE CASE 18 WHEN - NULLIF ( 91, - 48 + + 14 ) THEN 6 + COUNT( ALL 84 + + CASE CASE 90 WHEN 64 + 82 THEN 16 DIV + 69 ELSE 21 END WHEN + 89 * + 5 + + 36 THEN NULL WHEN NULLIF ( + 2, 66 - CASE 3 WHEN + 93 THEN NULL WHEN 84 THEN NULL WHEN + 26 THEN 77 * - 8 ELSE NULL END * CAST( NULL AS SIGNED ) ) * 74 + 93 THEN - ( - 38 ) ELSE 48 END * 5 ) * 55 ELSE 27 END WHEN - 18 * 10 THEN SUM( 20 ) WHEN CASE + COALESCE ( + CAST( NULL AS SIGNED ), 76 ) WHEN 38 THEN + 52 DIV - CAST( + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) ELSE NULL END DIV - 32 + 86 * + 19 THEN NULL ELSE 29 DIV 31 + 74 END * - 95 AS col1
----
-641758

skipif mysql # not compatible
query I rowsort label-2820
SELECT - 39 * 52 + - 91 * - CASE CASE 18 WHEN - NULLIF ( 91, - 48 + + 14 ) THEN 6 + COUNT ( ALL 84 + + CASE CASE 90 WHEN 64 + 82 THEN 16 / + 69 ELSE 21 END WHEN + 89 * + 5 + + 36 THEN NULL WHEN NULLIF ( + 2, 66 - CASE 3 WHEN + 93 THEN NULL WHEN 84 THEN NULL WHEN + 26 THEN 77 * - 8 ELSE NULL END * CAST ( NULL AS INTEGER ) ) * 74 + 93 THEN - ( - 38 ) ELSE 48 END * 5 ) * 55 ELSE 27 END WHEN - 18 * 10 THEN SUM ( 20 ) WHEN CASE + COALESCE ( + CAST ( NULL AS INTEGER ), 76 ) WHEN 38 THEN + 52 / - CAST ( + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) ELSE NULL END / - 32 + 86 * + 19 THEN NULL ELSE 29 / 31 + 74 END * - 95 AS col1
----
-641758

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL - + MAX( + 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL - + MAX ( + 7 ) AS col2
----
-7

query I rowsort
SELECT ALL - 62 + - 19 * + 57
----
-1145

query I rowsort
SELECT DISTINCT 21 + 49 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT + - COALESCE ( - 74, + COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-2824
SELECT + - COALESCE ( - 74, + COUNT ( * ) )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2825
SELECT CAST( - 86 AS SIGNED ) AS col0, - CAST( NULL AS SIGNED ) AS col2
----
-86
NULL

skipif mysql # not compatible
query II rowsort label-2825
SELECT CAST ( - 86 AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) AS col2
----
-86
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT ALL - 12 + + - COUNT( DISTINCT - 74 ) + CAST( NULL AS SIGNED ) + + 80 * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL - 12 + + - COUNT ( DISTINCT - 74 ) + CAST ( NULL AS INTEGER ) + + 80 * 67
----
NULL

query I rowsort
SELECT + 8 * + 84 * + NULLIF ( + + 30, + 51 + ( 56 ) ) AS col2
----
20160

query I rowsort
SELECT ( + - 17 ) * + 2 * + 48 + 58
----
-1574

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

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

query I rowsort
SELECT 55 + - 42
----
13

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

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL + COUNT ( * ) + + 48 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL ( 70 ) * 16 + - 44 + + COUNT( * )
----
1077

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL ( 70 ) * 16 + - 44 + + COUNT ( * )
----
1077

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

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

query I rowsort
SELECT DISTINCT 85 * + 43
----
3655

query I rowsort
SELECT 45 * + + 78 AS col0
----
3510

query I rowsort
SELECT DISTINCT - 90 - - 62
----
-28

query II rowsort
SELECT 21 col2, + 59 * - - 56 * - 86 * + 73 + 41 AS col2
----
21
-20742471

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

skipif mysql # not compatible
query I rowsort label-2838
SELECT ( - 37 ) + 67 - + 60 - + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2839
SELECT 70 * - CAST( NULL AS SIGNED ) * - ( + + CASE - - 93 WHEN 76 THEN - COUNT( * ) + 4 / + NULLIF ( + 89, - 13 * + 99 ) WHEN 24 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT 70 * - CAST ( NULL AS INTEGER ) * - ( + + CASE - - 93 WHEN 76 THEN - COUNT ( * ) + 4 / + NULLIF ( + 89, - 13 * + 99 ) WHEN 24 THEN NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2840
SELECT ALL 17, 70 * + - 29 + - - 3 + + 16 + - 47 * COUNT( * ) AS col2
----
17
-2058

skipif mysql # not compatible
query II rowsort label-2840
SELECT ALL 17, 70 * + - 29 + - - 3 + + 16 + - 47 * COUNT ( * ) AS col2
----
17
-2058

query I rowsort
SELECT 76 + + 72 + - ( 47 ) AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT DISTINCT - 90 - - 47 + - 20 * 8 * CASE 0 WHEN - 63 / COUNT( * ) THEN + 97 * CASE + 3 WHEN - 87 THEN NULL WHEN 23 THEN NULL ELSE 64 END + 78 END * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT - 90 - - 47 + - 20 * 8 * CASE 0 WHEN - 63 / COUNT ( * ) THEN + 97 * CASE + 3 WHEN - 87 THEN NULL WHEN 23 THEN NULL ELSE 64 END + 78 END * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT 60 * - CAST( - 24 AS SIGNED ) AS col1
----
1440

skipif mysql # not compatible
query I rowsort label-2844
SELECT 60 * - CAST ( - 24 AS INTEGER ) AS col1
----
1440

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

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL - COUNT ( * ) / - ( - 57 ) col1
----
0

query II rowsort
SELECT DISTINCT 79 AS col0, + 99 AS col1
----
79
99

query I rowsort
SELECT DISTINCT - 55 * - 14
----
770

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT 76 + - COUNT( * ) - 37 + - COUNT( * ) + 36 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-2849
SELECT 76 + - COUNT ( * ) - 37 + - COUNT ( * ) + 36 AS col1
----
73

query I rowsort
SELECT 79 - ( 56 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT ALL - 73 * + 70 / CASE + 63 WHEN - 48 THEN - 19 WHEN 94 THEN - 83 + - 3 WHEN + 72 THEN + 24 * 3 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL - 73 * + 70 / CASE + 63 WHEN - 48 THEN - 19 WHEN 94 THEN - 83 + - 3 WHEN + 72 THEN + 24 * 3 END * + COUNT ( * )
----
NULL

query I rowsort
SELECT 18 + - - 1 AS col1
----
19

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

skipif mysql # not compatible
query I rowsort label-2853
SELECT + COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT 20 * - - 98 - SUM( - 84 ) AS col1
----
2044

skipif mysql # not compatible
query I rowsort label-2854
SELECT 20 * - - 98 - SUM ( - 84 ) AS col1
----
2044

query I rowsort
SELECT - 33 + ( 85 )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2856
SELECT ALL + 1 DIV + + 68
----
0

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + 1 / + + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + - ( + SUM( DISTINCT 33 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-2857
SELECT + - ( + SUM ( DISTINCT 33 ) )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2858
SELECT - 90 DIV - 39 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2858
SELECT - 90 / - 39 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ALL + 10 * COUNT( * ) * - 23 * COALESCE ( - 37, + COUNT( * ) ) + - COUNT( * ) AS col1
----
8509

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL + 10 * COUNT ( * ) * - 23 * COALESCE ( - 37, + COUNT ( * ) ) + - COUNT ( * ) AS col1
----
8509

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT + MIN( DISTINCT - - 12 ) * - 31 - + - 54 - 26 + + 12 AS col1
----
-332

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT + MIN ( DISTINCT - - 12 ) * - 31 - + - 54 - 26 + + 12 AS col1
----
-332

query I rowsort
SELECT DISTINCT + 35 * + 1 * - + 80 col0
----
-2800

query I rowsort
SELECT ALL - 46 * + 36 + - - 19 + - 57
----
-1694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2863
SELECT DISTINCT - - 43 * + 85 + - 76 * NULLIF ( - + ( - CAST( - MAX( + 18 ) AS SIGNED ) ), COALESCE ( + 25, 23 / CASE - NULLIF ( 5, 62 + - 61 ) WHEN 62 THEN 82 ELSE 20 END, 62 ) ) * + 71 + 88 AS col2
----
100871

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT - - 43 * + 85 + - 76 * NULLIF ( - + ( - CAST ( - MAX ( + 18 ) AS INTEGER ) ), COALESCE ( + 25, 23 / CASE - NULLIF ( 5, 62 + - 61 ) WHEN 62 THEN 82 ELSE 20 END, 62 ) ) * + 71 + 88 AS col2
----
100871

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL + 17 * + - COUNT( * ) + + - 88
----
-105

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL + 17 * + - COUNT ( * ) + + - 88
----
-105

query I rowsort
SELECT - 79 - + + 20
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT - COUNT( * ) * + 19 + + 51
----
32

skipif mysql # not compatible
query I rowsort label-2867
SELECT - COUNT ( * ) * + 19 + + 51
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT + 76 * - COUNT( - 42 ) + 67 + - ( COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-2868
SELECT + 76 * - COUNT ( - 42 ) + 67 + - ( COUNT ( * ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ALL 46 + + COUNT( * ) + - + 74
----
-27

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL 46 + + COUNT ( * ) + - + 74
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT + + 44 * + 4 + - COUNT( * ) + 82
----
257

skipif mysql # not compatible
query I rowsort label-2870
SELECT + + 44 * + 4 + - COUNT ( * ) + 82
----
257

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

query I rowsort
SELECT ALL 91 * + 89
----
8099

query I rowsort
SELECT + 97 - + - 63 + 52
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL COUNT( * ) - - 18 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL COUNT ( * ) - - 18 AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-2875
SELECT DISTINCT 0 AS col1, COUNT( * ) * - - 36 + + + 5 AS col0
----
0
41

skipif mysql # not compatible
query II rowsort label-2875
SELECT DISTINCT 0 AS col1, COUNT ( * ) * - - 36 + + + 5 AS col0
----
0
41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2876
SELECT - COALESCE ( - ( - - CAST( 58 AS SIGNED ) ), 42, + 46 DIV 36, 90 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-2876
SELECT - COALESCE ( - ( - - CAST ( 58 AS INTEGER ) ), 42, + 46 / 36, 90 ) col1
----
58

query I rowsort
SELECT + 37 + 79 AS col1
----
116

query I rowsort
SELECT - 43 - - 28 + + 57
----
42

query I rowsort
SELECT ALL 49 * 39 * + - 48 AS col1
----
-91728

query I rowsort
SELECT - ( + 88 ) - + - 64 * + - NULLIF ( 67, 31 * - 71 ) AS col0
----
-4376

query I rowsort
SELECT ALL 25 - 24
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2882
SELECT + COUNT( * ) DIV 54 * + 46 * NULLIF ( 16, 9 * CASE + 66 WHEN - 88 DIV + NULLIF ( 10, + 96 ) THEN 90 WHEN 44 + 43 THEN 10 END ) * - 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2882
SELECT + COUNT ( * ) / 54 * + 46 * NULLIF ( 16, 9 * CASE + 66 WHEN - 88 / + NULLIF ( 10, + 96 ) THEN 90 WHEN 44 + 43 THEN 10 END ) * - 18 AS col1
----
0

query I rowsort
SELECT DISTINCT 54 * - 79 AS col1
----
-4266

query I rowsort
SELECT ALL NULLIF ( + 46, - - 32 * 3 / - 90 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT DISTINCT CASE - 30 WHEN + - 66 * 72 + - - 24 + + + 45 * + ( ( - 65 ) ) THEN 68 WHEN 53 THEN 3 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT CASE - 30 WHEN + - 66 * 72 + - - 24 + + + 45 * + ( ( - 65 ) ) THEN 68 WHEN 53 THEN 3 + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT - ( - 57 ) + + 59
----
116

query II rowsort
SELECT ALL 80, + NULLIF ( + 43, - ( - 93 ) ) AS col2
----
80
43

query I rowsort
SELECT + 88 + 60 AS col0
----
148

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

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

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

skipif mysql # not compatible
query II rowsort label-2890
SELECT + ( - 85 ) + + 87 * - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * )
----
NULL
1

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

query I rowsort
SELECT - - 66 * - + 72 + + NULLIF ( 51, + 39 * - 89 )
----
-4701

onlyif mysql # DIV for integer division: 
query I rowsort label-2893
SELECT DISTINCT + 35 DIV - 92 - - 19 + - - 64
----
83

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + 35 / - 92 - - 19 + - - 64
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2894
SELECT 75 DIV + 54 - + 43
----
-42

skipif mysql # not compatible
query I rowsort label-2894
SELECT 75 / + 54 - + 43
----
-42

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT ALL - 92 DIV 51 + - 11 * - 56
----
615

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL - 92 / 51 + - 11 * - 56
----
615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2897
SELECT ALL ( ( - CAST( NULL AS SIGNED ) ) ) / - AVG ( ALL 83 ) + + NULLIF ( COALESCE ( + 99, - COUNT( * ) ), + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL ( ( - CAST ( NULL AS INTEGER ) ) ) / - AVG ( ALL 83 ) + + NULLIF ( COALESCE ( + 99, - COUNT ( * ) ), + 4 )
----
NULL

query II rowsort
SELECT ALL + + 71, 15 * - 84 col0
----
71
-1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT - + 77 DIV + 31 * + COUNT( * ) + + 6 * - + 25 AS col0
----
-152

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT - + 77 / + 31 * + COUNT ( * ) + + 6 * - + 25 AS col0
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2900
SELECT ALL + - COALESCE ( 58, 2 + + CAST( NULL AS SIGNED ), - 53 ) * 76 + - 65 col1
----
-4473

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL + - COALESCE ( 58, 2 + + CAST ( NULL AS INTEGER ), - 53 ) * 76 + - 65 col1
----
-4473

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT - - 48 * + COALESCE ( - 20, - 5, - 59 ) - + 21 + COUNT( * ) col2
----
-980

skipif mysql # not compatible
query I rowsort label-2901
SELECT - - 48 * + COALESCE ( - 20, - 5, - 59 ) - + 21 + COUNT ( * ) col2
----
-980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2902
SELECT - 77 + - COUNT( * ) * + 6 * + CAST( - CASE + - 14 WHEN + 75 * 69 THEN - 79 ELSE NULL END AS DECIMAL ) * + COUNT( 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT - 77 + - COUNT ( * ) * + 6 * + CAST ( - CASE + - 14 WHEN + 75 * 69 THEN - 79 ELSE NULL END AS REAL ) * + COUNT ( 84 )
----
NULL

query II rowsort
SELECT + 77, - 37 AS col0
----
77
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2904
SELECT + + CASE + - 64 WHEN - COALESCE ( + 22, + MIN( ALL + + 27 ), ( - 11 ) ) + - 79 THEN + 21 + CAST( - 46 - 9 AS SIGNED ) WHEN 93 THEN NULL ELSE NULL END + 80 / 37
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT + + CASE + - 64 WHEN - COALESCE ( + 22, + MIN ( ALL + + 27 ), ( - 11 ) ) + - 79 THEN + 21 + CAST ( - 46 - 9 AS INTEGER ) WHEN 93 THEN NULL ELSE NULL END + 80 / 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT - - ( - - MAX( DISTINCT - - 19 ) ) * + 95 * + 12 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT - - ( - - MAX ( DISTINCT - - 19 ) ) * + 95 * + 12 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + COALESCE ( + 22, - - 33 )
----
22

query II rowsort
SELECT ALL + 19 AS col0, 29
----
19
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT ALL - 69 * + + CAST( NULL AS SIGNED ) - + 51 + - 9 * + - 9 + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL - 69 * + + CAST ( NULL AS INTEGER ) - + 51 + - 9 * + - 9 + 52 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2909
SELECT - 80 * ( - 92 ) * - 74 * - 44 + - CAST( NULL AS SIGNED ) + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2909
SELECT - 80 * ( - 92 ) * - 74 * - 44 + - CAST ( NULL AS INTEGER ) + 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT ALL + 50 col1, - COUNT( * ) - - ( - 49 )
----
50
-50

skipif mysql # not compatible
query II rowsort label-2910
SELECT ALL + 50 col1, - COUNT ( * ) - - ( - 49 )
----
50
-50

query I rowsort
SELECT ALL 91 * 83 AS col0
----
7553

query I rowsort
SELECT ALL - 23 * + 46 - - + 21
----
-1037

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT DISTINCT + SUM( - 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT + SUM ( - 86 ) AS col1
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2914
SELECT DISTINCT + CAST( 29 AS SIGNED ) col2
----
29

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + CAST ( 29 AS INTEGER ) col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT ALL ( + - 10 ) * - CAST( NULL AS SIGNED ) - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL ( + - 10 ) * - CAST ( NULL AS INTEGER ) - + 87
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT SUM( DISTINCT + - 64 ) * - COUNT( * ) * - + 53 + + + 98 * + COUNT( * )
----
-3294

skipif mysql # not compatible
query I rowsort label-2917
SELECT SUM ( DISTINCT + - 64 ) * - COUNT ( * ) * - + 53 + + + 98 * + COUNT ( * )
----
-3294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2918
SELECT COALESCE ( - + 62, 35 * - 89, - ( COUNT( * ) ) DIV + - 32 ) col1
----
-62

skipif mysql # not compatible
query I rowsort label-2918
SELECT COALESCE ( - + 62, 35 * - 89, - ( COUNT ( * ) ) / + - 32 ) col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT - MAX( ALL 30 ) * - - 21
----
-630

skipif mysql # not compatible
query I rowsort label-2919
SELECT - MAX ( ALL 30 ) * - - 21
----
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2920
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col2, - COUNT( * ) + 51
----
NULL
50

skipif mysql # not compatible
query II rowsort label-2920
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, - COUNT ( * ) + 51
----
NULL
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2921
SELECT + NULLIF ( - 98, - 47 ) + + 7 * - COUNT( * ), 65 AS col2
----
-105
65

skipif mysql # not compatible
query II rowsort label-2921
SELECT + NULLIF ( - 98, - 47 ) + + 7 * - COUNT ( * ), 65 AS col2
----
-105
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT MAX( DISTINCT 15 ) col2
----
15

skipif mysql # not compatible
query I rowsort label-2922
SELECT MAX ( DISTINCT 15 ) col2
----
15

query I rowsort
SELECT + 1 + - 88 + 45
----
-42

query I rowsort
SELECT ALL 7 + NULLIF ( + 81, - + 36 ) AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2925
SELECT + CAST( - + 59 AS SIGNED ) DIV 61 + - ( + - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-2925
SELECT + CAST ( - + 59 AS INTEGER ) / 61 + - ( + - 89 )
----
89

query I rowsort
SELECT ALL 83 + + + 55 AS col0
----
138

query I rowsort
SELECT + CASE + + 65 WHEN 92 THEN + - AVG ( + 96 ) * 53 + COALESCE ( 12, 72 ) WHEN NULLIF ( - 95, 47 ) THEN 9 END * - 33
----
NULL

query II rowsort
SELECT - ( + 46 ) AS col2, + 8
----
-46
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2929
SELECT + 71 + 66, - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
137
NULL

skipif mysql # not compatible
query II rowsort label-2929
SELECT + 71 + 66, - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
137
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2930
SELECT DISTINCT 77 + + 56 + + 53 * + - CAST( 83 AS SIGNED ) + ( + - 97 ) * + ( - 59 )
----
1457

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT 77 + + 56 + + 53 * + - CAST ( 83 AS INTEGER ) + ( + - 97 ) * + ( - 59 )
----
1457

query I rowsort
SELECT ALL + NULLIF ( ( + CASE - 42 WHEN - 44 THEN - + 60 ELSE NULL END ), + 76 + + 27 ) * 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2932
SELECT + 45 DIV - + CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) + - + 76
----
-121

skipif mysql # not compatible
query I rowsort label-2932
SELECT + 45 / - + CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) + - + 76
----
-121

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

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

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

query I rowsort
SELECT ALL 98 + 98 + - - ( + 22 )
----
218

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2936
SELECT 81 + + AVG ( 65 ) + - - COUNT( * ) / - 15 / + + ( - 42 ) * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT 81 + + AVG ( 65 ) + - - COUNT ( * ) / - 15 / + + ( - 42 ) * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2937
SELECT DISTINCT 37 + + 18 DIV 98
----
37

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT 37 + + 18 / 98
----
37

query I rowsort
SELECT 27 + 72 + + - 22 * + - 12 AS col0
----
363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT DISTINCT CAST( 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT CAST ( 12 AS INTEGER )
----
12

query I rowsort
SELECT DISTINCT - + CASE - 82 WHEN + + 43 THEN 7 ELSE NULL END
----
NULL

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

query I rowsort
SELECT DISTINCT + 66 * + 71
----
4686

query I rowsort
SELECT ALL + 33 * - 45
----
-1485

query I rowsort
SELECT 75 * - + 42 AS col2
----
-3150

onlyif mysql # aggregate syntax: 
query II rowsort label-2945
SELECT ALL 67 * COUNT( * ) * - + 22, + 28 col2
----
-1474
28

skipif mysql # not compatible
query II rowsort label-2945
SELECT ALL 67 * COUNT ( * ) * - + 22, + 28 col2
----
-1474
28

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

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

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL + CAST ( + + 60 AS INTEGER ) * - + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT 61 * - + 78 * + COUNT( ALL + 39 ) AS col1
----
-4758

skipif mysql # not compatible
query I rowsort label-2948
SELECT 61 * - + 78 * + COUNT ( ALL + 39 ) AS col1
----
-4758

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL - MIN( + - 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL - MIN ( + - 43 ) AS col2
----
43

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

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

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

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( - 82, + + 38 ) AS col0
----
82

query I rowsort
SELECT ALL - 13 * + 90 col0
----
-1170

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT ALL - 41 DIV 90 * - 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - 41 / 90 * - 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT 79 - - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-2956
SELECT 79 - - COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL MIN( ALL 83 ) * MAX( DISTINCT 62 )
----
5146

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL MIN ( ALL 83 ) * MAX ( DISTINCT 62 )
----
5146

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL + 68 + + COUNT( ALL + 75 ) * - + ( + + 91 )
----
-23

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + 68 + + COUNT ( ALL + 75 ) * - + ( + + 91 )
----
-23

query I rowsort
SELECT ALL + 51 + - 10
----
41

query I rowsort
SELECT 69 + - - 48 AS col0
----
117

query II rowsort
SELECT 61 AS col2, + 66
----
61
66

query I rowsort
SELECT ALL + 42 * + - COALESCE ( - 13, - 88 ) AS col0
----
546

query I rowsort
SELECT 76 * - 95
----
-7220

query I rowsort
SELECT 14 - - + 25 - 98 AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT DISTINCT CASE - 29 WHEN + COALESCE ( 20, + + 18, ( - - 59 ) ) THEN + MAX( ALL 5 ) WHEN 24 + - CAST( NULL AS SIGNED ) THEN NULL END + + 61 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT CASE - 29 WHEN + COALESCE ( 20, + + 18, ( - - 59 ) ) THEN + MAX ( ALL 5 ) WHEN 24 + - CAST ( NULL AS INTEGER ) THEN NULL END + + 61 * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 53 + + + 51
----
104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL 82 + + 28 + 46 + 71 * + MAX( ALL - 4 ) AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL 82 + + 28 + 46 + 71 * + MAX ( ALL - 4 ) AS col2
----
-128

query I rowsort
SELECT + 52 * + 87
----
4524

query II rowsort
SELECT 20, - 25 - 30 AS col1
----
20
-55

query I rowsort
SELECT - 70 + - + 32 col0
----
-102

query I rowsort
SELECT ALL - 89 * - 79 * + 22 + + + ( + - 80 ) AS col2
----
154602

query II rowsort
SELECT + 18 + - 34 + + 39 * - - 95 col1, + 9 col1
----
3689
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT CAST( - 14 AS SIGNED ) + 19 + - CAST( - 46 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2974
SELECT CAST ( - 14 AS INTEGER ) + 19 + - CAST ( - 46 AS INTEGER ) AS col0
----
51

query I rowsort
SELECT 34 * 84
----
2856

query I rowsort
SELECT ALL - ( + ( - + 8 ) ) * - + 1 + 71
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT 64 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-2977
SELECT 64 / 67
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2978
SELECT + COALESCE ( 62, + 37, - 48 - - 79 + - 21 * - 74 DIV 32 ) + 9
----
71

skipif mysql # not compatible
query I rowsort label-2978
SELECT + COALESCE ( 62, + 37, - 48 - - 79 + - 21 * - 74 / 32 ) + 9
----
71

query I rowsort
SELECT ALL + 54 * 17 AS col2
----
918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2980
SELECT - ( + - COUNT( * ) ) + - - COALESCE ( - + 57, + + 15 * + 83 + - + CAST( NULL AS SIGNED ) * - + 67 DIV 2 + MIN( DISTINCT + 42 + - 12 ), 97 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2980
SELECT - ( + - COUNT ( * ) ) + - - COALESCE ( - + 57, + + 15 * + 83 + - + CAST ( NULL AS INTEGER ) * - + 67 / 2 + MIN ( DISTINCT + 42 + - 12 ), 97 ) AS col2
----
-56

query I rowsort
SELECT ALL 98 * 56 + 6 * 25 AS col1
----
5638

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT - + COUNT( * ) * + 22 + + 41 - + 73 + 13 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2982
SELECT - + COUNT ( * ) * + 22 + + 41 - + 73 + 13 AS col1
----
-41

query I rowsort
SELECT 13 * + - 90 * 76
----
-88920

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT ALL 56 * - 58 * + COUNT( * )
----
-3248

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL 56 * - 58 * + COUNT ( * )
----
-3248

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2986
SELECT - COALESCE ( + - 41, + 28 ) * - CAST( NULL AS SIGNED ) + 89 * + 52 * + 36 - + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT - COALESCE ( + - 41, + 28 ) * - CAST ( NULL AS INTEGER ) + 89 * + 52 * + 36 - + 61
----
NULL

query I rowsort
SELECT + 52 * - 2 AS col1
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2988
SELECT - 93 DIV + 33 + + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2988
SELECT - 93 / + 33 + + + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + 5 * - - COUNT( * ) - - + 91
----
96

skipif mysql # not compatible
query I rowsort label-2989
SELECT + 5 * - - COUNT ( * ) - - + 91
----
96

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

skipif mysql # not compatible
query I rowsort label-2990
SELECT COUNT ( * ) + + - 85 AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2991
SELECT COUNT( * ) DIV 5 + + - CAST( + COUNT( * ) AS SIGNED ) DIV 53 * + + 87
----
0

skipif mysql # not compatible
query I rowsort label-2991
SELECT COUNT ( * ) / 5 + + - CAST ( + COUNT ( * ) AS INTEGER ) / 53 * + + 87
----
0

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

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

query I rowsort
SELECT DISTINCT 7 + 16
----
23

query II rowsort
SELECT 69 * - 51 AS col1, - 95 AS col2
----
-3519
-95

query I rowsort
SELECT - 10 * + 83 * + 55 + + + 13 AS col0
----
-45637

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL - 83 + + 44 + - + SUM( + + 5 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - 83 + + 44 + - + SUM ( + + 5 ) AS col2
----
-44

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

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

query I rowsort
SELECT ALL + ( 27 ) + 69 AS col2
----
96

query I rowsort
SELECT DISTINCT + 82 + + 87 AS col1
----
169

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

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

query I rowsort
SELECT ALL + 49 - - 64 + - 86 * + CASE - - 10 WHEN - - COALESCE ( + + 62, - - 11 ) THEN + - 98 + + 32 END * - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT MAX( DISTINCT - 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3002
SELECT MAX ( DISTINCT - 71 ) AS col0
----
-71

query I rowsort
SELECT - + 69 - 2 + + 21 * 80
----
1609

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT DISTINCT - COUNT( * ) * ( - 84 ) * 61
----
5124

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT - COUNT ( * ) * ( - 84 ) * 61
----
5124

query I rowsort
SELECT - 70 * - 8 * + 7
----
3920

query I rowsort
SELECT ALL - NULLIF ( - + 27, COALESCE ( - 62, + 55 - 44 ) ) AS col2
----
27

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

skipif mysql # not compatible
query I rowsort label-3007
SELECT - - ( MIN ( - + 57 ) )
----
-57

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3008
SELECT ALL CAST( 48 AS SIGNED ) AS col2, + 21 * + CAST( NULL AS DECIMAL ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-3008
SELECT ALL CAST ( 48 AS INTEGER ) AS col2, + 21 * + CAST ( NULL AS REAL ) AS col1
----
48
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3009
SELECT ( - - 16 ) AS col0, COALESCE ( - COALESCE ( + 24, - ( - 75 ) * - + 12 * - ( 1 ) + - 33, + 98 ), COUNT( * ) * - 62, + COUNT( * ) ) * - 24 - ( 48 )
----
16
528

skipif mysql # not compatible
query II rowsort label-3009
SELECT ( - - 16 ) AS col0, COALESCE ( - COALESCE ( + 24, - ( - 75 ) * - + 12 * - ( 1 ) + - 33, + 98 ), COUNT ( * ) * - 62, + COUNT ( * ) ) * - 24 - ( 48 )
----
16
528

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT - + 67 DIV 43 + 61
----
60

skipif mysql # not compatible
query I rowsort label-3010
SELECT - + 67 / 43 + 61
----
60

query I rowsort
SELECT + + 62 * - + 87 + 95
----
-5299

query I rowsort
SELECT + 15 + + + 88 * + + 85
----
7495

query I rowsort
SELECT ALL 85 * - 68 + - - 7
----
-5773

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT + NULLIF ( + 87, 84 * + MAX( DISTINCT - + 47 ) ) * - 96 + + 71 AS col1
----
-8281

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT + NULLIF ( + 87, 84 * + MAX ( DISTINCT - + 47 ) ) * - 96 + + 71 AS col1
----
-8281

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

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

query I rowsort
SELECT + 14 * - 20
----
-280

query I rowsort
SELECT ALL 26 * + 55 AS col1
----
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ALL - COUNT( * ) * - - 93 * - 12 AS col2
----
1116

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - COUNT ( * ) * - - 93 * - 12 AS col2
----
1116

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT + CASE ( ( - CAST( NULL AS SIGNED ) ) ) WHEN ( - - 97 ) THEN + 82 - + 17 * + 15 END * + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT + CASE ( ( - CAST ( NULL AS INTEGER ) ) ) WHEN ( - - 97 ) THEN + 82 - + 17 * + 15 END * + 24 AS col0
----
NULL

query I rowsort
SELECT + 60 * + 34 AS col1
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL COUNT( * ) * - - 64 + + 38 + 57 * + 31 AS col2
----
1869

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL COUNT ( * ) * - - 64 + + 38 + 57 * + 31 AS col2
----
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT 87 * ( + 7 ) + + - COUNT( * ) + 55
----
663

skipif mysql # not compatible
query I rowsort label-3023
SELECT 87 * ( + 7 ) + + - COUNT ( * ) + 55
----
663

query I rowsort
SELECT - 30 * - - 34 * 62 * - 11 AS col0
----
695640

query I rowsort
SELECT - 48 + + 14 + - 40
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT DISTINCT + 66 * - 78 + - COUNT( * )
----
-5149

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT + 66 * - 78 + - COUNT ( * )
----
-5149

query II rowsort
SELECT ALL + 30, 61 AS col1
----
30
61

query I rowsort
SELECT + 94 - + 10 * - - 86 col2
----
-766

query I rowsort
SELECT ALL - 79 * 21
----
-1659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3030
SELECT CASE COUNT( ALL + + CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) ) WHEN 80 * - 6 * + 66 THEN + 7 / + 76 + 92 + - 68 WHEN - 32 THEN NULL WHEN 73 THEN COALESCE ( - 74, AVG ( CASE 77 WHEN - 60 * 63 THEN + 65 * 54 WHEN + 74 THEN NULL ELSE NULL END ) ) WHEN COUNT( * ) THEN NULL ELSE NULL END * 61 + + COUNT( * ) * + 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT CASE COUNT ( ALL + + CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) WHEN 80 * - 6 * + 66 THEN + 7 / + 76 + 92 + - 68 WHEN - 32 THEN NULL WHEN 73 THEN COALESCE ( - 74, AVG ( CASE 77 WHEN - 60 * 63 THEN + 65 * 54 WHEN + 74 THEN NULL ELSE NULL END ) ) WHEN COUNT ( * ) THEN NULL ELSE NULL END * 61 + + COUNT ( * ) * + 78 col1
----
NULL

query I rowsort
SELECT - 61 * - 96 AS col1
----
5856

query I rowsort
SELECT ALL - + 17 * - 27
----
459

query I rowsort
SELECT + 5 + 79 + - + 45 * + 35 col1
----
-1491

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3035
SELECT - - 7 * + ( - 76 ) - + 71 / CAST( NULL AS DECIMAL ) + 44 * + - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT - - 7 * + ( - 76 ) - + 71 / CAST ( NULL AS REAL ) + 44 * + - 15 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT ALL + ( 57 ) DIV + COALESCE ( 21, - - 49 * + 91, 2 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL + ( 57 ) / + COALESCE ( 21, - - 49 * + 91, 2 ) col0
----
2

query I rowsort
SELECT ALL - 37 - 75 AS col0
----
-112

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

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

query I rowsort
SELECT - 64 * 64
----
-4096

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT ALL + 35 DIV 35 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL + 35 / 35 AS col1
----
1

query I rowsort
SELECT ALL + ( - + 10 )
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3042
SELECT + 86 col1, CAST( NULL AS DECIMAL )
----
86
NULL

skipif mysql # not compatible
query II rowsort label-3042
SELECT + 86 col1, CAST ( NULL AS REAL )
----
86
NULL

query I rowsort
SELECT - 16 + - + 69 + + - 3 + - - 62 AS col2
----
-26

query I rowsort
SELECT DISTINCT - 44 * + 25
----
-1100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT - 30 + - 29 * + 57 + - 66 DIV - COUNT( * ) + - - 18 * - 67 AS col2
----
-2823

skipif mysql # not compatible
query I rowsort label-3045
SELECT - 30 + - 29 * + 57 + - 66 / - COUNT ( * ) + - - 18 * - 67 AS col2
----
-2823

query I rowsort
SELECT ALL - - 62 * ( - 78 )
----
-4836

query I rowsort
SELECT - - 5 + - 21
----
-16

query II rowsort
SELECT - + ( 3 ) + - 30 * + 28 * - 82 AS col1, 54
----
68877
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ALL + + 49 + - 1 + - ( COUNT( * ) ) + + + 4 + + - 94
----
-43

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL + + 49 + - 1 + - ( COUNT ( * ) ) + + + 4 + + - 94
----
-43

query I rowsort
SELECT + 97 * - 45 + + ( + - NULLIF ( + 29, + 8 * 41 + + - 16 ) ) + - 17
----
-4411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3051
SELECT - CAST( + + 57 AS SIGNED ) + + CASE + - CASE + 96 WHEN - 29 THEN 50 / + - SUM( DISTINCT + - 5 ) WHEN 64 - - 2 THEN 81 END WHEN - 21 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT - CAST ( + + 57 AS INTEGER ) + + CASE + - CASE + 96 WHEN - 29 THEN 50 / + - SUM ( DISTINCT + - 5 ) WHEN 64 - - 2 THEN 81 END WHEN - 21 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - 37 END
----
NULL

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( 57, 53 ) AS col1
----
57

query I rowsort
SELECT + ( - + 72 ) * - 80 + 32 AS col2
----
5792

onlyif mysql # DIV for integer division: 
query I rowsort label-3055
SELECT DISTINCT + 9 DIV + ( - 4 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT + 9 / + ( - 4 ) AS col1
----
-2

query II rowsort
SELECT ALL - 55 + + + 90 AS col2, 6
----
35
6

query I rowsort
SELECT 82 * - 24 * - 86 * NULLIF ( - 9, - 13 ) + - + 24 + ( 37 ) col1
----
-1523219

query I rowsort
SELECT ALL 19 * - + 63
----
-1197

onlyif mysql # DIV for integer division: 
query II rowsort label-3059
SELECT 79 DIV - 97 AS col1, ( - - 9 ) + - 33
----
0
-24

skipif mysql # not compatible
query II rowsort label-3059
SELECT 79 / - 97 AS col1, ( - - 9 ) + - 33
----
0
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3060
SELECT - 65 DIV + 99 * SUM( DISTINCT 36 ) + - - 87
----
87

skipif mysql # not compatible
query I rowsort label-3060
SELECT - 65 / + 99 * SUM ( DISTINCT 36 ) + - - 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL COUNT( * ) + + 23 * + 0 * + 24 * - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL COUNT ( * ) + + 23 * + 0 * + 24 * - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT MIN( + 43 ) * - - 2 * + + 51
----
4386

skipif mysql # not compatible
query I rowsort label-3062
SELECT MIN ( + 43 ) * - - 2 * + + 51
----
4386

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3063
SELECT ALL 13 + CAST( NULL AS SIGNED ) AS col2, + 40
----
NULL
40

skipif mysql # not compatible
query II rowsort label-3063
SELECT ALL 13 + CAST ( NULL AS INTEGER ) AS col2, + 40
----
NULL
40

query II rowsort
SELECT DISTINCT - 62 AS col1, 34 AS col1
----
-62
34

query I rowsort
SELECT ALL + 92 * + + 14
----
1288

query I rowsort
SELECT DISTINCT - 38 - + 98 * + 10 AS col2
----
-1018

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3067
SELECT ALL - 78 col1, + NULLIF ( + 56, - 64 ) * - CASE + 3 WHEN + - 31 * 67 THEN NULL ELSE + MAX( DISTINCT + 2 ) * + 34 DIV - 89 END * 59 - 78 AS col0
----
-78
-78

skipif mysql # not compatible
query II rowsort label-3067
SELECT ALL - 78 col1, + NULLIF ( + 56, - 64 ) * - CASE + 3 WHEN + - 31 * 67 THEN NULL ELSE + MAX ( DISTINCT + 2 ) * + 34 / - 89 END * 59 - 78 AS col0
----
-78
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3068
SELECT 14 + + 44 * CAST( NULL AS DECIMAL ) - 1 * - MAX( ALL + 2 ) + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3068
SELECT 14 + + 44 * CAST ( NULL AS REAL ) - 1 * - MAX ( ALL + 2 ) + 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3069
SELECT ALL 77 - + + 8 - + ( + ( - COUNT( * ) ) ) + - 48 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL 77 - + + 8 - + ( + ( - COUNT ( * ) ) ) + - 48 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3070
SELECT CASE - 24 WHEN + 2 THEN 81 * SUM( - 58 ) * - AVG ( + 99 ) * + 85 * CAST( NULL AS SIGNED ) + 82 + COUNT( * ) WHEN + ( 81 ) THEN CASE 70 WHEN 99 THEN - 62 + 23 END END / 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3070
SELECT CASE - 24 WHEN + 2 THEN 81 * SUM ( - 58 ) * - AVG ( + 99 ) * + 85 * CAST ( NULL AS INTEGER ) + 82 + COUNT ( * ) WHEN + ( 81 ) THEN CASE 70 WHEN 99 THEN - 62 + 23 END END / 55
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3071
SELECT ALL - COUNT( * ), - CASE - 21 WHEN - ( - 82 ) THEN + 97 END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3071
SELECT ALL - COUNT ( * ), - CASE - 21 WHEN - ( - 82 ) THEN + 97 END AS col2
----
-1
NULL

query II rowsort
SELECT DISTINCT 12 AS col0, + 87
----
12
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3073
SELECT - + 35 * COUNT( * ) DIV + COUNT( * ) - - 57 + NULLIF ( - + 88, + 77 ) * + COUNT( * ) * 8 * ( 63 ) * - ( + CAST( + CASE CAST( 32 AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) * COUNT( DISTINCT - 16 ) THEN NULL ELSE + COUNT( * ) + 25 * ( + 9 * 92 ) END AS SIGNED ) ) + + 35 AS col0
----
918130809

skipif mysql # not compatible
query I rowsort label-3073
SELECT - + 35 * COUNT ( * ) / + COUNT ( * ) - - 57 + NULLIF ( - + 88, + 77 ) * + COUNT ( * ) * 8 * ( 63 ) * - ( + CAST ( + CASE CAST ( 32 AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - 16 ) THEN NULL ELSE + COUNT ( * ) + 25 * ( + 9 * 92 ) END AS INTEGER ) ) + + 35 AS col0
----
918130809

query II rowsort
SELECT ALL 68, 1 col1
----
68
1

query I rowsort
SELECT 19 * 46 AS col2
----
874

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

skipif mysql # not compatible
query I rowsort label-3076
SELECT 50 + - COUNT ( * ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT COUNT( + ( ( 92 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT COUNT ( + ( ( 92 ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3078
SELECT ALL + 52 AS col2, + NULLIF ( 94, 37 + - - 22 ) + - NULLIF ( - 56, + 48 * - - CASE WHEN - 82 NOT BETWEEN ( NULL ) AND 66 THEN NULL ELSE MAX( + 46 ) / - 35 END * 98 - - 78 )
----
52
150

skipif mysql # not compatible
query II rowsort label-3078
SELECT ALL + 52 AS col2, + NULLIF ( 94, 37 + - - 22 ) + - NULLIF ( - 56, + 48 * - - CASE WHEN - 82 NOT BETWEEN ( NULL ) AND 66 THEN NULL ELSE MAX ( + 46 ) / - 35 END * 98 - - 78 )
----
52
150

query I rowsort
SELECT NULLIF ( 61, + CASE - - ( + 96 ) WHEN 29 THEN - - 37 WHEN NULLIF ( 84, - 1 ) THEN NULL END )
----
61

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

query I rowsort
SELECT 19 + - 68 AS col1
----
-49

query I rowsort
SELECT + 28 * 19 * + + 33 AS col0
----
17556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3083
SELECT CAST( - 51 AS SIGNED ) + - 12
----
-63

skipif mysql # not compatible
query I rowsort label-3083
SELECT CAST ( - 51 AS INTEGER ) + - 12
----
-63

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

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL + - 97 + + COUNT ( * ) - + - COUNT ( * ) * COUNT ( * ) AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT ALL NULLIF ( + 21, + 13 * - 15 * 65 + CAST( NULL AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL NULLIF ( + 21, + 13 * - 15 * 65 + CAST ( NULL AS INTEGER ) )
----
21

query II rowsort
SELECT - 15 AS col0, 30 AS col0
----
-15
30

query I rowsort
SELECT ALL 11 + - 19
----
-8

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT SUM( 71 ) * 80
----
5680

skipif mysql # not compatible
query I rowsort label-3090
SELECT SUM ( 71 ) * 80
----
5680

query I rowsort
SELECT ALL + 23 * + 68 AS col0
----
1564

query I rowsort
SELECT 69 * 30 * + + 51
----
105570

query II rowsort
SELECT 5 * + 8 AS col2, 8 AS col0
----
40
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT DISTINCT + COUNT( * ) + + - 94
----
-93

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT + COUNT ( * ) + + - 94
----
-93

query I rowsort
SELECT ALL - 51 - 81 + - 66 AS col2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT DISTINCT + CASE + ( - SUM( ALL + 54 ) ) WHEN - 15 THEN + 54 WHEN + 26 THEN + 56 ELSE NULL END * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT + CASE + ( - SUM ( ALL + 54 ) ) WHEN - 15 THEN + 54 WHEN + 26 THEN + 56 ELSE NULL END * 44
----
NULL

query I rowsort
SELECT ALL + 24 * + ( 28 ) * - 39 * + 99 AS col2
----
-2594592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT 95 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT 95 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT DISTINCT - ( - - COALESCE ( 19, COUNT( + - ( + 38 ) ), + + 49 * 10 * - 97 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT - ( - - COALESCE ( 19, COUNT ( + - ( + 38 ) ), + + 49 * 10 * - 97 ) )
----
-19

query I rowsort
SELECT DISTINCT + 6 * + - 68
----
-408

onlyif mysql # DIV for integer division: 
query I rowsort label-3101
SELECT ALL ( + 34 ) DIV - - ( + 80 ) + - - 47 + + 15 + - - 29 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL ( + 34 ) / - - ( + 80 ) + - - 47 + + 15 + - - 29 AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3102
SELECT COUNT( * ) * - 58 AS col2, 91 AS col2
----
-58
91

skipif mysql # not compatible
query II rowsort label-3102
SELECT COUNT ( * ) * - 58 AS col2, 91 AS col2
----
-58
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT - 72 * + ( + - 89 ) * - 82 + + + COUNT( * ) + - 36 + + 47 + - 44 - - + 63 * + - 13 * + 41
----
-559067

skipif mysql # not compatible
query I rowsort label-3104
SELECT - 72 * + ( + - 89 ) * - 82 + + + COUNT ( * ) + - 36 + + 47 + - 44 - - + 63 * + - 13 * + 41
----
-559067

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3105
SELECT NULLIF ( + - COUNT( * ), 35 * 57 + 39 ) DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-3105
SELECT NULLIF ( + - COUNT ( * ), 35 * 57 + 39 ) / 45
----
0

query I rowsort
SELECT 10 * - - CASE 37 WHEN + + 69 THEN 66 WHEN + 67 * + 31 + - - 42 THEN NULL END / 35 * 2 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 12 * COALESCE ( 99, - + 48 + - - 11, + - 9 ) * 45 * 99 - - - 47 col0
----
-5292587

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

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

query I rowsort
SELECT DISTINCT 67 + - ( - ( + 90 ) )
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3110
SELECT ALL + COALESCE ( - + 88, + + ( + 24 ) + + 25 ) / - CAST( CASE - COUNT( * ) WHEN + 64 THEN NULL WHEN + 48 * CASE - 17 WHEN 75 / + 47 THEN NULL WHEN + 88 THEN NULL ELSE - CASE AVG ( + 70 ) WHEN COALESCE ( 81, - 4, - CASE COUNT( 16 ) WHEN 18 + 91 THEN + 89 - - 81 WHEN - 49 THEN NULL WHEN 41 + 3 * 20 THEN + 2 END ) + COALESCE ( - 52, - 55 + - ( - CAST( - 30 AS SIGNED ) ), + 84 ) THEN 37 * - 62 + - 5 END END THEN + COUNT( * ) + 12 END AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + COALESCE ( - + 88, + + ( + 24 ) + + 25 ) / - CAST ( CASE - COUNT ( * ) WHEN + 64 THEN NULL WHEN + 48 * CASE - 17 WHEN 75 / + 47 THEN NULL WHEN + 88 THEN NULL ELSE - CASE AVG ( + 70 ) WHEN COALESCE ( 81, - 4, - CASE COUNT ( 16 ) WHEN 18 + 91 THEN + 89 - - 81 WHEN - 49 THEN NULL WHEN 41 + 3 * 20 THEN + 2 END ) + COALESCE ( - 52, - 55 + - ( - CAST ( - 30 AS INTEGER ) ), + 84 ) THEN 37 * - 62 + - 5 END END THEN + COUNT ( * ) + 12 END AS REAL ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3111
SELECT 13 + - 13 * - + 83 - - COUNT ( * ) AS col2
----
1093

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT 44 * - COUNT( * ) * 96 AS col2
----
-4224

skipif mysql # not compatible
query I rowsort label-3112
SELECT 44 * - COUNT ( * ) * 96 AS col2
----
-4224

query I rowsort
SELECT DISTINCT + COALESCE ( + 28, 82 )
----
28

query I rowsort
SELECT DISTINCT + 25 + + 89
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT DISTINCT - MIN( ALL - 87 ) * + 27 AS col1
----
2349

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - MIN ( ALL - 87 ) * + 27 AS col1
----
2349

query I rowsort
SELECT - 53 + 9 + - + 58
----
-102

query I rowsort
SELECT DISTINCT 8 * 18
----
144

query I rowsort
SELECT + 73 + + 10
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT + ( CASE - NULLIF ( + 38, - ( + + 19 ) * ( - - COUNT( * ) ) / + 33 * + - 24 + - + 97 + - 1 / - - 21 + - 28 ) WHEN + COALESCE ( 84, 92 ) THEN + 46 * 26 ELSE + 78 + 90 END ) + - ( 87 )
----
81

skipif mysql # not compatible
query I rowsort label-3119
SELECT + ( CASE - NULLIF ( + 38, - ( + + 19 ) * ( - - COUNT ( * ) ) / + 33 * + - 24 + - + 97 + - 1 / - - 21 + - 28 ) WHEN + COALESCE ( 84, 92 ) THEN + 46 * 26 ELSE + 78 + 90 END ) + - ( 87 )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3120
SELECT - 55 * - 63 DIV + - NULLIF ( - ( COUNT( * ) ), - 65 ) AS col1
----
3465

skipif mysql # not compatible
query I rowsort label-3120
SELECT - 55 * - 63 / + - NULLIF ( - ( COUNT ( * ) ), - 65 ) AS col1
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + COUNT( * ) + + - ( 99 ) + + 24
----
-74

skipif mysql # not compatible
query I rowsort label-3121
SELECT + COUNT ( * ) + + - ( 99 ) + + 24
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT - COALESCE ( - + 31, + - 49 * COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-3122
SELECT - COALESCE ( - + 31, + - 49 * COUNT ( * ) )
----
31

query I rowsort
SELECT DISTINCT 66 - + 61 * - 49 * - 17 AS col2
----
-50747

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL 69 * - ( + 69 ) - - 20 * + COUNT( * ) AS col0
----
-4741

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL 69 * - ( + 69 ) - - 20 * + COUNT ( * ) AS col0
----
-4741

query II rowsort
SELECT ALL + 43 AS col1, - 89 * 1
----
43
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3127
SELECT - 71 + - COALESCE ( 93, - COALESCE ( 89, + 90 * 54 * 50 ), + 73 DIV + 47 - 75 ) * COUNT( 39 ) * - 54
----
4951

skipif mysql # not compatible
query I rowsort label-3127
SELECT - 71 + - COALESCE ( 93, - COALESCE ( 89, + 90 * 54 * 50 ), + 73 / + 47 - 75 ) * COUNT ( 39 ) * - 54
----
4951

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT - 89 DIV - - 10 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3128
SELECT - 89 / - - 10 AS col0
----
-8

query II rowsort
SELECT + 30, - 85 + 57 AS col0
----
30
-28

query I rowsort
SELECT COALESCE ( + - 71, + + 35 + + + 92 + - - 76 * - 42 ) col0
----
-71

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

skipif mysql # not compatible
query I rowsort label-3131
SELECT - COUNT ( * ) + MAX ( DISTINCT 6 ) AS col2
----
5

query I rowsort
SELECT ALL + 57 * COALESCE ( + - 70, - - 46 ) AS col2
----
-3990

query I rowsort
SELECT - 29 * - 74
----
2146

query II rowsort
SELECT + 36, + 85 AS col1
----
36
85

query II rowsort
SELECT ALL + 69 AS col0, - 63
----
69
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT ALL - 55 * - + COALESCE ( - + 50, + 25, - + 28 + - ( - + CASE - 64 WHEN - 51 THEN NULL ELSE + CASE - 53 WHEN + 47 + - 13 THEN 43 END END ) * 26 ) * + 52 + - COUNT( * )
----
-143001

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL - 55 * - + COALESCE ( - + 50, + 25, - + 28 + - ( - + CASE - 64 WHEN - 51 THEN NULL ELSE + CASE - 53 WHEN + 47 + - 13 THEN 43 END END ) * 26 ) * + 52 + - COUNT ( * )
----
-143001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3137
SELECT - 39 * + COALESCE ( ( + 36 ), + 21, - NULLIF ( + + CASE - 55 WHEN + 24 / 48 + - 63 THEN - CAST( + 95 AS SIGNED ) + 84 WHEN - CAST( + 60 AS SIGNED ) THEN NULL ELSE - 98 + - 23 END, MIN( DISTINCT ( + 70 ) ) ) + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * - 78 - - 97 + 65 AS col0
----
109674

skipif mysql # not compatible
query I rowsort label-3137
SELECT - 39 * + COALESCE ( ( + 36 ), + 21, - NULLIF ( + + CASE - 55 WHEN + 24 / 48 + - 63 THEN - CAST ( + 95 AS INTEGER ) + 84 WHEN - CAST ( + 60 AS INTEGER ) THEN NULL ELSE - 98 + - 23 END, MIN ( DISTINCT ( + 70 ) ) ) + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - 78 - - 97 + 65 AS col0
----
109674

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT + COUNT( DISTINCT 76 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT + COUNT ( DISTINCT 76 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL + 61 * COUNT( * ) * + - COUNT( * ) + + 91 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + 61 * COUNT ( * ) * + - COUNT ( * ) + + 91 AS col2
----
30

query I rowsort
SELECT 67 * 11 + 20
----
757

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

query I rowsort
SELECT + 71 + - - 17 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT ALL - 23 * - - COUNT( * ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL - 23 * - - COUNT ( * ) col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT - MIN( DISTINCT + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT - MIN ( DISTINCT + 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL - NULLIF ( + + COUNT( * ), - 34 + + 88 * - NULLIF ( 76, + 10 ) ) + + ( - COUNT( * ) ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL - NULLIF ( + + COUNT ( * ), - 34 + + 88 * - NULLIF ( 76, + 10 ) ) + + ( - COUNT ( * ) ) col1
----
-2

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

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

query I rowsort
SELECT - - 26 + - 8 AS col0
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-3149
SELECT ALL - 63 * - + 65 * + + 25 col1, - 24 - - 37 - - COUNT( * ) + - 26 + + - 80
----
102375
-92

skipif mysql # not compatible
query II rowsort label-3149
SELECT ALL - 63 * - + 65 * + + 25 col1, - 24 - - 37 - - COUNT ( * ) + - 26 + + - 80
----
102375
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT DISTINCT + + 1 * - + NULLIF ( + COUNT( * ), + - 56 + 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT + + 1 * - + NULLIF ( + COUNT ( * ), + - 56 + 96 ) AS col0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3151
SELECT DISTINCT 85 + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT 85 + + - CAST ( NULL AS REAL )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3153
SELECT ALL - 17, SUM( ALL - 98 ) AS col2
----
-17
-98

skipif mysql # not compatible
query II rowsort label-3153
SELECT ALL - 17, SUM ( ALL - 98 ) AS col2
----
-17
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT - 99 * - 77 + + COUNT( * ) AS col1
----
7624

skipif mysql # not compatible
query I rowsort label-3154
SELECT - 99 * - 77 + + COUNT ( * ) AS col1
----
7624

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT - 32 * COUNT( DISTINCT - 72 )
----
-32

skipif mysql # not compatible
query I rowsort label-3155
SELECT - 32 * COUNT ( DISTINCT - 72 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT + COUNT( * ) * - + COALESCE ( + 91, - - COUNT( * ) ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-3156
SELECT + COUNT ( * ) * - + COALESCE ( + 91, - - COUNT ( * ) ) col1
----
-91

query I rowsort
SELECT + 55 + + 12 * + 31 + + 90
----
517

query I rowsort
SELECT DISTINCT 61 - 76 + ( + 7 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT - SUM( - 80 )
----
80

skipif mysql # not compatible
query I rowsort label-3159
SELECT - SUM ( - 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT ALL 90 * + COUNT( * ) * - 40 * - - MIN( - 39 ) AS col2
----
140400

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL 90 * + COUNT ( * ) * - 40 * - - MIN ( - 39 ) AS col2
----
140400

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT DISTINCT SUM( - + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT SUM ( - + 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT DISTINCT 19 * - MIN( + 17 ) AS col1
----
-323

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT 19 * - MIN ( + 17 ) AS col1
----
-323

query I rowsort
SELECT + 42 * 48
----
2016

query I rowsort
SELECT + 48 * + + 95
----
4560

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT + CASE 69 WHEN - - MIN( + 56 ) THEN + 87 ELSE + + 50 END
----
50

skipif mysql # not compatible
query I rowsort label-3167
SELECT + CASE 69 WHEN - - MIN ( + 56 ) THEN + 87 ELSE + + 50 END
----
50

query I rowsort
SELECT + 12 * - 50
----
-600

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT CAST( 11 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3170
SELECT CAST ( 11 AS INTEGER ) AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3171
SELECT ALL - COUNT( + 34 ) DIV + 83 + + 21 + + 44 * + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL - COUNT ( + 34 ) / + 83 + + 21 + + 44 * + COUNT ( * )
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3172
SELECT + 6 - - AVG ( + - CAST( NULL AS DECIMAL ) ) + - ( - + 81 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT + 6 - - AVG ( + - CAST ( NULL AS REAL ) ) + - ( - + 81 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3173
SELECT ALL 8 DIV + 18 * + 48 - + 54 + 49 * + 30 + - COUNT( * ) * - CAST( + NULLIF ( 69, - 21 ) AS SIGNED )
----
1485

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL 8 / + 18 * + 48 - + 54 + 49 * + 30 + - COUNT ( * ) * - CAST ( + NULLIF ( 69, - 21 ) AS INTEGER )
----
1485

query I rowsort
SELECT + - ( - + 31 ) * + 65
----
2015

onlyif mysql # aggregate syntax: 
query II rowsort label-3175
SELECT ALL - 63 * - MAX( DISTINCT + + 95 ) + - COUNT( * ), - 21 * - + 27 AS col0
----
5984
567

skipif mysql # not compatible
query II rowsort label-3175
SELECT ALL - 63 * - MAX ( DISTINCT + + 95 ) + - COUNT ( * ), - 21 * - + 27 AS col0
----
5984
567

onlyif mysql # DIV for integer division: 
query II rowsort label-3176
SELECT DISTINCT - + 44 DIV - 53 + + - 57 * + 29 AS col1, + 17
----
-1653
17

skipif mysql # not compatible
query II rowsort label-3176
SELECT DISTINCT - + 44 / - 53 + + - 57 * + 29 AS col1, + 17
----
-1653
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3177
SELECT - - 24 DIV COUNT( * ) * + + 4 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3177
SELECT - - 24 / COUNT ( * ) * + + 4 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT ALL - - 78 / 91 / - + COUNT( DISTINCT - - 75 ) + + ( - 94 ) + - 45 + SUM( DISTINCT + ( + 55 ) ) * CAST( NULL AS SIGNED ) * - 88 / + + ( - 13 ) + 21 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL - - 78 / 91 / - + COUNT ( DISTINCT - - 75 ) + + ( - 94 ) + - 45 + SUM ( DISTINCT + ( + 55 ) ) * CAST ( NULL AS INTEGER ) * - 88 / + + ( - 13 ) + 21 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3179
SELECT + 58 + + 19 AS col2, 15 * + 22 + - 41 * ( - + COUNT( * ) ) col1
----
77
371

skipif mysql # not compatible
query II rowsort label-3179
SELECT + 58 + + 19 AS col2, 15 * + 22 + - 41 * ( - + COUNT ( * ) ) col1
----
77
371

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT + + CASE - - 29 WHEN - MIN( ALL 57 ) THEN + 36 + + 32 + - - NULLIF ( - 0, - 42 ) END / + 70 * - ( + 51 ) * - - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT + + CASE - - 29 WHEN - MIN ( ALL 57 ) THEN + 36 + + 32 + - - NULLIF ( - 0, - 42 ) END / + 70 * - ( + 51 ) * - - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT - 41 - + + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-3181
SELECT - 41 - + + COUNT ( * )
----
-42

query I rowsort
SELECT ALL - 27 * - NULLIF ( 34, + 5 ) + 80
----
998

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT DISTINCT - - 53 * COUNT( * ) + + 66 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT - - 53 * COUNT ( * ) + + 66 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL - COUNT( * ) * 9 + - 12 + - 53 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - COUNT ( * ) * 9 + - 12 + - 53 AS col0
----
-74

query I rowsort
SELECT ALL - 78 * 37 + + - 74
----
-2960

query I rowsort
SELECT ALL 40 * + + 21 + 91
----
931

query I rowsort
SELECT - + 97 + 5 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT 22 * 54 + + COUNT( * ) - - 21 + + ( + COUNT( * ) ) + - - COALESCE ( + + 1, + COUNT( - 47 ) + + - 20 * - 1, - 10 + - 88 - 67 ) + ( 52 )
----
1264

skipif mysql # not compatible
query I rowsort label-3188
SELECT 22 * 54 + + COUNT ( * ) - - 21 + + ( + COUNT ( * ) ) + - - COALESCE ( + + 1, + COUNT ( - 47 ) + + - 20 * - 1, - 10 + - 88 - 67 ) + ( 52 )
----
1264

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

skipif mysql # not compatible
query I rowsort label-3189
SELECT - CAST ( NULL AS INTEGER ) * + - 21 * + 76 - - CAST ( + - 50 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3190
SELECT + COALESCE ( + CAST( + - 34 AS SIGNED ), CASE - AVG ( + 64 ) WHEN + COUNT( * ) THEN + 79 END DIV 7 + + ( + 30 ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3190
SELECT + COALESCE ( + CAST ( + - 34 AS INTEGER ), CASE - AVG ( + 64 ) WHEN + COUNT ( * ) THEN + 79 END / 7 + + ( + 30 ) ) AS col2
----
-34

query I rowsort
SELECT 91 + + 35
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT 35 * + - SUM( 33 ) AS col0
----
-1155

skipif mysql # not compatible
query I rowsort label-3192
SELECT 35 * + - SUM ( 33 ) AS col0
----
-1155

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT ALL - 64 DIV ( + + ( 87 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL - 64 / ( + + ( 87 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT ALL + 37 - + - 44 + + 34 + ( + 32 ) DIV + 63 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL + 37 - + - 44 + + 34 + ( + 32 ) / + 63 AS col1
----
115

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT MAX( ALL - COALESCE ( - 45, 59 * + NULLIF ( - 24, - - 83 ) * 57 + 16, + 84 ) ) - - ( - 32 ) + - 78 * + + 34 AS col1
----
-2639

skipif mysql # not compatible
query I rowsort label-3196
SELECT MAX ( ALL - COALESCE ( - 45, 59 * + NULLIF ( - 24, - - 83 ) * 57 + 16, + 84 ) ) - - ( - 32 ) + - 78 * + + 34 AS col1
----
-2639

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

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL - COUNT ( - - 67 ) * - ( + - COUNT ( * ) ) / + 26 * + + 87 AS col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3199
SELECT DISTINCT + 47 * + 68 * - + 22 AS col2, - CAST( NULL AS SIGNED ) / COUNT( * )
----
-70312
NULL

skipif mysql # not compatible
query II rowsort label-3199
SELECT DISTINCT + 47 * + 68 * - + 22 AS col2, - CAST ( NULL AS INTEGER ) / COUNT ( * )
----
-70312
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3200
SELECT 88 DIV 62 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3200
SELECT 88 / 62 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT COUNT( * ) * - 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3201
SELECT COUNT ( * ) * - 60 AS col2
----
-60

query I rowsort
SELECT 94 + 33 * + + NULLIF ( 7, - 94 + 17 ) AS col2
----
325

query I rowsort
SELECT 4 + + - 86 AS col2
----
-82

query I rowsort
SELECT 39 - + 33 + + 41 * + 75 AS col0
----
3081

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT COUNT( * ) + - - 38
----
39

skipif mysql # not compatible
query I rowsort label-3205
SELECT COUNT ( * ) + - - 38
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT 23 * - - 91 * COUNT( * )
----
2093

skipif mysql # not compatible
query I rowsort label-3206
SELECT 23 * - - 91 * COUNT ( * )
----
2093

query I rowsort
SELECT 29 + 35 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3208
SELECT ALL + COALESCE ( - COUNT( * ), - - 54 - - 98 * - - 15 * 37 * + CAST( - SUM( DISTINCT 23 ) AS SIGNED ) + - COUNT( * ) ) + - ( - - SUM( - 53 ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL + COALESCE ( - COUNT ( * ), - - 54 - - 98 * - - 15 * 37 * + CAST ( - SUM ( DISTINCT 23 ) AS INTEGER ) + - COUNT ( * ) ) + - ( - - SUM ( - 53 ) ) AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3209
SELECT DISTINCT ( + - 90 ) + 4 - + + COUNT( * ) + COUNT( * ) DIV - - 6 * - SUM( ALL 7 ) * 25 * + - ( - + 17 ) * 84 + + + 73 - - CAST( + - 81 AS SIGNED ) * - 80
----
6466

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT ( + - 90 ) + 4 - + + COUNT ( * ) + COUNT ( * ) / - - 6 * - SUM ( ALL 7 ) * 25 * + - ( - + 17 ) * 84 + + + 73 - - CAST ( + - 81 AS INTEGER ) * - 80
----
6466

query I rowsort
SELECT ALL 59 + 7 AS col2
----
66

query I rowsort
SELECT DISTINCT 77 + - 97 AS col1
----
-20

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

skipif mysql # not compatible
query I rowsort label-3212
SELECT + SUM ( DISTINCT 41 ) * - + COUNT ( * ) AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3213
SELECT - 72 DIV + 22 + - 92 AS col0, + COUNT( * )
----
-95
1

skipif mysql # not compatible
query II rowsort label-3213
SELECT - 72 / + 22 + - 92 AS col0, + COUNT ( * )
----
-95
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT ALL - 87 + 19 DIV + - 26
----
-87

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - 87 + 19 / + - 26
----
-87

query I rowsort
SELECT DISTINCT 44 * 79
----
3476

query I rowsort
SELECT ALL + 7 + - 49
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3217
SELECT ALL - - 62 AS col1, - CAST( NULL AS SIGNED ) AS col1
----
62
NULL

skipif mysql # not compatible
query II rowsort label-3217
SELECT ALL - - 62 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
62
NULL

query I rowsort
SELECT DISTINCT + 74 - 82 AS col0
----
-8

query I rowsort
SELECT DISTINCT - COALESCE ( + - 68, + 5 ) col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3220
SELECT ALL 89 - + 4 * 51 * + - 1 * NULLIF ( 81, 41 + - 73 * + 42 ) * + 48 + + + ( - 68 ) - - MIN( 53 ) * - - 64 + - 43 / CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL 89 - + 4 * 51 * + - 1 * NULLIF ( 81, 41 + - 73 * + 42 ) * + 48 + + + ( - 68 ) - - MIN ( 53 ) * - - 64 + - 43 / CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 67 * - 65 + - NULLIF ( 63, + 12 )
----
-4418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT - NULLIF ( NULLIF ( 53, - - 12 * - 89 + + - 91 ), - 18 * - 45 * 54 - - + ( - 37 ) * + - 36 ) * CAST( NULL AS SIGNED ) - + 58 + - MAX( 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT - NULLIF ( NULLIF ( 53, - - 12 * - 89 + + - 91 ), - 18 * - 45 * 54 - - + ( - 37 ) * + - 36 ) * CAST ( NULL AS INTEGER ) - + 58 + - MAX ( 67 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT - MIN( - + 99 ) * - + 80 - - + NULLIF ( - - 64, - 75 ) + COUNT( * )
----
-7855

skipif mysql # not compatible
query I rowsort label-3223
SELECT - MIN ( - + 99 ) * - + 80 - - + NULLIF ( - - 64, - 75 ) + COUNT ( * )
----
-7855

onlyif mysql # DIV for integer division: 
query I rowsort label-3224
SELECT + 55 DIV - 5 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3224
SELECT + 55 / - 5 AS col2
----
-11

query II rowsort
SELECT - 90 col0, 83
----
-90
83

query II rowsort
SELECT ALL 91, - 29 AS col0
----
91
-29

query I rowsort
SELECT DISTINCT 43 * + 80 * + - 63 AS col0
----
-216720

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT 14 + - + NULLIF ( - 56, 6 * + + AVG ( - ( 58 ) ) * 36 ) DIV + + 90 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3228
SELECT 14 + - + NULLIF ( - 56, 6 * + + AVG ( - ( 58 ) ) * 36 ) / + + 90 AS col1
----
14

query II rowsort
SELECT ALL 48, 21 AS col1
----
48
21

query II rowsort
SELECT 96, - 59 * 85 AS col0
----
96
-5015

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT - COUNT( - + 74 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3231
SELECT - COUNT ( - + 74 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT 33 DIV + 84 col0
----
0

skipif mysql # not compatible
query I rowsort label-3232
SELECT 33 / + 84 col0
----
0

query II rowsort
SELECT ALL 57 AS col2, + NULLIF ( + + 9, 1 * + 69 )
----
57
9

query I rowsort
SELECT 4 * 29 AS col2
----
116

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3235
SELECT 39 + + + CAST( NULL AS DECIMAL ) - + 1 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT 39 + + + CAST ( NULL AS REAL ) - + 1 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL - 61 + + COUNT( * ) col0
----
-60

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - 61 + + COUNT ( * ) col0
----
-60

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3238
SELECT DISTINCT + 89 * - MAX( - + 0 ) DIV + + 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT + 89 * - MAX ( - + 0 ) / + + 58 AS col0
----
0

query I rowsort
SELECT DISTINCT + 16 + + 9 AS col0
----
25

query II rowsort
SELECT ALL 78, - 0 AS col1
----
78
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT COUNT( * ) DIV - 52 * 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3241
SELECT COUNT ( * ) / - 52 * 26 AS col0
----
0

query I rowsort
SELECT 19 - 2 * 84 AS col0
----
-149

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT - 76 - - COUNT( * ) + 82 + + - 48 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3244
SELECT - 76 - - COUNT ( * ) + 82 + + - 48 AS col2
----
-41

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3246
SELECT ALL - 44 * + MIN( ALL + - 90 ) + + COUNT( * ) AS col0, 8 col1
----
3961
8

skipif mysql # not compatible
query II rowsort label-3246
SELECT ALL - 44 * + MIN ( ALL + - 90 ) + + COUNT ( * ) AS col0, 8 col1
----
3961
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3247
SELECT ALL + COALESCE ( + 37, - - 85 ) * - + 2 DIV + 29 DIV 9 * COUNT( ALL + NULLIF ( + 37, 45 ) ) + - 94 - + - 38 + - 88
----
-144

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL + COALESCE ( + 37, - - 85 ) * - + 2 / + 29 / 9 * COUNT ( ALL + NULLIF ( + 37, 45 ) ) + - 94 - + - 38 + - 88
----
-144

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

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

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

query II rowsort
SELECT - 95 AS col2, - 62 * + 54
----
-95
-3348

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT + - 89 * - + COUNT( * ) + - 32
----
57

skipif mysql # not compatible
query I rowsort label-3251
SELECT + - 89 * - + COUNT ( * ) + - 32
----
57

query I rowsort
SELECT - 73 * + 93 + + - 69 AS col2
----
-6858

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

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

query II rowsort
SELECT + 2 AS col1, 38 AS col2
----
2
38

query II rowsort
SELECT DISTINCT + - 18 AS col0, + 22
----
-18
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3257
SELECT ALL MAX( ALL 14 ) * 41 + - 58 + + 50 * ( 91 ) + - 74 - - CAST( - + 16 AS SIGNED ) + - 26 * 35
----
4066

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL MAX ( ALL 14 ) * 41 + - 58 + + 50 * ( 91 ) + - 74 - - CAST ( - + 16 AS INTEGER ) + - 26 * 35
----
4066

query II rowsort
SELECT + 2 AS col2, - 81
----
2
-81

query I rowsort
SELECT + 73 * + - 81 AS col2
----
-5913

query I rowsort
SELECT ( + 94 ) * - - 69 + - 15 col1
----
6471

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

skipif mysql # not compatible
query I rowsort label-3261
SELECT + 37 / - + ( + + COUNT ( * ) ) AS col0
----
-37

query I rowsort
SELECT ALL + 29 + - 94 col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3263
SELECT - ( + CAST( + - CASE + 89 WHEN + - 64 * + 89 THEN NULL ELSE - MAX( DISTINCT - 94 ) END AS SIGNED ) )
----
94

skipif mysql # not compatible
query I rowsort label-3263
SELECT - ( + CAST ( + - CASE + 89 WHEN + - 64 * + 89 THEN NULL ELSE - MAX ( DISTINCT - 94 ) END AS INTEGER ) )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3264
SELECT ALL 95 + - 86 + 88 + + NULLIF ( - 10, + 67 * - 41 ) + + 98 + - - 59 * - - COUNT( * ) DIV + 88 * + 89 - SUM( - 51 )
----
236

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL 95 + - 86 + 88 + + NULLIF ( - 10, + 67 * - 41 ) + + 98 + - - 59 * - - COUNT ( * ) / + 88 * + 89 - SUM ( - 51 )
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT + 7 - + ( + MAX( 7 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT + 7 - + ( + MAX ( 7 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT - 83 + - CAST( 2 AS SIGNED ) + 9 * - 68
----
-697

skipif mysql # not compatible
query I rowsort label-3266
SELECT - 83 + - CAST ( 2 AS INTEGER ) + 9 * - 68
----
-697

query I rowsort
SELECT ALL NULLIF ( + 31, - 35 ) AS col1
----
31

query I rowsort
SELECT + 71 + - 4 - + 11
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - 38 + COUNT( DISTINCT - + 96 )
----
-37

skipif mysql # not compatible
query I rowsort label-3269
SELECT - 38 + COUNT ( DISTINCT - + 96 )
----
-37

query I rowsort
SELECT ALL + 40 - 60
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3271
SELECT - + COUNT( * ) * + 48, 78 AS col0
----
-48
78

skipif mysql # not compatible
query II rowsort label-3271
SELECT - + COUNT ( * ) * + 48, 78 AS col0
----
-48
78

query I rowsort
SELECT - - 59 + 27 col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3273
SELECT ALL COUNT( * ) / + MAX( ALL - 17 ) - - COALESCE ( + - CASE - + ( + 47 ) WHEN - 40 THEN NULL ELSE - 27 + + 81 END, + 25 + + - 50 ) - 29 / + CAST( NULL AS DECIMAL ) + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL COUNT ( * ) / + MAX ( ALL - 17 ) - - COALESCE ( + - CASE - + ( + 47 ) WHEN - 40 THEN NULL ELSE - 27 + + 81 END, + 25 + + - 50 ) - 29 / + CAST ( NULL AS REAL ) + - 65
----
NULL

query I rowsort
SELECT ALL + + ( + - 11 )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3275
SELECT + 25 * 89 + 31 DIV + + COUNT( * )
----
2256

skipif mysql # not compatible
query I rowsort label-3275
SELECT + 25 * 89 + 31 / + + COUNT ( * )
----
2256

query I rowsort
SELECT DISTINCT + ( 82 ) * + 91 AS col0
----
7462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT - CAST( NULL AS SIGNED ) / + + 3 * 52 * + 9 * + 89 + - + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT - CAST ( NULL AS INTEGER ) / + + 3 * 52 * + 9 * + 89 + - + 12 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT - 25 DIV + 48 + + 2 + COALESCE ( + 98, + NULLIF ( ( 22 ), - 12 ) * + + 95 + + 19, - 81 * + + 46 + + 71, - 61 )
----
100

skipif mysql # not compatible
query I rowsort label-3278
SELECT - 25 / + 48 + + 2 + COALESCE ( + 98, + NULLIF ( ( 22 ), - 12 ) * + + 95 + + 19, - 81 * + + 46 + + 71, - 61 )
----
100

query I rowsort
SELECT + 32 * + - 66
----
-2112

query I rowsort
SELECT CASE 64 WHEN + 2 + - 25 THEN - + 80 ELSE 2 END
----
2

query I rowsort
SELECT ALL + 3 * + + 16 + - 32 AS col1
----
16

query I rowsort
SELECT 42 * - - 93 - + 10 AS col1
----
3896

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3284
SELECT DISTINCT + 70 * + SUM( + - NULLIF ( - 72, - 88 ) ) + - 98 - + + 27 DIV - 93 AS col0
----
4942

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT + 70 * + SUM ( + - NULLIF ( - 72, - 88 ) ) + - 98 - + + 27 / - 93 AS col0
----
4942

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT + 66 * ( + - NULLIF ( - COUNT( * ), 56 * + - COALESCE ( + - 33, + + ( - 32 ) ) * COUNT( 39 ) ) )
----
66

skipif mysql # not compatible
query I rowsort label-3286
SELECT + 66 * ( + - NULLIF ( - COUNT ( * ), 56 * + - COALESCE ( + - 33, + + ( - 32 ) ) * COUNT ( 39 ) ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT + 83 + ( - CASE - 57 WHEN MAX( 76 ) THEN - + 52 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT + 83 + ( - CASE - 57 WHEN MAX ( 76 ) THEN - + 52 END ) AS col1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3289
SELECT + 30 * + 58 DIV - + ( 58 ) AS col2, + 55 * - 49 AS col2
----
-30
-2695

skipif mysql # not compatible
query II rowsort label-3289
SELECT + 30 * + 58 / - + ( 58 ) AS col2, + 55 * - 49 AS col2
----
-30
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT MAX( ALL 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3290
SELECT MAX ( ALL 73 ) AS col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3291
SELECT ALL 41 DIV - + COUNT( * ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL 41 / - + COUNT ( * ) col2
----
-41

query I rowsort
SELECT + 53 + - ( 25 ) * - ( + 52 ) + + 91 + + + 68
----
1512

query I rowsort
SELECT DISTINCT 76 * + 54
----
4104

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL 35 - - 30 * + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL 35 - - 30 * + COUNT ( * )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3295
SELECT + 0 * + NULLIF ( - CAST( - ( - - 43 ) AS SIGNED ), - 85 * COUNT( * ) / - COUNT( * ) + + CAST( 78 AS SIGNED ) * + COALESCE ( + 79, - 5 - 68 + + 10 + - - CAST( - 11 AS SIGNED ) * - + ( 94 ) * - 90 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3295
SELECT + 0 * + NULLIF ( - CAST ( - ( - - 43 ) AS INTEGER ), - 85 * COUNT ( * ) / - COUNT ( * ) + + CAST ( 78 AS INTEGER ) * + COALESCE ( + 79, - 5 - 68 + + 10 + - - CAST ( - 11 AS INTEGER ) * - + ( 94 ) * - 90 ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT + - 63 DIV + 39 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3296
SELECT + - 63 / + 39 AS col1
----
-1

query II rowsort
SELECT + 23 AS col2, 77
----
23
77

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3299
SELECT ALL - CAST( + + CASE + 30 WHEN 37 THEN + COUNT( * ) + + + MIN( - - 58 ) / + + 94 WHEN - CAST( - ( - 74 ) AS SIGNED ) THEN NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL - CAST ( + + CASE + 30 WHEN 37 THEN + COUNT ( * ) + + + MIN ( - - 58 ) / + + 94 WHEN - CAST ( - ( - 74 ) AS INTEGER ) THEN NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3300
SELECT DISTINCT 12, + MAX( DISTINCT - - 79 ) * CASE - CASE - 28 WHEN 39 THEN + 38 WHEN + 70 THEN + + 11 END WHEN + + 52 * + - 34 + ( + 64 ) THEN 80 / - 97 * 91 + - 23 WHEN - ( - MIN( DISTINCT + 57 ) ) THEN + 15 / 57 END + 11 AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-3300
SELECT DISTINCT 12, + MAX ( DISTINCT - - 79 ) * CASE - CASE - 28 WHEN 39 THEN + 38 WHEN + 70 THEN + + 11 END WHEN + + 52 * + - 34 + ( + 64 ) THEN 80 / - 97 * 91 + - 23 WHEN - ( - MIN ( DISTINCT + 57 ) ) THEN + 15 / 57 END + 11 AS col1
----
12
NULL

query I rowsort
SELECT 73 - + 39 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3302
SELECT COUNT( * ) * - + 83 * - + COUNT( * ), 73 AS col0
----
83
73

skipif mysql # not compatible
query II rowsort label-3302
SELECT COUNT ( * ) * - + 83 * - + COUNT ( * ), 73 AS col0
----
83
73

query II rowsort
SELECT - 7, + 62 * + 57 * + 40 AS col1
----
-7
141360

query I rowsort
SELECT - 25 - - ( - + 82 ) - + 27 * 4 AS col0
----
-215

query I rowsort
SELECT 96 * 34 + + 54 AS col0
----
3318

query I rowsort
SELECT ALL + 23 + NULLIF ( - 80, + - NULLIF ( + + 43, + - 93 + - 70 ) )
----
-57

query I rowsort
SELECT + 74 - + 64 - - 32 + - 89 * 96
----
-8502

query I rowsort
SELECT ALL + + 14 + + 64 + + + 57
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT - COUNT( * ) * + 51 - - + 76 - 85
----
-60

skipif mysql # not compatible
query I rowsort label-3309
SELECT - COUNT ( * ) * + 51 - - + 76 - 85
----
-60

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3311
SELECT DISTINCT - + COALESCE ( 73, 30 + 98 DIV CAST( + + 45 AS SIGNED ), CAST( 72 AS SIGNED ) + 9 ) * + - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT - + COALESCE ( 73, 30 + 98 / CAST ( + + 45 AS INTEGER ), CAST ( 72 AS INTEGER ) + 9 ) * + - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT 81 * AVG ( + + 68 ) * 1 * + + ( 96 ) / ( + ( NULLIF ( + 42, + 79 ) ) ) + COUNT( ALL 58 ) - - 72 * - + ( + + CASE 38 WHEN - 81 THEN 50 - + 18 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT 81 * AVG ( + + 68 ) * 1 * + + ( 96 ) / ( + ( NULLIF ( + 42, + 79 ) ) ) + COUNT ( ALL 58 ) - - 72 * - + ( + + CASE 38 WHEN - 81 THEN 50 - + 18 END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT + 26 * - - 42 + - 17 DIV - 4 AS col2
----
1096

skipif mysql # not compatible
query I rowsort label-3313
SELECT + 26 * - - 42 + - 17 / - 4 AS col2
----
1096

query I rowsort
SELECT 4 * + ( - 33 ) AS col2
----
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3315
SELECT 43 - COUNT( * ), 21 DIV + - ( - 99 ) + + 73 - + - COUNT( * ) - - ( - - 31 ) * - 81 + + 62 AS col0
----
42
-2375

skipif mysql # not compatible
query II rowsort label-3315
SELECT 43 - COUNT ( * ), 21 / + - ( - 99 ) + + 73 - + - COUNT ( * ) - - ( - - 31 ) * - 81 + + 62 AS col0
----
42
-2375

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT + MIN( - 41 ) + + - 25
----
-66

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT + MIN ( - 41 ) + + - 25
----
-66

query I rowsort
SELECT DISTINCT - 30 + - 76 + + - 51 AS col0
----
-157

query I rowsort
SELECT DISTINCT 36 + - 73 * + 19
----
-1351

query I rowsort
SELECT 42 + - 33
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT DISTINCT - CASE - - 0 WHEN + - 16 THEN + 29 / + 82 + - + 96 WHEN COUNT( * ) THEN 98 + + + 47 + 24 + + 8 * - - MIN( DISTINCT + - 67 ) WHEN 59 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT - CASE - - 0 WHEN + - 16 THEN + 29 / + 82 + - + 96 WHEN COUNT ( * ) THEN 98 + + + 47 + 24 + + 8 * - - MIN ( DISTINCT + - 67 ) WHEN 59 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT 68 * + 4 AS col1, 50 AS col0
----
272
50

query I rowsort
SELECT DISTINCT 35 - 98 * + + 81 * 92
----
-730261

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3324
SELECT DISTINCT - AVG ( CAST( NULL AS DECIMAL ) ) * CASE SUM( + 31 ) WHEN - + 6 THEN 79 ELSE - + COUNT( * ) * + + CASE - 3 WHEN - 97 * + - 79 * - 2 + - 64 THEN 38 + - 45 WHEN + CASE + COUNT( * ) WHEN - 8 THEN + 17 * 59 + + 2 WHEN - COALESCE ( + ( + 22 ), 0 ) + + COUNT( * ) THEN - 4 ELSE NULL END - - 85 * - ( - 55 ) THEN + COUNT( 27 ) END - 42 * 54 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT - AVG ( CAST ( NULL AS REAL ) ) * CASE SUM ( + 31 ) WHEN - + 6 THEN 79 ELSE - + COUNT ( * ) * + + CASE - 3 WHEN - 97 * + - 79 * - 2 + - 64 THEN 38 + - 45 WHEN + CASE + COUNT ( * ) WHEN - 8 THEN + 17 * 59 + + 2 WHEN - COALESCE ( + ( + 22 ), 0 ) + + COUNT ( * ) THEN - 4 ELSE NULL END - - 85 * - ( - 55 ) THEN + COUNT ( 27 ) END - 42 * 54 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3325
SELECT DISTINCT - CASE MIN( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN - 13 + - + ( + 89 ) * + + 80 - - - NULLIF ( + - 71, COUNT( * ) * - + COALESCE ( + 85, + 69 / 98, 42 ) / + - ( - 84 ) * - + 28 * COUNT( * ) + 28 + MAX( DISTINCT - 78 + 58 ) + MAX( ALL 38 ) * - 28 ) + 29 THEN + 31 WHEN 83 THEN NULL END * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT - CASE MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN - 13 + - + ( + 89 ) * + + 80 - - - NULLIF ( + - 71, COUNT ( * ) * - + COALESCE ( + 85, + 69 / 98, 42 ) / + - ( - 84 ) * - + 28 * COUNT ( * ) + 28 + MAX ( DISTINCT - 78 + 58 ) + MAX ( ALL 38 ) * - 28 ) + 29 THEN + 31 WHEN 83 THEN NULL END * - 20
----
NULL

query I rowsort
SELECT 64 - 9
----
55

query I rowsort
SELECT ALL - 12 - 36 + + - 22 + - + 52 AS col1
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT 11 * + - COUNT( DISTINCT 87 ) + - 28 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3328
SELECT 11 * + - COUNT ( DISTINCT 87 ) + - 28 AS col1
----
-39

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

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

query I rowsort
SELECT 42 + 33 * - 15
----
-453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3331
SELECT + MIN( 55 ) DIV 78 - - + 74 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3331
SELECT + MIN ( 55 ) / 78 - - + 74 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL MIN( - 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL MIN ( - 31 ) AS col0
----
-31

query I rowsort
SELECT ( - 33 ) - 31 AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3334
SELECT - 83 DIV - 73
----
1

skipif mysql # not compatible
query I rowsort label-3334
SELECT - 83 / - 73
----
1

query II rowsort
SELECT + 22 + 91 col2, - 73 + - 3 AS col2
----
113
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3336
SELECT DISTINCT 1 DIV - 38 - - + 33
----
33

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT 1 / - 38 - - + 33
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3337
SELECT DISTINCT 10 DIV + COALESCE ( - - COUNT( * ), + COALESCE ( + COUNT( * ), - 48 + - 78 * + 47 ) * + + 97 )
----
10

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT 10 / + COALESCE ( - - COUNT ( * ), + COALESCE ( + COUNT ( * ), - 48 + - 78 * + 47 ) * + + 97 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3338
SELECT ALL + 47 + CAST( + COUNT( * ) AS SIGNED ) + + + 13 + 28 * + 92
----
2637

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL + 47 + CAST ( + COUNT ( * ) AS INTEGER ) + + + 13 + 28 * + 92
----
2637

query II rowsort
SELECT 57 + - - 19 col0, + 93 AS col2
----
76
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3340
SELECT CASE + 2 WHEN - 63 + + COUNT( * ) THEN - NULLIF ( + ( + 17 ), - + CASE 17 WHEN + 60 * + 69 THEN 85 WHEN + - 12 * + MAX( + + 31 ) * + 6 * 31 + + - 15 + - 4 THEN NULL WHEN + 32 / 72 + + 79 THEN CAST( NULL AS SIGNED ) END - 86 ) * + 84 WHEN - 94 + + 27 * - 45 THEN ( + ( + 81 ) ) WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT CASE + 2 WHEN - 63 + + COUNT ( * ) THEN - NULLIF ( + ( + 17 ), - + CASE 17 WHEN + 60 * + 69 THEN 85 WHEN + - 12 * + MAX ( + + 31 ) * + 6 * 31 + + - 15 + - 4 THEN NULL WHEN + 32 / 72 + + 79 THEN CAST ( NULL AS INTEGER ) END - 86 ) * + 84 WHEN - 94 + + 27 * - 45 THEN ( + ( + 81 ) ) WHEN COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT + COUNT( * ) + - 21 - - - 29 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT + COUNT ( * ) + - 21 - - - 29 AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT + COUNT( * ) * 99 DIV + 14 + 13 * 74
----
969

skipif mysql # not compatible
query I rowsort label-3342
SELECT + COUNT ( * ) * 99 / + 14 + 13 * 74
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT COUNT( - + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-3343
SELECT COUNT ( - + 96 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3344
SELECT - 72 DIV ( - 11 ) + ( + 3 ), COUNT( * ) AS col2
----
9
1

skipif mysql # not compatible
query II rowsort label-3344
SELECT - 72 / ( - 11 ) + ( + 3 ), COUNT ( * ) AS col2
----
9
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3345
SELECT ALL - CASE + 77 WHEN - ( - + 28 ) THEN + 99 WHEN + COUNT( * ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - 14 - + 76 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL - CASE + 77 WHEN - ( - + 28 ) THEN + 99 WHEN + COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - 14 - + 76 END AS col0
----
NULL

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

query I rowsort
SELECT ALL - 70 * + 13
----
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT ALL + ( + + ( + + COUNT( * ) ) ) + + + 2 * + + 17
----
35

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL + ( + + ( + + COUNT ( * ) ) ) + + + 2 * + + 17
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3349
SELECT - ( - + SUM( ALL 14 ) ) * 85 DIV 68 * + + 41 + 57
----
754

skipif mysql # not compatible
query I rowsort label-3349
SELECT - ( - + SUM ( ALL 14 ) ) * 85 / 68 * + + 41 + 57
----
754

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3350
SELECT 71 * + + COALESCE ( - - 0, - 14 * - 0 DIV + + 73 * - 95 ) * + 27 + + + 79 + - - MIN( DISTINCT 77 ) * - + 81
----
-6158

skipif mysql # not compatible
query I rowsort label-3350
SELECT 71 * + + COALESCE ( - - 0, - 14 * - 0 / + + 73 * - 95 ) * + 27 + + + 79 + - - MIN ( DISTINCT 77 ) * - + 81
----
-6158

query I rowsort
SELECT 32 - - + 24 + - + 11
----
45

query I rowsort
SELECT 68 * 97
----
6596

query I rowsort
SELECT 39 * - ( + - ( 15 ) )
----
585

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT 58 DIV + - 85
----
0

skipif mysql # not compatible
query I rowsort label-3354
SELECT 58 / + - 85
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3356
SELECT 64 + + 72 DIV + - 81 * + 26 DIV - COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-3356
SELECT 64 + + 72 / + - 81 * + 26 / - COUNT ( * ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT DISTINCT COUNT( 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT COUNT ( 14 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3358
SELECT - 70 + + CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3358
SELECT - 70 + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT + - COUNT( * ) * CAST( NULL AS SIGNED ) / - COUNT( * ) + + - 53 + - + 11 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT + - COUNT ( * ) * CAST ( NULL AS INTEGER ) / - COUNT ( * ) + + - 53 + - + 11 * - 64
----
NULL

query I rowsort
SELECT + + 6 + 36 AS col2
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-3361
SELECT DISTINCT - - 85 * + 48 DIV 82 DIV ( 79 ) AS col2, 47
----
0
47

skipif mysql # not compatible
query II rowsort label-3361
SELECT DISTINCT - - 85 * + 48 / 82 / ( 79 ) AS col2, 47
----
0
47

query I rowsort
SELECT + 76 + - 19 AS col1
----
57

query II rowsort
SELECT ALL - 67 * 31 * + 6 * - - 15 * + 86 AS col1, - 96 * + + 2 AS col1
----
-16075980
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - - 62 * 16 * - 21 * COUNT( * )
----
-20832

skipif mysql # not compatible
query I rowsort label-3364
SELECT - - 62 * 16 * - 21 * COUNT ( * )
----
-20832

query I rowsort
SELECT ALL 73 + - 69
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3366
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - - 37 - - + COUNT( * ) * + 47 * 20 * + 91 + + 46 * 49 * + + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - CAST ( NULL AS REAL ) + - - 37 - - + COUNT ( * ) * + 47 * 20 * + 91 + + 46 * 49 * + + 27 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3367
SELECT ALL + + 43 * + + CAST( NULL AS SIGNED ) / - - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + + 43 * + + CAST ( NULL AS INTEGER ) / - - 97 AS col0
----
NULL

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

query I rowsort
SELECT ALL - 15 + 4 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT - - 10 - + 37 - MAX( - 95 ) - - + 33
----
101

skipif mysql # not compatible
query I rowsort label-3370
SELECT - - 10 - + 37 - MAX ( - 95 ) - - + 33
----
101

query I rowsort
SELECT - + COALESCE ( + 29, + 82, 80 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT - + 35 - 94 - - + COUNT( * )
----
-128

skipif mysql # not compatible
query I rowsort label-3372
SELECT - + 35 - 94 - - + COUNT ( * )
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT ALL 62 DIV 49 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL 62 / 49 AS col1
----
1

query I rowsort
SELECT DISTINCT + 91 * + + ( 89 ) AS col1
----
8099

query I rowsort
SELECT DISTINCT 26 * 55
----
1430

query II rowsort
SELECT DISTINCT - 28 * CASE 67 WHEN + - ( + 20 ) * - - 19 + 24 THEN NULL ELSE + + 28 END + + - 17 AS col2, 14 + 92 AS col1
----
-801
106

query I rowsort
SELECT ( - - 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT - COUNT( * ) * 14 - - 19 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3378
SELECT - COUNT ( * ) * 14 - - 19 AS col2
----
5

query II rowsort
SELECT ALL + 84 AS col2, 3 col0
----
84
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT + 31 + + COUNT( * ) * - 32 * 39 * - CASE + COALESCE ( - 94, + MIN( ALL 63 ) - + + 16 * 62 + - 89 + MAX( - 96 ) ) WHEN + + 6 THEN + COALESCE ( + 29, + 78 * - 48 ) + - MAX( ALL + 98 ) ELSE 39 * 6 + COUNT( * ) END AS col1
----
293311

skipif mysql # not compatible
query I rowsort label-3380
SELECT + 31 + + COUNT ( * ) * - 32 * 39 * - CASE + COALESCE ( - 94, + MIN ( ALL 63 ) - + + 16 * 62 + - 89 + MAX ( - 96 ) ) WHEN + + 6 THEN + COALESCE ( + 29, + 78 * - 48 ) + - MAX ( ALL + 98 ) ELSE 39 * 6 + COUNT ( * ) END AS col1
----
293311

query I rowsort
SELECT NULLIF ( - 82, 62 + - - 8 )
----
-82

query I rowsort
SELECT NULLIF ( 22, + 74 )
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-3383
SELECT + COUNT( * ) * + 60, + 6 AS col2
----
60
6

skipif mysql # not compatible
query II rowsort label-3383
SELECT + COUNT ( * ) * + 60, + 6 AS col2
----
60
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT ALL + 40 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL + 40 / 95 AS col1
----
0

query I rowsort
SELECT ALL + 22 * + 61 AS col0
----
1342

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT + CASE 87 WHEN 85 THEN + COALESCE ( + + COALESCE ( - - 97, 78, - - COUNT( * ) * + + 97 * - 62 + + 44 + + - ( - 7 ) + ( - AVG ( ALL + 57 ) ) ), + 71, 20 + + - ( - ( 71 ) ) ) WHEN + 32 THEN NULL ELSE NULL END + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT + CASE 87 WHEN 85 THEN + COALESCE ( + + COALESCE ( - - 97, 78, - - COUNT ( * ) * + + 97 * - 62 + + 44 + + - ( - 7 ) + ( - AVG ( ALL + 57 ) ) ), + 71, 20 + + - ( - ( 71 ) ) ) WHEN + 32 THEN NULL ELSE NULL END + + 16 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT ALL 59 DIV 21 * + 7 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL 59 / 21 * + 7 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT COUNT( * ) * - 26 + - 53
----
-79

skipif mysql # not compatible
query I rowsort label-3388
SELECT COUNT ( * ) * - 26 + - 53
----
-79

query I rowsort
SELECT - ( - 31 ) AS col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3390
SELECT - + 51 DIV - - 42 * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3390
SELECT - + 51 / - - 42 * - COUNT ( * ) AS col2
----
1

query II rowsort
SELECT - 47 * 22 * - COALESCE ( - 78, + - 99 ) * + 4 AS col1, - NULLIF ( 39, + 50 ) AS col0
----
-322608
-39

query II rowsort
SELECT 28 AS col1, - 53 AS col0
----
28
-53

query I rowsort
SELECT ALL + 2 * - 96 AS col1
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT - 5 DIV + + 57 - - 19
----
19

skipif mysql # not compatible
query I rowsort label-3394
SELECT - 5 / + + 57 - - 19
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3395
SELECT ALL + 80 + - 3 + + COUNT( * ) DIV - 69 * 1 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL + 80 + - 3 + + COUNT ( * ) / - 69 * 1 AS col2
----
77

query I rowsort
SELECT - - 74 - - 28 AS col2
----
102

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

query I rowsort
SELECT ALL - - 91 + + - 78 col2
----
13

query I rowsort
SELECT - + 99 + 89
----
-10

query I rowsort
SELECT - 32 * + 19
----
-608

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT ALL - 36 DIV 2 DIV 13
----
-1

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL - 36 / 2 / 13
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT DISTINCT + 77 + - NULLIF ( + CAST( NULL AS SIGNED ), - - SUM( DISTINCT + 12 ) ) * - 50 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + 77 + - NULLIF ( + CAST ( NULL AS INTEGER ), - - SUM ( DISTINCT + 12 ) ) * - 50 * + COUNT ( * ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL + - 91 + - 26 AS col0
----
-117

query I rowsort
SELECT - 94 + - 34 + - 54 AS col1
----
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT - 7 + + 21 * COUNT( * ) * + + COUNT( - + 25 ) + + ( + CAST( + COUNT( - 84 ) AS SIGNED ) )
----
15

skipif mysql # not compatible
query I rowsort label-3406
SELECT - 7 + + 21 * COUNT ( * ) * + + COUNT ( - + 25 ) + + ( + CAST ( + COUNT ( - 84 ) AS INTEGER ) )
----
15

query II rowsort
SELECT ALL 77, - 77 AS col2
----
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL + - NULLIF ( - 71, 10 ) * COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL + - NULLIF ( - 71, 10 ) * COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT - 21 + - ( + 30 ) + + COUNT( * ) * + + 98
----
47

skipif mysql # not compatible
query I rowsort label-3409
SELECT - 21 + - ( + 30 ) + + COUNT ( * ) * + + 98
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3410
SELECT + 90 + - 41 + + 56 DIV 59 * - SUM( 75 ) * 39 + + ( NULLIF ( + 37, + COALESCE ( - - 38, + MAX( DISTINCT 98 ) + 17 ) ) ) + CAST( - 29 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-3410
SELECT + 90 + - 41 + + 56 / 59 * - SUM ( 75 ) * 39 + + ( NULLIF ( + 37, + COALESCE ( - - 38, + MAX ( DISTINCT 98 ) + 17 ) ) ) + CAST ( - 29 AS INTEGER )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3411
SELECT - + 98 + - 39 DIV - 18
----
-96

skipif mysql # not compatible
query I rowsort label-3411
SELECT - + 98 + - 39 / - 18
----
-96

query I rowsort
SELECT ALL + 34 * - 92
----
-3128

query I rowsort
SELECT - 67 + - 11 + ( - - 29 ) * 32
----
850

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3415
SELECT - 31 DIV - COALESCE ( - 98, + - 77 )
----
0

skipif mysql # not compatible
query I rowsort label-3415
SELECT - 31 / - COALESCE ( - 98, + - 77 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3416
SELECT + COALESCE ( + 98, 44, - 52 ) * 36 AS col2, - CASE 34 WHEN MIN( ALL + - 85 ) * - ( ( - + 75 ) ) - - 57 THEN COUNT( * ) END AS col1
----
3528
NULL

skipif mysql # not compatible
query II rowsort label-3416
SELECT + COALESCE ( + 98, 44, - 52 ) * 36 AS col2, - CASE 34 WHEN MIN ( ALL + - 85 ) * - ( ( - + 75 ) ) - - 57 THEN COUNT ( * ) END AS col1
----
3528
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3417
SELECT 17 * ( + - COALESCE ( + 27, + 63 ) ) + + + SUM( ALL + - 21 ) * + 58 AS col0, 48 + 66 + COUNT( * ) + + 21 AS col1
----
-1677
136

skipif mysql # not compatible
query II rowsort label-3417
SELECT 17 * ( + - COALESCE ( + 27, + 63 ) ) + + + SUM ( ALL + - 21 ) * + 58 AS col0, 48 + 66 + COUNT ( * ) + + 21 AS col1
----
-1677
136

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT DISTINCT 6 * + CAST( - 34 AS SIGNED ) AS col0
----
-204

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT 6 * + CAST ( - 34 AS INTEGER ) AS col0
----
-204

query I rowsort
SELECT DISTINCT 18 * - - 43 * 15 AS col0
----
11610

query I rowsort
SELECT DISTINCT - COALESCE ( - 62, - 7, + - 42 - - 9, + - 30 )
----
62

query I rowsort
SELECT ALL + 9 + - 6 AS col2
----
3

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

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

query II rowsort
SELECT ALL - ( - + 49 ) AS col2, 73
----
49
73

query I rowsort
SELECT ALL - ( + 41 ) * - 32 + + - 4
----
1308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT - NULLIF ( - 36, CAST( NULL AS SIGNED ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3427
SELECT - NULLIF ( - 36, CAST ( NULL AS INTEGER ) ) AS col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3428
SELECT 42 * + + 24, - COUNT( * ) DIV - + MAX( 93 ) AS col1
----
1008
0

skipif mysql # not compatible
query II rowsort label-3428
SELECT 42 * + + 24, - COUNT ( * ) / - + MAX ( 93 ) AS col1
----
1008
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT MIN( ALL + - 16 ) * - 45
----
720

skipif mysql # not compatible
query I rowsort label-3429
SELECT MIN ( ALL + - 16 ) * - 45
----
720

query I rowsort
SELECT DISTINCT + 57 * - 90
----
-5130

query I rowsort
SELECT DISTINCT - ( + + ( - 18 ) ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3432
SELECT DISTINCT CAST( - 16 AS SIGNED ) - - 46 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT CAST ( - 16 AS INTEGER ) - - 46 AS col1
----
30

query I rowsort
SELECT DISTINCT - 96 * - COALESCE ( - + 59, + - 56 )
----
-5664

onlyif mysql # aggregate syntax: 
query II rowsort label-3434
SELECT COUNT( * ) * - 9, 96 AS col1
----
-9
96

skipif mysql # not compatible
query II rowsort label-3434
SELECT COUNT ( * ) * - 9, 96 AS col1
----
-9
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3435
SELECT ALL + CASE + - 58 WHEN 91 * + - 93 * - - AVG ( + - 48 ) * + - 58 + - - 55 + 72 * - + MAX( ALL + 72 ) * + COALESCE ( - 24, - MIN( + CAST( NULL AS DECIMAL ) ) ) THEN + - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + CASE + - 58 WHEN 91 * + - 93 * - - AVG ( + - 48 ) * + - 58 + - - 55 + 72 * - + MAX ( ALL + 72 ) * + COALESCE ( - 24, - MIN ( + CAST ( NULL AS REAL ) ) ) THEN + - 4 END
----
NULL

query II rowsort
SELECT ( - 41 ), 2 AS col2
----
-41
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3437
SELECT ALL - COUNT( * ) DIV - 6 * - 57
----
0

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL - COUNT ( * ) / - 6 * - 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3438
SELECT CAST( NULL AS SIGNED ) * 20 * + MIN( - 63 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3438
SELECT CAST ( NULL AS INTEGER ) * 20 * + MIN ( - 63 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3439
SELECT 49 * - + CASE - + 75 WHEN 9 THEN + COUNT( * ) WHEN + - COUNT( * ) THEN NULL WHEN COUNT( * ) + 18 THEN NULL ELSE NULL END, - CAST( COUNT( * ) AS SIGNED ) * 96 DIV - + 13 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-3439
SELECT 49 * - + CASE - + 75 WHEN 9 THEN + COUNT ( * ) WHEN + - COUNT ( * ) THEN NULL WHEN COUNT ( * ) + 18 THEN NULL ELSE NULL END, - CAST ( COUNT ( * ) AS INTEGER ) * 96 / - + 13 AS col2
----
NULL
7

query I rowsort
SELECT 23 - + 40 AS col0
----
-17

query II rowsort
SELECT 43 AS col2, + 21
----
43
21

query I rowsort
SELECT 39 * 20 AS col0
----
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3443
SELECT MIN( + 32 ) DIV + ( - COUNT( * ) ) + + MIN( ALL + 97 ) + - ( + 14 ) + - 15 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3443
SELECT MIN ( + 32 ) / + ( - COUNT ( * ) ) + + MIN ( ALL + 97 ) + - ( + 14 ) + - 15 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT - CASE NULLIF ( 12, + - 0 ) WHEN - 81 / - COUNT( + 83 ) + + 91 THEN - 52 * - 77 * + - COUNT( * ) WHEN 40 THEN NULL ELSE 44 END
----
-44

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT - CASE NULLIF ( 12, + - 0 ) WHEN - 81 / - COUNT ( + 83 ) + + 91 THEN - 52 * - 77 * + - COUNT ( * ) WHEN 40 THEN NULL ELSE 44 END
----
-44

query I rowsort
SELECT ALL - 22 * + + 66 * + - 86 AS col1
----
124872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3446
SELECT ALL - CAST( NULL AS SIGNED ) * - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 14
----
NULL

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

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

query I rowsort
SELECT 58 * - + 37 - + ( + 43 ) AS col2
----
-2189

onlyif mysql # DIV for integer division: 
query I rowsort label-3449
SELECT 83 DIV + 45
----
1

skipif mysql # not compatible
query I rowsort label-3449
SELECT 83 / + 45
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3450
SELECT + 70 AS col1, CAST( NULL AS SIGNED ) col2
----
70
NULL

skipif mysql # not compatible
query II rowsort label-3450
SELECT + 70 AS col1, CAST ( NULL AS INTEGER ) col2
----
70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT ALL + 50 + 47 + - 26 * COUNT( * ) * 72 * COUNT( * ) col1
----
-1775

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + 50 + 47 + - 26 * COUNT ( * ) * 72 * COUNT ( * ) col1
----
-1775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT DISTINCT 23 + - 14 + COUNT( + 32 ) DIV + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT 23 + - 14 + COUNT ( + 32 ) / + COUNT ( * )
----
10

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

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

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

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL - 80 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT ALL - - COUNT( * ) DIV COUNT( ALL 6 ) * - 82 * - 16
----
1312

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL - - COUNT ( * ) / COUNT ( ALL 6 ) * - 82 * - 16
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT + ( + SUM( + 90 ) ) * - 48 + 30 + ( - + 96 )
----
-4386

skipif mysql # not compatible
query I rowsort label-3456
SELECT + ( + SUM ( + 90 ) ) * - 48 + 30 + ( - + 96 )
----
-4386

query I rowsort
SELECT - 67 * - 82
----
5494

query II rowsort
SELECT - 44 AS col0, 57
----
-44
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL CASE + NULLIF ( + 74, 11 ) WHEN + 32 * 86 * + COUNT( * ) THEN NULL WHEN - + 39 + - 99 + + ( + - 36 ) * - - 88 * - - 47 + + + COUNT( * ) * - NULLIF ( - 64, + + 93 * + 31 + - 75 + - 87 / - 48 ) * + 70 * - COUNT( * ) THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL CASE + NULLIF ( + 74, 11 ) WHEN + 32 * 86 * + COUNT ( * ) THEN NULL WHEN - + 39 + - 99 + + ( + - 36 ) * - - 88 * - - 47 + + + COUNT ( * ) * - NULLIF ( - 64, + + 93 * + 31 + - 75 + - 87 / - 48 ) * + 70 * - COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT + MAX( + - 55 ) + + 20 AS col1, 26 AS col0
----
-35
26

skipif mysql # not compatible
query II rowsort label-3460
SELECT + MAX ( + - 55 ) + + 20 AS col1, 26 AS col0
----
-35
26

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

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

query I rowsort
SELECT + 89 + + 60
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT 80 + + COALESCE ( - 53, COUNT( * ) ) + - + 99 col0
----
-72

skipif mysql # not compatible
query I rowsort label-3463
SELECT 80 + + COALESCE ( - 53, COUNT ( * ) ) + - + 99 col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3464
SELECT DISTINCT COALESCE ( 48, 4, + - 82 + ( 73 ) + 79 * 29 DIV + SUM( + - 6 ) - - 45 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT COALESCE ( 48, 4, + - 82 + ( 73 ) + 79 * 29 / + SUM ( + - 6 ) - - 45 ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3465
SELECT ALL CASE + COUNT( * ) WHEN + 10 - + + 75 + + 92 - 46 + - 78 THEN NULL WHEN ( - - 35 ) + 41 THEN - 25 * + COALESCE ( + 8, - 77 ) + 1 ELSE NULL END - COALESCE ( - 67, - CAST( + 66 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL CASE + COUNT ( * ) WHEN + 10 - + + 75 + + 92 - 46 + - 78 THEN NULL WHEN ( - - 35 ) + 41 THEN - 25 * + COALESCE ( + 8, - 77 ) + 1 ELSE NULL END - COALESCE ( - 67, - CAST ( + 66 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT - 39 + - 46 + - ( CASE + - COUNT( DISTINCT CAST( 90 AS SIGNED ) ) WHEN - - 45 * ( 51 ) * 28 + + 61 * - 86 + COUNT( * ) * + 48 + + 16 + 22 THEN 6 WHEN 44 * - - 70 THEN NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT - 39 + - 46 + - ( CASE + - COUNT ( DISTINCT CAST ( 90 AS INTEGER ) ) WHEN - - 45 * ( 51 ) * 28 + + 61 * - 86 + COUNT ( * ) * + 48 + + 16 + 22 THEN 6 WHEN 44 * - - 70 THEN NULL END ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT ALL 8 DIV 10
----
0

skipif mysql # not compatible
query I rowsort label-3467
SELECT ALL 8 / 10
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3468
SELECT 60 + - COUNT( * ) + - 36 DIV COUNT( DISTINCT + ( + 95 ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3468
SELECT 60 + - COUNT ( * ) + - 36 / COUNT ( DISTINCT + ( + 95 ) ) AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3469
SELECT DISTINCT - 85 * CAST( - 90 AS SIGNED ) AS col2, 18 col0
----
7650
18

skipif mysql # not compatible
query II rowsort label-3469
SELECT DISTINCT - 85 * CAST ( - 90 AS INTEGER ) AS col2, 18 col0
----
7650
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT NULLIF ( MIN( ALL 6 ), + ( - 28 ) - + 33 ) + 98 + - + 89
----
15

skipif mysql # not compatible
query I rowsort label-3470
SELECT NULLIF ( MIN ( ALL 6 ), + ( - 28 ) - + 33 ) + 98 + - + 89
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT 61 * + + COUNT( * ) * - 44 AS col2
----
-2684

skipif mysql # not compatible
query I rowsort label-3471
SELECT 61 * + + COUNT ( * ) * - 44 AS col2
----
-2684

query I rowsort
SELECT 68 - - - 79 - - + 81
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3473
SELECT DISTINCT CAST( NULL AS SIGNED ) * COALESCE ( + - 8, + - 88 * - NULLIF ( + ( - MIN( - + 81 ) ), + 30 ) ) AS col0, 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-3473
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COALESCE ( + - 8, + - 88 * - NULLIF ( + ( - MIN ( - + 81 ) ), + 30 ) ) AS col0, 80
----
NULL
80

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

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

query I rowsort
SELECT + 78 + + - 43 + + 89 AS col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3476
SELECT + CASE 16 WHEN - CAST( - 13 AS SIGNED ) THEN + CASE + + COUNT( * ) WHEN - 99 * 94 * - COUNT( * ) THEN - - 41 END / - + ( 98 ) + - 82 * - - 67 + + + COALESCE ( + - 88, + COUNT( * ) ) * + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT + CASE 16 WHEN - CAST ( - 13 AS INTEGER ) THEN + CASE + + COUNT ( * ) WHEN - 99 * 94 * - COUNT ( * ) THEN - - 41 END / - + ( 98 ) + - 82 * - - 67 + + + COALESCE ( + - 88, + COUNT ( * ) ) * + 48 END
----
NULL

query I rowsort
SELECT COALESCE ( + 76, - 78 ) AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL CASE + - COUNT( * ) WHEN - + 3 + + 8 THEN - COUNT( * ) WHEN - 61 THEN NULL ELSE - - COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) - NULLIF ( 78, - 43 + + 37 ) + - - 92 END * - - 43 + - - 92
----
737

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL CASE + - COUNT ( * ) WHEN - + 3 + + 8 THEN - COUNT ( * ) WHEN - 61 THEN NULL ELSE - - COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) - NULLIF ( 78, - 43 + + 37 ) + - - 92 END * - - 43 + - - 92
----
737

query I rowsort
SELECT NULLIF ( - 50, - 27 )
----
-50

query I rowsort
SELECT COALESCE ( - + 9, - 66 * + 50, + + 80 )
----
-9

query I rowsort
SELECT - 70 * + + ( + CASE + 26 WHEN - + 60 THEN + - 61 ELSE NULL END ) * - 47 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT NULLIF ( COUNT( * ), - + 63 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3483
SELECT NULLIF ( COUNT ( * ), - + 63 ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3484
SELECT ALL - 18 * + 83, + COUNT( + 66 ) AS col0
----
-1494
1

skipif mysql # not compatible
query II rowsort label-3484
SELECT ALL - 18 * + 83, + COUNT ( + 66 ) AS col0
----
-1494
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ALL COUNT( ALL + + 72 ) * + 37 + - - 26 + - 61 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL COUNT ( ALL + + 72 ) * + 37 + - - 26 + - 61 AS col2
----
2

query I rowsort
SELECT DISTINCT - 40 * 75
----
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT COUNT( * ) * - 80 + - + 46
----
-126

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT COUNT ( * ) * - 80 + - + 46
----
-126

query II rowsort
SELECT ALL - + 84 * - 7, - 71 AS col1
----
588
-71

query I rowsort
SELECT + NULLIF ( 94, + ( 45 ) ) col2
----
94

query I rowsort
SELECT ALL + COALESCE ( - 89, - NULLIF ( 35, - 3 ) + + 80 )
----
-89

query II rowsort
SELECT - ( + 30 ) AS col2, + ( 88 ) + - + 49
----
-30
39

query I rowsort
SELECT ALL + + 90 col0
----
90

query I rowsort
SELECT + 30 + + 8 + + 21 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + - MAX( ALL - - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3494
SELECT + - MAX ( ALL - - 66 ) AS col2
----
-66

query I rowsort
SELECT ALL - 7 * 93 * 83 AS col1
----
-54033

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3496
SELECT - NULLIF ( - + SUM( 9 ), + 27 ) * - - COUNT( * ) DIV - + ( + + 39 ) col1, + 20
----
0
20

skipif mysql # not compatible
query II rowsort label-3496
SELECT - NULLIF ( - + SUM ( 9 ), + 27 ) * - - COUNT ( * ) / - + ( + + 39 ) col1, + 20
----
0
20

query I rowsort
SELECT - 25 * - + 97 - - 54 * 48 * - 2
----
-2759

query I rowsort
SELECT ALL + NULLIF ( + + 27, 8 ) * + 94
----
2538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3499
SELECT CASE - + CAST( 86 AS SIGNED ) WHEN - 20 THEN NULLIF ( - + 22, 85 ) ELSE + - CASE + COUNT( * ) WHEN - COUNT( * ) * + + NULLIF ( + COUNT( * ), + - ( - + NULLIF ( - 53, 61 ) ) + 51 - 79 * - 26 ) THEN - 12 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT CASE - + CAST ( 86 AS INTEGER ) WHEN - 20 THEN NULLIF ( - + 22, 85 ) ELSE + - CASE + COUNT ( * ) WHEN - COUNT ( * ) * + + NULLIF ( + COUNT ( * ), + - ( - + NULLIF ( - 53, 61 ) ) + 51 - 79 * - 26 ) THEN - 12 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT - SUM( 36 ) * + + 25
----
-900

skipif mysql # not compatible
query I rowsort label-3500
SELECT - SUM ( 36 ) * + + 25
----
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-3501
SELECT ALL - 55 * 66 DIV 94
----
-38

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL - 55 * 66 / 94
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3502
SELECT ALL CAST( - COALESCE ( + + COUNT( * ), + 0, - 11 + - MAX( ALL + - 73 ) + 77 + COUNT( * ) + + AVG ( - 6 ) * + 55 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL CAST ( - COALESCE ( + + COUNT ( * ), + 0, - 11 + - MAX ( ALL + - 73 ) + 77 + COUNT ( * ) + + AVG ( - 6 ) * + 55 ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT ( - 33 )
----
-33

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

skipif mysql # not compatible
query I rowsort label-3504
SELECT - NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) + - - 93 + + ( + 22 ) * - 7 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT ALL + ( MAX( 56 ) ) + - CAST( 68 AS SIGNED ) col0
----
-12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT COUNT( * ) + 77 + + 27 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT COUNT ( * ) + 77 + + 27 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT MAX( ALL + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT MAX ( ALL + 30 )
----
30

query I rowsort
SELECT ALL 48 + - 89
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT + MIN( - + 84 ) * + 24 * + - 48 AS col2
----
96768

skipif mysql # not compatible
query I rowsort label-3509
SELECT + MIN ( - + 84 ) * + 24 * + - 48 AS col2
----
96768

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL 60 + - MIN( DISTINCT + + 89 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL 60 + - MIN ( DISTINCT + + 89 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT - COUNT( * ) + 96 - + 84
----
11

skipif mysql # not compatible
query I rowsort label-3511
SELECT - COUNT ( * ) + 96 - + 84
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3512
SELECT DISTINCT 95 * + SUM( ALL ( - CAST( - 40 AS SIGNED ) ) )
----
3800

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT 95 * + SUM ( ALL ( - CAST ( - 40 AS INTEGER ) ) )
----
3800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3513
SELECT + NULLIF ( - 13, + 92 * - 53 DIV COUNT( * ) ) DIV + 10
----
-1

skipif mysql # not compatible
query I rowsort label-3513
SELECT + NULLIF ( - 13, + 92 * - 53 / COUNT ( * ) ) / + 10
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3514
SELECT + COUNT( * ) - CAST( 71 AS SIGNED ) * + 75
----
-5324

skipif mysql # not compatible
query I rowsort label-3514
SELECT + COUNT ( * ) - CAST ( 71 AS INTEGER ) * + 75
----
-5324

query II rowsort
SELECT 98 AS col0, - 58 AS col2
----
98
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3516
SELECT ALL 89 + - MAX( + + 27 ) + - 16 + ( 2 ) DIV + 61 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL 89 + - MAX ( + + 27 ) + - 16 + ( 2 ) / + 61 AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3517
SELECT + 94 + 40 + + 56 DIV - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3517
SELECT + 94 + 40 + + 56 / - COUNT ( * )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ALL NULLIF ( + + 29, - + 65 ) DIV - 76 + - + 21
----
-21

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL NULLIF ( + + 29, - + 65 ) / - 76 + - + 21
----
-21

query I rowsort
SELECT ALL 94 * - 1 AS col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT ALL 12 DIV + + 24 * - 73 + - 51
----
-51

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL 12 / + + 24 * - 73 + - 51
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3521
SELECT ALL + 32 DIV + 73 * 37 * + MAX( ALL + 33 ) * + + 22
----
0

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL + 32 / + 73 * 37 * + MAX ( ALL + 33 ) * + + 22
----
0

query II rowsort
SELECT DISTINCT + 43, 82 * + 89 col0
----
43
7298

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT - ( - ( COALESCE ( + 20, 64 * - 32 ) ) ) DIV 18 + 49 + + 54
----
104

skipif mysql # not compatible
query I rowsort label-3523
SELECT - ( - ( COALESCE ( + 20, 64 * - 32 ) ) ) / 18 + 49 + + 54
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-3524
SELECT - CASE + 41 WHEN + COUNT( * ) * 85 * - - 1 / + 47 THEN NULL WHEN + 34 THEN + COUNT( * ) ELSE NULL END, + 96 * - + COALESCE ( + 95, COUNT( * ) ) AS col1
----
NULL
-9120

skipif mysql # not compatible
query II rowsort label-3524
SELECT - CASE + 41 WHEN + COUNT ( * ) * 85 * - - 1 / + 47 THEN NULL WHEN + 34 THEN + COUNT ( * ) ELSE NULL END, + 96 * - + COALESCE ( + 95, COUNT ( * ) ) AS col1
----
NULL
-9120

query I rowsort
SELECT + - 97 + + 34
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - 73 * - ( + 54 ) * 60 + + 69 + - + COUNT( * ) * MIN( - - 37 ) + + + 19
----
236571

skipif mysql # not compatible
query I rowsort label-3526
SELECT - 73 * - ( + 54 ) * 60 + + 69 + - + COUNT ( * ) * MIN ( - - 37 ) + + + 19
----
236571

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT DISTINCT + + 6 * + CASE + 31 WHEN + ( - 38 ) THEN - 63 + 74 WHEN + COUNT( * ) THEN NULL ELSE + COUNT( * ) END * 87
----
522

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT + + 6 * + CASE + 31 WHEN + ( - 38 ) THEN - 63 + 74 WHEN + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END * 87
----
522

query I rowsort
SELECT DISTINCT 45 * + + 70
----
3150

query II rowsort
SELECT DISTINCT + 61 AS col0, - 78
----
61
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT - ( 31 ) + + NULLIF ( + ( CASE + 44 WHEN 61 * 32 THEN NULL WHEN + 9 + COUNT( DISTINCT + 77 ) THEN + 9 END ), - 44 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT - ( 31 ) + + NULLIF ( + ( CASE + 44 WHEN 61 * 32 THEN NULL WHEN + 9 + COUNT ( DISTINCT + 77 ) THEN + 9 END ), - 44 ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 68 col0
----
68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT - + 96 DIV - - 31 col0
----
-3

skipif mysql # not compatible
query I rowsort label-3534
SELECT - + 96 / - - 31 col0
----
-3

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

skipif mysql # not compatible
query I rowsort label-3535
SELECT + MIN ( 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3536
SELECT DISTINCT CASE 22 WHEN + COUNT( + ( 78 ) ) * + 38 * - 53 THEN CAST( NULL AS SIGNED ) WHEN - - COUNT( * ) THEN NULL WHEN ( - 15 ) + 32 THEN NULL ELSE - 84 END AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT CASE 22 WHEN + COUNT ( + ( 78 ) ) * + 38 * - 53 THEN CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) THEN NULL WHEN ( - 15 ) + 32 THEN NULL ELSE - 84 END AS col1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3537
SELECT - 32 col0, + COUNT( * ) * - COUNT( * )
----
-32
-1

skipif mysql # not compatible
query II rowsort label-3537
SELECT - 32 col0, + COUNT ( * ) * - COUNT ( * )
----
-32
-1

query I rowsort
SELECT ALL - ( - 68 ) + + + 80
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT DISTINCT + 8 + + 96 - 94 * COUNT( * ), 48 * 64 AS col2
----
10
3072

skipif mysql # not compatible
query II rowsort label-3539
SELECT DISTINCT + 8 + + 96 - 94 * COUNT ( * ), 48 * 64 AS col2
----
10
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL COUNT( * ) + + + 87 - + + 44 * + - COUNT( * ) * + - 32 * + - 73 * - 96 AS col1
----
-9867176

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL COUNT ( * ) + + + 87 - + + 44 * + - COUNT ( * ) * + - 32 * + - 73 * - 96 AS col1
----
-9867176

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT MIN( - 43 ) + + 74 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3541
SELECT MIN ( - 43 ) + + 74 AS col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3542
SELECT ALL + 90 + + 6 + - COUNT( * ) * - 46 + + 42 + ( - 62 ), + 86 AS col2
----
122
86

skipif mysql # not compatible
query II rowsort label-3542
SELECT ALL + 90 + + 6 + - COUNT ( * ) * - 46 + + 42 + ( - 62 ), + 86 AS col2
----
122
86

query II rowsort
SELECT - 46, + 32 - ( 90 ) AS col1
----
-46
-58

query I rowsort
SELECT 57 + - 73 AS col2
----
-16

query II rowsort
SELECT - 1 AS col0, - 92 + + + ( 18 )
----
-1
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3546
SELECT - 53 AS col2, - COUNT( * ) * - 43 DIV 36 * + COUNT( - - NULLIF ( - 76, - - 49 * - ( - 68 ) - - 49 ) )
----
-53
1

skipif mysql # not compatible
query II rowsort label-3546
SELECT - 53 AS col2, - COUNT ( * ) * - 43 / 36 * + COUNT ( - - NULLIF ( - 76, - - 49 * - ( - 68 ) - - 49 ) )
----
-53
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT 67 + - MIN( ALL - + 87 ) * - NULLIF ( - 42, - 84 * 7 * - 50 ) + + 32 AS col1
----
3753

skipif mysql # not compatible
query I rowsort label-3547
SELECT 67 + - MIN ( ALL - + 87 ) * - NULLIF ( - 42, - 84 * 7 * - 50 ) + + 32 AS col1
----
3753

onlyif mysql # aggregate syntax: 
query II rowsort label-3548
SELECT COUNT( * ) + - 89 AS col2, 63
----
-88
63

skipif mysql # not compatible
query II rowsort label-3548
SELECT COUNT ( * ) + - 89 AS col2, 63
----
-88
63

query II rowsort
SELECT DISTINCT 7, + 63 + + 95 AS col2
----
7
158

query I rowsort
SELECT DISTINCT + 18 * - + ( - 50 )
----
900

query I rowsort
SELECT ALL - 64 + + + 36 AS col0
----
-28

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

query II rowsort
SELECT DISTINCT - 46 - + 93 AS col2, 95
----
-139
95

query I rowsort
SELECT 2 + + 4
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT MAX( + 10 ) * + 14 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-3555
SELECT MAX ( + 10 ) * + 14 AS col0
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-3556
SELECT 10 DIV - - 83 + + 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3556
SELECT 10 / - - 83 + + 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT DISTINCT - + COUNT( DISTINCT + 34 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - + COUNT ( DISTINCT + 34 ) col1
----
-1

query I rowsort
SELECT + 42 * 6
----
252

query I rowsort
SELECT ALL + 29 * + 87 AS col2
----
2523

query I rowsort
SELECT NULLIF ( + 55, + 46 * - ( - - COALESCE ( 37, - + 54 ) ) ) * + 55 AS col2
----
3025

query I rowsort
SELECT ALL 61 + + 53 AS col2
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-3562
SELECT 24 DIV - 19 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3562
SELECT 24 / - 19 AS col1
----
-1

query I rowsort
SELECT ALL 75 + - 36 AS col0
----
39

query I rowsort
SELECT - 44 * 68
----
-2992

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT + 28 + COUNT( * ) - - ( 22 )
----
51

skipif mysql # not compatible
query I rowsort label-3565
SELECT + 28 + COUNT ( * ) - - ( 22 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3566
SELECT DISTINCT + NULLIF ( - 51, + 88 ) + - COUNT( * ) AS col0, 11
----
-52
11

skipif mysql # not compatible
query II rowsort label-3566
SELECT DISTINCT + NULLIF ( - 51, + 88 ) + - COUNT ( * ) AS col0, 11
----
-52
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3567
SELECT ALL - - 2 AS col0, MAX( 93 ) + - 43 AS col0
----
2
50

skipif mysql # not compatible
query II rowsort label-3567
SELECT ALL - - 2 AS col0, MAX ( 93 ) + - 43 AS col0
----
2
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3568
SELECT DISTINCT + 6 + - 18 DIV - MIN( + + 52 )
----
6

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT + 6 + - 18 / - MIN ( + + 52 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3569
SELECT DISTINCT COALESCE ( + 90, + + 0, + + 5 * + 92 ) + + 8 AS col2, + 17 * COUNT( * ) DIV - 56 AS col2
----
98
0

skipif mysql # not compatible
query II rowsort label-3569
SELECT DISTINCT COALESCE ( + 90, + + 0, + + 5 * + 92 ) + + 8 AS col2, + 17 * COUNT ( * ) / - 56 AS col2
----
98
0

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

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

query I rowsort
SELECT ALL + 73 + + 90
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT DISTINCT + 76 + - 28 * - COUNT( * ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT + 76 + - 28 * - COUNT ( * ) AS col0
----
104

query I rowsort
SELECT ALL + 4 * - + 47 col1
----
-188

query I rowsort
SELECT ALL + 95 + - 45 AS col2
----
50

query I rowsort
SELECT ALL - 31 + - 20
----
-51

query I rowsort
SELECT 86 * 30 AS col1
----
2580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3577
SELECT ALL - COUNT( * ) * + COALESCE ( 66, COUNT( * ) ) DIV 19
----
-3

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - COUNT ( * ) * + COALESCE ( 66, COUNT ( * ) ) / 19
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3578
SELECT ALL - 59 DIV 62 DIV CAST( - MAX( DISTINCT - + 82 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL - 59 / 62 / CAST ( - MAX ( DISTINCT - + 82 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3579
SELECT DISTINCT 94 - MAX( + 1 ) - ( - 8 ), + 65 + + - 47 AS col0
----
101
18

skipif mysql # not compatible
query II rowsort label-3579
SELECT DISTINCT 94 - MAX ( + 1 ) - ( - 8 ), + 65 + + - 47 AS col0
----
101
18

query I rowsort
SELECT 76 + + 50 col2
----
126

onlyif mysql # DIV for integer division: 
query II rowsort label-3581
SELECT ALL - 33 * + 10 AS col0, - 15 DIV + 11 AS col1
----
-330
-1

skipif mysql # not compatible
query II rowsort label-3581
SELECT ALL - 33 * + 10 AS col0, - 15 / + 11 AS col1
----
-330
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3582
SELECT 82 DIV - 99, + 50 DIV + 40 AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-3582
SELECT 82 / - 99, + 50 / + 40 AS col0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT 18 / - CASE + 83 WHEN - COUNT( * ) * - + 50 - + - 58 THEN NULL WHEN 63 THEN - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT 18 / - CASE + 83 WHEN - COUNT ( * ) * - + 50 - + - 58 THEN NULL WHEN 63 THEN - 4 END
----
NULL

query I rowsort
SELECT 92 + - 25
----
67

query I rowsort
SELECT ALL + 60 * + ( - 17 ) col1
----
-1020

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT - 17 + + 42 DIV 44 * - 85
----
-17

skipif mysql # not compatible
query I rowsort label-3586
SELECT - 17 + + 42 / 44 * - 85
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT 93 + MIN( - 77 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3587
SELECT 93 + MIN ( - 77 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT + 40 * + 83 * + + 15 * MIN( DISTINCT + - COALESCE ( - - 81, 10 * 24 ) ) AS col1
----
-4033800

skipif mysql # not compatible
query I rowsort label-3588
SELECT + 40 * + 83 * + + 15 * MIN ( DISTINCT + - COALESCE ( - - 81, 10 * 24 ) ) AS col1
----
-4033800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3589
SELECT MIN( - - 30 ) - - 32, AVG ( DISTINCT + 86 ) + - 88 * 42 / - 91 * + + CAST( NULL AS SIGNED ) AS col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-3589
SELECT MIN ( - - 30 ) - - 32, AVG ( DISTINCT + 86 ) + - 88 * 42 / - 91 * + + CAST ( NULL AS INTEGER ) AS col2
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT DISTINCT - NULLIF ( - + 87, - 15 + ( - MIN( ALL + 24 ) ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT - NULLIF ( - + 87, - 15 + ( - MIN ( ALL + 24 ) ) ) AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT - 6 DIV 49 * - 67 * - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT - 6 / 49 * - 67 * - 85 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT - 76 * - COUNT( * ) + - COUNT( * ) * - 10 + - 19
----
67

skipif mysql # not compatible
query I rowsort label-3592
SELECT - 76 * - COUNT ( * ) + - COUNT ( * ) * - 10 + - 19
----
67

query I rowsort
SELECT ALL + 93 * 89 + + 80 col2
----
8357

onlyif mysql # aggregate syntax: 
query II rowsort label-3594
SELECT + COUNT( ALL + - 32 ), - 31 - 10 AS col2
----
1
-41

skipif mysql # not compatible
query II rowsort label-3594
SELECT + COUNT ( ALL + - 32 ), - 31 - 10 AS col2
----
1
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT ALL - ( + 2 ) * + 7 - + 27 + - CAST( + 93 AS SIGNED ) col2
----
-134

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL - ( + 2 ) * + 7 - + 27 + - CAST ( + 93 AS INTEGER ) col2
----
-134

query I rowsort
SELECT + 42 * + ( + - 80 )
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT CASE 86 WHEN + 50 + + + 61 + 98 THEN NULL WHEN + - 25 + - - COUNT( * ) THEN 68 ELSE NULL END * - - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT CASE 86 WHEN + 50 + + + 61 + 98 THEN NULL WHEN + - 25 + - - COUNT ( * ) THEN 68 ELSE NULL END * - - 40 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL + ( + COUNT( * ) ) * + - 68 + - - 85 * - 11
----
-1003

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL + ( + COUNT ( * ) ) * + - 68 + - - 85 * - 11
----
-1003

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

query I rowsort
SELECT ALL 97 * - - 24 + - 11
----
2317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3602
SELECT - CAST( + MIN( - 58 ) AS SIGNED ) * - COUNT( * ) - 98, + 39 AS col1
----
-156
39

skipif mysql # not compatible
query II rowsort label-3602
SELECT - CAST ( + MIN ( - 58 ) AS INTEGER ) * - COUNT ( * ) - 98, + 39 AS col1
----
-156
39

onlyif mysql # DIV for integer division: 
query II rowsort label-3603
SELECT ALL 52 * + COALESCE ( - + 93, - CASE - 55 WHEN 6 THEN + 87 WHEN + 58 THEN NULL ELSE + 44 END DIV + + 43 * 84, - - 55 ), - 36 * - 11 AS col2
----
-4836
396

skipif mysql # not compatible
query II rowsort label-3603
SELECT ALL 52 * + COALESCE ( - + 93, - CASE - 55 WHEN 6 THEN + 87 WHEN + 58 THEN NULL ELSE + 44 END / + + 43 * 84, - - 55 ), - 36 * - 11 AS col2
----
-4836
396

query I rowsort
SELECT DISTINCT - 74 + + 65 + - - 67 AS col2
----
58

query I rowsort
SELECT 8 * - - 50 + - 31 AS col1
----
369

query I rowsort
SELECT ALL 37 + + + 9
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT COUNT( ALL - 96 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3607
SELECT COUNT ( ALL - 96 ) AS col2
----
1

query I rowsort
SELECT + COALESCE ( 51, + - 18, + ( - 20 ) ) + - + 13 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3609
SELECT - CAST( NULL AS SIGNED ) - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3609
SELECT - CAST ( NULL AS INTEGER ) - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT ALL MIN( DISTINCT 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL MIN ( DISTINCT 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL MIN( ALL + 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL MIN ( ALL + 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3612
SELECT ALL 30 * - - 3 * + - 68 DIV - COUNT( ALL 96 ) AS col1
----
6120

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL 30 * - - 3 * + - 68 / - COUNT ( ALL 96 ) AS col1
----
6120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3613
SELECT - 41 + + ( - - 32 ) AS col0, 22 DIV - + SUM( DISTINCT + CAST( + ( + 83 ) AS SIGNED ) ) AS col0
----
-9
0

skipif mysql # not compatible
query II rowsort label-3613
SELECT - 41 + + ( - - 32 ) AS col0, 22 / - + SUM ( DISTINCT + CAST ( + ( + 83 ) AS INTEGER ) ) AS col0
----
-9
0

onlyif mysql # aggregate syntax: 
query III rowsort label-3614
SELECT + 53 * - 18 * 21 AS col2, 35 + - 30 * + 76 col1, NULLIF ( - 48, - COALESCE ( - + NULLIF ( + + 32, 71 * 87 + - - 50 ), COUNT( * ) + + + 48 * + - 90 ) )
----
-20034
-2245
-48

skipif mysql # not compatible
query III rowsort label-3614
SELECT + 53 * - 18 * 21 AS col2, 35 + - 30 * + 76 col1, NULLIF ( - 48, - COALESCE ( - + NULLIF ( + + 32, 71 * 87 + - - 50 ), COUNT ( * ) + + + 48 * + - 90 ) )
----
-20034
-2245
-48

query I rowsort
SELECT - CASE + - COALESCE ( - 37, - 81, 18 ) WHEN + 55 THEN 19 ELSE NULL END
----
NULL

query I rowsort
SELECT - 18 + - ( ( + 69 ) )
----
-87

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3618
SELECT - CASE - - 93 WHEN + + 58 * - 4 + + SUM( CAST( NULL AS SIGNED ) ) + MIN( ALL - - 58 ) * + 26 THEN - - 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3618
SELECT - CASE - - 93 WHEN + + 58 * - 4 + + SUM ( CAST ( NULL AS INTEGER ) ) + MIN ( ALL - - 58 ) * + 26 THEN - - 82 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT 21 AS col0, + ( MAX( ALL + 73 ) ) AS col1
----
21
73

skipif mysql # not compatible
query II rowsort label-3619
SELECT 21 AS col0, + ( MAX ( ALL + 73 ) ) AS col1
----
21
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT - 94 + + - COUNT( * ) + 5
----
-90

skipif mysql # not compatible
query I rowsort label-3620
SELECT - 94 + + - COUNT ( * ) + 5
----
-90

query I rowsort
SELECT - ( - 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT - 11 + + 13 * - COUNT( * ) - 70 * - + 65 AS col2
----
4526

skipif mysql # not compatible
query I rowsort label-3622
SELECT - 11 + + 13 * - COUNT ( * ) - 70 * - + 65 AS col2
----
4526

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

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

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT - COUNT ( * ) / - 56
----
0

query I rowsort
SELECT - - 35 * + 35 AS col1
----
1225

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3627
SELECT ALL - 36 AS col0, - COUNT( * ) * 68 DIV + + 87
----
-36
0

skipif mysql # not compatible
query II rowsort label-3627
SELECT ALL - 36 AS col0, - COUNT ( * ) * 68 / + + 87
----
-36
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT ALL + + MAX( - 72 ) + COUNT( * ) + - + CAST( + 33 AS SIGNED )
----
-104

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL + + MAX ( - 72 ) + COUNT ( * ) + - + CAST ( + 33 AS INTEGER )
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT - 91 * COUNT( * ) + - + 47
----
-138

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT - 91 * COUNT ( * ) + - + 47
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT DISTINCT + 22 + - COALESCE ( 9, 78 ) - MAX( DISTINCT - + 64 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT + 22 + - COALESCE ( 9, 78 ) - MAX ( DISTINCT - + 64 ) AS col2
----
77

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT - - CASE + + COUNT( * ) WHEN + COUNT( 74 ) / - 51 + - 54 THEN - - 22 END / - - 47 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT - - CASE + + COUNT ( * ) WHEN + COUNT ( 74 ) / - 51 + - 54 THEN - - 22 END / - - 47 + - COUNT ( * )
----
NULL

query I rowsort
SELECT - - 33 * - 67 + + CASE - + 89 WHEN - 12 THEN NULL WHEN + 10 THEN - - 59 * + 91 + + 32 + + + 14 END
----
NULL

query I rowsort
SELECT - 67 * + 25
----
-1675

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT + ( - 37 ) / 68 * - 60 + + + 58 * + - 75 * 60 + 6 * 56 + SUM( ALL CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT + ( - 37 ) / 68 * - 60 + + + 58 * + - 75 * 60 + 6 * 56 + SUM ( ALL CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL + MIN( DISTINCT + 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + MIN ( DISTINCT + 3 ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3639
SELECT ALL CAST( NULL AS SIGNED ) * - 67 - - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL CAST ( NULL AS INTEGER ) * - 67 - - 57
----
NULL

query I rowsort
SELECT - 2 * 26
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT + COUNT( * ) + + 8 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3641
SELECT + COUNT ( * ) + + 8 AS col1
----
9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT + 1 + - - COUNT( * ), + 26 col0
----
2
26

skipif mysql # not compatible
query II rowsort label-3643
SELECT + 1 + - - COUNT ( * ), + 26 col0
----
2
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT ALL - 77 DIV + 55
----
-1

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL - 77 / + 55
----
-1

query I rowsort
SELECT ALL 83 * 74 AS col2
----
6142

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

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

query I rowsort
SELECT DISTINCT - 59 * + 35
----
-2065

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL 30 * + 18 * - COUNT( * ) AS col1
----
-540

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL 30 * + 18 * - COUNT ( * ) AS col1
----
-540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3649
SELECT - COUNT( DISTINCT 68 ) DIV - COALESCE ( - 50, - COALESCE ( - 56, - 91 * - - ( - 50 ) + 98 + - 19 ) ) * + 82
----
0

skipif mysql # not compatible
query I rowsort label-3649
SELECT - COUNT ( DISTINCT 68 ) / - COALESCE ( - 50, - COALESCE ( - 56, - 91 * - - ( - 50 ) + 98 + - 19 ) ) * + 82
----
0

query I rowsort
SELECT + 30 - - ( + 36 ) + + 14 col0
----
80

query I rowsort
SELECT + 35 * + + 51 AS col0
----
1785

query I rowsort
SELECT + 94 * 67 AS col1
----
6298

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT SUM( - 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3653
SELECT SUM ( - 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3654
SELECT ALL COUNT( * ) DIV - - 66, 34 col0
----
0
34

skipif mysql # not compatible
query II rowsort label-3654
SELECT ALL COUNT ( * ) / - - 66, 34 col0
----
0
34

query I rowsort
SELECT + 99 * - - 82 AS col0
----
8118

onlyif mysql # aggregate syntax: 
query II rowsort label-3656
SELECT DISTINCT 11 + - - COUNT( * ), - 7 AS col2
----
12
-7

skipif mysql # not compatible
query II rowsort label-3656
SELECT DISTINCT 11 + - - COUNT ( * ), - 7 AS col2
----
12
-7

query I rowsort
SELECT ALL 82 + 35 AS col0
----
117

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3659
SELECT DISTINCT + 51 + + + 77 DIV 42 + - COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT + 51 + + + 77 / 42 + - COUNT ( * ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3660
SELECT + 79 + - 59 + - 72 + - - COUNT( DISTINCT - + 33 ) * + 69 + + 6 AS col1, - 82 AS col2
----
23
-82

skipif mysql # not compatible
query II rowsort label-3660
SELECT + 79 + - 59 + - 72 + - - COUNT ( DISTINCT - + 33 ) * + 69 + + 6 AS col1, - 82 AS col2
----
23
-82

query I rowsort
SELECT ALL + 18 + + 35 + + - ( - 0 ) AS col2
----
53

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT - 29 + - - 18 * + 14 + + - CAST( + 70 AS SIGNED )
----
153

skipif mysql # not compatible
query I rowsort label-3664
SELECT - 29 + - - 18 * + 14 + + - CAST ( + 70 AS INTEGER )
----
153

query I rowsort
SELECT ALL - 77 + - - 59 + + 6
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT DISTINCT + - 80 DIV + 17 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT + - 80 / + 17 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT 2 + + - CASE 6 WHEN + AVG ( 82 ) THEN + 64 ELSE NULL END * + - COALESCE ( - + 96, 81, + + COUNT( * ) + - 51 * + 24 ) + + + 55 / 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT 2 + + - CASE 6 WHEN + AVG ( 82 ) THEN + 64 ELSE NULL END * + - COALESCE ( - + 96, 81, + + COUNT ( * ) + - 51 * + 24 ) + + + 55 / 84 col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT + + 13 - COUNT ( * ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3669
SELECT + CASE + 5 WHEN + 73 * - 34 + - ( + 10 ) THEN + COUNT( * ) ELSE NULL END AS col1, + 73 * + 88 * + ( + + 34 )
----
NULL
218416

skipif mysql # not compatible
query II rowsort label-3669
SELECT + CASE + 5 WHEN + 73 * - 34 + - ( + 10 ) THEN + COUNT ( * ) ELSE NULL END AS col1, + 73 * + 88 * + ( + + 34 )
----
NULL
218416

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT + SUM( ALL + + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3670
SELECT + SUM ( ALL + + 11 ) AS col1
----
11

query II rowsort
SELECT ALL + 41 - - 55, 62 + - + 99 - + 58 * + 40 * 11 AS col1
----
96
-25557

query I rowsort
SELECT 81 * 89
----
7209

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + 87 * - SUM( DISTINCT + 15 )
----
-1305

skipif mysql # not compatible
query I rowsort label-3673
SELECT + 87 * - SUM ( DISTINCT + 15 )
----
-1305

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

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + 45 - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3675
SELECT DISTINCT - 91 * + + COUNT( DISTINCT NULLIF ( 7, - - 61 ) ) AS col2, 99 AS col2
----
-91
99

skipif mysql # not compatible
query II rowsort label-3675
SELECT DISTINCT - 91 * + + COUNT ( DISTINCT NULLIF ( 7, - - 61 ) ) AS col2, 99 AS col2
----
-91
99

query I rowsort
SELECT DISTINCT - ( - - 40 ) AS col0
----
-40

query II rowsort
SELECT DISTINCT - 54, + 26 AS col1
----
-54
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ( - + 56 ) * + NULLIF ( + 0, - 28 * 15 / 68 ) - - - COUNT( * ) * - 76 col2
----
76

skipif mysql # not compatible
query I rowsort label-3678
SELECT ( - + 56 ) * + NULLIF ( + 0, - 28 * 15 / 68 ) - - - COUNT ( * ) * - 76 col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-3679
SELECT 12 * + SUM( - ( - + 21 ) ) * - 3, CASE 22 WHEN 49 - + 56 * 14 THEN - MIN( DISTINCT - 97 ) END AS col2
----
-756
NULL

skipif mysql # not compatible
query II rowsort label-3679
SELECT 12 * + SUM ( - ( - + 21 ) ) * - 3, CASE 22 WHEN 49 - + 56 * 14 THEN - MIN ( DISTINCT - 97 ) END AS col2
----
-756
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT + 11 * + COUNT( * ) * 33 + - COUNT( * )
----
362

skipif mysql # not compatible
query I rowsort label-3680
SELECT + 11 * + COUNT ( * ) * 33 + - COUNT ( * )
----
362

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT 92 + + CASE COUNT( * ) WHEN - - 59 * - CASE + 84 WHEN + COUNT( ALL 82 ) THEN + + 2 ELSE NULL END + + 60 - 26 THEN - - AVG ( DISTINCT + + 26 ) + + 79 WHEN + + 43 THEN 63 + - + 89 WHEN - 98 * + + 25 * 23 + - - MIN( 34 ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT 92 + + CASE COUNT ( * ) WHEN - - 59 * - CASE + 84 WHEN + COUNT ( ALL 82 ) THEN + + 2 ELSE NULL END + + 60 - 26 THEN - - AVG ( DISTINCT + + 26 ) + + 79 WHEN + + 43 THEN 63 + - + 89 WHEN - 98 * + + 25 * 23 + - - MIN ( 34 ) THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT 1 * - 27 - 9 col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3683
SELECT 71 AS col1, + 79 - COUNT( - 53 ) DIV + - NULLIF ( COALESCE ( + 5, - 12 * 92 ), - ( + CAST( NULL AS SIGNED ) ) ) AS col2
----
71
79

skipif mysql # not compatible
query II rowsort label-3683
SELECT 71 AS col1, + 79 - COUNT ( - 53 ) / + - NULLIF ( COALESCE ( + 5, - 12 * 92 ), - ( + CAST ( NULL AS INTEGER ) ) ) AS col2
----
71
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3684
SELECT DISTINCT + 29 DIV - 2 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT + 29 / - 2 AS col1
----
-14

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

query II rowsort
SELECT DISTINCT 19 col2, - 37
----
19
-37

query I rowsort
SELECT DISTINCT 88 + - 36 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT - ( - 92 ) + 72 + + COUNT( ALL - - 36 ) * - ( - 92 ) AS col1
----
256

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT - ( - 92 ) + 72 + + COUNT ( ALL - - 36 ) * - ( - 92 ) AS col1
----
256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT + 20 + - CASE - + 33 WHEN + COUNT( * ) THEN 39 + + 24 WHEN - 20 THEN 8 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT + 20 + - CASE - + 33 WHEN + COUNT ( * ) THEN 39 + + 24 WHEN - 20 THEN 8 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL + ( - 8 ) + - - COUNT( * ) * - - COUNT( DISTINCT - + 20 ) - - + 55 + + 39
----
87

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL + ( - 8 ) + - - COUNT ( * ) * - - COUNT ( DISTINCT - + 20 ) - - + 55 + + 39
----
87

query I rowsort
SELECT 68 + + - 93 + + - 31
----
-56

query I rowsort
SELECT 55 * - + 2
----
-110

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

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL COUNT ( * ) + - + 72 AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3695
SELECT ( - + CAST( + - 43 AS SIGNED ) ), 23 AS col2
----
43
23

skipif mysql # not compatible
query II rowsort label-3695
SELECT ( - + CAST ( + - 43 AS INTEGER ) ), 23 AS col2
----
43
23

query I rowsort
SELECT 45 + 74 * - - 27 * + 89 col0
----
177867

onlyif mysql # DIV for integer division: 
query I rowsort label-3697
SELECT ALL 30 DIV - + 36 col2
----
0

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL 30 / - + 36 col2
----
0

query I rowsort
SELECT ALL + COALESCE ( - 58, - + 45 + + 95 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT ALL - NULLIF ( + 16, 27 ) - ( + MAX( - 74 ) ) + + 85 AS col2
----
143

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL - NULLIF ( + 16, 27 ) - ( + MAX ( - 74 ) ) + + 85 AS col2
----
143

query I rowsort
SELECT DISTINCT ( - 28 ) - 70
----
-98

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT DISTINCT - - CAST( - 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT - - CAST ( - 40 AS INTEGER )
----
-40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT ALL + 14 DIV + + 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL + 14 / + + 70 AS col0
----
0

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

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

query I rowsort
SELECT 5 * 12 + 53 AS col2
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-3708
SELECT ALL + 14 DIV + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + 14 / + 82 AS col2
----
0

query I rowsort
SELECT 12 * + 12
----
144

query I rowsort
SELECT ALL - 42 + - 11 + + - 60 AS col0
----
-113

query II rowsort
SELECT + 50 AS col1, + 4 * 11
----
50
44

query I rowsort
SELECT 27 + + 17
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3713
SELECT ALL - CASE - + ( - 21 ) WHEN + COUNT( * ) + - - 63 THEN + 43 END AS col1, + 67 + - + 84 col1
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-3713
SELECT ALL - CASE - + ( - 21 ) WHEN + COUNT ( * ) + - - 63 THEN + 43 END AS col1, + 67 + - + 84 col1
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT 11 * + + COUNT( * ) * - 68 AS col1
----
-748

skipif mysql # not compatible
query I rowsort label-3714
SELECT 11 * + + COUNT ( * ) * - 68 AS col1
----
-748

onlyif mysql # aggregate syntax: 
query II rowsort label-3715
SELECT ALL + COUNT( * ) + - 13 * SUM( 17 ), 62 col0
----
-220
62

skipif mysql # not compatible
query II rowsort label-3715
SELECT ALL + COUNT ( * ) + - 13 * SUM ( 17 ), 62 col0
----
-220
62

query II rowsort
SELECT ALL - 85, 88 AS col1
----
-85
88

query I rowsort
SELECT ALL - 79 + + ( 10 ) AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3718
SELECT ALL - COALESCE ( + - 73, + ( + + 38 ), - NULLIF ( - - ( 30 ), COUNT( * ) ), + COUNT( * ) ) + - - ( + - 82 ) + - 78 DIV - COUNT( * ) col1
----
69

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - COALESCE ( + - 73, + ( + + 38 ), - NULLIF ( - - ( 30 ), COUNT ( * ) ), + COUNT ( * ) ) + - - ( + - 82 ) + - 78 / - COUNT ( * ) col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT 1 * SUM( NULLIF ( + 91, - + ( - 88 ) ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3719
SELECT 1 * SUM ( NULLIF ( + 91, - + ( - 88 ) ) ) AS col0
----
91

query I rowsort
SELECT ALL + 6 + 99 + + 85
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT SUM( DISTINCT 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT SUM ( DISTINCT 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT COUNT( * ) - - MAX( ALL 79 ) * + + ( + COUNT( * ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3722
SELECT COUNT ( * ) - - MAX ( ALL 79 ) * + + ( + COUNT ( * ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3723
SELECT - SUM( + 91 ), + 57 AS col1
----
-91
57

skipif mysql # not compatible
query II rowsort label-3723
SELECT - SUM ( + 91 ), + 57 AS col1
----
-91
57

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

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

query I rowsort
SELECT ALL + 1 * - - NULLIF ( 48, NULLIF ( 29, + + AVG ( DISTINCT 94 ) ) )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT 70 - 25 DIV - 62 + 80
----
150

skipif mysql # not compatible
query I rowsort label-3726
SELECT 70 - 25 / - 62 + 80
----
150

query I rowsort
SELECT DISTINCT 28 * + 5 * 75 * + 98
----
1029000

query I rowsort
SELECT - + 29 * + - 45
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT + ( ( + - 43 ) ) - - 21 + 1 * 42 * + 64 * + 22 + 69 - + + 79 - - 87 * 73 + + 37 * 16 * COUNT( * ) + + COUNT( * ) * COUNT( ALL + 79 ) AS col2
----
66048

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT + ( ( + - 43 ) ) - - 21 + 1 * 42 * + 64 * + 22 + 69 - + + 79 - - 87 * 73 + + 37 * 16 * COUNT ( * ) + + COUNT ( * ) * COUNT ( ALL + 79 ) AS col2
----
66048

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT - + 85 + NULLIF ( + 91, - + SUM( DISTINCT - - 10 ) )
----
6

skipif mysql # not compatible
query I rowsort label-3730
SELECT - + 85 + NULLIF ( + 91, - + SUM ( DISTINCT - - 10 ) )
----
6

query II rowsort
SELECT ALL - - 71 - 17, 43 AS col2
----
54
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3732
SELECT - ( - ( - 70 ) ) * 87 - SUM( + 24 ) + - 42 + - COUNT( * ) * - 17 - + 71 * + - COALESCE ( - 64, + 62 ) + - 51 * COUNT( * ) DIV + 61 AS col0
----
-10683

skipif mysql # not compatible
query I rowsort label-3732
SELECT - ( - ( - 70 ) ) * 87 - SUM ( + 24 ) + - 42 + - COUNT ( * ) * - 17 - + 71 * + - COALESCE ( - 64, + 62 ) + - 51 * COUNT ( * ) / + 61 AS col0
----
-10683

onlyif mysql # aggregate syntax: 
query II rowsort label-3733
SELECT + 42 * + - 72 AS col2, + CASE + 96 WHEN - 74 THEN - 21 WHEN + 58 + - ( COALESCE ( 19, - - 96 / - 44 + + - 63 + - + 74 - + 60 * - 51 * + 55 + 12 + - - 49 - + + 65 * - + COUNT( DISTINCT + 78 ) ) ) THEN NULL END * 1
----
-3024
NULL

skipif mysql # not compatible
query II rowsort label-3733
SELECT + 42 * + - 72 AS col2, + CASE + 96 WHEN - 74 THEN - 21 WHEN + 58 + - ( COALESCE ( 19, - - 96 / - 44 + + - 63 + - + 74 - + 60 * - 51 * + 55 + 12 + - - 49 - + + 65 * - + COUNT ( DISTINCT + 78 ) ) ) THEN NULL END * 1
----
-3024
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3734
SELECT DISTINCT 18 AS col1, - 76 + + 62 DIV + + COUNT( * ) + + - 21
----
18
-35

skipif mysql # not compatible
query II rowsort label-3734
SELECT DISTINCT 18 AS col1, - 76 + + 62 / + + COUNT ( * ) + + - 21
----
18
-35

query I rowsort
SELECT ALL CASE - 25 WHEN + 34 * + - 31 THEN - + 96 / + 91 * + 67 END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3736
SELECT ALL 30 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL 30 / + 83 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3737
SELECT + - 14 DIV + 44 + + 92 DIV MIN( + + 73 ) - + COALESCE ( - 65, - SUM( 25 ) ) AS col0, 91 AS col0
----
66
91

skipif mysql # not compatible
query II rowsort label-3737
SELECT + - 14 / + 44 + + 92 / MIN ( + + 73 ) - + COALESCE ( - 65, - SUM ( 25 ) ) AS col0, 91 AS col0
----
66
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT + 13 + + 73 - ( - 14 ) + - MAX( ALL + + 93 ) * 40 + 35 col0
----
-3585

skipif mysql # not compatible
query I rowsort label-3738
SELECT + 13 + + 73 - ( - 14 ) + - MAX ( ALL + + 93 ) * 40 + 35 col0
----
-3585

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT + + 28 * + ( + 64 ) + - 28 + 20 * + - COUNT( * ) * - 76 col2
----
3284

skipif mysql # not compatible
query I rowsort label-3739
SELECT + + 28 * + ( + 64 ) + - 28 + 20 * + - COUNT ( * ) * - 76 col2
----
3284

onlyif mysql # DIV for integer division: 
query II rowsort label-3740
SELECT ALL + 0 AS col2, - 68 DIV + 67
----
0
-1

skipif mysql # not compatible
query II rowsort label-3740
SELECT ALL + 0 AS col2, - 68 / + 67
----
0
-1

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

query I rowsort
SELECT + 97 * - + 97 + + 27 + - NULLIF ( + - 26, + - 44 ) AS col2
----
-9356

query I rowsort
SELECT + 43 * - COALESCE ( - - ( + 96 ), - - 0 - + 33, - + 67 ) * 28
----
-115584

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3744
SELECT 19 * MIN( DISTINCT - + 57 ) + + 25 + + 71 + + + 52 DIV - 65, 14 AS col1
----
-987
14

skipif mysql # not compatible
query II rowsort label-3744
SELECT 19 * MIN ( DISTINCT - + 57 ) + + 25 + + 71 + + + 52 / - 65, 14 AS col1
----
-987
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT MAX( DISTINCT + 76 ) * + MIN( + 75 ) AS col0
----
5700

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT MAX ( DISTINCT + 76 ) * + MIN ( + 75 ) AS col0
----
5700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT ALL - 25 * COUNT( * ) + - NULLIF ( + + 16, + 97 ) + 27 DIV - ( 45 )
----
-41

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL - 25 * COUNT ( * ) + - NULLIF ( + + 16, + 97 ) + 27 / - ( 45 )
----
-41

query I rowsort
SELECT + COALESCE ( ( - 20 ), 67 + ( - COALESCE ( - - 74, - - 14 ) ) )
----
-20

query I rowsort
SELECT NULLIF ( 86, + - 5 )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3749
SELECT ALL + 9 * + - COUNT( * ) + - 9 * - ( + - 90 ) + + 60 + + 26 AS col0, 35 * 8 AS col1
----
-733
280

skipif mysql # not compatible
query II rowsort label-3749
SELECT ALL + 9 * + - COUNT ( * ) + - 9 * - ( + - 90 ) + + 60 + + 26 AS col0, 35 * 8 AS col1
----
-733
280

query I rowsort
SELECT DISTINCT - 43 * + 31 + - 88 AS col1
----
-1421

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT CASE + ( + COUNT( * ) ) WHEN 7 THEN NULL ELSE - 41 + + - 64 END col1
----
-105

skipif mysql # not compatible
query I rowsort label-3751
SELECT CASE + ( + COUNT ( * ) ) WHEN 7 THEN NULL ELSE - 41 + + - 64 END col1
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3752
SELECT - COUNT( * ) * 58 * + - 83 * 78 * + 63 * + - 34 - 85 + + 38 + 33 * - COALESCE ( - 51, - - CASE CAST( NULL AS DECIMAL ) WHEN + 43 THEN + 39 WHEN 17 / - + COUNT( * ) THEN NULL WHEN ( - ( + 15 ) ) + + COALESCE ( + COUNT( ALL + + 32 ), - 99, CAST( NULL AS SIGNED ) ) + 61 THEN NULL ELSE - - 5 END + 66, - - ( - ( + 79 ) ) ) AS col1
----
-804302228

skipif mysql # not compatible
query I rowsort label-3752
SELECT - COUNT ( * ) * 58 * + - 83 * 78 * + 63 * + - 34 - 85 + + 38 + 33 * - COALESCE ( - 51, - - CASE CAST ( NULL AS REAL ) WHEN + 43 THEN + 39 WHEN 17 / - + COUNT ( * ) THEN NULL WHEN ( - ( + 15 ) ) + + COALESCE ( + COUNT ( ALL + + 32 ), - 99, CAST ( NULL AS INTEGER ) ) + 61 THEN NULL ELSE - - 5 END + 66, - - ( - ( + 79 ) ) ) AS col1
----
-804302228

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

skipif mysql # not compatible
query I rowsort label-3753
SELECT + NULLIF ( + COUNT ( * ), - 50 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3754
SELECT - 29 DIV + 46 * + MAX( 70 )
----
0

skipif mysql # not compatible
query I rowsort label-3754
SELECT - 29 / + 46 * + MAX ( 70 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT + 41 + - + COUNT( ALL ( 25 ) )
----
40

skipif mysql # not compatible
query I rowsort label-3755
SELECT + 41 + - + COUNT ( ALL ( 25 ) )
----
40

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

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

query I rowsort
SELECT ALL - 33 * - 68 + + 2
----
2246

query I rowsort
SELECT - 64 * ( + 97 ) + 64
----
-6144

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + 76 * COUNT( 89 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3759
SELECT + 76 * COUNT ( 89 ) AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT ALL - CAST( NULL AS SIGNED ) * + - 38 * - + COALESCE ( + 3, - 79 ) * 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 38 * - + COALESCE ( + 3, - 79 ) * 50 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT + + 25 + + MIN( DISTINCT - + 6 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3761
SELECT + + 25 + + MIN ( DISTINCT - + 6 ) AS col1
----
19

query I rowsort
SELECT ALL - 14 * - - 66 * - - ( + 94 )
----
-86856

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT DISTINCT 33 * 83 - + + SUM( - 77 )
----
2816

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT 33 * 83 - + + SUM ( - 77 )
----
2816

query I rowsort
SELECT ALL - 0 * 12 - 40 AS col2
----
-40

query I rowsort
SELECT - + 75 * + 28
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL - MAX( DISTINCT 15 ) * - - NULLIF ( + 66, - 66 * + - 69 * + - CASE - 14 WHEN - CASE + + 22 WHEN + 18 THEN 29 WHEN + 90 THEN NULL END / - - 87 THEN - 24 WHEN + 60 - + + 45 THEN - 97 * - 24 END )
----
-990

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL - MAX ( DISTINCT 15 ) * - - NULLIF ( + 66, - 66 * + - 69 * + - CASE - 14 WHEN - CASE + + 22 WHEN + 18 THEN 29 WHEN + 90 THEN NULL END / - - 87 THEN - 24 WHEN + 60 - + + 45 THEN - 97 * - 24 END )
----
-990

query II rowsort
SELECT DISTINCT + COALESCE ( 23, - + 3, 59 * 75 ) - 25 + - 40, + 61 * + - 78 AS col1
----
-42
-4758

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT DISTINCT - COALESCE ( 81, - - COUNT( DISTINCT ( + 11 ) ) - 79 * - 0, + 47 * - 0 * 0 )
----
-81

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT - COALESCE ( 81, - - COUNT ( DISTINCT ( + 11 ) ) - 79 * - 0, + 47 * - 0 * 0 )
----
-81

query I rowsort
SELECT - 18 + - 45 AS col1
----
-63

query I rowsort
SELECT - 31 + + 28
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT ALL - NULLIF ( - 85, + 3 - + + CAST( - 29 AS SIGNED ) )
----
85

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL - NULLIF ( - 85, + 3 - + + CAST ( - 29 AS INTEGER ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT + MAX( ALL + 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3772
SELECT + MAX ( ALL + 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT + + COUNT( * ) + 66 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3773
SELECT + + COUNT ( * ) + 66 AS col2
----
67

query I rowsort
SELECT ALL + ( + + 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL - 62 * + 41 - + COUNT( * )
----
-2543

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL - 62 * + 41 - + COUNT ( * )
----
-2543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3776
SELECT DISTINCT NULLIF ( - 99, + - 28 / + - 67 - MIN( + CAST( NULL AS SIGNED ) ) ) * + + 7 * - SUM( DISTINCT + 75 )
----
51975

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT NULLIF ( - 99, + - 28 / + - 67 - MIN ( + CAST ( NULL AS INTEGER ) ) ) * + + 7 * - SUM ( DISTINCT + 75 )
----
51975

query II rowsort
SELECT ALL 64 + + 99 AS col2, 16 * 90 * - 32 - + 83 AS col0
----
163
-46163

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT - SUM( ALL + - ( + ( - + 1 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT - SUM ( ALL + - ( + ( - + 1 ) ) ) AS col2
----
-1

query II rowsort
SELECT + 43 + - 9 + + 7 AS col1, 10
----
41
10

query I rowsort
SELECT + 19 * + 73
----
1387

query I rowsort
SELECT ALL + 41 + 84 col0
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT + CAST( + + ( + 84 ) AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-3782
SELECT + CAST ( + + ( + 84 ) AS INTEGER )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3783
SELECT ALL + 15 / + + COUNT( * ) + - CAST( NULL AS SIGNED ) * - 26 * + 34 + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL + 15 / + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * - 26 * + 34 + - 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT DISTINCT 65 * + + CAST( NULL AS SIGNED ) / - ( + ( + + 37 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT 65 * + + CAST ( NULL AS INTEGER ) / - ( + ( + + 37 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3785
SELECT - 61 * - COUNT( * ) + - - 77 DIV - - 74 AS col0, 4 col1
----
62
4

skipif mysql # not compatible
query II rowsort label-3785
SELECT - 61 * - COUNT ( * ) + - - 77 / - - 74 AS col0, 4 col1
----
62
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT CAST( + 1 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3786
SELECT CAST ( + 1 AS INTEGER ) AS col0
----
1

query I rowsort
SELECT ALL 11 * + - 14
----
-154

query I rowsort
SELECT + 17 * CASE + 86 WHEN - 51 THEN - 84 END col0
----
NULL

query I rowsort
SELECT + ( 39 ) col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT 62 + - COUNT( * ) * + - ( + ( + 49 ) ) - - - 35 * - 37
----
1406

skipif mysql # not compatible
query I rowsort label-3790
SELECT 62 + - COUNT ( * ) * + - ( + ( + 49 ) ) - - - 35 * - 37
----
1406

query I rowsort
SELECT ALL 22 * + 78 col2
----
1716

query I rowsort
SELECT ALL - - ( + 66 )
----
66

query I rowsort
SELECT DISTINCT - ( - 73 ) AS col1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT ALL - 18 / - CASE - - CAST( NULL AS SIGNED ) WHEN - 55 THEN - + 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - 18 / - CASE - - CAST ( NULL AS INTEGER ) WHEN - 55 THEN - + 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT - COALESCE ( + + 2, - 61 * + + 44 + 54 + + COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-3795
SELECT - COALESCE ( + + 2, - 61 * + + 44 + 54 + + COUNT ( * ) )
----
-2

query I rowsort
SELECT ALL - 7 - 83 col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL MAX( ALL - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL MAX ( ALL - 3 ) AS col2
----
-3

query I rowsort
SELECT + 46 * - 26
----
-1196

onlyif mysql # aggregate syntax: 
query II rowsort label-3799
SELECT + 15 * - 63 + + COUNT( * ) col1, + COALESCE ( - - 45, + ( - 83 ) ) col1
----
-944
45

skipif mysql # not compatible
query II rowsort label-3799
SELECT + 15 * - 63 + + COUNT ( * ) col1, + COALESCE ( - - 45, + ( - 83 ) ) col1
----
-944
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT + MIN( ALL + 45 ) - - + COUNT( * ) col2
----
46

skipif mysql # not compatible
query I rowsort label-3800
SELECT + MIN ( ALL + 45 ) - - + COUNT ( * ) col2
----
46

query I rowsort
SELECT + ( + - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-3802
SELECT ALL + 8 * - 5 + 83, - COUNT( * ) AS col2
----
43
-1

skipif mysql # not compatible
query II rowsort label-3802
SELECT ALL + 8 * - 5 + 83, - COUNT ( * ) AS col2
----
43
-1

query I rowsort
SELECT - 82 * - 46 col0
----
3772

query I rowsort
SELECT ALL ( + 34 ) * 74
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT - 95 * + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-3805
SELECT - 95 * + COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3806
SELECT DISTINCT - SUM( + - 11 ) * - 67 AS col2, 27 DIV + + 53
----
-737
0

skipif mysql # not compatible
query II rowsort label-3806
SELECT DISTINCT - SUM ( + - 11 ) * - 67 AS col2, 27 / + + 53
----
-737
0

query I rowsort
SELECT ALL + - 29 + - - 51 AS col0
----
22

query II rowsort
SELECT - 62 + - - 15 - + 85 AS col1, 46 * + 48
----
-132
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT + 32 - + COALESCE ( - COUNT( * ), + COUNT( * ) + - 0 + 48 * - COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-3809
SELECT + 32 - + COALESCE ( - COUNT ( * ), + COUNT ( * ) + - 0 + 48 * - COUNT ( * ) )
----
33

query I rowsort
SELECT - ( 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT 86 + - + SUM( 95 ) + 94 + 55 + 46 AS col2
----
186

skipif mysql # not compatible
query I rowsort label-3811
SELECT 86 + - + SUM ( 95 ) + 94 + 55 + 46 AS col2
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL - COUNT( * ) + + + 19
----
18

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - COUNT ( * ) + + + 19
----
18

query II rowsort
SELECT ALL + 56 + + + 6 AS col1, 24 col1
----
62
24

query I rowsort
SELECT ALL + ( - 24 ) + - 53 + 19
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT ALL - 56 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL - 56 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 21 * 22 AS col2
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL - 83 * - + SUM( 75 ) AS col0
----
6225

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL - 83 * - + SUM ( 75 ) AS col0
----
6225

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT 27 DIV - 30
----
0

skipif mysql # not compatible
query I rowsort label-3818
SELECT 27 / - 30
----
0

query I rowsort
SELECT ALL - 11 - 52
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT 11 * MIN( + 55 )
----
605

skipif mysql # not compatible
query I rowsort label-3820
SELECT 11 * MIN ( + 55 )
----
605

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3821
SELECT - 19 DIV - 5 + CAST( - - 9 AS SIGNED ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3821
SELECT - 19 / - 5 + CAST ( - - 9 AS INTEGER ) AS col0
----
12

query I rowsort
SELECT DISTINCT - ( + 78 )
----
-78

query I rowsort
SELECT 27 + - - 17 * + 20
----
367

onlyif mysql # DIV for integer division: 
query I rowsort label-3824
SELECT 30 DIV + ( + ( 69 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3824
SELECT 30 / + ( + ( 69 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3825
SELECT COUNT( * ) * + 12 AS col0, + COALESCE ( - - ( - 39 ), + 61 * + 49, + 49 ) + + + 56 AS col2
----
12
17

skipif mysql # not compatible
query II rowsort label-3825
SELECT COUNT ( * ) * + 12 AS col0, + COALESCE ( - - ( - 39 ), + 61 * + 49, + 49 ) + + + 56 AS col2
----
12
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL - 93 - - + MAX( DISTINCT - 57 ) + + - 74 AS col0
----
-224

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL - 93 - - + MAX ( DISTINCT - 57 ) + + - 74 AS col0
----
-224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3827
SELECT DISTINCT 99 * CASE ( - - COUNT( * ) ) WHEN - 27 * + 83 THEN + ( + 73 ) WHEN + ( - NULLIF ( + 65, CASE - + MIN( ALL - CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) THEN - 45 WHEN - 30 + 41 THEN NULL WHEN - - 15 * - COUNT( * ) THEN + 84 * 57 END + - 21 ) ) * - + CASE - + 48 WHEN ( 89 ) + - + 64 * 90 THEN + 64 WHEN + 87 * + - 16 THEN - + 48 END + + COALESCE ( 71, - 21 + NULLIF ( 44, + COUNT( * ) + 75 * COUNT( ALL - 9 + 91 * - 76 ) ) ) * - 46 THEN + 93 / - MIN( 41 ) + ( ( 24 ) ) ELSE NULL END * + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT 99 * CASE ( - - COUNT ( * ) ) WHEN - 27 * + 83 THEN + ( + 73 ) WHEN + ( - NULLIF ( + 65, CASE - + MIN ( ALL - CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) THEN - 45 WHEN - 30 + 41 THEN NULL WHEN - - 15 * - COUNT ( * ) THEN + 84 * 57 END + - 21 ) ) * - + CASE - + 48 WHEN ( 89 ) + - + 64 * 90 THEN + 64 WHEN + 87 * + - 16 THEN - + 48 END + + COALESCE ( 71, - 21 + NULLIF ( 44, + COUNT ( * ) + 75 * COUNT ( ALL - 9 + 91 * - 76 ) ) ) * - 46 THEN + 93 / - MIN ( 41 ) + ( ( 24 ) ) ELSE NULL END * + 74 AS col1
----
NULL

query I rowsort
SELECT ( + + 0 ) * + 56 + + 29 * - - 87 - 58 AS col2
----
2465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3829
SELECT - 64 DIV + + CAST( - + MIN( + - 81 ) AS SIGNED ) * + 54
----
0

skipif mysql # not compatible
query I rowsort label-3829
SELECT - 64 / + + CAST ( - + MIN ( + - 81 ) AS INTEGER ) * + 54
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3830
SELECT CAST( NULL AS SIGNED ) + + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT CAST ( NULL AS INTEGER ) + + 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT 47 * + 30 + - COALESCE ( + COUNT( * ), - 13 ) AS col1
----
1409

skipif mysql # not compatible
query I rowsort label-3831
SELECT 47 * + 30 + - COALESCE ( + COUNT ( * ), - 13 ) AS col1
----
1409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3832
SELECT ALL + 62 * + 20 * + CAST( COUNT( * ) AS SIGNED )
----
1240

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + 62 * + 20 * + CAST ( COUNT ( * ) AS INTEGER )
----
1240

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT + 44 * + - 77 + + 31 DIV 64 * - + 5 + - + 1 col0
----
-3389

skipif mysql # not compatible
query I rowsort label-3833
SELECT + 44 * + - 77 + + 31 / 64 * - + 5 + - + 1 col0
----
-3389

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT + COUNT( ALL + + 60 ) * + ( + + 99 ) + - 57 - 79 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3834
SELECT + COUNT ( ALL + + 60 ) * + ( + + 99 ) + - 57 - 79 AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3835
SELECT ALL - COUNT( DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - COUNT ( DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT 17 + + + COALESCE ( - 47, + 26 + + - 98 * MAX( - 19 ), + - 36 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3836
SELECT 17 + + + COALESCE ( - 47, + 26 + + - 98 * MAX ( - 19 ), + - 36 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT - MIN( DISTINCT 86 ) * + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3837
SELECT - MIN ( DISTINCT 86 ) * + - COUNT ( * )
----
86

query I rowsort
SELECT ALL - 85 + 46 + - 56 + - 9 AS col1
----
-104

query I rowsort
SELECT + 29 + - + 93
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT DISTINCT + 52 + - COUNT( ALL 38 )
----
51

skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT + 52 + - COUNT ( ALL 38 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3841
SELECT ( + - COUNT( + 63 ) ) DIV - COALESCE ( + + 63, + 84, - 68, + 53 ) DIV 9 * - - 5 + - - MAX( ALL + 94 ) * - ( - - ( 42 ) ) AS col1, 23 * 27
----
-3948
621

skipif mysql # not compatible
query II rowsort label-3841
SELECT ( + - COUNT ( + 63 ) ) / - COALESCE ( + + 63, + 84, - 68, + 53 ) / 9 * - - 5 + - - MAX ( ALL + 94 ) * - ( - - ( 42 ) ) AS col1, 23 * 27
----
-3948
621

query I rowsort
SELECT DISTINCT - 96 * 6 AS col0
----
-576

query I rowsort
SELECT 5 * + 17 AS col0
----
85

query I rowsort
SELECT ALL 48 + + 47 col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT COUNT( * ) * - 98 * + + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT COUNT ( * ) * - 98 * + + COUNT ( * )
----
-98

query I rowsort
SELECT ALL + 24 - - 82 + 69 AS col0
----
175

query I rowsort
SELECT DISTINCT 1 * + 49
----
49

query I rowsort
SELECT 30 * 60 col1
----
1800

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3849
SELECT ALL + CAST( NULL AS DECIMAL ) - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL + CAST ( NULL AS REAL ) - 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT - CASE 41 WHEN 41 THEN - COUNT( * ) * - - 26 + + + 91 * - 12 WHEN AVG ( ALL + - 16 ) * 32 THEN 47 END AS col2
----
1118

skipif mysql # not compatible
query I rowsort label-3850
SELECT - CASE 41 WHEN 41 THEN - COUNT ( * ) * - - 26 + + + 91 * - 12 WHEN AVG ( ALL + - 16 ) * 32 THEN 47 END AS col2
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL COUNT( DISTINCT + NULLIF ( + 90, 38 + + ( 67 ) * - 18 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL COUNT ( DISTINCT + NULLIF ( + 90, 38 + + ( 67 ) * - 18 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT - COUNT( + 95 ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3852
SELECT - COUNT ( + 95 ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL + COUNT( ALL 12 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL + COUNT ( ALL 12 ) AS col0
----
1

query I rowsort
SELECT - 53 - + - 86 AS col2
----
33

query I rowsort
SELECT NULLIF ( - 69, - 25 ) col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT - COUNT( * ) * + 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3856
SELECT - COUNT ( * ) * + 36 AS col2
----
-36

query I rowsort
SELECT ALL + 16 * + 41 AS col1
----
656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3858
SELECT - COUNT( - + CAST( + 80 AS SIGNED ) ) + + + 10
----
9

skipif mysql # not compatible
query I rowsort label-3858
SELECT - COUNT ( - + CAST ( + 80 AS INTEGER ) ) + + + 10
----
9

query I rowsort
SELECT DISTINCT + 7 * + ( 98 ) AS col1
----
686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( 38 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( 38 ) col1
----
NULL

query I rowsort
SELECT - 1 * 63
----
-63

query I rowsort
SELECT ALL + 91 * - 79
----
-7189

query I rowsort
SELECT DISTINCT + ( - - 21 ) AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT ALL + 87 * - CASE + 33 WHEN + 10 THEN + 5 - + 35 WHEN - 87 THEN + + AVG ( 26 ) * - ( - 30 ) * ( + - CAST( + 6 AS SIGNED ) ) ELSE NULL END + 30 + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL + 87 * - CASE + 33 WHEN + 10 THEN + 5 - + 35 WHEN - 87 THEN + + AVG ( 26 ) * - ( - 30 ) * ( + - CAST ( + 6 AS INTEGER ) ) ELSE NULL END + 30 + 15 AS col1
----
NULL

query I rowsort
SELECT - - 36 * - ( + 48 ) * 98
----
-169344

query I rowsort
SELECT + CASE - - 94 WHEN 17 THEN + 40 + 62 * + 67 END AS col1
----
NULL

query II rowsort
SELECT + + 16 AS col1, 88
----
16
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL - 1 * - 51 + + - ( 25 ) * + 47 + 72 * 73 * - COUNT( ALL - 64 ) * - 66 * + 91
----
31566412

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL - 1 * - 51 + + - ( 25 ) * + 47 + 72 * 73 * - COUNT ( ALL - 64 ) * - 66 * + 91
----
31566412

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT - SUM( - + 88 ) * - COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3869
SELECT - SUM ( - + 88 ) * - COUNT ( * ) AS col1
----
-88

query I rowsort
SELECT ALL + ( + - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT 95 * 36 * + COUNT( * ) + + 26
----
3446

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT 95 * 36 * + COUNT ( * ) + + 26
----
3446

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL ( - CASE + + 94 WHEN + COUNT( * ) THEN + 78 + COUNT( + - 62 ) / - COUNT( * ) END ) + + + COUNT( ALL - 86 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL ( - CASE + + 94 WHEN + COUNT ( * ) THEN + 78 + COUNT ( + - 62 ) / - COUNT ( * ) END ) + + + COUNT ( ALL - 86 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT + 56 * - - 32 * - 1 + + SUM( + 10 ) * - ( + + ( + + COALESCE ( - ( - 59 ), + 23 - 3 ) ) ) * NULLIF ( + MIN( + 7 ), + 91 )
----
-5922

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT + 56 * - - 32 * - 1 + + SUM ( + 10 ) * - ( + + ( + + COALESCE ( - ( - 59 ), + 23 - 3 ) ) ) * NULLIF ( + MIN ( + 7 ), + 91 )
----
-5922

query I rowsort
SELECT - 53 - 17
----
-70

query I rowsort
SELECT + + 59 + 7
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3876
SELECT DISTINCT 96 + CAST( 90 AS SIGNED )
----
186

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT 96 + CAST ( 90 AS INTEGER )
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL ( + NULLIF ( + 62, - SUM( + ( 35 ) ) ) ) - - 32 * + 83 AS col0
----
2718

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL ( + NULLIF ( + 62, - SUM ( + ( 35 ) ) ) ) - - 32 * + 83 AS col0
----
2718

query I rowsort
SELECT + 60 * - 55
----
-3300

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3879
SELECT + 13 - - CASE - CAST( - 49 AS DECIMAL ) WHEN - - ( + 0 ) THEN NULL WHEN + 78 THEN COALESCE ( COUNT( * ), - 40 ) ELSE - 64 END
----
-51

skipif mysql # not compatible
query I rowsort label-3879
SELECT + 13 - - CASE - CAST ( - 49 AS REAL ) WHEN - - ( + 0 ) THEN NULL WHEN + 78 THEN COALESCE ( COUNT ( * ), - 40 ) ELSE - 64 END
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT + 89 - - COALESCE ( 69, - ( + - CAST( - NULLIF ( + + 46, - 72 / 17 + + + 41 ) AS SIGNED ) ) ) AS col2
----
158

skipif mysql # not compatible
query I rowsort label-3880
SELECT + 89 - - COALESCE ( 69, - ( + - CAST ( - NULLIF ( + + 46, - 72 / 17 + + + 41 ) AS INTEGER ) ) ) AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL COUNT( 36 ) - - ( + 89 )
----
90

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL COUNT ( 36 ) - - ( + 89 )
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3882
SELECT DISTINCT CAST( - - 29 AS SIGNED ) DIV - - 2
----
14

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT CAST ( - - 29 AS INTEGER ) / - - 2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3883
SELECT + 77 + + + 45 + + MAX( - - 98 ) * - 32 * CAST( + 11 AS SIGNED )
----
-34374

skipif mysql # not compatible
query I rowsort label-3883
SELECT + 77 + + + 45 + + MAX ( - - 98 ) * - 32 * CAST ( + 11 AS INTEGER )
----
-34374

query I rowsort
SELECT + 94 * + - 58 * - 0
----
0

query I rowsort
SELECT - ( + - 33 ) AS col2
----
33

query I rowsort
SELECT DISTINCT + 48 * + 46
----
2208

onlyif mysql # DIV for integer division: 
query II rowsort label-3887
SELECT + 47 DIV + + 71 AS col1, - 55 * - - 25 AS col2
----
0
-1375

skipif mysql # not compatible
query II rowsort label-3887
SELECT + 47 / + + 71 AS col1, - 55 * - - 25 AS col2
----
0
-1375

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL 52 * COUNT( * ) * + 47 col0
----
2444

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL 52 * COUNT ( * ) * + 47 col0
----
2444

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT ALL + COUNT( * ), + 21 AS col1
----
1
21

skipif mysql # not compatible
query II rowsort label-3889
SELECT ALL + COUNT ( * ), + 21 AS col1
----
1
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT CAST( + - 82 AS SIGNED ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-3890
SELECT CAST ( + - 82 AS INTEGER ) AS col0
----
-82

query I rowsort
SELECT ALL + NULLIF ( 61, + 90 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3892
SELECT CAST( NULL AS SIGNED ), 23 col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-3892
SELECT CAST ( NULL AS INTEGER ), 23 col1
----
NULL
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3893
SELECT DISTINCT ( + 9 ) * + + CASE + COUNT( ALL + - ( 47 ) ) WHEN + 40 + + 53 + ( + 82 ) * - CASE - + 55 WHEN + - 2 * 16 + MAX( ALL - 88 ) THEN NULL WHEN - 4 THEN - 62 * - + 10 END * - ( - CAST( + + 21 AS DECIMAL ) ) THEN - + 77 + - 44 - + + 3 * + ( 32 ) ELSE NULL END - - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT ( + 9 ) * + + CASE + COUNT ( ALL + - ( 47 ) ) WHEN + 40 + + 53 + ( + 82 ) * - CASE - + 55 WHEN + - 2 * 16 + MAX ( ALL - 88 ) THEN NULL WHEN - 4 THEN - 62 * - + 10 END * - ( - CAST ( + + 21 AS REAL ) ) THEN - + 77 + - 44 - + + 3 * + ( 32 ) ELSE NULL END - - 74 AS col2
----
NULL

query I rowsort
SELECT - 68 * + 37
----
-2516

query I rowsort
SELECT DISTINCT + NULLIF ( 47, - 93 ) AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3896
SELECT ALL + ( 10 ) DIV 17 + - 71 * - COUNT( 72 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL + ( 10 ) / 17 + - 71 * - COUNT ( 72 ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3897
SELECT + - 68 * 5 + COALESCE ( + COUNT( * ), - COALESCE ( - 37, + 23 * + 75 + + CAST( NULL AS SIGNED ) + + + 4, - 94 ) ) * + 65 DIV 94 + + COALESCE ( - - 75, - - 20, + 1 * + + 49 ) AS col1
----
-265

skipif mysql # not compatible
query I rowsort label-3897
SELECT + - 68 * 5 + COALESCE ( + COUNT ( * ), - COALESCE ( - 37, + 23 * + 75 + + CAST ( NULL AS INTEGER ) + + + 4, - 94 ) ) * + 65 / 94 + + COALESCE ( - - 75, - - 20, + 1 * + + 49 ) AS col1
----
-265

query I rowsort
SELECT ALL ( + 4 ) * + + 33 + 33 + - - 68
----
233

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL + CASE + 23 WHEN 8 + 3 + + 40 THEN COUNT( DISTINCT + 86 ) / - - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + CASE + 23 WHEN 8 + 3 + + 40 THEN COUNT ( DISTINCT + 86 ) / - - 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3900
SELECT - COUNT( * ), 2 col2
----
-1
2

skipif mysql # not compatible
query II rowsort label-3900
SELECT - COUNT ( * ), 2 col2
----
-1
2

query I rowsort
SELECT ALL - 39 * - 92 + + 38 * + 66
----
6096

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ALL 93 * 43 / + 20 + - + ( COALESCE ( NULLIF ( + 6, NULLIF ( - 32, - 96 ) + + 34 ), 59 ) ) - - 6 * - 69 * + 77 / - COUNT( * ) / - CASE - 19 WHEN + - 46 THEN 26 ELSE NULL END - + 73 + 73 + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL 93 * 43 / + 20 + - + ( COALESCE ( NULLIF ( + 6, NULLIF ( - 32, - 96 ) + + 34 ), 59 ) ) - - 6 * - 69 * + 77 / - COUNT ( * ) / - CASE - 19 WHEN + - 46 THEN 26 ELSE NULL END - + 73 + 73 + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT + 97 * + + 69 + COUNT( * ) col0
----
6694

skipif mysql # not compatible
query I rowsort label-3903
SELECT + 97 * + + 69 + COUNT ( * ) col0
----
6694

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT - 1 * - 80 * + + MAX( DISTINCT + + 72 ) + + 62 + + COUNT( * ) - - 86 AS col2
----
5909

skipif mysql # not compatible
query I rowsort label-3904
SELECT - 1 * - 80 * + + MAX ( DISTINCT + + 72 ) + + 62 + + COUNT ( * ) - - 86 AS col2
----
5909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3905
SELECT DISTINCT + + 77 AS col1, CAST( NULL AS SIGNED ) - + 37 + - - NULLIF ( 18, - MAX( ALL - + 66 ) * + AVG ( DISTINCT - 23 ) + - + 23 + 94 + + - 32 ) AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-3905
SELECT DISTINCT + + 77 AS col1, CAST ( NULL AS INTEGER ) - + 37 + - - NULLIF ( 18, - MAX ( ALL - + 66 ) * + AVG ( DISTINCT - 23 ) + - + 23 + 94 + + - 32 ) AS col0
----
77
NULL

query II rowsort
SELECT ALL + + 81 AS col2, 60 * - 40
----
81
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT - - 88 + - COUNT( + + 68 ) col1
----
87

skipif mysql # not compatible
query I rowsort label-3907
SELECT - - 88 + - COUNT ( + + 68 ) col1
----
87

query I rowsort
SELECT ALL 13 * + 89 + - 61 - - 48 * - 61
----
-1832

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT - + COUNT( * ) + - 88 col1
----
-89

skipif mysql # not compatible
query I rowsort label-3909
SELECT - + COUNT ( * ) + - 88 col1
----
-89

query I rowsort
SELECT - 73 * - - 56 col1
----
-4088

onlyif mysql # aggregate syntax: 
query II rowsort label-3911
SELECT ALL ( + 5 ) AS col2, + COUNT( * )
----
5
1

skipif mysql # not compatible
query II rowsort label-3911
SELECT ALL ( + 5 ) AS col2, + COUNT ( * )
----
5
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3912
SELECT - 37 + - COUNT( * ) col1, - 57 - - COUNT( - 25 ) * + COUNT( * )
----
-38
-56

skipif mysql # not compatible
query II rowsort label-3912
SELECT - 37 + - COUNT ( * ) col1, - 57 - - COUNT ( - 25 ) * + COUNT ( * )
----
-38
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT DISTINCT CAST( - 37 AS SIGNED ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT CAST ( - 37 AS INTEGER ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3914
SELECT ALL - 29 * 59 - - COUNT( * ), + 71 * - 12 * - 51 AS col2
----
-1710
43452

skipif mysql # not compatible
query II rowsort label-3914
SELECT ALL - 29 * 59 - - COUNT ( * ), + 71 * - 12 * - 51 AS col2
----
-1710
43452

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT - NULLIF ( MAX( - 16 ), - COUNT( * ) ) col1
----
16

skipif mysql # not compatible
query I rowsort label-3915
SELECT - NULLIF ( MAX ( - 16 ), - COUNT ( * ) ) col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT + COUNT( 98 ) + + - ( + 52 ) + + 25 * + ( - 64 ) * - 3 AS col2
----
4749

skipif mysql # not compatible
query I rowsort label-3916
SELECT + COUNT ( 98 ) + + - ( + 52 ) + + 25 * + ( - 64 ) * - 3 AS col2
----
4749

onlyif mysql # aggregate syntax: 
query II rowsort label-3917
SELECT 11 * + 11 AS col1, 95 + + 9 - - + COUNT( - - 27 ) + + 90 AS col0
----
121
195

skipif mysql # not compatible
query II rowsort label-3917
SELECT 11 * + 11 AS col1, 95 + + 9 - - + COUNT ( - - 27 ) + + 90 AS col0
----
121
195

query I rowsort
SELECT ALL + 52 * - 76
----
-3952

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT 27 + + + 90 * 82 * COUNT( * ) * + - 78
----
-575613

skipif mysql # not compatible
query I rowsort label-3919
SELECT 27 + + + 90 * 82 * COUNT ( * ) * + - 78
----
-575613

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3920
SELECT ALL + COUNT( 48 ) * + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL + COUNT ( 48 ) * + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT 62 + + + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3921
SELECT 62 + + + COUNT ( * )
----
63

query II rowsort
SELECT 74 * - + 4, + 80 AS col1
----
-296
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT 81 DIV - + 7
----
-11

skipif mysql # not compatible
query I rowsort label-3923
SELECT 81 / - + 7
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT DISTINCT - 41 + ( ( COUNT( * ) ) ) * + 13
----
-28

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT - 41 + ( ( COUNT ( * ) ) ) * + 13
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-3925
SELECT ALL + 30 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + 30 / - 74 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3926
SELECT ALL 58 + + 9, 27 DIV + COALESCE ( - 15, + 96 ) AS col1
----
67
-1

skipif mysql # not compatible
query II rowsort label-3926
SELECT ALL 58 + + 9, 27 / + COALESCE ( - 15, + 96 ) AS col1
----
67
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3927
SELECT ALL 63 * + - COUNT( * ) DIV + ( - - 91 ) * + 24
----
0

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL 63 * + - COUNT ( * ) / + ( - - 91 ) * + 24
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT DISTINCT + 81 + - - MAX( DISTINCT 73 )
----
154

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT + 81 + - - MAX ( DISTINCT 73 )
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3929
SELECT 15 * COALESCE ( + 2, - + 97, - + ( - - COUNT( * ) ) + 8 DIV 33 * + 85 ) + 90 col1
----
120

skipif mysql # not compatible
query I rowsort label-3929
SELECT 15 * COALESCE ( + 2, - + 97, - + ( - - COUNT ( * ) ) + 8 / 33 * + 85 ) + 90 col1
----
120

query I rowsort
SELECT ALL - 47 + 38 * - 69
----
-2669

query II rowsort
SELECT ALL 29 * + - 3 AS col2, 41 AS col2
----
-87
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT + MIN( DISTINCT + 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3932
SELECT + MIN ( DISTINCT + 59 ) AS col0
----
59

query I rowsort
SELECT + ( - 33 ) * - 72 * + 33 AS col2
----
78408

query I rowsort
SELECT + - CASE 78 WHEN + 14 + - - 54 THEN + 14 END AS col2
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 35, + 55 * - - 36, 29 ) - - 80 + + 78
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT DISTINCT - - ( + CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT - - ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 63 * + - NULLIF ( ( + 70 ), 6 / 40 / - COALESCE ( - + 87, - 83 + + 40, 9 ) - + - 89 + + 37 + + 89 )
----
-4410

onlyif mysql # DIV for integer division: 
query I rowsort label-3938
SELECT + 71 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-3938
SELECT + 71 / + 93
----
0

query I rowsort
SELECT DISTINCT - 40 * + + 68
----
-2720

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3940
SELECT ALL + 92 - + + COUNT( * ) * + 40 AS col0, 10 DIV 5 + + 90 AS col2, 0 AS col0
----
52
92
0

skipif mysql # not compatible
query III rowsort label-3940
SELECT ALL + 92 - + + COUNT ( * ) * + 40 AS col0, 10 / 5 + + 90 AS col2, 0 AS col0
----
52
92
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3941
SELECT DISTINCT - NULLIF ( - 93, - ( 20 ) ) * 10 + + - 21, ( + + CAST( + 19 AS SIGNED ) ) AS col1
----
909
19

skipif mysql # not compatible
query II rowsort label-3941
SELECT DISTINCT - NULLIF ( - 93, - ( 20 ) ) * 10 + + - 21, ( + + CAST ( + 19 AS INTEGER ) ) AS col1
----
909
19

query I rowsort
SELECT 4 * - 66 AS col1
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT COUNT( * ) - - - 15
----
-14

skipif mysql # not compatible
query I rowsort label-3943
SELECT COUNT ( * ) - - - 15
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-3944
SELECT 46 * ( - 84 ), - COUNT( * ) * - 7 col1
----
-3864
7

skipif mysql # not compatible
query II rowsort label-3944
SELECT 46 * ( - 84 ), - COUNT ( * ) * - 7 col1
----
-3864
7

query I rowsort
SELECT 20 - + - ( + 73 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT 30 + + + 34 * - COUNT( * ) + + 62
----
58

skipif mysql # not compatible
query I rowsort label-3946
SELECT 30 + + + 34 * - COUNT ( * ) + + 62
----
58

query II rowsort
SELECT DISTINCT 43 AS col1, 24 * + 39 * - 32
----
43
-29952

onlyif mysql # DIV for integer division: 
query I rowsort label-3948
SELECT DISTINCT - 75 DIV 5
----
-15

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT - 75 / 5
----
-15

query I rowsort
SELECT DISTINCT + 21 + - 6 + 57 * 59 - - + 33 col1
----
3411

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT 55 - + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3950
SELECT 55 - + - COUNT ( * )
----
56

query I rowsort
SELECT ALL 35 * + + 98
----
3430

query I rowsort
SELECT 29 + 12 AS col1
----
41

query I rowsort
SELECT 65 - - - 80 col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT DISTINCT + 76 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT + 76 / + 48
----
1

query I rowsort
SELECT ALL + 58 + - - 45
----
103

query I rowsort
SELECT ALL - 3 + - 52 + + 73 + 84 * - + 45 * + 86
----
-325062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT 61 * + + 87 * + CAST( NULL AS SIGNED ) * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT 61 * + + 87 * + CAST ( NULL AS INTEGER ) * + 81
----
NULL

query I rowsort
SELECT 64 + 25
----
89

query I rowsort
SELECT DISTINCT - 1 * - + 4 * 56 AS col2
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL - 62 + - MAX( + - ( 61 ) ) + + + 72 + 32 * CASE + SUM( DISTINCT + 20 ) WHEN - 10 THEN NULL ELSE - 36 + + + 18 END
----
-505

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - 62 + - MAX ( + - ( 61 ) ) + + + 72 + 32 * CASE + SUM ( DISTINCT + 20 ) WHEN - 10 THEN NULL ELSE - 36 + + + 18 END
----
-505

query I rowsort
SELECT - CASE - - 1 WHEN ( - - 7 ) + + 90 THEN - 52 / - + 37 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT - 59 * 53 DIV 70 + + 64 + + 44 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-3962
SELECT - 59 * 53 / 70 + + 64 + + 44 AS col2
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-3963
SELECT ALL - + 13, 3 DIV + 9 AS col2
----
-13
0

skipif mysql # not compatible
query II rowsort label-3963
SELECT ALL - + 13, 3 / + 9 AS col2
----
-13
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3964
SELECT CASE - + 77 WHEN - 42 * - 19 + - 72 * - 60 - 81 THEN COALESCE ( + - 41, - + 71, - + 79 * + - CAST( - COALESCE ( - NULLIF ( MIN( + 79 ), + - 1 * + 1 ), - 28 ) AS DECIMAL ) ) WHEN - + MAX( ALL - 7 ) THEN - + 20 * + 98 + - - 66 ELSE NULL END / + ( - NULLIF ( + + NULLIF ( - 90, + - CAST( 80 AS DECIMAL ) + CASE - 86 WHEN 74 + 3 + + 67 THEN + - 4 ELSE + 61 END * - - 42 / 50 ), 12 ) ) * + 36 + - COUNT( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT CASE - + 77 WHEN - 42 * - 19 + - 72 * - 60 - 81 THEN COALESCE ( + - 41, - + 71, - + 79 * + - CAST ( - COALESCE ( - NULLIF ( MIN ( + 79 ), + - 1 * + 1 ), - 28 ) AS REAL ) ) WHEN - + MAX ( ALL - 7 ) THEN - + 20 * + 98 + - - 66 ELSE NULL END / + ( - NULLIF ( + + NULLIF ( - 90, + - CAST ( 80 AS REAL ) + CASE - 86 WHEN 74 + 3 + + 67 THEN + - 4 ELSE + 61 END * - - 42 / 50 ), 12 ) ) * + 36 + - COUNT ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3965
SELECT + ( COALESCE ( + ( - COUNT( * ) ), ( - 2 ) DIV 55, + COUNT( * ) ) ) col1, + COUNT( ALL + - ( 66 ) ) * + - 27 * 31
----
-1
-837

skipif mysql # not compatible
query II rowsort label-3965
SELECT + ( COALESCE ( + ( - COUNT ( * ) ), ( - 2 ) / 55, + COUNT ( * ) ) ) col1, + COUNT ( ALL + - ( 66 ) ) * + - 27 * 31
----
-1
-837

onlyif mysql # aggregate syntax: 
query II rowsort label-3966
SELECT + - 37 AS col2, - COUNT( ALL + - 30 ) + - 52 col0
----
-37
-53

skipif mysql # not compatible
query II rowsort label-3966
SELECT + - 37 AS col2, - COUNT ( ALL + - 30 ) + - 52 col0
----
-37
-53

query I rowsort
SELECT - 19 + - 13 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT ALL + - 85 * 64 - + 57 + - + 1 + + - 70 + 45 + - 8 * - 95 + + COUNT( * ) * + COUNT( * ) * - 67 + + - 61 AS col1
----
-4891

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL + - 85 * 64 - + 57 + - + 1 + + - 70 + 45 + - 8 * - 95 + + COUNT ( * ) * + COUNT ( * ) * - 67 + + - 61 AS col1
----
-4891

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL - - SUM( DISTINCT 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - - SUM ( DISTINCT 63 ) AS col1
----
63

query I rowsort
SELECT 55 * 50 + + 56 - + 8 - + ( 94 ) * + ( + + 85 )
----
-5192

query I rowsort
SELECT DISTINCT - - ( - + NULLIF ( + + 39, + 87 ) ) AS col1
----
-39

query I rowsort
SELECT ALL + 75 * 18 + - - COALESCE ( - 84, - 70 ) * + 23 col1
----
-582

query I rowsort
SELECT + 69 + 40 - 4
----
105

query I rowsort
SELECT + + 36 * + ( - 3 ) AS col1
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3975
SELECT - 18 * 97 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3975
SELECT - 18 * 97 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3976
SELECT + 60 * + CAST( NULL AS DECIMAL ) AS col0, - COALESCE ( + - 33, - 77 * + 27 - 31, - + 46 + - 9 )
----
NULL
33

skipif mysql # not compatible
query II rowsort label-3976
SELECT + 60 * + CAST ( NULL AS REAL ) AS col0, - COALESCE ( + - 33, - 77 * + 27 - 31, - + 46 + - 9 )
----
NULL
33

query I rowsort
SELECT + 78 + + - ( - - 72 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT CASE - 24 WHEN 31 + - + COUNT( * ) THEN 32 ELSE NULL END * + 46 - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT CASE - 24 WHEN 31 + - + COUNT ( * ) THEN 32 ELSE NULL END * + 46 - 42 AS col2
----
NULL

query II rowsort
SELECT + 54 + 67, - 41 * + 90 AS col1
----
121
-3690

query I rowsort
SELECT ALL + COALESCE ( + 27, - 32 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT ALL COUNT( * ) + - 76 col0
----
-75

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL COUNT ( * ) + - 76 col0
----
-75

query I rowsort
SELECT DISTINCT - 89 + - - 74 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3983
SELECT ALL + 34 + CAST( NULL AS SIGNED ) AS col0, 68 AS col0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-3983
SELECT ALL + 34 + CAST ( NULL AS INTEGER ) AS col0, 68 AS col0
----
NULL
68

query I rowsort
SELECT + 80 * 28 + - 0 AS col2
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + 94 * + + COUNT( ALL 92 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3985
SELECT + 94 * + + COUNT ( ALL 92 ) AS col0
----
94

query I rowsort
SELECT - 76 + + 5 * - + 38 * 68
----
-12996

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT - CASE - + 76 WHEN - 62 + + + 76 - - + 73 THEN NULL WHEN 6 * - - 16 + - 92 THEN + - 40 + - SUM( + 86 ) END / + 44 + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT - CASE - + 76 WHEN - 62 + + + 76 - - + 73 THEN NULL WHEN 6 * - - 16 + - 92 THEN + - 40 + - SUM ( + 86 ) END / + 44 + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL NULLIF ( COUNT( * ), + 97 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL NULLIF ( COUNT ( * ), + 97 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL + 72 + MAX( DISTINCT + + 65 ) AS col0
----
137

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + 72 + MAX ( DISTINCT + + 65 ) AS col0
----
137

query I rowsort
SELECT - - 3 * + - 92 AS col2
----
-276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3991
SELECT ALL - - 16 - - NULLIF ( - 39, + COUNT( * ) * - 22 + + + COUNT( * ) / + CAST( NULL AS SIGNED ) * - COUNT( * ) * 40 ) * - 15
----
601

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL - - 16 - - NULLIF ( - 39, + COUNT ( * ) * - 22 + + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 40 ) * - 15
----
601

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT - MIN( - + NULLIF ( - - 36, 21 - 43 - + - 1 + + + NULLIF ( - + ( - 4 ), 16 * + 3 * 5 ) ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3992
SELECT - MIN ( - + NULLIF ( - - 36, 21 - 43 - + - 1 + + + NULLIF ( - + ( - 4 ), 16 * + 3 * 5 ) ) ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3993
SELECT - - 53 / CASE - + COALESCE ( + CASE SUM( ALL + + 94 ) WHEN + COUNT( * ) THEN ( + - 14 ) END, + 69, - 48 / - 90 * - + 28 ) WHEN + MIN( + 34 ) THEN NULL WHEN + + 55 THEN - + 14 + - CAST( 84 AS SIGNED ) END - + + 42 - ( - ( 22 ) ) / 27 AS col0, - 70
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-3993
SELECT - - 53 / CASE - + COALESCE ( + CASE SUM ( ALL + + 94 ) WHEN + COUNT ( * ) THEN ( + - 14 ) END, + 69, - 48 / - 90 * - + 28 ) WHEN + MIN ( + 34 ) THEN NULL WHEN + + 55 THEN - + 14 + - CAST ( 84 AS INTEGER ) END - + + 42 - ( - ( 22 ) ) / 27 AS col0, - 70
----
NULL
-70

query I rowsort
SELECT - 37 + 58 * - - 10
----
543

query I rowsort
SELECT ALL + + 86 * - + 15 - 33
----
-1323

query I rowsort
SELECT ALL - 6 * 45 * ( + 62 ) AS col1
----
-16740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT ALL + + CAST( NULL AS SIGNED ) * 90 * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL + + CAST ( NULL AS INTEGER ) * 90 * - 29
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT + + 51 * 96 * CASE - + 75 WHEN - 27 THEN NULL WHEN 28 + + 16 THEN - 85 ELSE - 47 / - 32 END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT + + 51 * 96 * CASE - + 75 WHEN - 27 THEN NULL WHEN 28 + + 16 THEN - 85 ELSE - 47 / - 32 END * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 83 * ( 16 )
----
-1328

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT - 11 DIV - - 23
----
0

skipif mysql # not compatible
query I rowsort label-4000
SELECT - 11 / - - 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + ( - - 28 ) * - ( - 62 ) * - COUNT( * )
----
-1736

skipif mysql # not compatible
query I rowsort label-4001
SELECT + ( - - 28 ) * - ( - 62 ) * - COUNT ( * )
----
-1736

query I rowsort
SELECT - 78 * + COALESCE ( - + 44, - + 7 ) AS col0
----
3432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT CASE + ( + 27 ) WHEN 44 THEN NULL WHEN - NULLIF ( + - 62, + + 55 / - 49 * + + 2 * - 2 ) THEN COUNT( * ) WHEN + 20 * + 98 + - 0 * - 95 THEN NULL ELSE MAX( DISTINCT + CAST( 34 AS SIGNED ) ) + - 8 END
----
26

skipif mysql # not compatible
query I rowsort label-4003
SELECT CASE + ( + 27 ) WHEN 44 THEN NULL WHEN - NULLIF ( + - 62, + + 55 / - 49 * + + 2 * - 2 ) THEN COUNT ( * ) WHEN + 20 * + 98 + - 0 * - 95 THEN NULL ELSE MAX ( DISTINCT + CAST ( 34 AS INTEGER ) ) + - 8 END
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4004
SELECT DISTINCT ( + COUNT( * ) ) DIV + 13 * - + 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT ( + COUNT ( * ) ) / + 13 * - + 35 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4005
SELECT + COUNT( * ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-4005
SELECT + COUNT ( * ) / 82
----
0

query I rowsort
SELECT ALL - 20 * - - 0 * + 40 + - - 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT + 37 * - 49 * + 4 + - 6 * 6 * + 86 * COUNT( + - 82 )
----
-10348

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT + 37 * - 49 * + 4 + - 6 * 6 * + 86 * COUNT ( + - 82 )
----
-10348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4008
SELECT + NULLIF ( + 69, - CAST( 93 AS SIGNED ) )
----
69

skipif mysql # not compatible
query I rowsort label-4008
SELECT + NULLIF ( + 69, - CAST ( 93 AS INTEGER ) )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4009
SELECT - 94 + CASE + 71 WHEN 0 THEN NULL WHEN + + 98 THEN NULL WHEN + - COUNT( * ) * + 78 / 65 * - + CAST( NULL AS SIGNED ) + + 41 * + MAX( ALL - 61 ) + + - 77 THEN + + 25 * + - 54 + + 63 + - 84 / + ( 64 ) * - 54 + - 77 - - CAST( + - NULLIF ( - 52, + 87 + + 48 ) AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT - 94 + CASE + 71 WHEN 0 THEN NULL WHEN + + 98 THEN NULL WHEN + - COUNT ( * ) * + 78 / 65 * - + CAST ( NULL AS INTEGER ) + + 41 * + MAX ( ALL - 61 ) + + - 77 THEN + + 25 * + - 54 + + 63 + - 84 / + ( 64 ) * - 54 + - 77 - - CAST ( + - NULLIF ( - 52, + 87 + + 48 ) AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT + ( + 3 ) * 67 AS col1
----
201

query I rowsort
SELECT + CASE + 60 WHEN + 79 THEN NULL WHEN + COALESCE ( + 68, 88 * - 28 * + - 86 ) THEN + 94 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT 63 * - 88 + - MAX( ALL - 86 ) AS col1
----
-5458

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT 63 * - 88 + - MAX ( ALL - 86 ) AS col1
----
-5458

query II rowsort
SELECT ALL 32 * 46 * - + 55 + 83 + 95 AS col2, 71 + 80 + + - COALESCE ( - - 78, + 37 )
----
-80782
73

query I rowsort
SELECT + 88 - 49
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT COUNT( * ), + COUNT( * ) * + 95 - - + 83 - - + 41 AS col1
----
1
219

skipif mysql # not compatible
query II rowsort label-4015
SELECT COUNT ( * ), + COUNT ( * ) * + 95 - - + 83 - - + 41 AS col1
----
1
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT DISTINCT NULLIF ( - ( - + 21 ), + SUM( - 2 ) ) * MIN( ALL - ( + - CAST( + + 82 AS SIGNED ) ) ) AS col2
----
1722

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT NULLIF ( - ( - + 21 ), + SUM ( - 2 ) ) * MIN ( ALL - ( + - CAST ( + + 82 AS INTEGER ) ) ) AS col2
----
1722

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT DISTINCT + 10 * - COALESCE ( - 79, - + 60 * - + 43 - - 76 - + - COUNT( * ) ) + - ( - 93 ) AS col0
----
883

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT + 10 * - COALESCE ( - 79, - + 60 * - + 43 - - 76 - + - COUNT ( * ) ) + - ( - 93 ) AS col0
----
883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT - CAST( 46 AS SIGNED ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4018
SELECT - CAST ( 46 AS INTEGER ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT + 17 + - COUNT( - + 8 ) * - - 55 + + 84 - + - 2 * - 95
----
-144

skipif mysql # not compatible
query I rowsort label-4019
SELECT + 17 + - COUNT ( - + 8 ) * - - 55 + + 84 - + - 2 * - 95
----
-144

query I rowsort
SELECT ALL 23 - + 97 AS col0
----
-74

query I rowsort
SELECT ALL + 40 - + - 38 * 42 + + 50 AS col0
----
1686

query I rowsort
SELECT + ( + + 27 ) - 19 AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4023
SELECT ALL ( ( - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL ( ( - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + + 84 - + + 43 * + 8 AS col2
----
-260

query I rowsort
SELECT + 65 * + + 86
----
5590

query I rowsort
SELECT - + 91 * + 15
----
-1365

query I rowsort
SELECT + 79 + 67
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT 53 * - + MIN( - ( - - 76 ) ) AS col1
----
4028

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT 53 * - + MIN ( - ( - - 76 ) ) AS col1
----
4028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT COUNT( * ) * + 34 - + 38 * - CASE 86 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN - ( CAST( 15 AS SIGNED ) ) THEN - 74 END + - COUNT( * ) / + CASE + COUNT( * ) WHEN + MAX( - - 47 ) * + ( - COUNT( * ) ) + 90 THEN NULL WHEN 85 + ( + ( - - 23 ) ) THEN 66 - + + 59 ELSE + - 95 + 75 + - + 32 - CASE - 34 WHEN + CAST( - + CAST( + 22 AS SIGNED ) AS SIGNED ) + + ( + + 88 ) THEN 92 END + - COUNT( * ) END * - 43 + - - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT COUNT ( * ) * + 34 - + 38 * - CASE 86 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - ( CAST ( 15 AS INTEGER ) ) THEN - 74 END + - COUNT ( * ) / + CASE + COUNT ( * ) WHEN + MAX ( - - 47 ) * + ( - COUNT ( * ) ) + 90 THEN NULL WHEN 85 + ( + ( - - 23 ) ) THEN 66 - + + 59 ELSE + - 95 + 75 + - + 32 - CASE - 34 WHEN + CAST ( - + CAST ( + 22 AS INTEGER ) AS INTEGER ) + + ( + + 88 ) THEN 92 END + - COUNT ( * ) END * - 43 + - - 55 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 48, - - 12 ) + 31 + 15 AS col1
----
94

query I rowsort
SELECT + + ( + - 71 )
----
-71

query I rowsort
SELECT DISTINCT - - 43 col2
----
43

query I rowsort
SELECT ALL + 34 * 34 AS col1
----
1156

onlyif mysql # aggregate syntax: 
query II rowsort label-4034
SELECT - - 99 * NULLIF ( + + 26, 96 * - + 39 * MAX( - + 74 ) * - - 20 + + + 12 + 27 + + + 39 ) + - ( + COUNT( * ) ), - 28 AS col1
----
2573
-28

skipif mysql # not compatible
query II rowsort label-4034
SELECT - - 99 * NULLIF ( + + 26, 96 * - + 39 * MAX ( - + 74 ) * - - 20 + + + 12 + 27 + + + 39 ) + - ( + COUNT ( * ) ), - 28 AS col1
----
2573
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT 7 * + - 81 + CAST( NULL AS SIGNED ) + - 94 + - - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT 7 * + - 81 + CAST ( NULL AS INTEGER ) + - 94 + - - 83 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4036
SELECT ALL 42 + - - CAST( + 66 AS SIGNED ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL 42 + - - CAST ( + 66 AS INTEGER ) AS col0
----
108

query II rowsort
SELECT + 89, + 40 AS col1
----
89
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT + 47 * + 41 + - 8 - COUNT( * )
----
1918

skipif mysql # not compatible
query I rowsort label-4038
SELECT + 47 * + 41 + - 8 - COUNT ( * )
----
1918

query II rowsort
SELECT 45 * - 54 AS col2, 45
----
-2430
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT COALESCE ( + - NULLIF ( - 38, - 86 - 97 * - 42 ), ( + + 26 ) ) * 95 DIV + 22 + + NULLIF ( - 95, - + 63 ) + + 3 * + 36
----
177

skipif mysql # not compatible
query I rowsort label-4040
SELECT COALESCE ( + - NULLIF ( - 38, - 86 - 97 * - 42 ), ( + + 26 ) ) * 95 / + 22 + + NULLIF ( - 95, - + 63 ) + + 3 * + 36
----
177

query I rowsort
SELECT 55 + + 46 * 21
----
1021

query I rowsort
SELECT ALL 35 * - 93 AS col1
----
-3255

query I rowsort
SELECT ALL 29 - 55
----
-26

query I rowsort
SELECT 61 * 69
----
4209

query II rowsort
SELECT - 67 AS col0, 17
----
-67
17

query II rowsort
SELECT 46 col1, 49 col2
----
46
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT + 49 DIV 51 col2
----
0

skipif mysql # not compatible
query I rowsort label-4047
SELECT + 49 / 51 col2
----
0

query II rowsort
SELECT + 79, - 63 AS col0
----
79
-63

query I rowsort
SELECT DISTINCT 42 * 74 * 18 * - - 35 AS col1
----
1958040

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4050
SELECT ALL 41, 46 - - 41 DIV + 53 - + CAST( + 66 AS SIGNED ) AS col1
----
41
-20

skipif mysql # not compatible
query II rowsort label-4050
SELECT ALL 41, 46 - - 41 / + 53 - + CAST ( + 66 AS INTEGER ) AS col1
----
41
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT + MAX( + - 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT + MAX ( + - 87 ) AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4052
SELECT ALL 29 * + COALESCE ( - 34, 52 * + SUM( + + 35 ) + 0 * + + 1 + 27 ), 56 + + - COUNT( * ) * - CAST( NULL AS SIGNED ) * - 10 * 73 * 92 - - + 51 + + COUNT( DISTINCT + + 0 ) AS col1
----
-986
NULL

skipif mysql # not compatible
query II rowsort label-4052
SELECT ALL 29 * + COALESCE ( - 34, 52 * + SUM ( + + 35 ) + 0 * + + 1 + 27 ), 56 + + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 10 * 73 * 92 - - + 51 + + COUNT ( DISTINCT + + 0 ) AS col1
----
-986
NULL

query I rowsort
SELECT - 99 * - 83 + - 25 - + 36 + + 33 * + 52 * + 73
----
133424

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ( - NULLIF ( + 41, + 87 * - 97 + 86 + - MAX( + - 12 ) * - MAX( DISTINCT + + 64 ) ) )
----
-41

skipif mysql # not compatible
query I rowsort label-4054
SELECT ( - NULLIF ( + 41, + 87 * - 97 + 86 + - MAX ( + - 12 ) * - MAX ( DISTINCT + + 64 ) ) )
----
-41

query I rowsort
SELECT - - ( + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + ( - + SUM( 48 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-4056
SELECT + ( - + SUM ( 48 ) )
----
-48

query I rowsort
SELECT ALL 58 + - 97 + - 86 + - 72 + + 33 + 98 AS col1
----
-66

query I rowsort
SELECT ALL - - ( - 68 ) AS col1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT 40 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4059
SELECT 40 / - 65 AS col2
----
0

query I rowsort
SELECT ALL ( 34 ) + 81 * + - ( - 52 ) AS col1
----
4246

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT ALL - 48 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL - 48 / + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT 55 * CASE WHEN 42 IS NOT NULL THEN 23 ELSE + - COUNT( * ) END AS col2
----
1265

skipif mysql # not compatible
query I rowsort label-4062
SELECT 55 * CASE WHEN 42 IS NOT NULL THEN 23 ELSE + - COUNT ( * ) END AS col2
----
1265

query I rowsort
SELECT ALL + 3 + 31 + - 89 + 28 * + 88 + 65
----
2474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4064
SELECT COUNT( * ) DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-4064
SELECT COUNT ( * ) / - 77
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4065
SELECT DISTINCT - 30 * 67 AS col2, + SUM( - 22 ) + - 81
----
-2010
-103

skipif mysql # not compatible
query II rowsort label-4065
SELECT DISTINCT - 30 * 67 AS col2, + SUM ( - 22 ) + - 81
----
-2010
-103

query I rowsort
SELECT 55 * - + 36
----
-1980

query I rowsort
SELECT 80 * + 47
----
3760

query I rowsort
SELECT ALL - 68 * - 2 * - ( 13 ) AS col2
----
-1768

query I rowsort
SELECT 70 * - 28 AS col0
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT 6 * - COUNT( * ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4070
SELECT 6 * - COUNT ( * ) AS col2
----
-6

query I rowsort
SELECT 80 + + 91 AS col2
----
171

query II rowsort
SELECT + 8 * - 36 AS col2, 83 * - - 36 AS col0
----
-288
2988

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - COUNT( * ) + - 15 - + - 29
----
13

skipif mysql # not compatible
query I rowsort label-4073
SELECT - COUNT ( * ) + - 15 - + - 29
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4074
SELECT DISTINCT + + COUNT( * ) + + + MIN( + + 15 ) + 1 DIV - 63 + + - 92
----
-76

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT + + COUNT ( * ) + + + MIN ( + + 15 ) + 1 / - 63 + + - 92
----
-76

query I rowsort
SELECT + 97 + - ( - 22 ) AS col0
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-4076
SELECT DISTINCT 76 + + - 1 + + - 69 * - + 10 * + - MIN( DISTINCT 83 ) + + - 46 + 65 * - + 82 * 18 + + 40 * + + 90 AS col1, + 70 * + 9
----
-149581
630

skipif mysql # not compatible
query II rowsort label-4076
SELECT DISTINCT 76 + + - 1 + + - 69 * - + 10 * + - MIN ( DISTINCT 83 ) + + - 46 + 65 * - + 82 * 18 + + 40 * + + 90 AS col1, + 70 * + 9
----
-149581
630

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL + MAX( + 66 ) * + 12 AS col2
----
792

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL + MAX ( + 66 ) * + 12 AS col2
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT COUNT( DISTINCT - - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-4078
SELECT COUNT ( DISTINCT - - 90 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT CASE + - COUNT( * ) WHEN 1 * - - COUNT( * ) - 33 * + 51 THEN NULL WHEN 29 * - 78 + + 59 THEN 33 * - 62 * - 17 + 88 * 24 * ( 28 ) ELSE + 34 END
----
34

skipif mysql # not compatible
query I rowsort label-4079
SELECT CASE + - COUNT ( * ) WHEN 1 * - - COUNT ( * ) - 33 * + 51 THEN NULL WHEN 29 * - 78 + + 59 THEN 33 * - 62 * - 17 + 88 * 24 * ( 28 ) ELSE + 34 END
----
34

query I rowsort
SELECT ALL 3 + + 6
----
9

query I rowsort
SELECT DISTINCT - - 95 + + 96 + - 11 col2
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4082
SELECT DISTINCT - 76 + - 68 DIV + - COUNT( * ) + - 63 col1
----
-71

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - 76 + - 68 / + - COUNT ( * ) + - 63 col1
----
-71

query I rowsort
SELECT DISTINCT + ( ( - 25 ) ) AS col2
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4084
SELECT COUNT( * ) DIV + - 93 + + - 86 + + 52 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4084
SELECT COUNT ( * ) / + - 93 + + - 86 + + 52 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT + ( - COALESCE ( - - 79, COUNT( * ), + 19 * 24 * + COUNT( + 31 ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-4085
SELECT + ( - COALESCE ( - - 79, COUNT ( * ), + 19 * 24 * + COUNT ( + 31 ) ) )
----
-79

query I rowsort
SELECT + 48 * 33
----
1584

query I rowsort
SELECT ALL 59 * - 47 AS col0
----
-2773

query I rowsort
SELECT + 65 + - 0 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL + COUNT( * ) * + 34 - 16 - + 31
----
-13

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL + COUNT ( * ) * + 34 - 16 - + 31
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT + 39 * - 53 + - 78 - 30 + + - CAST( 45 AS SIGNED ) * 11 + NULLIF ( + 0, + 53 ) + + - MAX( + - 6 ) AS col0
----
-2664

skipif mysql # not compatible
query I rowsort label-4090
SELECT + 39 * - 53 + - 78 - 30 + + - CAST ( 45 AS INTEGER ) * 11 + NULLIF ( + 0, + 53 ) + + - MAX ( + - 6 ) AS col0
----
-2664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4091
SELECT ALL AVG ( DISTINCT + - 67 ) * 3 - + 9 + - + 57 * - MAX( DISTINCT 51 ) * - CASE - 58 WHEN - COUNT( * ) THEN + NULLIF ( - 85, - 67 + 90 ) WHEN - - 57 + 30 THEN NULL END + + + CAST( NULL AS SIGNED ) + + 85 * + 5 + + + 56 / - 17 + - ( - + 21 ) / + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL AVG ( DISTINCT + - 67 ) * 3 - + 9 + - + 57 * - MAX ( DISTINCT 51 ) * - CASE - 58 WHEN - COUNT ( * ) THEN + NULLIF ( - 85, - 67 + 90 ) WHEN - - 57 + 30 THEN NULL END + + + CAST ( NULL AS INTEGER ) + + 85 * + 5 + + + 56 / - 17 + - ( - + 21 ) / + COUNT ( * ) col2
----
NULL

query II rowsort
SELECT DISTINCT + 6 col0, + 9
----
6
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT COUNT( DISTINCT 11 ) * + 31 + + 58 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4093
SELECT COUNT ( DISTINCT 11 ) * + 31 + + 58 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT COALESCE ( - MAX( DISTINCT - 86 ), + ( + + COUNT( * ) ) * - + 98 + + - 7, - + COUNT( * ) + 17 + 70 )
----
86

skipif mysql # not compatible
query I rowsort label-4094
SELECT COALESCE ( - MAX ( DISTINCT - 86 ), + ( + + COUNT ( * ) ) * - + 98 + + - 7, - + COUNT ( * ) + 17 + 70 )
----
86

query I rowsort
SELECT - 11 + + 59 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT + COUNT( DISTINCT + + 42 ) * - 3 * 17 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4096
SELECT + COUNT ( DISTINCT + + 42 ) * - 3 * 17 AS col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT ALL 93 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL 93 / + 99 AS col2
----
0

query II rowsort
SELECT + ( ( + 41 ) ), ( 66 ) AS col0
----
41
66

query II rowsort
SELECT ALL + 51 AS col1, + 18
----
51
18

query I rowsort
SELECT ALL + 82 * + 37
----
3034

query I rowsort
SELECT - ( + 26 ) * ( - + 73 ) AS col1
----
1898

query I rowsort
SELECT ALL - + 65 * 79 AS col1
----
-5135

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT SUM( - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4103
SELECT SUM ( - 53 )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4104
SELECT + + 73 * - - COALESCE ( - 57, - 19 DIV - + 86 ) * COUNT( * ), MIN( DISTINCT + 72 ) AS col0
----
-4161
72

skipif mysql # not compatible
query II rowsort label-4104
SELECT + + 73 * - - COALESCE ( - 57, - 19 / - + 86 ) * COUNT ( * ), MIN ( DISTINCT + 72 ) AS col0
----
-4161
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4105
SELECT - + 18 * + 54 DIV COUNT( * ) AS col2, + COUNT( DISTINCT + 6 ) AS col0
----
-972
1

skipif mysql # not compatible
query II rowsort label-4105
SELECT - + 18 * + 54 / COUNT ( * ) AS col2, + COUNT ( DISTINCT + 6 ) AS col0
----
-972
1

query I rowsort
SELECT - 48 - 88 AS col2
----
-136

query II rowsort
SELECT ALL + 88 col0, 65 AS col2
----
88
65

query I rowsort
SELECT - - 91 + - + 42 AS col1
----
49

query II rowsort
SELECT ALL 60 AS col2, - 36
----
60
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT COUNT( DISTINCT - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-4110
SELECT COUNT ( DISTINCT - 20 )
----
1

query I rowsort
SELECT ALL - 47 * + 95 + + 34 + + - 22 AS col0
----
-4453

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - SUM( DISTINCT + 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4112
SELECT - SUM ( DISTINCT + 39 ) AS col2
----
-39

query I rowsort
SELECT DISTINCT + 3 * + 40 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT + - 92 * + CASE - SUM( DISTINCT - 19 ) WHEN + 90 + ( - 70 ) THEN NULL ELSE + - 17 END * NULLIF ( 96, + 62 * + COUNT( DISTINCT ( 40 ) ) * - AVG ( 5 ) ) + + 39 * + - COUNT( * ) * + - 43 - - 60 AS col0
----
151881

skipif mysql # not compatible
query I rowsort label-4114
SELECT + - 92 * + CASE - SUM ( DISTINCT - 19 ) WHEN + 90 + ( - 70 ) THEN NULL ELSE + - 17 END * NULLIF ( 96, + 62 * + COUNT ( DISTINCT ( 40 ) ) * - AVG ( 5 ) ) + + 39 * + - COUNT ( * ) * + - 43 - - 60 AS col0
----
151881

query I rowsort
SELECT + + 17 * 74 AS col2
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL - 85 * COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - 85 * COUNT ( * ) AS col1
----
-85

query I rowsort
SELECT - 89 * 10 * + - 19
----
16910

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT - COUNT( * ) / - CASE + 44 WHEN - 50 * - + 84 - + COUNT( + - 63 ) + 45 * + 33 THEN 43 WHEN + COUNT( * ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT - COUNT ( * ) / - CASE + 44 WHEN - 50 * - + 84 - + COUNT ( + - 63 ) + 45 * + 33 THEN 43 WHEN + COUNT ( * ) THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT + ( - 53 ) * ( - MIN( DISTINCT 54 ) ) + 52 * + ( 51 ) AS col0
----
5514

skipif mysql # not compatible
query I rowsort label-4119
SELECT + ( - 53 ) * ( - MIN ( DISTINCT 54 ) ) + 52 * + ( 51 ) AS col0
----
5514

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT - MIN( DISTINCT - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-4120
SELECT - MIN ( DISTINCT - 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL - MIN( 60 ) * + COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL - MIN ( 60 ) * + COUNT ( * ) AS col2
----
-60

query I rowsort
SELECT DISTINCT + ( + 81 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT CAST( - 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-4123
SELECT CAST ( - 8 AS INTEGER )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT CAST( 56 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4124
SELECT CAST ( 56 AS INTEGER ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4125
SELECT + ( + - 43 ) AS col1, - NULLIF ( - COUNT( * ), + 88 / - - MIN( + 67 ) ) AS col2
----
-43
1

skipif mysql # not compatible
query II rowsort label-4125
SELECT + ( + - 43 ) AS col1, - NULLIF ( - COUNT ( * ), + 88 / - - MIN ( + 67 ) ) AS col2
----
-43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT + COUNT( - + 8 ) * - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4126
SELECT + COUNT ( - + 8 ) * - - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4127
SELECT + ( + COUNT( * ) ) AS col0, 43 + + 85 - - 74 * + 92 + + COUNT( DISTINCT + 88 ) AS col2
----
1
6937

skipif mysql # not compatible
query II rowsort label-4127
SELECT + ( + COUNT ( * ) ) AS col0, 43 + + 85 - - 74 * + 92 + + COUNT ( DISTINCT + 88 ) AS col2
----
1
6937

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL + MIN( DISTINCT + + 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL + MIN ( DISTINCT + + 6 ) AS col0
----
6

query II rowsort
SELECT DISTINCT 51 * 33, + ( + 33 ) AS col1
----
1683
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL - COUNT( * ) * - 55 + - + 86
----
-31

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - COUNT ( * ) * - 55 + - + 86
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + SUM( + 69 ) - - 29
----
98

skipif mysql # not compatible
query I rowsort label-4131
SELECT + SUM ( + 69 ) - - 29
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT DISTINCT - 61 + CASE + - 18 WHEN - 13 THEN - CAST( NULL AS SIGNED ) END - + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT - 61 + CASE + - 18 WHEN - 13 THEN - CAST ( NULL AS INTEGER ) END - + 61 AS col2
----
NULL

query I rowsort
SELECT + 50 * 18 + + - 84 + - 79
----
737

query I rowsort
SELECT 90 * + - 71 + - 67 + + 86 * - 74
----
-12821

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ( COUNT( - 51 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4135
SELECT ( COUNT ( - 51 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 0 + + COALESCE ( + + 31, + 19, + 20 )
----
31

query I rowsort
SELECT 69 + + 80
----
149

query I rowsort
SELECT + 45 + NULLIF ( + + 96, 46 ) * + 10
----
1005

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT + COUNT( ALL 14 ) + 88 + - + 36 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4139
SELECT + COUNT ( ALL 14 ) + 88 + - + 36 AS col2
----
53

query I rowsort
SELECT DISTINCT - + 95 * - + ( + + 32 ) AS col1
----
3040

query I rowsort
SELECT ALL - 6 + - 0 * + 62 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4143
SELECT DISTINCT + - NULLIF ( - + CASE - ( + COALESCE ( + - 20, - 49 / MIN( ALL - + 58 ) + 32 * 29 + + - ( - COALESCE ( 5, - + COUNT( * ) ) ) + + 18 + - COALESCE ( CASE + CAST( 83 AS SIGNED ) WHEN + - 31 + + + 45 THEN 41 + 77 END, + + 20 / - 92 * + 35, - 56 * - 21 ) * - COUNT( ALL - 24 ) + + COUNT( 18 ) - + - COUNT( * ) + 17 * - - 31, + 92 / 88 * - 82 + 90 + - CASE - 44 WHEN + + ( - + COUNT( * ) ) + + 72 THEN + ( CAST( NULL AS SIGNED ) ) + - 84 ELSE NULL END * + 73 ) ) WHEN 94 / 92 THEN 24 END, MIN( 17 ) ) - 21 * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + - NULLIF ( - + CASE - ( + COALESCE ( + - 20, - 49 / MIN ( ALL - + 58 ) + 32 * 29 + + - ( - COALESCE ( 5, - + COUNT ( * ) ) ) + + 18 + - COALESCE ( CASE + CAST ( 83 AS INTEGER ) WHEN + - 31 + + + 45 THEN 41 + 77 END, + + 20 / - 92 * + 35, - 56 * - 21 ) * - COUNT ( ALL - 24 ) + + COUNT ( 18 ) - + - COUNT ( * ) + 17 * - - 31, + 92 / 88 * - 82 + 90 + - CASE - 44 WHEN + + ( - + COUNT ( * ) ) + + 72 THEN + ( CAST ( NULL AS INTEGER ) ) + - 84 ELSE NULL END * + 73 ) ) WHEN 94 / 92 THEN 24 END, MIN ( 17 ) ) - 21 * + 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4144
SELECT - 9 + NULLIF ( + + CASE 94 WHEN + 62 * 61 + COUNT( * ) * 38 - + 49 + - 88 - 77 + + 89 * + 13 THEN NULL WHEN - NULLIF ( COALESCE ( - 57, - CASE - - 92 WHEN - - 84 * 20 / + 36 THEN COUNT( * ) WHEN + + 88 + + - COALESCE ( + MAX( DISTINCT - CAST( NULL AS SIGNED ) ), 73 ) THEN 57 ELSE + 23 END ), 81 ) THEN + 22 * 32 + + - CAST( + COUNT( * ) AS SIGNED ) * + + 25 END, 10 ) * - 42 + + 7 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT - 9 + NULLIF ( + + CASE 94 WHEN + 62 * 61 + COUNT ( * ) * 38 - + 49 + - 88 - 77 + + 89 * + 13 THEN NULL WHEN - NULLIF ( COALESCE ( - 57, - CASE - - 92 WHEN - - 84 * 20 / + 36 THEN COUNT ( * ) WHEN + + 88 + + - COALESCE ( + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ), 73 ) THEN 57 ELSE + 23 END ), 81 ) THEN + 22 * 32 + + - CAST ( + COUNT ( * ) AS INTEGER ) * + + 25 END, 10 ) * - 42 + + 7 col1
----
NULL

query I rowsort
SELECT 17 * - 27
----
-459

query I rowsort
SELECT ALL - ( - + 36 ) AS col0
----
36

query I rowsort
SELECT 58 + + ( - 1 )
----
57

query II rowsort
SELECT DISTINCT 25 col1, 58 AS col0
----
25
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4149
SELECT DISTINCT + MIN( DISTINCT - CAST( - + ( - 31 ) AS SIGNED ) ) * + + 31 + - - 49
----
-912

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT + MIN ( DISTINCT - CAST ( - + ( - 31 ) AS INTEGER ) ) * + + 31 + - - 49
----
-912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4150
SELECT COUNT( ALL 37 ) DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-4150
SELECT COUNT ( ALL 37 ) / 40
----
0

query I rowsort
SELECT 55 + - 2 AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4152
SELECT 9 * - 77 + 6, COUNT( * ) AS col0
----
-687
1

skipif mysql # not compatible
query II rowsort label-4152
SELECT 9 * - 77 + 6, COUNT ( * ) AS col0
----
-687
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT 74 DIV + - 25 col0
----
-2

skipif mysql # not compatible
query I rowsort label-4153
SELECT 74 / + - 25 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL + SUM( + 56 ) + + + 98
----
154

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL + SUM ( + 56 ) + + + 98
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4155
SELECT + MIN( - 7 ) DIV + 27 + - + NULLIF ( + + ( + 65 ), - ( + 89 ) DIV + MAX( ALL + 84 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-4155
SELECT + MIN ( - 7 ) / + 27 + - + NULLIF ( + + ( + 65 ), - ( + 89 ) / + MAX ( ALL + 84 ) )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT COUNT( * ) * + 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4156
SELECT COUNT ( * ) * + 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT 89 + - 65 + NULLIF ( ( + - COALESCE ( 65, + - 25 ) ), + 63 ) - - COUNT( * ) * - 23 + + 32
----
-32

skipif mysql # not compatible
query I rowsort label-4157
SELECT 89 + - 65 + NULLIF ( ( + - COALESCE ( 65, + - 25 ) ), + 63 ) - - COUNT ( * ) * - 23 + + 32
----
-32

query I rowsort
SELECT DISTINCT + 37 + + 96
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT COUNT( * ) * 16
----
16

skipif mysql # not compatible
query I rowsort label-4159
SELECT COUNT ( * ) * 16
----
16

query I rowsort
SELECT ALL + 19 + - 62 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT DISTINCT - SUM( + 25 ) + 68
----
43

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT - SUM ( + 25 ) + 68
----
43

query I rowsort
SELECT ALL - ( - 45 ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4163
SELECT - CASE + - 36 WHEN + - 2 THEN - 3 * + CAST( NULL AS SIGNED ) END + + CAST( + - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT - CASE + - 36 WHEN + - 2 THEN - 3 * + CAST ( NULL AS INTEGER ) END + + CAST ( + - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4164
SELECT + + 61 AS col2, COUNT( * )
----
61
1

skipif mysql # not compatible
query II rowsort label-4164
SELECT + + 61 AS col2, COUNT ( * )
----
61
1

query I rowsort
SELECT 4 + 50
----
54

query II rowsort
SELECT 85 AS col1, 87 AS col1
----
85
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT DISTINCT + COUNT( * ) * - 44 * + 8
----
-352

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT + COUNT ( * ) * - 44 * + 8
----
-352

onlyif mysql # aggregate syntax: 
query II rowsort label-4168
SELECT ALL ( - CASE - SUM( DISTINCT + NULLIF ( 17, - 88 ) ) WHEN + COALESCE ( ( 15 ), - 83 + - 1 ) + - 13 + 7 + - + ( - - AVG ( - 93 ) ) * + 26 * 13 + 52 THEN NULL ELSE - 33 - + 77 - + 12 END ) * COUNT( * ), 98 col1
----
122
98

skipif mysql # not compatible
query II rowsort label-4168
SELECT ALL ( - CASE - SUM ( DISTINCT + NULLIF ( 17, - 88 ) ) WHEN + COALESCE ( ( 15 ), - 83 + - 1 ) + - 13 + 7 + - + ( - - AVG ( - 93 ) ) * + 26 * 13 + 52 THEN NULL ELSE - 33 - + 77 - + 12 END ) * COUNT ( * ), 98 col1
----
122
98

query I rowsort
SELECT DISTINCT 8 * + 25 AS col2
----
200

query I rowsort
SELECT ALL 13 - 61 AS col2
----
-48

query I rowsort
SELECT + + ( + 56 )
----
56

query I rowsort
SELECT ALL 26 * 67
----
1742

onlyif mysql # DIV for integer division: 
query II rowsort label-4173
SELECT DISTINCT + 77 - 1 DIV 33 * - 77 DIV - 75 AS col2, 11 AS col2
----
77
11

skipif mysql # not compatible
query II rowsort label-4173
SELECT DISTINCT + 77 - 1 / 33 * - 77 / - 75 AS col2, 11 AS col2
----
77
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4174
SELECT NULLIF ( - 76, + - 54 + + NULLIF ( 84, 9 - COUNT( * ) + - 63 - + 81 * + 32 * COUNT( * ) * + - 80 + 0 + 93 - + 95 + + 33 * - 37 / 4 * + COALESCE ( - - 81, - + ( - 92 ) * - 25 + - 71 * - 36 * + COALESCE ( 71, + - 90 * COUNT( ALL + 34 ), + + CAST( + 8 AS SIGNED ) ) ) ) )
----
-76

skipif mysql # not compatible
query I rowsort label-4174
SELECT NULLIF ( - 76, + - 54 + + NULLIF ( 84, 9 - COUNT ( * ) + - 63 - + 81 * + 32 * COUNT ( * ) * + - 80 + 0 + 93 - + 95 + + 33 * - 37 / 4 * + COALESCE ( - - 81, - + ( - 92 ) * - 25 + - 71 * - 36 * + COALESCE ( 71, + - 90 * COUNT ( ALL + 34 ), + + CAST ( + 8 AS INTEGER ) ) ) ) )
----
-76

query I rowsort
SELECT 30 * 68
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL COUNT( DISTINCT - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL COUNT ( DISTINCT - 92 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT NULLIF ( - + COUNT( * ), 39 ) - + 31 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4177
SELECT NULLIF ( - + COUNT ( * ), 39 ) - + 31 AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT - + CAST( - 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-4178
SELECT - + CAST ( - 41 AS INTEGER )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT DISTINCT + 25 DIV + 22 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT + 25 / + 22 AS col2
----
1

query I rowsort
SELECT - COALESCE ( + - 58, - 95 ) col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL - 85 * CASE - - COUNT( * ) WHEN + 43 * + 55 + COALESCE ( 67, - COUNT( * ), + + 11 + 47 + AVG ( DISTINCT + 52 ) ) / + - 19 + + CASE 20 WHEN - 31 / 45 THEN - - 66 + + 41 + - 20 / - + 91 END / 23 THEN CASE 51 WHEN - COUNT( * ) THEN NULL WHEN - 99 THEN NULL ELSE + 82 END ELSE + 69 + - + 68 END
----
-85

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL - 85 * CASE - - COUNT ( * ) WHEN + 43 * + 55 + COALESCE ( 67, - COUNT ( * ), + + 11 + 47 + AVG ( DISTINCT + 52 ) ) / + - 19 + + CASE 20 WHEN - 31 / 45 THEN - - 66 + + 41 + - 20 / - + 91 END / 23 THEN CASE 51 WHEN - COUNT ( * ) THEN NULL WHEN - 99 THEN NULL ELSE + 82 END ELSE + 69 + - + 68 END
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT 65 * + MIN( DISTINCT 77 ) col1
----
5005

skipif mysql # not compatible
query I rowsort label-4182
SELECT 65 * + MIN ( DISTINCT 77 ) col1
----
5005

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT ALL 48 DIV - 21 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL 48 / - 21 AS col0
----
-2

query I rowsort
SELECT ALL + 13 * - - 15
----
195

query I rowsort
SELECT DISTINCT 42 * 28
----
1176

query I rowsort
SELECT 90 + + 22 col0
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4187
SELECT CAST( 84 AS SIGNED ) * - 29 AS col1
----
-2436

skipif mysql # not compatible
query I rowsort label-4187
SELECT CAST ( 84 AS INTEGER ) * - 29 AS col1
----
-2436

query I rowsort
SELECT 0 + - - 31 * + 55
----
1705

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT - COALESCE ( + + MIN( 52 ), - MIN( DISTINCT 86 ), + + 46, - 78 )
----
-52

skipif mysql # not compatible
query I rowsort label-4189
SELECT - COALESCE ( + + MIN ( 52 ), - MIN ( DISTINCT 86 ), + + 46, - 78 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4190
SELECT ALL - COUNT( DISTINCT - ( + 40 ) ) + CAST( NULL AS SIGNED ) * - - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - COUNT ( DISTINCT - ( + 40 ) ) + CAST ( NULL AS INTEGER ) * - - 34 AS col1
----
NULL

query II rowsort
SELECT 1, 74 * 87 AS col2
----
1
6438

query I rowsort
SELECT ALL 41 * ( + 60 ) AS col1
----
2460

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL - MAX( - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - MAX ( - 66 )
----
66

query I rowsort
SELECT COALESCE ( 79, - + 41 )
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-4195
SELECT DISTINCT - 78 DIV - ( - ( - 9 ) ) AS col1, + 77 - + 30
----
8
47

skipif mysql # not compatible
query II rowsort label-4195
SELECT DISTINCT - 78 / - ( - ( - 9 ) ) AS col1, + 77 - + 30
----
8
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL + COUNT( + 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + COUNT ( + 85 ) AS col2
----
1

query II rowsort
SELECT + 62 col1, + 80
----
62
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4198
SELECT + 63, CAST( NULL AS DECIMAL ) * - CASE 23 WHEN + + 65 + - + 3 + + COALESCE ( - COUNT( * ), 4, - - 58 * - 63 ) THEN - 85 ELSE NULL END AS col1
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4198
SELECT + 63, CAST ( NULL AS REAL ) * - CASE 23 WHEN + + 65 + - + 3 + + COALESCE ( - COUNT ( * ), 4, - - 58 * - 63 ) THEN - 85 ELSE NULL END AS col1
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL - MIN( DISTINCT - + 58 ) * - - 32 * - CASE - 8 WHEN - + ( + + 7 ) THEN NULL WHEN + 78 THEN + 70 / - 24 + + - 95 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL - MIN ( DISTINCT - + 58 ) * - - 32 * - CASE - 8 WHEN - + ( + + 7 ) THEN NULL WHEN + 78 THEN + 70 / - 24 + + - 95 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4200
SELECT NULLIF ( 38, - 44 / + COUNT( * ) + ( - + 15 ) + - 67 * 40 * 17 ), 21 - 98 AS col1
----
38
-77

skipif mysql # not compatible
query II rowsort label-4200
SELECT NULLIF ( 38, - 44 / + COUNT ( * ) + ( - + 15 ) + - 67 * 40 * 17 ), 21 - 98 AS col1
----
38
-77

query I rowsort
SELECT - 87 - - + 26 * 98 + + + 65 AS col0
----
2526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4202
SELECT + 77 col1, - 31 * - COUNT( * ) * 64 + - 63 + - NULLIF ( 59, - - 86 + ( + 46 ) * + ( 85 ) * + COUNT( * ) + - + 22 ) + CAST( NULL AS SIGNED ) * + + 70 AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-4202
SELECT + 77 col1, - 31 * - COUNT ( * ) * 64 + - 63 + - NULLIF ( 59, - - 86 + ( + 46 ) * + ( 85 ) * + COUNT ( * ) + - + 22 ) + CAST ( NULL AS INTEGER ) * + + 70 AS col0
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - + 99 * + SUM( DISTINCT 45 )
----
-4455

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - + 99 * + SUM ( DISTINCT 45 )
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT DISTINCT + ( - MAX( DISTINCT - 86 ) ) * COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT + ( - MAX ( DISTINCT - 86 ) ) * COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4205
SELECT - COUNT( * ) * 48 * 40 DIV - - 58 + - 47
----
-80

skipif mysql # not compatible
query I rowsort label-4205
SELECT - COUNT ( * ) * 48 * 40 / - - 58 + - 47
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-4206
SELECT NULLIF ( + 90, + - COUNT( * ) + - COUNT( * ) ), - COUNT( * ) col2
----
90
-1

skipif mysql # not compatible
query II rowsort label-4206
SELECT NULLIF ( + 90, + - COUNT ( * ) + - COUNT ( * ) ), - COUNT ( * ) col2
----
90
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4207
SELECT DISTINCT + 39 * - - COUNT( * ) - - + 5 * + COUNT( * ) DIV - ( + + COUNT( * ) ), 97 + - + 86 AS col0
----
34
11

skipif mysql # not compatible
query II rowsort label-4207
SELECT DISTINCT + 39 * - - COUNT ( * ) - - + 5 * + COUNT ( * ) / - ( + + COUNT ( * ) ), 97 + - + 86 AS col0
----
34
11

query II rowsort
SELECT ALL + - 24 AS col1, 15 + 18 AS col1
----
-24
33

query I rowsort
SELECT - - 68 * - + 33 AS col2
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT + - SUM( - + 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4210
SELECT + - SUM ( - + 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT SUM( ALL + ( - + ( - 3 ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-4211
SELECT SUM ( ALL + ( - + ( - 3 ) ) )
----
3

query I rowsort
SELECT - NULLIF ( - 43, + 33 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT ALL - COUNT( * ) * ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - COUNT ( * ) * ( + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT - 30 + 91 col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4215
SELECT DISTINCT CAST( 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT CAST ( 11 AS INTEGER )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4216
SELECT DISTINCT - + 69 DIV + 92 - - - 67 - + - CAST( - - ( 48 ) AS SIGNED ) * + COUNT( * ) - 7 * + 83 AS col2, - 99 - - 17
----
-600
-82

skipif mysql # not compatible
query II rowsort label-4216
SELECT DISTINCT - + 69 / + 92 - - - 67 - + - CAST ( - - ( 48 ) AS INTEGER ) * + COUNT ( * ) - 7 * + 83 AS col2, - 99 - - 17
----
-600
-82

query II rowsort
SELECT ALL 96, 29 AS col2
----
96
29

query II rowsort
SELECT - 7 AS col2, - CASE - 25 WHEN - 76 THEN - 52 END AS col0
----
-7
NULL

query I rowsort
SELECT ALL NULLIF ( + - 62, 80 )
----
-62

query I rowsort
SELECT ALL 27 * - 69 AS col1
----
-1863

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL MIN( ALL + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL MIN ( ALL + 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT - MIN( + + 77 ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-4222
SELECT - MIN ( + + 77 ) col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4223
SELECT + 65 * + 76 AS col2, - 58 * - COUNT( * ) * 95 AS col0
----
4940
5510

skipif mysql # not compatible
query II rowsort label-4223
SELECT + 65 * + 76 AS col2, - 58 * - COUNT ( * ) * 95 AS col0
----
4940
5510

query I rowsort
SELECT + 71 + - - 26
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT + 83 DIV + 78 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4225
SELECT + 83 / + 78 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT + 89 * - COUNT( * ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4226
SELECT + 89 * - COUNT ( * ) AS col2
----
-89

query I rowsort
SELECT ALL 95 + 70 + 17
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT - 65 * - COUNT( * ) col1
----
65

skipif mysql # not compatible
query I rowsort label-4228
SELECT - 65 * - COUNT ( * ) col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT + ( - 97 ) + + 26 + + + COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4229
SELECT + ( - 97 ) + + 26 + + + COUNT ( * ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT DISTINCT 0 + CASE + - 26 WHEN + 49 + MAX( ALL + - 91 ) THEN NULL ELSE + - ( + 3 ) * + 77 * + MAX( 94 ) - + 43 END
----
-21757

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT 0 + CASE + - 26 WHEN + 49 + MAX ( ALL + - 91 ) THEN NULL ELSE + - ( + 3 ) * + 77 * + MAX ( 94 ) - + 43 END
----
-21757

onlyif mysql # aggregate syntax: 
query II rowsort label-4231
SELECT ALL 59 + + 81 * 85, - 85 * + - 62 - COUNT( + 28 ) AS col0
----
6944
5269

skipif mysql # not compatible
query II rowsort label-4231
SELECT ALL 59 + + 81 * 85, - 85 * + - 62 - COUNT ( + 28 ) AS col0
----
6944
5269

query II rowsort
SELECT - ( + 82 ) AS col2, + 1 AS col0
----
-82
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL COUNT( * ) + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL COUNT ( * ) + - 83
----
-82

query I rowsort
SELECT ALL 94 + - 28 + + + 2 AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4235
SELECT - ( CASE - 51 WHEN + COALESCE ( - 70, - 3 * - + 10 + - CAST( NULL AS SIGNED ) ) + - - 97 THEN + + 16 * COUNT( * ) DIV + AVG ( DISTINCT - 72 ) WHEN - 63 * + - 30 DIV + - 16 * - - 3 - - ( - - 51 ) THEN + + MAX( - 79 ) * 12 ELSE - 96 * 97 DIV 19 * + 82 END ) AS col0
----
40180

skipif mysql # not compatible
query I rowsort label-4235
SELECT - ( CASE - 51 WHEN + COALESCE ( - 70, - 3 * - + 10 + - CAST ( NULL AS INTEGER ) ) + - - 97 THEN + + 16 * COUNT ( * ) / + AVG ( DISTINCT - 72 ) WHEN - 63 * + - 30 / + - 16 * - - 3 - - ( - - 51 ) THEN + + MAX ( - 79 ) * 12 ELSE - 96 * 97 / 19 * + 82 END ) AS col0
----
40180

query I rowsort
SELECT ALL + 19 + 36 AS col0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT + 23 - + 50 DIV 97 * + - 99 + - 71 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4237
SELECT + 23 - + 50 / 97 * + - 99 + - 71 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + 93 + COUNT( * ) * - 90
----
3

skipif mysql # not compatible
query I rowsort label-4238
SELECT + 93 + COUNT ( * ) * - 90
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4239
SELECT - 99 + + 89 AS col1, CAST( NULL AS DECIMAL ) AS col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-4239
SELECT - 99 + + 89 AS col1, CAST ( NULL AS REAL ) AS col0
----
-10
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT ALL + 61 DIV - + 94 + + ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL + 61 / - + 94 + + ( - + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4241
SELECT - CAST( NULL AS SIGNED ) / + - COUNT( * ) * - - 60 * + AVG ( + 79 ) + - - 3 + + 28 + - - COUNT( * ) * - 10 * COALESCE ( + - COUNT( * ), - NULLIF ( + 40, - + 84 ) - - COUNT( * ) * - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) * - - 60 * + AVG ( + 79 ) + - - 3 + + 28 + - - COUNT ( * ) * - 10 * COALESCE ( + - COUNT ( * ), - NULLIF ( + 40, - + 84 ) - - COUNT ( * ) * - 23 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4242
SELECT CAST( - 93 AS SIGNED ) AS col1, 15
----
-93
15

skipif mysql # not compatible
query II rowsort label-4242
SELECT CAST ( - 93 AS INTEGER ) AS col1, 15
----
-93
15

query I rowsort
SELECT + 85 + + - 5
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT 18 * SUM( ( + 61 ) ) + - + 70 - + COUNT( * ) - + - COUNT( * ) + + + 76 * - + 79
----
-4976

skipif mysql # not compatible
query I rowsort label-4244
SELECT 18 * SUM ( ( + 61 ) ) + - + 70 - + COUNT ( * ) - + - COUNT ( * ) + + + 76 * - + 79
----
-4976

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT + COUNT( * ) * + 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT + COUNT ( * ) * + 70 AS col2
----
70

query I rowsort
SELECT DISTINCT + ( - - 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - COUNT( * ) * 95 + - 62 - 63 + - + 23
----
-243

skipif mysql # not compatible
query I rowsort label-4247
SELECT - COUNT ( * ) * 95 + - 62 - 63 + - + 23
----
-243

query I rowsort
SELECT ALL + - 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT - + COALESCE ( COALESCE ( + 80, COUNT( * ), + 48 * + - COUNT( + - 65 ) ), - ( - - 23 ) ) + - 9 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4249
SELECT - + COALESCE ( COALESCE ( + 80, COUNT ( * ), + 48 * + - COUNT ( + - 65 ) ), - ( - - 23 ) ) + - 9 AS col2
----
-89

query I rowsort
SELECT - ( + 11 ) * 88 + 95
----
-873

onlyif mysql # aggregate syntax: 
query II rowsort label-4251
SELECT - 61 + + + COUNT( * ) AS col1, MIN( 60 ) - 68 AS col1
----
-60
-8

skipif mysql # not compatible
query II rowsort label-4251
SELECT - 61 + + + COUNT ( * ) AS col1, MIN ( 60 ) - 68 AS col1
----
-60
-8

query I rowsort
SELECT DISTINCT + - 88 col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT DISTINCT + COUNT( * ) * + CAST( + 72 AS SIGNED ) * - + 67
----
-4824

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + COUNT ( * ) * + CAST ( + 72 AS INTEGER ) * - + 67
----
-4824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * - + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * - + 61 AS col0
----
NULL

query I rowsort
SELECT - + 56 * + + 71
----
-3976

query I rowsort
SELECT ALL + + 11 col1
----
11

query I rowsort
SELECT DISTINCT - 34 * - 34 + 49 AS col0
----
1205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4258
SELECT - + COALESCE ( 71, 1 + - - COUNT( * ) + + 64, + 5 DIV + CAST( + 60 AS SIGNED ) * - + 31 )
----
-71

skipif mysql # not compatible
query I rowsort label-4258
SELECT - + COALESCE ( 71, 1 + - - COUNT ( * ) + + 64, + 5 / + CAST ( + 60 AS INTEGER ) * - + 31 )
----
-71

query I rowsort
SELECT - 7 * - + CASE - - CASE + + NULLIF ( 96, - 56 ) WHEN - 78 THEN - 5 WHEN - + 42 THEN NULL ELSE + 40 END WHEN + 99 - 98 THEN - COALESCE ( + + ( - + 22 ), - 15 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT MAX( ( 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-4260
SELECT MAX ( ( 81 ) )
----
81

query I rowsort
SELECT - ( - 41 ) - + 42
----
-1

query I rowsort
SELECT DISTINCT + 50 + 39 * - 56 - - 11
----
-2123

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL COUNT( * ) + - 36 + - - 82 - - COUNT( * ) * + 28
----
75

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL COUNT ( * ) + - 36 + - - 82 - - COUNT ( * ) * + 28
----
75

query I rowsort
SELECT DISTINCT - 78 * 40
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT COUNT( * ) * + 70 col2
----
70

skipif mysql # not compatible
query I rowsort label-4265
SELECT COUNT ( * ) * + 70 col2
----
70

query I rowsort
SELECT ALL 88 * + + 5 AS col0
----
440

query II rowsort
SELECT 42, - 35 AS col1
----
42
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4268
SELECT COUNT( * ) + - + CASE - 61 WHEN - - COUNT( + + 7 ) THEN + COUNT( * ) ELSE + 85 + - + CAST( 26 AS SIGNED ) END / 19 + - 85 - ( + + 91 ) + + 92 + - + CASE - + MIN( 10 ) WHEN - 62 * + + 69 THEN + 49 - 21 - + + COUNT( + 85 ) + - + 38 * - 54 WHEN + 96 * 43 * + - NULLIF ( + ( + + CASE - + 99 WHEN 62 THEN - CAST( + COUNT( * ) AS DECIMAL ) - - + 93 + + 98 * - COUNT( * ) + + 25 / - 83 END ), - + 95 - 65 + - - COUNT( * ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT COUNT ( * ) + - + CASE - 61 WHEN - - COUNT ( + + 7 ) THEN + COUNT ( * ) ELSE + 85 + - + CAST ( 26 AS INTEGER ) END / 19 + - 85 - ( + + 91 ) + + 92 + - + CASE - + MIN ( 10 ) WHEN - 62 * + + 69 THEN + 49 - 21 - + + COUNT ( + 85 ) + - + 38 * - 54 WHEN + 96 * 43 * + - NULLIF ( + ( + + CASE - + 99 WHEN 62 THEN - CAST ( + COUNT ( * ) AS REAL ) - - + 93 + + 98 * - COUNT ( * ) + + 25 / - 83 END ), - + 95 - 65 + - - COUNT ( * ) ) THEN NULL END
----
NULL

query II rowsort
SELECT 50, 44 + 57 AS col1
----
50
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4270
SELECT ALL COUNT( * ) - + CAST( NULL AS SIGNED ) + + 32 AS col2, 83 col2
----
NULL
83

skipif mysql # not compatible
query II rowsort label-4270
SELECT ALL COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + 32 AS col2, 83 col2
----
NULL
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT ALL 57 DIV 48 * NULLIF ( - 68, - - 29 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL 57 / 48 * NULLIF ( - 68, - - 29 ) AS col1
----
-68

query II rowsort
SELECT DISTINCT 31 * + 55 + + + 18, - 60 AS col1
----
1723
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4273
SELECT - 5 DIV + CAST( CAST( - 90 AS SIGNED ) AS SIGNED ) + + 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4273
SELECT - 5 / + CAST ( CAST ( - 90 AS INTEGER ) AS INTEGER ) + + 69 AS col0
----
69

query I rowsort
SELECT + - ( + CASE - - 30 WHEN - 81 THEN NULL ELSE + 68 END ) AS col0
----
-68

query I rowsort
SELECT NULLIF ( 48, - 65 ) AS col0
----
48

query II rowsort
SELECT + + 46 AS col0, 75
----
46
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL COUNT( * ) * - COUNT( * ) + - COUNT( * ) + COUNT( * ) * - MAX( DISTINCT + 88 )
----
-90

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) * - MAX ( DISTINCT + 88 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT + CAST( + + 5 AS SIGNED ) - 25 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4278
SELECT + CAST ( + + 5 AS INTEGER ) - 25 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT + MIN( + 7 ) * + + SUM( ALL 16 )
----
112

skipif mysql # not compatible
query I rowsort label-4279
SELECT + MIN ( + 7 ) * + + SUM ( ALL 16 )
----
112

query II rowsort
SELECT DISTINCT - 79, 56 AS col0
----
-79
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT - CAST( NULL AS SIGNED ) * + + 3 - 92 * NULLIF ( - 79, - - 44 ) + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT - CAST ( NULL AS INTEGER ) * + + 3 - 92 * NULLIF ( - 79, - - 44 ) + + 43
----
NULL

query I rowsort
SELECT DISTINCT + 74 + 76 AS col2
----
150

query I rowsort
SELECT ALL + 47 + + 39 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT 7 - + COUNT( * ) col2
----
6

skipif mysql # not compatible
query I rowsort label-4284
SELECT 7 - + COUNT ( * ) col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4285
SELECT - MAX( - COALESCE ( + 58, + + ( - 96 ) ) ) DIV 73 AS col2, - 84 AS col2
----
0
-84

skipif mysql # not compatible
query II rowsort label-4285
SELECT - MAX ( - COALESCE ( + 58, + + ( - 96 ) ) ) / 73 AS col2, - 84 AS col2
----
0
-84

query I rowsort
SELECT ALL - + 39 + - 93
----
-132

query II rowsort
SELECT 3 * + 43, + 73 AS col1
----
129
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4288
SELECT ALL + 63 + CAST( NULL AS SIGNED ) + + - ( - MAX( 32 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL + 63 + CAST ( NULL AS INTEGER ) + + - ( - MAX ( 32 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL + SUM( DISTINCT + + 64 ) * ( + 42 ) + - 99 + - + 83 AS col0
----
2506

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL + SUM ( DISTINCT + + 64 ) * ( + 42 ) + - 99 + - + 83 AS col0
----
2506

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT 83 + + + COUNT( * ) + CASE + - 67 WHEN + 73 * 18 + - 48 THEN - - CASE + COUNT( * ) WHEN - 86 * + 40 + + 53 THEN NULL ELSE 71 + + + ( - 47 ) * + ( - - 8 ) - - 35 * + - ( - 60 ) * + - 19 + 93 * + 18 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT 83 + + + COUNT ( * ) + CASE + - 67 WHEN + 73 * 18 + - 48 THEN - - CASE + COUNT ( * ) WHEN - 86 * + 40 + + 53 THEN NULL ELSE 71 + + + ( - 47 ) * + ( - - 8 ) - - 35 * + - ( - 60 ) * + - 19 + 93 * + 18 END END
----
NULL

query I rowsort
SELECT DISTINCT + 36 + ( - - 55 ) col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4292
SELECT + 64 * - 86 + + + 74 * ( CAST( - + 63 AS SIGNED ) ) DIV - + ( + 55 ) - - NULLIF ( + - 63, - + COUNT( * ) * + 26 + + - COUNT( ALL - 49 ) ) + - 81 * + 4 + 76, 52 - - 19 AS col2
----
-5731
71

skipif mysql # not compatible
query II rowsort label-4292
SELECT + 64 * - 86 + + + 74 * ( CAST ( - + 63 AS INTEGER ) ) / - + ( + 55 ) - - NULLIF ( + - 63, - + COUNT ( * ) * + 26 + + - COUNT ( ALL - 49 ) ) + - 81 * + 4 + 76, 52 - - 19 AS col2
----
-5731
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT + COUNT( * ) + + + 81
----
82

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + COUNT ( * ) + + + 81
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT DISTINCT + COUNT( * ) + + - 72 * + 8 AS col0
----
-575

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT + COUNT ( * ) + + - 72 * + 8 AS col0
----
-575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT DISTINCT + 19 - + CAST( + 55 AS SIGNED ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT + 19 - + CAST ( + 55 AS INTEGER ) AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT ALL - COUNT( * ) - + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - COUNT ( * ) - + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - 36 )
----
36

query I rowsort
SELECT - 3 - - ( + + 68 ) AS col0
----
65

query I rowsort
SELECT + 16 + - NULLIF ( 47, - 14 * NULLIF ( - + 13, - 0 ) - - 38 ) * 85 AS col1
----
-3979

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL - COUNT( - - 81 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL - COUNT ( - - 81 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - 60 * + MAX( + - 58 ) * - 16 * + SUM( 19 ) * - 89
----
94154880

skipif mysql # not compatible
query I rowsort label-4301
SELECT - 60 * + MAX ( + - 58 ) * - 16 * + SUM ( 19 ) * - 89
----
94154880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4302
SELECT - + ( - + 76 ) DIV MIN( - 36 ) + + SUM( 76 )
----
74

skipif mysql # not compatible
query I rowsort label-4302
SELECT - + ( - + 76 ) / MIN ( - 36 ) + + SUM ( 76 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL - 18 * + 40 + + COUNT( * )
----
-719

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL - 18 * + 40 + + COUNT ( * )
----
-719

query I rowsort
SELECT + 83 + + + 97
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT + + COUNT( ALL - 33 ) * + + 22 + - ( - 2 )
----
24

skipif mysql # not compatible
query I rowsort label-4305
SELECT + + COUNT ( ALL - 33 ) * + + 22 + - ( - 2 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4306
SELECT ALL - - CAST( + 62 AS SIGNED ) * + 5 + 40 AS col1, + 61 - - 0 AS col0
----
350
61

skipif mysql # not compatible
query II rowsort label-4306
SELECT ALL - - CAST ( + 62 AS INTEGER ) * + 5 + 40 AS col1, + 61 - - 0 AS col0
----
350
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4307
SELECT DISTINCT 62 * 31 * + - COUNT( * ) + 95 AS col0, ( MIN( ALL + 49 ) )
----
-1827
49

skipif mysql # not compatible
query II rowsort label-4307
SELECT DISTINCT 62 * 31 * + - COUNT ( * ) + 95 AS col0, ( MIN ( ALL + 49 ) )
----
-1827
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4308
SELECT ALL - COUNT( * ) * - + 29 + + - 78 * - - 97 AS col0, - 74 + - 57 col2
----
-7537
-131

skipif mysql # not compatible
query II rowsort label-4308
SELECT ALL - COUNT ( * ) * - + 29 + + - 78 * - - 97 AS col0, - 74 + - 57 col2
----
-7537
-131

query I rowsort
SELECT DISTINCT - 87 * + 77 col1
----
-6699

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4310
SELECT 45 DIV + 6 * - - COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4310
SELECT 45 / + 6 * - - COUNT ( * ) AS col1
----
7

query I rowsort
SELECT ALL + 82 * - 73 + - 40 AS col1
----
-6026

query I rowsort
SELECT 32 * + + 63 AS col0
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT - 76 * - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-4313
SELECT - 76 * - COUNT ( * )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT 22 + + + CAST( NULL AS SIGNED ) * - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT 22 + + + CAST ( NULL AS INTEGER ) * - 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL - 84 + - - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL - 84 + - - COUNT ( * ) AS col0
----
-83

query I rowsort
SELECT + NULLIF ( 8, 69 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT + + CAST( - 14 AS SIGNED ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-4317
SELECT + + CAST ( - 14 AS INTEGER ) col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4318
SELECT - 60 * ( COUNT( * ) ) + + COUNT( * ) * 72 * + 40 + + + CAST( NULL AS DECIMAL ) + - + 66 + COUNT( DISTINCT + 91 ) + 89 + 36 / + 52 * - - 93 * 87 / - COALESCE ( 85, COUNT( * ) ) * + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT - 60 * ( COUNT ( * ) ) + + COUNT ( * ) * 72 * + 40 + + + CAST ( NULL AS REAL ) + - + 66 + COUNT ( DISTINCT + 91 ) + 89 + 36 / + 52 * - - 93 * 87 / - COALESCE ( 85, COUNT ( * ) ) * + - 55
----
NULL

query I rowsort
SELECT ALL 42 * + 89
----
3738

query I rowsort
SELECT + 23 * - 30 * + 87 + - 1 * + 34 + - - 68 AS col0
----
-59996

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT MAX( ALL - + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-4321
SELECT MAX ( ALL - + 73 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4322
SELECT ALL 18 + - 41 - + SUM( - 12 ) + COALESCE ( - + 33, + 53, - CASE 43 WHEN + 87 THEN + + 4 + - SUM( + 37 ) + - - 51 END ) + - 61 + 50 + - - CAST( NULL AS SIGNED ) + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL 18 + - 41 - + SUM ( - 12 ) + COALESCE ( - + 33, + 53, - CASE 43 WHEN + 87 THEN + + 4 + - SUM ( + 37 ) + - - 51 END ) + - 61 + 50 + - - CAST ( NULL AS INTEGER ) + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT + CASE - COUNT( * ) WHEN + COUNT( 58 ) THEN NULL ELSE + 85 END col1
----
85

skipif mysql # not compatible
query I rowsort label-4323
SELECT + CASE - COUNT ( * ) WHEN + COUNT ( 58 ) THEN NULL ELSE + 85 END col1
----
85

query I rowsort
SELECT ALL + 32 - + - 25 AS col1
----
57

query I rowsort
SELECT - 6 * - 31 AS col1
----
186

query I rowsort
SELECT + 76 - - 95
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-4327
SELECT - 58 DIV - 39
----
1

skipif mysql # not compatible
query I rowsort label-4327
SELECT - 58 / - 39
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL + COUNT( * ) * + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + COUNT ( * ) * + - 49
----
-49

query I rowsort
SELECT - NULLIF ( + 78, + ( + - COALESCE ( + 22, + 87 * - + 33 + - + 86 - + 45 ) ) )
----
-78

query I rowsort
SELECT - 64 + + + 49 AS col0
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4331
SELECT - 23 - + 38 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT - 23 - + 38 * - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 28 * 86
----
2408

query I rowsort
SELECT - 40 * - 84 AS col0
----
3360

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT - 99 - - - 33 + + MIN( - 30 ) AS col2
----
-162

skipif mysql # not compatible
query I rowsort label-4334
SELECT - 99 - - - 33 + + MIN ( - 30 ) AS col2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL COUNT( * ) - + + 76
----
-75

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL COUNT ( * ) - + + 76
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT DISTINCT - COUNT( * ) * + 82 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT - COUNT ( * ) * + 82 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL + 61 * SUM( + + 54 )
----
3294

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL + 61 * SUM ( + + 54 )
----
3294

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT ALL - 70 DIV + 2 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - 70 / + 2 AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT - 92 DIV - 91
----
1

skipif mysql # not compatible
query I rowsort label-4339
SELECT - 92 / - 91
----
1

query I rowsort
SELECT + 4 * + 26 col2
----
104

query I rowsort
SELECT - 10 + + ( + 56 )
----
46

query I rowsort
SELECT - 80 * + 31
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT - SUM( ALL 15 ) + 5 col1
----
-10

skipif mysql # not compatible
query I rowsort label-4343
SELECT - SUM ( ALL 15 ) + 5 col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT ALL COALESCE ( - 58, 72 + + CAST( + COUNT( * ) + 35 * - 83 AS SIGNED ), + 10 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL COALESCE ( - 58, 72 + + CAST ( + COUNT ( * ) + 35 * - 83 AS INTEGER ), + 10 ) AS col1
----
-58

query I rowsort
SELECT DISTINCT NULLIF ( + 92, - 94 ) AS col2
----
92

query I rowsort
SELECT DISTINCT - 44 + + 73 * 95
----
6891

query I rowsort
SELECT DISTINCT 79 + 21 * + 5 AS col1
----
184

query I rowsort
SELECT ALL 38 + 49
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT DISTINCT NULLIF ( - 73, - MAX( - 43 ) * + 93 + + 18 * 23 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT NULLIF ( - 73, - MAX ( - 43 ) * + 93 + + 18 * 23 ) AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT ALL 39 / - CASE - 47 WHEN CAST( AVG ( - 16 ) AS SIGNED ) THEN NULL WHEN 95 THEN - AVG ( + 58 ) END + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL 39 / - CASE - 47 WHEN CAST ( AVG ( - 16 ) AS INTEGER ) THEN NULL WHEN 95 THEN - AVG ( + 58 ) END + 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT + 72 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT + 72 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT ( - ( CAST( - 16 AS SIGNED ) ) )
----
16

skipif mysql # not compatible
query I rowsort label-4352
SELECT ( - ( CAST ( - 16 AS INTEGER ) ) )
----
16

query I rowsort
SELECT ( - 44 ) col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT - CASE + 87 WHEN + 81 THEN NULL WHEN 24 - + CAST( - 15 AS SIGNED ) THEN - 47 * + 82 END - + ( + 85 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT - CASE + 87 WHEN + 81 THEN NULL WHEN 24 - + CAST ( - 15 AS INTEGER ) THEN - 47 * + 82 END - + ( + 85 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT + CASE 55 WHEN - 91 THEN - COUNT( * ) / 41 WHEN 89 / + 95 THEN NULL WHEN 93 - - 91 * + 13 THEN + 50 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT + CASE 55 WHEN - 91 THEN - COUNT ( * ) / 41 WHEN 89 / + 95 THEN NULL WHEN 93 - - 91 * + 13 THEN + 50 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 0 * - 85 + 91 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4357
SELECT COUNT( * ) * 97 - 52 * CAST( 42 AS SIGNED )
----
-2087

skipif mysql # not compatible
query I rowsort label-4357
SELECT COUNT ( * ) * 97 - 52 * CAST ( 42 AS INTEGER )
----
-2087

query I rowsort
SELECT ALL 25 * 53 + + 13
----
1338

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT + 19 / - 89 + - ( - CASE 57 WHEN - CASE ( 23 ) WHEN - COALESCE ( COALESCE ( 80, + 78, - 53 * ( 15 ) ), + 8, - 45 ) * - 60 THEN - 40 + + 0 END * + 52 THEN CAST( 8 AS SIGNED ) + + 95 / + ( 37 ) END ) * - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT + 19 / - 89 + - ( - CASE 57 WHEN - CASE ( 23 ) WHEN - COALESCE ( COALESCE ( 80, + 78, - 53 * ( 15 ) ), + 8, - 45 ) * - 60 THEN - 40 + + 0 END * + 52 THEN CAST ( 8 AS INTEGER ) + + 95 / + ( 37 ) END ) * - 22 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4360
SELECT ALL 95 DIV 6 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL 95 / 6 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT + 6 * + COUNT( * ) col1
----
6

skipif mysql # not compatible
query I rowsort label-4361
SELECT + 6 * + COUNT ( * ) col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT 18 * + CASE MIN( ALL 20 ) WHEN - COUNT( * ) + - 28 THEN NULL WHEN 8 THEN 11 ELSE 97 - + 98 END
----
-18

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT 18 * + CASE MIN ( ALL 20 ) WHEN - COUNT ( * ) + - 28 THEN NULL WHEN 8 THEN 11 ELSE 97 - + 98 END
----
-18

query I rowsort
SELECT + 83 - - 88 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT + COUNT( ALL + 6 )
----
1

skipif mysql # not compatible
query I rowsort label-4364
SELECT + COUNT ( ALL + 6 )
----
1

query I rowsort
SELECT 37 * - NULLIF ( 93, + 51 * 88 ) - 20
----
-3461

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + COALESCE ( - COALESCE ( - 30, 81 - + COUNT( * ), 15 ), + 7, 94, 66 - 60, 52 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4366
SELECT + COALESCE ( - COALESCE ( - 30, 81 - + COUNT ( * ), 15 ), + 7, 94, 66 - 60, 52 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT + COUNT( * ) + + 40 * 7 AS col0
----
281

skipif mysql # not compatible
query I rowsort label-4367
SELECT + COUNT ( * ) + + 40 * 7 AS col0
----
281

query I rowsort
SELECT + 47 * 18
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT - SUM( - 5 ) * + 83
----
415

skipif mysql # not compatible
query I rowsort label-4369
SELECT - SUM ( - 5 ) * + 83
----
415

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT CASE 97 WHEN 64 + - COUNT( * ) THEN + ( COUNT( * ) ) END * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT CASE 97 WHEN 64 + - COUNT ( * ) THEN + ( COUNT ( * ) ) END * 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT COUNT( ALL + ( - 54 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT COUNT ( ALL + ( - 54 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT - CAST( NULL AS SIGNED ) * 40 + 56 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT - CAST ( NULL AS INTEGER ) * 40 + 56 col2
----
NULL

query I rowsort
SELECT + 17 * + 49 col2
----
833

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT MIN( - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4374
SELECT MIN ( - 89 ) AS col1
----
-89

query I rowsort
SELECT + 4 + 5 AS col0
----
9

query I rowsort
SELECT - ( 47 )
----
-47

query I rowsort
SELECT + 81 + 39 * - 32 AS col1
----
-1167

query I rowsort
SELECT - 86 * 64 AS col2
----
-5504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT - + CAST( + 21 AS SIGNED ) + 19 * + 29
----
530

skipif mysql # not compatible
query I rowsort label-4379
SELECT - + CAST ( + 21 AS INTEGER ) + 19 * + 29
----
530

query I rowsort
SELECT DISTINCT - 3 * + 18
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL + COUNT( * ) + 71
----
72

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + COUNT ( * ) + 71
----
72

query I rowsort
SELECT + NULLIF ( + 67, + 36 ) + 79 * + 46 AS col2
----
3701

query I rowsort
SELECT ALL - - ( 22 ) + 6 AS col2
----
28

query I rowsort
SELECT + 51 + - 24 AS col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4385
SELECT ALL - 58 + - 59 DIV + 3
----
-77

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL - 58 + - 59 / + 3
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT DISTINCT - COUNT( 44 ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT - COUNT ( 44 ) * - COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - 42 + + 8 AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4388
SELECT ALL + + 0 + + COALESCE ( 30, + CASE - MAX( + 19 ) WHEN - 19 THEN MAX( 58 ) WHEN - COUNT( * ) THEN NULL ELSE ( - 19 ) + 88 * 71 END + 85 DIV + COUNT( * ), + 98 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL + + 0 + + COALESCE ( 30, + CASE - MAX ( + 19 ) WHEN - 19 THEN MAX ( 58 ) WHEN - COUNT ( * ) THEN NULL ELSE ( - 19 ) + 88 * 71 END + 85 / + COUNT ( * ), + 98 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL - COUNT( * ) + 30 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - COUNT ( * ) + 30 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT MIN( ALL 52 ) + 5
----
57

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT MIN ( ALL 52 ) + 5
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4391
SELECT DISTINCT - + 87 DIV + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT - + 87 / + COUNT ( * )
----
-87

query I rowsort
SELECT - + 23 + 84 AS col2
----
61

query I rowsort
SELECT - - 65 * - 70
----
-4550

query I rowsort
SELECT - 14 + - 36
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT - COALESCE ( - 99, + COUNT( * ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT - COALESCE ( - 99, + COUNT ( * ) ) AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT ALL ( + 66 ) DIV 97 + 17 * - NULLIF ( 66 + 53, ( - 73 ) )
----
-2023

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL ( + 66 ) / 97 + 17 * - NULLIF ( 66 + 53, ( - 73 ) )
----
-2023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4397
SELECT ( COUNT( * ) ) DIV 83 + + 67 * + 33
----
2211

skipif mysql # not compatible
query I rowsort label-4397
SELECT ( COUNT ( * ) ) / 83 + + 67 * + 33
----
2211

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ( ( - COUNT( DISTINCT + 91 ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4398
SELECT ( ( - COUNT ( DISTINCT + 91 ) ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4399
SELECT ALL + 66 DIV - 77 - 33 * 8
----
-264

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL + 66 / - 77 - 33 * 8
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT CAST( NULL AS SIGNED ) * + CAST( - 91 / - 37 AS SIGNED ) + 85 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT CAST ( NULL AS INTEGER ) * + CAST ( - 91 / - 37 AS INTEGER ) + 85 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL - 2 - - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL - 2 - - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT + 3 * - 84 col0
----
-252

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4403
SELECT DISTINCT - 59 * + - CASE - 4 WHEN - COUNT( * ) * - 29 + - CAST( NULL AS DECIMAL ) * 8 THEN + 70 + + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - 59 * + - CASE - 4 WHEN - COUNT ( * ) * - 29 + - CAST ( NULL AS REAL ) * 8 THEN + 70 + + 87 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT DISTINCT - 50 - + - 59 - - 55 DIV + 57 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT - 50 - + - 59 - - 55 / + 57 AS col2
----
9

query I rowsort
SELECT 12 * + + 89
----
1068

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT DISTINCT - ( COUNT( ALL 17 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT - ( COUNT ( ALL 17 ) )
----
-1

query I rowsort
SELECT ALL - NULLIF ( + - 36, 84 ) * + ( 94 ) col1
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT COALESCE ( + + 85, + COUNT( * ) - NULLIF ( - 93, + 11 / + 29 + 30 * 65 ) * 8, + 2 ) + 7 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4408
SELECT COALESCE ( + + 85, + COUNT ( * ) - NULLIF ( - 93, + 11 / + 29 + 30 * 65 ) * 8, + 2 ) + 7 AS col1
----
92

query I rowsort
SELECT 2 * - ( 78 )
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT 42 * + 71 * ( + COUNT( * ) ) + 49
----
3031

skipif mysql # not compatible
query I rowsort label-4410
SELECT 42 * + 71 * ( + COUNT ( * ) ) + 49
----
3031

onlyif mysql # DIV for integer division: 
query I rowsort label-4411
SELECT 44 DIV - - 2 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4411
SELECT 44 / - - 2 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT NULLIF ( - + 91, 9 * + 28 + COUNT( * ) ) + + MAX( ALL - 12 ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-4412
SELECT NULLIF ( - + 91, 9 * + 28 + COUNT ( * ) ) + + MAX ( ALL - 12 ) AS col1
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT DISTINCT - CAST( + + 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - CAST ( + + 86 AS INTEGER )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT ALL COALESCE ( + + 68, CAST( COALESCE ( - NULLIF ( 89, COUNT( * ) ), 74 + - 83 ) AS SIGNED ) ) * + ( + 55 + 30 * - 31 )
----
-59500

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL COALESCE ( + + 68, CAST ( COALESCE ( - NULLIF ( 89, COUNT ( * ) ), 74 + - 83 ) AS INTEGER ) ) * + ( + 55 + 30 * - 31 )
----
-59500

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT 34 DIV 14
----
2

skipif mysql # not compatible
query I rowsort label-4415
SELECT 34 / 14
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT ALL - 97 DIV - - 15 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL - 97 / - - 15 AS col0
----
-6

query I rowsort
SELECT DISTINCT 28 * - 79 AS col1
----
-2212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT + CAST( NULL AS SIGNED ) * + + 74 * - 45 + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4418
SELECT + CAST ( NULL AS INTEGER ) * + + 74 * - 45 + - 7 AS col0
----
NULL

query I rowsort
SELECT 69 + + NULLIF ( 43, 93 ) - + 90 AS col0
----
22

query I rowsort
SELECT ALL 27 + 99
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT COUNT( * ) - COUNT( * ) + 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4421
SELECT COUNT ( * ) - COUNT ( * ) + 67 AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4422
SELECT ALL + 29 * - CAST( NULL AS SIGNED ) * - 82 + 57 * - NULLIF ( SUM( DISTINCT 76 ), - 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + 29 * - CAST ( NULL AS INTEGER ) * - 82 + 57 * - NULLIF ( SUM ( DISTINCT 76 ), - 93 )
----
NULL

query I rowsort
SELECT 59 * - 19 * - 61
----
68381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT ALL - 13 + + - NULLIF ( 5, + ( + CAST( NULL AS SIGNED ) ) * 93 - 49 / 49 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL - 13 + + - NULLIF ( 5, + ( + CAST ( NULL AS INTEGER ) ) * 93 - 49 / 49 ) AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL - COUNT( + ( + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL - COUNT ( + ( + CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4426
SELECT - ( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT - ( + - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL + 38 + + - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL + 38 + + - COUNT ( * ) AS col0
----
37

query I rowsort
SELECT ALL + + 72 + + 8 AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4429
SELECT 38 DIV + NULLIF ( - 28, + 5 + 72 ) + MAX( + 83 + 97 ) * 18 AS col1
----
3239

skipif mysql # not compatible
query I rowsort label-4429
SELECT 38 / + NULLIF ( - 28, + 5 + 72 ) + MAX ( + 83 + 97 ) * 18 AS col1
----
3239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4430
SELECT - MIN( ALL 41 ) + 98 DIV - ( 12 + 64 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4430
SELECT - MIN ( ALL 41 ) + 98 / - ( 12 + 64 ) AS col0
----
-42

query I rowsort
SELECT DISTINCT + 64 - 34 * - 70
----
2444

query I rowsort
SELECT DISTINCT ( + + 37 ) AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT - CASE + 52 WHEN + 51 THEN + 16 * - 84 WHEN 38 THEN CAST( 72 AS SIGNED ) WHEN + 44 + 3 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4433
SELECT - CASE + 52 WHEN + 51 THEN + 16 * - 84 WHEN 38 THEN CAST ( 72 AS INTEGER ) WHEN + 44 + 3 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL - 62 * + COUNT( DISTINCT - 3 )
----
-62

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL - 62 * + COUNT ( DISTINCT - 3 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT - COUNT( * ) - + 28
----
-29

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT - COUNT ( * ) - + 28
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT + ( 42 ) DIV - CASE + 41 WHEN - 88 THEN NULL WHEN 61 THEN NULL ELSE - 30 END + NULLIF ( 13, 85 * 1 - - 2 )
----
14

skipif mysql # not compatible
query I rowsort label-4436
SELECT + ( 42 ) / - CASE + 41 WHEN - 88 THEN NULL WHEN 61 THEN NULL ELSE - 30 END + NULLIF ( 13, 85 * 1 - - 2 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL - COUNT( 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL - COUNT ( 78 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4438
SELECT ( + 8 ) DIV MIN( DISTINCT + 15 ) + + ( - SUM( ALL + 51 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-4438
SELECT ( + 8 ) / MIN ( DISTINCT + 15 ) + + ( - SUM ( ALL + 51 ) )
----
-51

query I rowsort
SELECT 92 + 7 col0
----
99

query II rowsort
SELECT + 20, + 57 AS col2
----
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT 99 * - - COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4441
SELECT 99 * - - COUNT ( * ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT 34 * + + CASE + - NULLIF ( 80, + 6 ) WHEN 97 + - 8 * CASE 90 + - ( + 27 + - 7 ) / 76 WHEN + 62 + + 34 THEN NULL WHEN + 29 * 36 THEN - SUM( - 86 ) WHEN - 68 THEN + 47 ELSE NULL END THEN NULL WHEN 83 THEN NULL ELSE + ( - 59 ) END
----
-2006

skipif mysql # not compatible
query I rowsort label-4442
SELECT 34 * + + CASE + - NULLIF ( 80, + 6 ) WHEN 97 + - 8 * CASE 90 + - ( + 27 + - 7 ) / 76 WHEN + 62 + + 34 THEN NULL WHEN + 29 * 36 THEN - SUM ( - 86 ) WHEN - 68 THEN + 47 ELSE NULL END THEN NULL WHEN 83 THEN NULL ELSE + ( - 59 ) END
----
-2006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT 8 - - 57 + - CASE - CAST( NULL AS SIGNED ) WHEN 94 + 6 THEN + CAST( NULL AS SIGNED ) / 37 + - 25 * 0 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT 8 - - 57 + - CASE - CAST ( NULL AS INTEGER ) WHEN 94 + 6 THEN + CAST ( NULL AS INTEGER ) / 37 + - 25 * 0 END AS col0
----
NULL

query I rowsort
SELECT 74 * + 43 + 5 + 24 * - 94
----
931

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ALL - COUNT( * ) * + 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL - COUNT ( * ) * + 3 AS col2
----
-3

query I rowsort
SELECT 24 * 67
----
1608

query I rowsort
SELECT 27 + - 28
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT ALL - CASE ( + + COUNT( * ) ) WHEN - 14 * + 15 - 49 THEN + 24 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL - CASE ( + + COUNT ( * ) ) WHEN - 14 * + 15 - 49 THEN + 24 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT DISTINCT - 83 * + + 7 * - COUNT( * )
----
581

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - 83 * + + 7 * - COUNT ( * )
----
581

query I rowsort
SELECT 37 + - + 56 + 16 * 94
----
1485

query I rowsort
SELECT ALL - ( - - 85 ) + - 5 AS col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4452
SELECT ALL - CAST( NULL AS SIGNED ) * - - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 29 AS col2
----
NULL

query I rowsort
SELECT 14 * + 13 AS col2
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - 9 * MAX( ALL + 16 ) + 78 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4454
SELECT - 9 * MAX ( ALL + 16 ) + 78 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT 27 + MIN( + 33 ) - + 70 * - 34 AS col2
----
2440

skipif mysql # not compatible
query I rowsort label-4455
SELECT 27 + MIN ( + 33 ) - + 70 * - 34 AS col2
----
2440

query I rowsort
SELECT ALL - 12 + 28
----
16

query I rowsort
SELECT DISTINCT - COALESCE ( + - NULLIF ( - + 99, - 65 ), 30 ) AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT DISTINCT + CAST( - - ( 68 ) AS SIGNED ) + 20 * CASE 31 WHEN 65 THEN + 32 - 57 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT + CAST ( - - ( 68 ) AS INTEGER ) + 20 * CASE 31 WHEN 65 THEN + 32 - 57 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + 66 + 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT DISTINCT - COUNT( * ) * + + 72 * - 34 AS col0
----
2448

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT - COUNT ( * ) * + + 72 * - 34 AS col0
----
2448

query I rowsort
SELECT ALL 86 + + 80 AS col0
----
166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4462
SELECT ALL + + 53 DIV + 13 + - COUNT( * ) * 93
----
-89

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL + + 53 / + 13 + - COUNT ( * ) * 93
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT COUNT( * ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT COUNT ( * ) + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT + CASE + NULLIF ( 41, - 91 ) WHEN MIN( 3 ) THEN 10 ELSE NULL END / + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT + CASE + NULLIF ( 41, - 91 ) WHEN MIN ( 3 ) THEN 10 ELSE NULL END / + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT 66 + - COUNT( + + 11 ) - 49
----
16

skipif mysql # not compatible
query I rowsort label-4465
SELECT 66 + - COUNT ( + + 11 ) - 49
----
16

query I rowsort
SELECT 53 + - ( 41 ) AS col1
----
12

query I rowsort
SELECT ALL + 1 - - 5 * + + 91 - - 87
----
543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4468
SELECT - COUNT( + CAST( + - 41 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4468
SELECT - COUNT ( + CAST ( + - 41 AS INTEGER ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4469
SELECT - - 42 AS col1, 84 + 7 DIV 30
----
42
84

skipif mysql # not compatible
query II rowsort label-4469
SELECT - - 42 AS col1, 84 + 7 / 30
----
42
84

query I rowsort
SELECT + 36 + - 83 AS col1
----
-47

query I rowsort
SELECT 45 * 34 + + + 66 AS col0
----
1596

query I rowsort
SELECT ALL - + 74 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT DISTINCT - 24 * - MIN( DISTINCT - - 51 ) * - 47 - - 64 DIV 22 AS col2
----
-57526

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT - 24 * - MIN ( DISTINCT - - 51 ) * - 47 - - 64 / 22 AS col2
----
-57526

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4474
SELECT DISTINCT + COUNT( * ) - - + CASE CAST( NULL AS DECIMAL ) WHEN COUNT( * ) THEN NULL ELSE + 33 END + 60 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT + COUNT ( * ) - - + CASE CAST ( NULL AS REAL ) WHEN COUNT ( * ) THEN NULL ELSE + 33 END + 60 AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT + 85 + 41 * CAST( + 63 AS SIGNED )
----
2668

skipif mysql # not compatible
query I rowsort label-4475
SELECT + 85 + 41 * CAST ( + 63 AS INTEGER )
----
2668

query II rowsort
SELECT DISTINCT 18, 98 * + ( - 87 ) AS col0
----
18
-8526

query I rowsort
SELECT + + COALESCE ( - + 22, - 82 ) + 99
----
77

query I rowsort
SELECT + NULLIF ( + + 97, + 58 ) * 76 AS col1
----
7372

query II rowsort
SELECT + 60 + 2 AS col2, 37 * - 0
----
62
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4480
SELECT - COUNT( DISTINCT - 25 ), 67 AS col1
----
-1
67

skipif mysql # not compatible
query II rowsort label-4480
SELECT - COUNT ( DISTINCT - 25 ), 67 AS col1
----
-1
67

query I rowsort
SELECT - 36 + ( 31 ) + + 67 + 40 * + 57 col2
----
2342

onlyif mysql # DIV for integer division: 
query I rowsort label-4482
SELECT 6 DIV + - 9 * - 64 + 91 - - 95 AS col1
----
186

skipif mysql # not compatible
query I rowsort label-4482
SELECT 6 / + - 9 * - 64 + 91 - - 95 AS col1
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT DISTINCT + 25 * - + 7 + - CAST( - - 61 AS SIGNED )
----
-236

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + 25 * - + 7 + - CAST ( - - 61 AS INTEGER )
----
-236

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT DISTINCT - MIN( ALL - 44 ) * - CASE 93 WHEN 26 THEN COUNT( * ) + 99 * 29 WHEN - 73 THEN 78 + - NULLIF ( - 89, 71 ) END * 89 + 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT - MIN ( ALL - 44 ) * - CASE 93 WHEN 26 THEN COUNT ( * ) + 99 * 29 WHEN - 73 THEN 78 + - NULLIF ( - 89, 71 ) END * 89 + 90 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT DISTINCT + COUNT( + 25 ) * - - 22 - + 20 + + 89
----
91

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT + COUNT ( + 25 ) * - - 22 - + 20 + + 89
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT ALL COUNT( * ) * + + 76 * - COUNT( * ) * + - 78 * - MAX( ALL 89 ) + ( 50 + - 23 )
----
-527565

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL COUNT ( * ) * + + 76 * - COUNT ( * ) * + - 78 * - MAX ( ALL 89 ) + ( 50 + - 23 )
----
-527565

query I rowsort
SELECT ALL + 92 * + - 73 + 21
----
-6695

query I rowsort
SELECT - 70 + + 25
----
-45

query I rowsort
SELECT CASE - 71 WHEN 85 + 37 THEN NULL ELSE 21 - 73 * + 30 END
----
-2169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4490
SELECT + 40 DIV - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-4490
SELECT + 40 / - COUNT ( * )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4491
SELECT - ( CASE + 60 WHEN + - NULLIF ( - COUNT( * ), NULLIF ( + 6, CASE - 36 WHEN - COUNT( * ) * ( 23 / COUNT( * ) ) + - 89 THEN + 85 WHEN + MAX( ALL 28 ) THEN + CASE + 52 WHEN - 25 THEN + 43 WHEN - 58 / ( 50 ) THEN + 40 + 97 * + COUNT( + 52 * - 66 - 41 ) WHEN + COUNT( * ) + + ( ( + COALESCE ( + 89, COALESCE ( 52, + ( + 83 ) * + 60 ) + COALESCE ( 81, 89 * + 73 ) ) ) - 17 ) / 11 THEN NULL END * - 32 END + - NULLIF ( 6, 0 ) ) + 10 / 12 ) * + COALESCE ( + CAST( NULL AS SIGNED ), - 67 ) THEN 27 + CASE WHEN 71 IS NULL THEN 45 + 30 WHEN 34 < + SUM( 95 ) THEN + 99 ELSE NULL END WHEN 97 THEN 9 * + 0 END ) + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT - ( CASE + 60 WHEN + - NULLIF ( - COUNT ( * ), NULLIF ( + 6, CASE - 36 WHEN - COUNT ( * ) * ( 23 / COUNT ( * ) ) + - 89 THEN + 85 WHEN + MAX ( ALL 28 ) THEN + CASE + 52 WHEN - 25 THEN + 43 WHEN - 58 / ( 50 ) THEN + 40 + 97 * + COUNT ( + 52 * - 66 - 41 ) WHEN + COUNT ( * ) + + ( ( + COALESCE ( + 89, COALESCE ( 52, + ( + 83 ) * + 60 ) + COALESCE ( 81, 89 * + 73 ) ) ) - 17 ) / 11 THEN NULL END * - 32 END + - NULLIF ( 6, 0 ) ) + 10 / 12 ) * + COALESCE ( + CAST ( NULL AS INTEGER ), - 67 ) THEN 27 + CASE WHEN 71 IS NULL THEN 45 + 30 WHEN 34 < + SUM ( 95 ) THEN + 99 ELSE NULL END WHEN 97 THEN 9 * + 0 END ) + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4492
SELECT + ( + 79 ) AS col1, + COUNT( * ) DIV 67
----
79
0

skipif mysql # not compatible
query II rowsort label-4492
SELECT + ( + 79 ) AS col1, + COUNT ( * ) / 67
----
79
0

query I rowsort
SELECT + 61 * + 30 + 66 + - - 21
----
1917

query I rowsort
SELECT + ( - 31 ) col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT DISTINCT + COUNT( ALL - 89 ) * 40 + + 33 + 17 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT + COUNT ( ALL - 89 ) * 40 + + 33 + 17 AS col1
----
90

query I rowsort
SELECT ALL + 49 * + 82 + 24 + 12 + + 38 * 37
----
5460

query I rowsort
SELECT DISTINCT + - ( ( - - 56 ) ) * - 37 AS col0
----
2072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT - CASE + CAST( + 60 AS SIGNED ) WHEN + CAST( - 66 AS SIGNED ) * 82 THEN NULL ELSE 39 + - 65 END + 92
----
118

skipif mysql # not compatible
query I rowsort label-4498
SELECT - CASE + CAST ( + 60 AS INTEGER ) WHEN + CAST ( - 66 AS INTEGER ) * 82 THEN NULL ELSE 39 + - 65 END + 92
----
118

query I rowsort
SELECT - 58 * - 63
----
3654

query I rowsort
SELECT ALL + 30 * 36 AS col1
----
1080

query I rowsort
SELECT - + 61 + + 72
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4502
SELECT - + 91 * 64 AS col0, 99 - + MIN( ALL - 57 )
----
-5824
156

skipif mysql # not compatible
query II rowsort label-4502
SELECT - + 91 * 64 AS col0, 99 - + MIN ( ALL - 57 )
----
-5824
156

query I rowsort
SELECT - - 17 - - 27 AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4504
SELECT DISTINCT + COALESCE ( + 35, - - 26 * + 92 * + COUNT( * ) ) DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT + COALESCE ( + 35, - - 26 * + 92 * + COUNT ( * ) ) / - 96
----
0

query I rowsort
SELECT ALL + 14 * 36 * 45
----
22680

query I rowsort
SELECT - 5 + + + CASE + 82 WHEN - 95 THEN - 3 * - 95 END * + 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL - NULLIF ( 2, COUNT( * ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - NULLIF ( 2, COUNT ( * ) ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT DISTINCT - 87 DIV - 4 - + 73
----
-52

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT - 87 / - 4 - + 73
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4509
SELECT - + 65 * - - 97 * - + CAST( NULL AS SIGNED ) * ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT - + 65 * - - 97 * - + CAST ( NULL AS INTEGER ) * ( COUNT ( * ) )
----
NULL

query I rowsort
SELECT + + ( + + 41 ) * + - 1
----
-41

query I rowsort
SELECT ALL + 54 * - 87 AS col2
----
-4698

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT - COUNT( * ) - 16 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4512
SELECT - COUNT ( * ) - 16 AS col2
----
-17

query I rowsort
SELECT - - 90 * - ( + - 78 )
----
7020

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT + - 84 * + - COUNT( DISTINCT + ( - NULLIF ( 86, + ( 53 ) ) ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-4514
SELECT + - 84 * + - COUNT ( DISTINCT + ( - NULLIF ( 86, + ( 53 ) ) ) ) AS col2
----
84

query I rowsort
SELECT DISTINCT CASE 55 WHEN - + 25 THEN - 45 + 44 * 68 ELSE NULL END * 63 AS col1
----
NULL

query I rowsort
SELECT ALL 18 + + 68 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT - NULLIF ( + COUNT( * ), 4 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4517
SELECT - NULLIF ( + COUNT ( * ), 4 ) AS col0
----
-1

query I rowsort
SELECT ALL + 10 + 22 AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4519
SELECT ALL CAST( NULL AS SIGNED ) + 25 * + CAST( NULL AS SIGNED ) * - - MAX( DISTINCT - 75 ) * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL CAST ( NULL AS INTEGER ) + 25 * + CAST ( NULL AS INTEGER ) * - - MAX ( DISTINCT - 75 ) * 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT NULLIF ( ( + COUNT( * ) ), - COUNT( * ) * ( - 48 ) / + 50 ) * ( - 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT NULLIF ( ( + COUNT ( * ) ), - COUNT ( * ) * ( - 48 ) / + 50 ) * ( - 71 ) AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT + CASE 29 WHEN - 43 THEN - 49 WHEN - CASE - ( 98 ) WHEN COALESCE ( - 89, + 68 ) THEN + 68 * + 1 WHEN ( - 48 ) / 38 THEN NULL WHEN 73 THEN + CASE WHEN NULL IS NULL THEN NULLIF ( - 9, ( + 92 ) / - 73 ) END ELSE - 47 - 15 END THEN 21 - - 79 ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT + CASE 29 WHEN - 43 THEN - 49 WHEN - CASE - ( 98 ) WHEN COALESCE ( - 89, + 68 ) THEN + 68 * + 1 WHEN ( - 48 ) / 38 THEN NULL WHEN 73 THEN + CASE WHEN NULL IS NULL THEN NULLIF ( - 9, ( + 92 ) / - 73 ) END ELSE - 47 - 15 END THEN 21 - - 79 ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4522
SELECT + CASE 75 WHEN + MAX( - 6 ) THEN - - COALESCE ( 64, 50 ) WHEN + CAST( NULL AS SIGNED ) THEN + 58 ELSE + 34 * + 99 END
----
3366

skipif mysql # not compatible
query I rowsort label-4522
SELECT + CASE 75 WHEN + MAX ( - 6 ) THEN - - COALESCE ( 64, 50 ) WHEN + CAST ( NULL AS INTEGER ) THEN + 58 ELSE + 34 * + 99 END
----
3366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4523
SELECT + ( - 0 ) DIV + 50 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4523
SELECT + ( - 0 ) / + 50 * - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - 13 * + - 36 + COALESCE ( 68, - + 82, + 40 * COUNT( * ) - + 2 )
----
536

skipif mysql # not compatible
query I rowsort label-4524
SELECT - 13 * + - 36 + COALESCE ( 68, - + 82, + 40 * COUNT ( * ) - + 2 )
----
536

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT ALL - 55 DIV + 72 + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL - 55 / + 72 + - 49
----
-49

query I rowsort
SELECT + 87 + + - 85 col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT ALL + 5 DIV - 46 - COUNT( DISTINCT - + 0 ) + COUNT( * ) DIV 26
----
-1

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL + 5 / - 46 - COUNT ( DISTINCT - + 0 ) + COUNT ( * ) / 26
----
-1

query I rowsort
SELECT + 4 * + - 61
----
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL 10 * - 41 * + ( + MIN( ALL 60 ) )
----
-24600

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL 10 * - 41 * + ( + MIN ( ALL 60 ) )
----
-24600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL + 51 * + SUM( + ( - CAST( NULL AS SIGNED ) ) ) / - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + 51 * + SUM ( + ( - CAST ( NULL AS INTEGER ) ) ) / - - 96
----
NULL

query I rowsort
SELECT - 51 * + 49
----
-2499

query I rowsort
SELECT + 7 * - 28 + - - 68 AS col2
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL - 43 * 40 * + ( COUNT( * ) ) * 86 - 78 * SUM( 26 )
----
-149948

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL - 43 * 40 * + ( COUNT ( * ) ) * 86 - 78 * SUM ( 26 )
----
-149948

onlyif mysql # aggregate syntax: 
query II rowsort label-4534
SELECT + COUNT( * ) + - + 21 + + 32, + 49 AS col1
----
12
49

skipif mysql # not compatible
query II rowsort label-4534
SELECT + COUNT ( * ) + - + 21 + + 32, + 49 AS col1
----
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL - - NULLIF ( - + 25, - MIN( ALL + 8 ) * + 1 * - 59 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - - NULLIF ( - + 25, - MIN ( ALL + 8 ) * + 1 * - 59 ) AS col2
----
-25

query I rowsort
SELECT DISTINCT - ( + + 68 ) col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT - COALESCE ( - 46, + + ( - + 22 ), - - 12 + 83 DIV 96 )
----
46

skipif mysql # not compatible
query I rowsort label-4537
SELECT - COALESCE ( - 46, + + ( - + 22 ), - - 12 + 83 / 96 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL + SUM( ALL + 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL + SUM ( ALL + 77 ) AS col0
----
77

query I rowsort
SELECT - - NULLIF ( 33, - 33 + - 32 + - AVG ( DISTINCT - 34 ) )
----
33

query I rowsort
SELECT + 58 * - + ( - 76 ) - + 31 + + + 24 * 60 AS col1
----
5817

query I rowsort
SELECT ALL + 74 * 16
----
1184

onlyif mysql # DIV for integer division: 
query I rowsort label-4542
SELECT + 98 + 59 DIV + 39 + - 24 + + 68
----
143

skipif mysql # not compatible
query I rowsort label-4542
SELECT + 98 + 59 / + 39 + - 24 + + 68
----
143

query I rowsort
SELECT DISTINCT + - 81 * - + 73 AS col2
----
5913

query I rowsort
SELECT NULLIF ( - 23, - 52 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL + COUNT( 46 ) + + 94 * - 55
----
-5169

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL + COUNT ( 46 ) + + 94 * - 55
----
-5169

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL - NULLIF ( 58, + + 14 + + + COUNT( * ) ) * - - 41 - + 12
----
-2390

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL - NULLIF ( 58, + + 14 + + + COUNT ( * ) ) * - - 41 - + 12
----
-2390

query I rowsort
SELECT 74 * - - 17
----
1258

query I rowsort
SELECT ALL + NULLIF ( + 98, + 15 / + 54 * + - 58 / + 18 ) + + 42 * 21 col0
----
980

query I rowsort
SELECT 18 + 52
----
70

query I rowsort
SELECT 28 + + + 45 + + 47 AS col2
----
120

query I rowsort
SELECT ALL - 42 + NULLIF ( - 77, + 59 )
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL + ( - - 59 ) + SUM( ALL - 62 ) + + + 49 * + 30 * - 79 + - 32 * COUNT( - 87 ) AS col2
----
-116165

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL + ( - - 59 ) + SUM ( ALL - 62 ) + + + 49 * + 30 * - 79 + - 32 * COUNT ( - 87 ) AS col2
----
-116165

onlyif mysql # DIV for integer division: 
query I rowsort label-4553
SELECT 18 DIV - - 98
----
0

skipif mysql # not compatible
query I rowsort label-4553
SELECT 18 / - - 98
----
0

query I rowsort
SELECT 53 + + + 38 * + 87 + + 71 AS col2
----
3430

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT CASE - 78 WHEN - + COUNT( DISTINCT + 23 ) THEN NULL WHEN 62 * - 53 * + 83 THEN - COUNT( * ) END + 89 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT CASE - 78 WHEN - + COUNT ( DISTINCT + 23 ) THEN NULL WHEN 62 * - 53 * + 83 THEN - COUNT ( * ) END + 89 * - 50
----
NULL

query II rowsort
SELECT DISTINCT + 70 * - 65 AS col2, 83 AS col1
----
-4550
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT + ( + + 52 ) + - 12 * + + COUNT( * ) * 30
----
-308

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + ( + + 52 ) + - 12 * + + COUNT ( * ) * 30
----
-308

query I rowsort
SELECT ALL 5 * - - COALESCE ( 85, + 27, 32 * ( + 65 ) + - 7 * - 61 )
----
425

query I rowsort
SELECT ALL + 80 - + 35 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ALL 99 - - MIN( - ( + 13 ) ) * - 98 + COALESCE ( + MAX( DISTINCT + 87 ), - 77, 23 ) - + 23 AS col1
----
1437

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL 99 - - MIN ( - ( + 13 ) ) * - 98 + COALESCE ( + MAX ( DISTINCT + 87 ), - 77, 23 ) - + 23 AS col1
----
1437

onlyif mysql # aggregate syntax: 
query II rowsort label-4561
SELECT 58 AS col1, SUM( + 92 ) * + 5 * - + 4 AS col2
----
58
-1840

skipif mysql # not compatible
query II rowsort label-4561
SELECT 58 AS col1, SUM ( + 92 ) * + 5 * - + 4 AS col2
----
58
-1840

query I rowsort
SELECT ALL - NULLIF ( - 78, + + 26 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT 42 * - COUNT( * ) * - ( + 90 )
----
3780

skipif mysql # not compatible
query I rowsort label-4563
SELECT 42 * - COUNT ( * ) * - ( + 90 )
----
3780

query II rowsort
SELECT + - 2, + 34 AS col2
----
-2
34

query I rowsort
SELECT - 40 + + 63 AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4566
SELECT - 80 * - 44 AS col2, + 96 * - COUNT( ALL + 99 ) * - MAX( ALL 93 ) + - 81 + + 80 AS col2
----
3520
8927

skipif mysql # not compatible
query II rowsort label-4566
SELECT - 80 * - 44 AS col2, + 96 * - COUNT ( ALL + 99 ) * - MAX ( ALL 93 ) + - 81 + + 80 AS col2
----
3520
8927

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT COUNT( * ) * 38 col0
----
38

skipif mysql # not compatible
query I rowsort label-4567
SELECT COUNT ( * ) * 38 col0
----
38

query II rowsort
SELECT DISTINCT - 79 AS col0, - 5
----
-79
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT + - 53 * + 61 + COUNT( * ) AS col0
----
-3232

skipif mysql # not compatible
query I rowsort label-4569
SELECT + - 53 * + 61 + COUNT ( * ) AS col0
----
-3232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4570
SELECT ALL + SUM( ALL 54 ) DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + SUM ( ALL 54 ) / 50
----
1

query I rowsort
SELECT DISTINCT 55 * - 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT CAST( + COALESCE ( + + 37, - 85, + + COALESCE ( - 5, - 33 ) ) AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-4572
SELECT CAST ( + COALESCE ( + + 37, - 85, + + COALESCE ( - 5, - 33 ) ) AS INTEGER )
----
37

query II rowsort
SELECT ALL - 17 AS col2, 52 AS col0
----
-17
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT ALL + 20 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL + 20 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( 23 ) - 67
----
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-4576
SELECT 1, 1 DIV - - 98 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-4576
SELECT 1, 1 / - - 98 AS col1
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT - MAX( ALL + 43 ) * - MIN( + 7 ) AS col1
----
301

skipif mysql # not compatible
query I rowsort label-4577
SELECT - MAX ( ALL + 43 ) * - MIN ( + 7 ) AS col1
----
301

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT - + 52 * + + COUNT( * ) + - ( 99 ) * - - ( - 59 ) + - 16
----
5773

skipif mysql # not compatible
query I rowsort label-4578
SELECT - + 52 * + + COUNT ( * ) + - ( 99 ) * - - ( - 59 ) + - 16
----
5773

query II rowsort
SELECT ALL 3 AS col2, + 43
----
3
43

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4580
SELECT DISTINCT - 71, + CAST( NULL AS DECIMAL ) + - - 50 * CAST( NULL AS SIGNED ) col1, - - 40 AS col0
----
-71
NULL
40

skipif mysql # not compatible
query III rowsort label-4580
SELECT DISTINCT - 71, + CAST ( NULL AS REAL ) + - - 50 * CAST ( NULL AS INTEGER ) col1, - - 40 AS col0
----
-71
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT COUNT( * ) * 12 col0
----
12

skipif mysql # not compatible
query I rowsort label-4581
SELECT COUNT ( * ) * 12 col0
----
12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4582
SELECT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * - 22 * - + 49 / + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * - 22 * - + 49 / + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT - 36 - + NULLIF ( - 54, + COUNT( DISTINCT 24 ) + 93 )
----
18

skipif mysql # not compatible
query I rowsort label-4583
SELECT - 36 - + NULLIF ( - 54, + COUNT ( DISTINCT 24 ) + 93 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4584
SELECT ALL + 10 + - CASE + - 85 WHEN 0 THEN + + 45 * + CAST( NULL AS SIGNED ) - - 39 WHEN 0 THEN 57 * 28 WHEN + COUNT( * ) + 57 THEN NULL END + - 29 * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL + 10 + - CASE + - 85 WHEN 0 THEN + + 45 * + CAST ( NULL AS INTEGER ) - - 39 WHEN 0 THEN 57 * 28 WHEN + COUNT ( * ) + 57 THEN NULL END + - 29 * 53 AS col2
----
NULL

query I rowsort
SELECT ALL 83 + - 80 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT 8 * - - 81 * - CAST( + 90 AS SIGNED ) AS col2
----
-58320

skipif mysql # not compatible
query I rowsort label-4586
SELECT 8 * - - 81 * - CAST ( + 90 AS INTEGER ) AS col2
----
-58320

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL + ( - 88 ) + + COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + ( - 88 ) + + COUNT ( * ) AS col0
----
-87

query I rowsort
SELECT 33 - + 96 AS col2
----
-63

query I rowsort
SELECT DISTINCT - 39 * + + 89
----
-3471

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL + COUNT( * ) - - 35
----
36

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + COUNT ( * ) - - 35
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4591
SELECT DISTINCT - 94 DIV - 6 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT - 94 / - 6 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4592
SELECT 72 * + - COUNT( + COALESCE ( + CAST( NULL AS SIGNED ), 39 * + + ( - 91 ) * 7 ) ) * 76 AS col0
----
-5472

skipif mysql # not compatible
query I rowsort label-4592
SELECT 72 * + - COUNT ( + COALESCE ( + CAST ( NULL AS INTEGER ), 39 * + + ( - 91 ) * 7 ) ) * 76 AS col0
----
-5472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT 52 + COALESCE ( 19, - 52, - COALESCE ( - 17, SUM( DISTINCT 6 ) DIV - 43 + - 56 ) * 69 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4593
SELECT 52 + COALESCE ( 19, - 52, - COALESCE ( - 17, SUM ( DISTINCT 6 ) / - 43 + - 56 ) * 69 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL COUNT( * ) * + + 6 - - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL COUNT ( * ) * + + 6 - - COUNT ( * ) AS col0
----
7

query I rowsort
SELECT DISTINCT + 94 * 3 * + + 3
----
846

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT 68 DIV + 58
----
1

skipif mysql # not compatible
query I rowsort label-4596
SELECT 68 / + 58
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4597
SELECT 17 DIV 2, 35 AS col0
----
8
35

skipif mysql # not compatible
query II rowsort label-4597
SELECT 17 / 2, 35 AS col0
----
8
35

query I rowsort
SELECT DISTINCT + 43 * + - 38
----
-1634

query I rowsort
SELECT ALL - + 32 * 67 + + 69
----
-2075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4600
SELECT - ( - CAST( 29 AS SIGNED ) ) * 43 + + + 31 + + 53 AS col1
----
1331

skipif mysql # not compatible
query I rowsort label-4600
SELECT - ( - CAST ( 29 AS INTEGER ) ) * 43 + + + 31 + + 53 AS col1
----
1331

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT + + 63 / + 30 + + - COUNT( * ) * - COUNT( * ) * + CASE - 36 WHEN + 88 + COUNT( * ) THEN + 8 + 17 WHEN + 28 * AVG ( DISTINCT 72 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT + + 63 / + 30 + + - COUNT ( * ) * - COUNT ( * ) * + CASE - 36 WHEN + 88 + COUNT ( * ) THEN + 8 + 17 WHEN + 28 * AVG ( DISTINCT 72 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 40 * + 39
----
-1560

query I rowsort
SELECT - + 29 + + 37 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT COALESCE ( ( + 70 ), - - COUNT( * ), - 15 ) col1
----
70

skipif mysql # not compatible
query I rowsort label-4604
SELECT COALESCE ( ( + 70 ), - - COUNT ( * ), - 15 ) col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL CASE + 9 WHEN - 45 THEN - 72 * COUNT( * ) WHEN + 58 THEN NULL ELSE NULL END * + + 62 * - 33 + - 89 + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL CASE + 9 WHEN - 45 THEN - 72 * COUNT ( * ) WHEN + 58 THEN NULL ELSE NULL END * + + 62 * - 33 + - 89 + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT + 44 * + CASE 52 WHEN + 20 THEN + 45 WHEN + 16 * + 2 * COUNT( * ) THEN NULL END * 23 + + 67 * + 56 + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT + 44 * + CASE 52 WHEN + 20 THEN + 45 WHEN + 16 * + 2 * COUNT ( * ) THEN NULL END * 23 + + 67 * + 56 + + 28
----
NULL

query I rowsort
SELECT ( 59 ) AS col2
----
59

query I rowsort
SELECT - 48 * - 60 + - 22 + - 91 + - 33 + 2 AS col1
----
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL - 33 * - - MIN( ALL + 94 ) + 51
----
-3051

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL - 33 * - - MIN ( ALL + 94 ) + 51
----
-3051

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT + 68 * 45 + - COUNT( * ) + - 12 AS col2
----
3047

skipif mysql # not compatible
query I rowsort label-4610
SELECT + 68 * 45 + - COUNT ( * ) + - 12 AS col2
----
3047

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4611
SELECT ALL 99 + + CAST( + + ( + 8 ) AS SIGNED ) + - 3 DIV + - 69 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL 99 + + CAST ( + + ( + 8 ) AS INTEGER ) + - 3 / + - 69 AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT DISTINCT CASE - 34 WHEN + COUNT( * ) * + 86 THEN - COUNT( DISTINCT 54 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT CASE - 34 WHEN + COUNT ( * ) * + 86 THEN - COUNT ( DISTINCT 54 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4613
SELECT DISTINCT NULLIF ( - 29, - - 17 * + 90 + - CAST( + 48 AS SIGNED ) ) * + - COUNT( * ) * - 61 * 40 col2
----
-70760

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT NULLIF ( - 29, - - 17 * + 90 + - CAST ( + 48 AS INTEGER ) ) * + - COUNT ( * ) * - 61 * 40 col2
----
-70760

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + 65 + - COUNT( * ) - + 19 * + + 58
----
-1038

skipif mysql # not compatible
query I rowsort label-4614
SELECT + 65 + - COUNT ( * ) - + 19 * + + 58
----
-1038

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL 77 - + 78 * 93 * - CASE + - COUNT( * ) WHEN NULLIF ( + 7, + - 25 ) THEN NULL WHEN + 11 THEN 45 WHEN 95 THEN NULL ELSE NULL END * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL 77 - + 78 * 93 * - CASE + - COUNT ( * ) WHEN NULLIF ( + 7, + - 25 ) THEN NULL WHEN + 11 THEN 45 WHEN 95 THEN NULL ELSE NULL END * - 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4616
SELECT - MAX( + + ( - + 39 ) ) AS col1, - 66
----
39
-66

skipif mysql # not compatible
query II rowsort label-4616
SELECT - MAX ( + + ( - + 39 ) ) AS col1, - 66
----
39
-66

query I rowsort
SELECT + 35 + + NULLIF ( + 30, + 67 - 31 ) AS col2
----
65

query I rowsort
SELECT ALL 41 - - 43 AS col0
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-4619
SELECT ALL 79 AS col2, 27 DIV 29 * - 73 + - 13 AS col0
----
79
-13

skipif mysql # not compatible
query II rowsort label-4619
SELECT ALL 79 AS col2, 27 / 29 * - 73 + - 13 AS col0
----
79
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL MAX( - - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL MAX ( - - 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT + 5 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT + 5 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT - MIN( DISTINCT 51 ) + 26 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4622
SELECT - MIN ( DISTINCT 51 ) + 26 AS col0
----
-25

query I rowsort
SELECT ALL 63 * + 55 * + 97
----
336105

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT + COUNT( ALL - 45 ) * 41 col2
----
41

skipif mysql # not compatible
query I rowsort label-4624
SELECT + COUNT ( ALL - 45 ) * 41 col2
----
41

query II rowsort
SELECT DISTINCT + 8 * + 52 * - 16 * 55 AS col0, - COALESCE ( - + 67, - 44 ) AS col1
----
-366080
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4626
SELECT DISTINCT NULLIF ( + 92, + NULLIF ( CAST( NULL AS SIGNED ), + 56 * - 78 ) ) AS col2, + 77 AS col2
----
92
77

skipif mysql # not compatible
query II rowsort label-4626
SELECT DISTINCT NULLIF ( + 92, + NULLIF ( CAST ( NULL AS INTEGER ), + 56 * - 78 ) ) AS col2, + 77 AS col2
----
92
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL CASE 79 WHEN + 27 THEN 40 + COUNT( * ) * - 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL CASE 79 WHEN + 27 THEN 40 + COUNT ( * ) * - 52 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT CAST( 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-4628
SELECT CAST ( 33 AS INTEGER )
----
33

query II rowsort
SELECT DISTINCT + + 10 AS col0, NULLIF ( 63, + + 31 * + 73 * ( - 48 ) ) AS col1
----
10
63

query I rowsort
SELECT - 89 * - - 88 col1
----
-7832

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4631
SELECT ALL COUNT( * ) DIV - 36 + 21 AS col0, + 55 col1
----
21
55

skipif mysql # not compatible
query II rowsort label-4631
SELECT ALL COUNT ( * ) / - 36 + 21 AS col0, + 55 col1
----
21
55

query I rowsort
SELECT + - 56 * - 14 AS col2
----
784

query I rowsort
SELECT - + 92 * + 37 AS col1
----
-3404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4634
SELECT ALL + - CAST( NULL AS SIGNED ) / + MAX( ALL 90 ) * 5 + COUNT( + + 64 ) - - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL + - CAST ( NULL AS INTEGER ) / + MAX ( ALL 90 ) * 5 + COUNT ( + + 64 ) - - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT + COUNT( - 78 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT + COUNT ( - 78 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4636
SELECT DISTINCT + CASE - CAST( + + 35 AS SIGNED ) WHEN 11 THEN - 38 WHEN - - 12 / - 31 + - MIN( ALL - 56 ) * - 39 THEN CAST( NULL AS SIGNED ) WHEN 78 + 58 THEN NULL ELSE NULL END * + 83 + - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT + CASE - CAST ( + + 35 AS INTEGER ) WHEN 11 THEN - 38 WHEN - - 12 / - 31 + - MIN ( ALL - 56 ) * - 39 THEN CAST ( NULL AS INTEGER ) WHEN 78 + 58 THEN NULL ELSE NULL END * + 83 + - 82 AS col2
----
NULL

query I rowsort
SELECT ALL - 95 * + + 94 AS col1
----
-8930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4638
SELECT - + CAST( NULL AS SIGNED ) * + ( - 73 ) * + - COUNT( * ) - + - COUNT( * ) / 87 AS col2, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4638
SELECT - + CAST ( NULL AS INTEGER ) * + ( - 73 ) * + - COUNT ( * ) - + - COUNT ( * ) / 87 AS col2, - COUNT ( * )
----
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT ALL + - 8 * - CAST( - COUNT( * ) AS SIGNED ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + - 8 * - CAST ( - COUNT ( * ) AS INTEGER ) col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT - 91 * 52 DIV 73 + + 60 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4640
SELECT - 91 * 52 / 73 + + 60 AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4641
SELECT - - 57 * 89 DIV + COUNT( * )
----
5073

skipif mysql # not compatible
query I rowsort label-4641
SELECT - - 57 * 89 / + COUNT ( * )
----
5073

onlyif mysql # aggregate syntax: 
query II rowsort label-4642
SELECT ALL + + 25 * + + 39 + - - 58 + + - COALESCE ( - 39, - - 56 ) col2, COUNT( * ) + - MIN( ALL - 0 ) AS col0
----
1072
1

skipif mysql # not compatible
query II rowsort label-4642
SELECT ALL + + 25 * + + 39 + - - 58 + + - COALESCE ( - 39, - - 56 ) col2, COUNT ( * ) + - MIN ( ALL - 0 ) AS col0
----
1072
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4643
SELECT - 71 + + 54 * ( - CASE + + CASE + 59 WHEN + NULLIF ( + 21, - 98 + + 96 ) THEN NULL ELSE CAST( + 50 AS DECIMAL ) END WHEN COALESCE ( COALESCE ( 58, CAST( NULL AS SIGNED ) ), - COALESCE ( COUNT( * ), 24 + + 31 * 90 ) ) * - 18 THEN 85 ELSE NULL END ) - 94 * - NULLIF ( - 12 - 62, - 16 * - 76 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT - 71 + + 54 * ( - CASE + + CASE + 59 WHEN + NULLIF ( + 21, - 98 + + 96 ) THEN NULL ELSE CAST ( + 50 AS REAL ) END WHEN COALESCE ( COALESCE ( 58, CAST ( NULL AS INTEGER ) ), - COALESCE ( COUNT ( * ), 24 + + 31 * 90 ) ) * - 18 THEN 85 ELSE NULL END ) - 94 * - NULLIF ( - 12 - 62, - 16 * - 76 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT + COUNT( * ) * - ( - 12 ) * 79 * 37 * + - CASE + COUNT( * ) WHEN + + CASE + 6 WHEN 87 + 97 THEN NULL WHEN COUNT( * ) THEN NULL ELSE 98 + + 28 END + + 99 THEN NULL ELSE 42 END AS col0
----
-1473192

skipif mysql # not compatible
query I rowsort label-4644
SELECT + COUNT ( * ) * - ( - 12 ) * 79 * 37 * + - CASE + COUNT ( * ) WHEN + + CASE + 6 WHEN 87 + 97 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 98 + + 28 END + + 99 THEN NULL ELSE 42 END AS col0
----
-1473192

query I rowsort
SELECT ALL + + ( + 71 )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4646
SELECT NULLIF ( + CAST( NULL AS SIGNED ), 29 + + ( + - 96 ) ) AS col0, + 81
----
NULL
81

skipif mysql # not compatible
query II rowsort label-4646
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), 29 + + ( + - 96 ) ) AS col0, + 81
----
NULL
81

query I rowsort
SELECT + 48 + 16 col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4648
SELECT ALL 30 DIV 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL 30 / 63 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4649
SELECT DISTINCT 47 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT 47 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT DISTINCT CAST( 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT CAST ( 48 AS INTEGER )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4651
SELECT DISTINCT 54 * + 99 - + 3 + 66 * COALESCE ( - 60, + 79 ) * - 39 + - 55 DIV COUNT( * )
----
159728

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT 54 * + 99 - + 3 + 66 * COALESCE ( - 60, + 79 ) * - 39 + - 55 / COUNT ( * )
----
159728

query I rowsort
SELECT ALL 82 * - + 79 * + + 1
----
-6478

query II rowsort
SELECT - ( - + 15 ) AS col1, 63
----
15
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT + CAST( NULL AS SIGNED ) / + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT + CAST ( NULL AS INTEGER ) / + 56 AS col0
----
NULL

query I rowsort
SELECT ALL 46 * + - 33 AS col2
----
-1518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT - CASE ( + 73 ) WHEN COUNT( * ) - - 61 THEN NULLIF ( + 88, 65 ) * - CAST( NULL AS SIGNED ) / MAX( + 12 ) END * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT - CASE ( + 73 ) WHEN COUNT ( * ) - - 61 THEN NULLIF ( + 88, 65 ) * - CAST ( NULL AS INTEGER ) / MAX ( + 12 ) END * 21
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT - CAST( + + AVG ( - 38 ) AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-4657
SELECT - CAST ( + + AVG ( - 38 ) AS INTEGER )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4658
SELECT + COUNT( * ) - - 11 AS col1, CAST( NULL AS SIGNED ) / - + 19 AS col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-4658
SELECT + COUNT ( * ) - - 11 AS col1, CAST ( NULL AS INTEGER ) / - + 19 AS col1
----
12
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT ( 62 ) DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT ( 62 ) / + 72
----
0

query I rowsort
SELECT 77 - 64 + + 23
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4661
SELECT + MIN( DISTINCT + 82 ) AS col1, COALESCE ( - 64, - 93 + + 76, - CASE COUNT( * ) WHEN 73 * 81 THEN - 92 DIV 51 + COUNT( * ) WHEN 27 THEN NULL END + - ( COUNT( * ) ), - COUNT( * ) * + 75 ) * 36
----
82
-2304

skipif mysql # not compatible
query II rowsort label-4661
SELECT + MIN ( DISTINCT + 82 ) AS col1, COALESCE ( - 64, - 93 + + 76, - CASE COUNT ( * ) WHEN 73 * 81 THEN - 92 / 51 + COUNT ( * ) WHEN 27 THEN NULL END + - ( COUNT ( * ) ), - COUNT ( * ) * + 75 ) * 36
----
82
-2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT CAST( + - 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-4662
SELECT CAST ( + - 76 AS INTEGER )
----
-76

query I rowsort
SELECT 95 * - - 66 AS col0
----
6270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4664
SELECT + COUNT( * ) + 26 + - - 78 + + ( + 33 ) DIV + COUNT( * )
----
138

skipif mysql # not compatible
query I rowsort label-4664
SELECT + COUNT ( * ) + 26 + - - 78 + + ( + 33 ) / + COUNT ( * )
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL - + CASE 88 WHEN 14 THEN + 34 WHEN - ( 37 ) THEN - COUNT( * ) + 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - + CASE 88 WHEN 14 THEN + 34 WHEN - ( 37 ) THEN - COUNT ( * ) + 2 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4666
SELECT + 39 + + 5 + + + ( 6 ) AS col1, + MIN( + 98 )
----
50
98

skipif mysql # not compatible
query II rowsort label-4666
SELECT + 39 + + 5 + + + ( 6 ) AS col1, + MIN ( + 98 )
----
50
98

query I rowsort
SELECT + 23 * - 89 + + + 29 AS col1
----
-2018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4668
SELECT ALL NULLIF ( 35, 96 * + - 28 * + + COUNT( * ) ) * - CAST( NULL AS SIGNED ) / - + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL NULLIF ( 35, 96 * + - 28 * + + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) / - + 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT ALL - 66 + + + 58 DIV + CASE + 11 WHEN + 35 + + - 16 DIV + - 85 THEN - + COALESCE ( + COUNT( * ), 11 + COUNT( * ) ) + - 48 WHEN - 13 + - 65 * 16 THEN NULL ELSE - 26 END AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL - 66 + + + 58 / + CASE + 11 WHEN + 35 + + - 16 / + - 85 THEN - + COALESCE ( + COUNT ( * ), 11 + COUNT ( * ) ) + - 48 WHEN - 13 + - 65 * 16 THEN NULL ELSE - 26 END AS col2
----
-68

query I rowsort
SELECT DISTINCT 50 * - 51 AS col2
----
-2550

query I rowsort
SELECT DISTINCT + 39 + CASE 64 WHEN + 81 THEN - 28 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), 19 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), 19 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4673
SELECT + 55 / ( + - CASE 59 WHEN 7 THEN NULL WHEN - 63 THEN NULL WHEN CAST( + 19 AS SIGNED ) * - NULLIF ( + 36, 50 * - CAST( NULL AS SIGNED ) ) THEN + 77 - - 74 WHEN - 82 THEN - CAST( MAX( 86 ) AS SIGNED ) ELSE NULL END ) - 0 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4673
SELECT + 55 / ( + - CASE 59 WHEN 7 THEN NULL WHEN - 63 THEN NULL WHEN CAST ( + 19 AS INTEGER ) * - NULLIF ( + 36, 50 * - CAST ( NULL AS INTEGER ) ) THEN + 77 - - 74 WHEN - 82 THEN - CAST ( MAX ( 86 ) AS INTEGER ) ELSE NULL END ) - 0 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT + 25 * 76 + + 94 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT + 25 * 76 + + 94 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT - + MIN( - + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT - + MIN ( - + 48 )
----
48

query I rowsort
SELECT 13 + 10 * 73 AS col0
----
743

query I rowsort
SELECT ALL - 98 - - - 40 col2
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT 37 DIV + 8
----
4

skipif mysql # not compatible
query I rowsort label-4678
SELECT 37 / + 8
----
4

query I rowsort
SELECT 43 + + 52
----
95

query I rowsort
SELECT 46 * + - 24
----
-1104

query I rowsort
SELECT ALL + 25 * + NULLIF ( + + 54, 33 ) AS col1
----
1350

query I rowsort
SELECT ALL + 35 * 99
----
3465

onlyif mysql # aggregate syntax: 
query II rowsort label-4683
SELECT SUM( DISTINCT - 83 ) * COUNT( * ) + + + COALESCE ( 21, - 95 ), + 5 AS col2
----
-62
5

skipif mysql # not compatible
query II rowsort label-4683
SELECT SUM ( DISTINCT - 83 ) * COUNT ( * ) + + + COALESCE ( 21, - 95 ), + 5 AS col2
----
-62
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4684
SELECT 43 + + + 66 DIV 7 + 1 DIV - COUNT( * ) AS col1, ( 73 ) AS col1
----
51
73

skipif mysql # not compatible
query II rowsort label-4684
SELECT 43 + + + 66 / 7 + 1 / - COUNT ( * ) AS col1, ( 73 ) AS col1
----
51
73

query I rowsort
SELECT + COALESCE ( + 94, + + 53 ) * - + 43 - - 46 * 61 AS col0
----
-1236

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT 52 + + + SUM( - + 90 )
----
-38

skipif mysql # not compatible
query I rowsort label-4686
SELECT 52 + + + SUM ( - + 90 )
----
-38

query II rowsort
SELECT 51, - 83 AS col1
----
51
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT CASE 31 WHEN - 57 * + ( 57 ) * 62 + - ( + 5 ) - CASE + + 56 WHEN 9 THEN 8 + - 71 WHEN 48 THEN - 29 + - 22 END * 70 * - 71 THEN 23 END * - COUNT( DISTINCT 80 + 62 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT CASE 31 WHEN - 57 * + ( 57 ) * 62 + - ( + 5 ) - CASE + + 56 WHEN 9 THEN 8 + - 71 WHEN 48 THEN - 29 + - 22 END * 70 * - 71 THEN 23 END * - COUNT ( DISTINCT 80 + 62 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 90 + 13 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT 68 + 14 + - - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4690
SELECT 68 + 14 + - - COUNT ( * )
----
83

query I rowsort
SELECT 87 + + 99
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4692
SELECT ALL - 90 + - 51 * COUNT( 66 ) * + 7, + CAST( NULL AS SIGNED ) AS col2
----
-447
NULL

skipif mysql # not compatible
query II rowsort label-4692
SELECT ALL - 90 + - 51 * COUNT ( 66 ) * + 7, + CAST ( NULL AS INTEGER ) AS col2
----
-447
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4693
SELECT ALL COUNT( DISTINCT + 54 ) + - + 21 AS col1, + CAST( NULL AS DECIMAL ) col0
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-4693
SELECT ALL COUNT ( DISTINCT + 54 ) + - + 21 AS col1, + CAST ( NULL AS REAL ) col0
----
-20
NULL

query I rowsort
SELECT 51 * 52
----
2652

query I rowsort
SELECT - ( - 57 ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT 41 + - 32 + + + 96 * COALESCE ( - 60, 76, 86 * CAST( NULL AS SIGNED ) - + - 13 + + 0 + 50 * - 81 )
----
-5751

skipif mysql # not compatible
query I rowsort label-4696
SELECT 41 + - 32 + + + 96 * COALESCE ( - 60, 76, 86 * CAST ( NULL AS INTEGER ) - + - 13 + + 0 + 50 * - 81 )
----
-5751

query I rowsort
SELECT - 7 + - - 30
----
23

query I rowsort
SELECT ALL 77 + 87 + - - 98 AS col0
----
262

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT - 46 * - MIN( - 44 ) - - 22 * + 96 * - + 57 + SUM( ALL + - 96 ) AS col1
----
-122504

skipif mysql # not compatible
query I rowsort label-4699
SELECT - 46 * - MIN ( - 44 ) - - 22 * + 96 * - + 57 + SUM ( ALL + - 96 ) AS col1
----
-122504

query I rowsort
SELECT ALL + - 53 * - + 36
----
1908

query I rowsort
SELECT + 73 / 19 + + ( + CASE - 25 WHEN 46 THEN 55 END ) + 42 * - ( 5 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT ALL + 13 * - 98 + + CAST( 93 AS SIGNED ) - COUNT( * )
----
-1182

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL + 13 * - 98 + + CAST ( 93 AS INTEGER ) - COUNT ( * )
----
-1182

query I rowsort
SELECT + ( - 41 ) * + - 86
----
3526

query I rowsort
SELECT + - COALESCE ( - 70, 46, + + 14 ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4705
SELECT ALL - 49 * + 77 - - COALESCE ( 56, + 88 * + 76 * + + MIN( ALL - - CASE 54 WHEN + - 61 THEN 90 ELSE 94 END ) * - ( 90 + + 20 DIV 95 ) - + 49 ) + 15 AS col0
----
-3702

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL - 49 * + 77 - - COALESCE ( 56, + 88 * + 76 * + + MIN ( ALL - - CASE 54 WHEN + - 61 THEN 90 ELSE 94 END ) * - ( 90 + + 20 / 95 ) - + 49 ) + 15 AS col0
----
-3702

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT + 96 * + COUNT( * ) * 49 * 2 + - + 62
----
9346

skipif mysql # not compatible
query I rowsort label-4706
SELECT + 96 * + COUNT ( * ) * 49 * 2 + - + 62
----
9346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4707
SELECT SUM( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4707
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 62 * - + 61 * - 98 AS col2
----
-370636

query I rowsort
SELECT DISTINCT 50 * - 28 + + 33 * + 61 AS col1
----
613

query I rowsort
SELECT - 89 - 67 col2
----
-156

query I rowsort
SELECT ALL 18 * ( - + ( + 26 ) ) * 55
----
-25740

onlyif mysql # aggregate syntax: 
query II rowsort label-4712
SELECT DISTINCT - 30, COUNT( * ) col2
----
-30
1

skipif mysql # not compatible
query II rowsort label-4712
SELECT DISTINCT - 30, COUNT ( * ) col2
----
-30
1

query I rowsort
SELECT ALL - NULLIF ( + ( + 14 ), + 5 ) AS col0
----
-14

query II rowsort
SELECT ALL - 7 AS col2, 60
----
-7
60

query I rowsort
SELECT 43 * + 79
----
3397

query I rowsort
SELECT 78 + ( - 82 )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT + 75 AS col0, 64 * + 35 + + COUNT( * ) AS col0
----
75
2241

skipif mysql # not compatible
query II rowsort label-4717
SELECT + 75 AS col0, 64 * + 35 + + COUNT ( * ) AS col0
----
75
2241

query I rowsort
SELECT DISTINCT - 76 + 46 * - - 3 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL - COALESCE ( - + COUNT( * ), + COUNT( * ), - + 24 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - COALESCE ( - + COUNT ( * ), + COUNT ( * ), - + 24 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4720
SELECT - COUNT( * ) + + + COUNT( * ) + - + MIN( + - CAST( - CAST( - 9 AS SIGNED ) AS SIGNED ) ) + 61 * COUNT( + 91 ) * - - 98 * 17 * CASE + 24 / 87 WHEN 19 THEN 79 / CAST( NULL AS SIGNED ) END * + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT - COUNT ( * ) + + + COUNT ( * ) + - + MIN ( + - CAST ( - CAST ( - 9 AS INTEGER ) AS INTEGER ) ) + 61 * COUNT ( + 91 ) * - - 98 * 17 * CASE + 24 / 87 WHEN 19 THEN 79 / CAST ( NULL AS INTEGER ) END * + 30 AS col2
----
NULL

query II rowsort
SELECT - 86 AS col1, - 36 * + + 71 AS col2
----
-86
-2556

query I rowsort
SELECT DISTINCT 69 + - 14 + + 11 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL - COALESCE ( - 89, - COUNT( * ) - - - 64 * + 77, - - 76 + 39 ) + + - 19 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - COALESCE ( - 89, - COUNT ( * ) - - - 64 * + 77, - - 76 + 39 ) + + - 19 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL MAX( ALL + 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL MAX ( ALL + 4 ) AS col2
----
4

query I rowsort
SELECT DISTINCT + 32 + - - 12 AS col2
----
44

query I rowsort
SELECT - + 94 - + 78 AS col0
----
-172

onlyif mysql # aggregate syntax: 
query II rowsort label-4727
SELECT DISTINCT + 72 - + + 2 AS col2, 69 + + + ( + - COUNT( + 53 ) ) AS col1
----
70
68

skipif mysql # not compatible
query II rowsort label-4727
SELECT DISTINCT + 72 - + + 2 AS col2, 69 + + + ( + - COUNT ( + 53 ) ) AS col1
----
70
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL CASE + COUNT( * ) WHEN - SUM( DISTINCT + - 16 ) THEN NULLIF ( - 64, NULLIF ( 43, - 59 + + 18 - 90 ) ) + + 58 * + 29 END * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL CASE + COUNT ( * ) WHEN - SUM ( DISTINCT + - 16 ) THEN NULLIF ( - 64, NULLIF ( 43, - 59 + + 18 - 90 ) ) + + 58 * + 29 END * 2
----
NULL

query II rowsort
SELECT - 28 AS col2, 9 * - 55 + + 25 + - + ( 48 ) AS col2
----
-28
-518

query I rowsort
SELECT ALL - + 88 * + 63 + + 19
----
-5525

query II rowsort
SELECT ALL 6 AS col0, 25 AS col0
----
6
25

query I rowsort
SELECT - 24 + + 33 + - 64 AS col1
----
-55

query I rowsort
SELECT - + 30 * - + 42 - + - 25 AS col1
----
1285

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4734
SELECT + - 45, CAST( + 30 AS SIGNED ) + 14 + + ( + + 47 ) + 93 + - - 26 AS col2
----
-45
210

skipif mysql # not compatible
query II rowsort label-4734
SELECT + - 45, CAST ( + 30 AS INTEGER ) + 14 + + ( + + 47 ) + 93 + - - 26 AS col2
----
-45
210

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT - COUNT( * ) + + 20 + - 44
----
-25

skipif mysql # not compatible
query I rowsort label-4735
SELECT - COUNT ( * ) + + 20 + - 44
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT - 22 / - CAST( NULL AS SIGNED ) / - 62 - + 28 * - 80 * - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT - 22 / - CAST ( NULL AS INTEGER ) / - 62 - + 28 * - 80 * - - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT ALL - + 63 * - 18 * - MAX( ALL + 58 ) - - + 47 AS col2
----
-65725

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL - + 63 * - 18 * - MAX ( ALL + 58 ) - - + 47 AS col2
----
-65725

query II rowsort
SELECT DISTINCT + + 46 * + 18 * - 95 * ( - 34 ) + - 28 AS col0, 73
----
2674412
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT - - SUM( 80 ) * COUNT( - 19 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT - - SUM ( 80 ) * COUNT ( - 19 ) AS col1
----
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4740
SELECT ALL - 32 DIV CAST( - 29 AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL - 32 / CAST ( - 29 AS INTEGER ) col1
----
1

query I rowsort
SELECT + 83 * 13
----
1079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4742
SELECT + MAX( ALL 54 ) AS col0, 71 * + - CASE + 46 WHEN 37 THEN NULL WHEN 31 * - + 43 + 51 + + 32 + 68 * + 60 * + CAST( 39 AS SIGNED ) + 35 + + COALESCE ( - 59 - - 11, + ( 10 ) + + 52 / + 19 ) THEN + 6 / + 21 + 84 ELSE NULL END / - 40 + NULLIF ( + 18 + 83, + ( - 29 ) )
----
54
NULL

skipif mysql # not compatible
query II rowsort label-4742
SELECT + MAX ( ALL 54 ) AS col0, 71 * + - CASE + 46 WHEN 37 THEN NULL WHEN 31 * - + 43 + 51 + + 32 + 68 * + 60 * + CAST ( 39 AS INTEGER ) + 35 + + COALESCE ( - 59 - - 11, + ( 10 ) + + 52 / + 19 ) THEN + 6 / + 21 + 84 ELSE NULL END / - 40 + NULLIF ( + 18 + 83, + ( - 29 ) )
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT - MAX( - - 5 ) + 1 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4743
SELECT - MAX ( - - 5 ) + 1 AS col0
----
-4

query I rowsort
SELECT + 53 * + 66 * 75 AS col0
----
262350

query I rowsort
SELECT + 59 * - 97 AS col1
----
-5723

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4746
SELECT CASE - 1 WHEN - MAX( + - 55 ) THEN - + 87 - + ( 37 ) * 39 * - 31 * - + CAST( + - 64 AS DECIMAL ) + 19 * CAST( + 70 + + NULLIF ( 41, - 46 ) AS DECIMAL ) WHEN - 19 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT CASE - 1 WHEN - MAX ( + - 55 ) THEN - + 87 - + ( 37 ) * 39 * - 31 * - + CAST ( + - 64 AS REAL ) + 19 * CAST ( + 70 + + NULLIF ( 41, - 46 ) AS REAL ) WHEN - 19 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT + CAST( - 38 AS SIGNED ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-4747
SELECT + CAST ( - 38 AS INTEGER ) col0
----
-38

query I rowsort
SELECT DISTINCT 16 * - - 95 + ( 32 ) AS col1
----
1552

query I rowsort
SELECT + ( - - 9 ) col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT DISTINCT - COUNT( * ) * + 31 * 1 + + 87
----
56

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT - COUNT ( * ) * + 31 * 1 + + 87
----
56

query I rowsort
SELECT ALL + 65 * + 5 + - 11 AS col1
----
314

query II rowsort
SELECT - 69 - 40, 52 AS col0
----
-109
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - 27 * - + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 27 * - + COUNT ( * ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT + NULLIF ( + - ( - + 99 ), - + COUNT( * ) + - - 10 ) + - 19 - + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4754
SELECT + NULLIF ( + - ( - + 99 ), - + COUNT ( * ) + - - 10 ) + - 19 - + COUNT ( * ) AS col1
----
79

query I rowsort
SELECT + + 23 + - - CASE + 79 WHEN - 70 THEN NULL ELSE 48 * 66 END * - 81 + - + COALESCE ( + 26, - + 67 + + 72 ) * 4 + 66
----
-256623

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT + + 65 * - COUNT( * ) + - 41
----
-106

skipif mysql # not compatible
query I rowsort label-4756
SELECT + + 65 * - COUNT ( * ) + - 41
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL + - MAX( + 51 ) * 7 AS col1
----
-357

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL + - MAX ( + 51 ) * 7 AS col1
----
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT - 28 + - 82 + - COUNT( - 95 )
----
-111

skipif mysql # not compatible
query I rowsort label-4758
SELECT - 28 + - 82 + - COUNT ( - 95 )
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4759
SELECT - 42 + - 69 * + + 42 * CAST( - - 16 AS SIGNED ) AS col1, 5 AS col1
----
-46410
5

skipif mysql # not compatible
query II rowsort label-4759
SELECT - 42 + - 69 * + + 42 * CAST ( - - 16 AS INTEGER ) AS col1, 5 AS col1
----
-46410
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT DISTINCT SUM( - + 34 ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT SUM ( - + 34 ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT NULLIF ( + COUNT( * ), + 7 * + 74 )
----
1

skipif mysql # not compatible
query I rowsort label-4761
SELECT NULLIF ( + COUNT ( * ), + 7 * + 74 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT ALL NULLIF ( - - NULLIF ( + 77, - - 90 ), - MIN( CAST( + 60 AS SIGNED ) ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL NULLIF ( - - NULLIF ( + 77, - - 90 ), - MIN ( CAST ( + 60 AS INTEGER ) ) ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT - + 63 * + MAX( ALL + 75 ) AS col2
----
-4725

skipif mysql # not compatible
query I rowsort label-4763
SELECT - + 63 * + MAX ( ALL + 75 ) AS col2
----
-4725

query I rowsort
SELECT - + 58 + + 97 + + 13 * - 85
----
-1066

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT - CAST( 70 AS SIGNED ) + 86 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4765
SELECT - CAST ( 70 AS INTEGER ) + 86 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT - 71 * - - COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4766
SELECT - 71 * - - COUNT ( * ) AS col0
----
-71

query I rowsort
SELECT ALL 11 * + 21 * - 97
----
-22407

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + COALESCE ( - - ( + - 74 ), - - SUM( + ( 63 ) ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4768
SELECT + COALESCE ( - - ( + - 74 ), - - SUM ( + ( 63 ) ) ) AS col0
----
-74

query I rowsort
SELECT - 36 - 34 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ALL - 3 + - 87 + - 42 + + 3 * + COUNT( * ) * - 75 * + 86
----
-19482

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL - 3 + - 87 + - 42 + + 3 * + COUNT ( * ) * - 75 * + 86
----
-19482

query II rowsort
SELECT 62 col2, NULLIF ( 41, + AVG ( + - 28 ) * + 0 )
----
62
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4772
SELECT 68 DIV + + 60
----
1

skipif mysql # not compatible
query I rowsort label-4772
SELECT 68 / + + 60
----
1

query I rowsort
SELECT 71 + 61
----
132

query II rowsort
SELECT + 41 AS col2, 84 * + 98
----
41
8232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4775
SELECT COUNT( * ) + - 4 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-4775
SELECT COUNT ( * ) + - 4 / 65
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT DISTINCT 75 - + 69 * - - 82 + - COUNT( * ) DIV - 64 * + 96
----
-5583

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT 75 - + 69 * - - 82 + - COUNT ( * ) / - 64 * + 96
----
-5583

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL COUNT( * ) * - NULLIF ( - COUNT( * ), - 70 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL COUNT ( * ) * - NULLIF ( - COUNT ( * ), - 70 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4778
SELECT + 50 AS col2, - COUNT( * ) * + 14
----
50
-14

skipif mysql # not compatible
query II rowsort label-4778
SELECT + 50 AS col2, - COUNT ( * ) * + 14
----
50
-14

query II rowsort
SELECT 91 AS col2, 53 AS col0
----
91
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT COUNT( * ) * + 47 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4780
SELECT COUNT ( * ) * + 47 AS col2
----
47

query II rowsort
SELECT - 5, + ( + 60 ) * 72 AS col1
----
-5
4320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4782
SELECT ALL 7 AS col0, CAST( NULL AS SIGNED ) AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-4782
SELECT ALL 7 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
7
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT ALL CAST( - - 44 AS SIGNED ) * - 74 AS col1
----
-3256

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL CAST ( - - 44 AS INTEGER ) * - 74 AS col1
----
-3256

query I rowsort
SELECT DISTINCT + 80 * + - 5 AS col0
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4785
SELECT COALESCE ( + CAST( - 42 AS SIGNED ), + - 24 + + MIN( DISTINCT - - 33 ) + - - COUNT( * ) * - 31 + + ( 89 ) + + 17 * + 76 ) - - - 48 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4785
SELECT COALESCE ( + CAST ( - 42 AS INTEGER ), + - 24 + + MIN ( DISTINCT - - 33 ) + - - COUNT ( * ) * - 31 + + ( 89 ) + + 17 * + 76 ) - - - 48 AS col1
----
-90

query I rowsort
SELECT + 92 + - 1 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT - - SUM( + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-4787
SELECT - - SUM ( + 20 )
----
20

query I rowsort
SELECT ALL + NULLIF ( + 10, + 52 )
----
10

query I rowsort
SELECT - ( 21 ) AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT DISTINCT - 98 DIV - + 81
----
1

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - 98 / - + 81
----
1

query I rowsort
SELECT 44 * - 73 + 66 * - - 4 + - 97 + - 50 + + - 92 * 77 + - 87 - + - 2 * + 63
----
-10140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4792
SELECT COUNT( DISTINCT + 88 ) * - - 17 / - 38 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT COUNT ( DISTINCT + 88 ) * - - 17 / - 38 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 74 - - 70 - + + 58 AS col1
----
86

query I rowsort
SELECT - 42 - - - 76 AS col0
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4795
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) - - - 15 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) - - - 15 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4796
SELECT 67 * - - CAST( 64 AS SIGNED ) * + ( - + 4 ) + 61 * + CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT 67 * - - CAST ( 64 AS INTEGER ) * + ( - + 4 ) + 61 * + CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 46 + - - 54
----
8

query I rowsort
SELECT + 9 + + 39
----
48

query I rowsort
SELECT ( - - 43 ) + 63 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT + 62 + - 73 * - COUNT( * ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT + 62 + - 73 * - COUNT ( * ) AS col0
----
135

query I rowsort
SELECT DISTINCT 53 + - 14 * + 64
----
-843

query II rowsort
SELECT + 27 * - - 1 * - 3 + - 7, 98 AS col0
----
-88
98

query I rowsort
SELECT 90 + - 56 AS col2
----
34

query I rowsort
SELECT DISTINCT + 18 * ( - ( 2 ) ) col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT COUNT( * ) * + + 7
----
7

skipif mysql # not compatible
query I rowsort label-4805
SELECT COUNT ( * ) * + + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT + 1 * - COUNT( * ) + + + 32 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4806
SELECT + 1 * - COUNT ( * ) + + + 32 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT DISTINCT + COUNT( * ) - + 29
----
-28

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT + COUNT ( * ) - + 29
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL - MAX( DISTINCT 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - MAX ( DISTINCT 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT - 88 * - 41 + + + CASE WHEN NOT ( 79 ) NOT BETWEEN - 70 AND NULL THEN 98 + 14 / + MIN( - 10 ) + + + 22 + 41 * + 71 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT - 88 * - 41 + + + CASE WHEN NOT ( 79 ) NOT BETWEEN - 70 AND NULL THEN 98 + 14 / + MIN ( - 10 ) + + + 22 + 41 * + 71 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT - SUM( DISTINCT - - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT - SUM ( DISTINCT - - 89 ) AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4811
SELECT - 51 * - - 77 * CAST( - COUNT( * ) AS SIGNED ) + - CAST( + 10 AS SIGNED ) + + + 63 AS col1
----
3980

skipif mysql # not compatible
query I rowsort label-4811
SELECT - 51 * - - 77 * CAST ( - COUNT ( * ) AS INTEGER ) + - CAST ( + 10 AS INTEGER ) + + + 63 AS col1
----
3980

query I rowsort
SELECT DISTINCT + 28 - + 95 * - - 8 AS col0
----
-732

query I rowsort
SELECT 12 + - - 31 - - 70
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT 15 DIV - 4 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4814
SELECT 15 / - 4 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4815
SELECT DISTINCT 59 DIV 79 * - 62 * + 22 + - 36 + + + 84 * + 51 AS col2
----
4248

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT 59 / 79 * - 62 * + 22 + - 36 + + + 84 * + 51 AS col2
----
4248

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT SUM( - 37 ) + - 71 col2
----
-108

skipif mysql # not compatible
query I rowsort label-4816
SELECT SUM ( - 37 ) + - 71 col2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT 20 + - 21 * 33 * - CASE 96 WHEN 23 + - + 88 * - COUNT( * ) * + - COALESCE ( - 49, + 48 ) * + MAX( 22 ) THEN + 73 - + 4 WHEN + COUNT( * ) THEN 83 / - 97 ELSE NULL END + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4817
SELECT 20 + - 21 * 33 * - CASE 96 WHEN 23 + - + 88 * - COUNT ( * ) * + - COALESCE ( - 49, + 48 ) * + MAX ( 22 ) THEN + 73 - + 4 WHEN + COUNT ( * ) THEN 83 / - 97 ELSE NULL END + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT 64 + + NULLIF ( - COUNT( * ), - - 23 )
----
63

skipif mysql # not compatible
query I rowsort label-4818
SELECT 64 + + NULLIF ( - COUNT ( * ), - - 23 )
----
63

query I rowsort
SELECT 10 + 8 + 44 * - 7
----
-290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4820
SELECT - COUNT( DISTINCT + 87 ) col0, 71 + - + CAST( - - 37 AS SIGNED ) AS col1
----
-1
34

skipif mysql # not compatible
query II rowsort label-4820
SELECT - COUNT ( DISTINCT + 87 ) col0, 71 + - + CAST ( - - 37 AS INTEGER ) AS col1
----
-1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT DISTINCT + SUM( 38 ) * + 21
----
798

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT + SUM ( 38 ) * + 21
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL 43 + - COUNT( * ) + + + 7
----
49

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL 43 + - COUNT ( * ) + + + 7
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT ALL + COALESCE ( + 89, - 30 * + CAST( NULL AS SIGNED ) + + + 94 + + 89 + + 52 - + + 60 ) * - - COUNT( * ) * + 31 AS col0
----
2759

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL + COALESCE ( + 89, - 30 * + CAST ( NULL AS INTEGER ) + + + 94 + + 89 + + 52 - + + 60 ) * - - COUNT ( * ) * + 31 AS col0
----
2759

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT 5 + COUNT( * ) - + 87 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT 5 + COUNT ( * ) - + 87 AS col2
----
-81

query I rowsort
SELECT ALL + 75 + - 80 AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4826
SELECT 12 + - + CASE - CAST( NULL AS DECIMAL ) WHEN - - 36 * + ( + CAST( NULL AS SIGNED ) ) + - ( - - 77 ) * + 38 THEN + - 7 ELSE NULL END * + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT 12 + - + CASE - CAST ( NULL AS REAL ) WHEN - - 36 * + ( + CAST ( NULL AS INTEGER ) ) + - ( - - 77 ) * + 38 THEN + - 7 ELSE NULL END * + 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4827
SELECT 58 + - 95 + + + 3 DIV MAX( ALL 50 ) + NULLIF ( - 6, - NULLIF ( 62, + - CASE - COUNT( * ) WHEN - 77 THEN NULL ELSE - MAX( 60 ) * - 32 END DIV - 26 ) * + 34 + ( 32 ) ) DIV 10
----
-37

skipif mysql # not compatible
query I rowsort label-4827
SELECT 58 + - 95 + + + 3 / MAX ( ALL 50 ) + NULLIF ( - 6, - NULLIF ( 62, + - CASE - COUNT ( * ) WHEN - 77 THEN NULL ELSE - MAX ( 60 ) * - 32 END / - 26 ) * + 34 + ( 32 ) ) / 10
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL CASE - + COUNT( * ) WHEN - 28 + + ( + 3 ) + + 65 / 56 THEN + ( - - 94 ) + - - COUNT( * ) + - 18 WHEN - 97 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL CASE - + COUNT ( * ) WHEN - 28 + + ( + 3 ) + + 65 / 56 THEN + ( - - 94 ) + - - COUNT ( * ) + - 18 WHEN - 97 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4829
SELECT + ( - 62 ) DIV + SUM( - 83 ) - - 76 + + 69
----
145

skipif mysql # not compatible
query I rowsort label-4829
SELECT + ( - 62 ) / + SUM ( - 83 ) - - 76 + + 69
----
145

query I rowsort
SELECT - 90 + 41
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT DISTINCT 42 DIV 50 * - 14
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT 42 / 50 * - 14
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT - SUM( + 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4832
SELECT - SUM ( + 49 ) AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT + 82 DIV + 76 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4833
SELECT + 82 / + 76 AS col2
----
1

query I rowsort
SELECT + 0 + - - 87 * - 12 * - - 88
----
-91872

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT DISTINCT 6 DIV 31
----
0

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT 6 / 31
----
0

query I rowsort
SELECT ALL 41 * + 51 AS col1
----
2091

query I rowsort
SELECT - 52 * - 86
----
4472

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT CASE MAX( DISTINCT - + 51 ) WHEN + 89 THEN + + 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT CASE MAX ( DISTINCT - + 51 ) WHEN + 89 THEN + + 20 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT - 28 * - - COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4839
SELECT - 28 * - - COUNT ( * ) AS col1
----
-28

query I rowsort
SELECT ALL + 41 * 57
----
2337

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4841
SELECT - COUNT( * ) DIV 97 + 20 - - 86 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-4841
SELECT - COUNT ( * ) / 97 + 20 - - 86 AS col2
----
106

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4842
SELECT - 22 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT - 22 + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4843
SELECT - 92 * - 97 * - CAST( + ( COALESCE ( 30, + 87 ) ) AS SIGNED ) * + 4 AS col0, - 24 AS col0
----
-1070880
-24

skipif mysql # not compatible
query II rowsort label-4843
SELECT - 92 * - 97 * - CAST ( + ( COALESCE ( 30, + 87 ) ) AS INTEGER ) * + 4 AS col0, - 24 AS col0
----
-1070880
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL + COUNT( + - 51 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL + COUNT ( + - 51 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT NULLIF ( - 52, + 52 * + + 27 + 22 - + COUNT( + 49 ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4845
SELECT NULLIF ( - 52, + 52 * + + 27 + 22 - + COUNT ( + 49 ) ) AS col0
----
-52

query I rowsort
SELECT + ( - + 48 ) AS col2
----
-48

query I rowsort
SELECT ALL - + 79 * 46 AS col2
----
-3634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4848
SELECT - MAX( DISTINCT + - 28 ) * - 53 * CAST( NULL AS SIGNED ) / - 97 col2, + 65 * 2 AS col1
----
NULL
130

skipif mysql # not compatible
query II rowsort label-4848
SELECT - MAX ( DISTINCT + - 28 ) * - 53 * CAST ( NULL AS INTEGER ) / - 97 col2, + 65 * 2 AS col1
----
NULL
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4849
SELECT COUNT( * ) * - - 34 + + - NULLIF ( - ( + 3 ), MAX( ALL - CAST( + ( - 50 ) AS SIGNED ) ) ) + MAX( 5 ) + - + 25 + 82 * + COUNT( * ) + + 56 AS col0
----
155

skipif mysql # not compatible
query I rowsort label-4849
SELECT COUNT ( * ) * - - 34 + + - NULLIF ( - ( + 3 ), MAX ( ALL - CAST ( + ( - 50 ) AS INTEGER ) ) ) + MAX ( 5 ) + - + 25 + 82 * + COUNT ( * ) + + 56 AS col0
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT ALL - 42 * - 9 + - 10 + - CAST( 58 AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - 42 * - 9 + - 10 + - CAST ( 58 AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4851
SELECT ALL + CASE - - 6 WHEN + + 12 THEN NULL WHEN 28 THEN CAST( + CASE ( + - 57 ) WHEN + 84 THEN - + COUNT( * ) + COUNT( * ) - 24 * 85 WHEN + 47 + - 17 - + COALESCE ( - 1 + - MAX( DISTINCT 86 - + 65 ), 82 * - 5, - 37 ) THEN NULL END AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL + CASE - - 6 WHEN + + 12 THEN NULL WHEN 28 THEN CAST ( + CASE ( + - 57 ) WHEN + 84 THEN - + COUNT ( * ) + COUNT ( * ) - 24 * 85 WHEN + 47 + - 17 - + COALESCE ( - 1 + - MAX ( DISTINCT 86 - + 65 ), 82 * - 5, - 37 ) THEN NULL END AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT ALL + - CAST( + 73 AS SIGNED ) + 24 - 22 - - + 67 + - + 38 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + - CAST ( + 73 AS INTEGER ) + 24 - 22 - - + 67 + - + 38 AS col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-4853
SELECT + COALESCE ( - 37, - 75 + - 35 * + 73 ) * 52 DIV NULLIF ( - 70, + - 84 )
----
27

skipif mysql # not compatible
query I rowsort label-4853
SELECT + COALESCE ( - 37, - 75 + - 35 * + 73 ) * 52 / NULLIF ( - 70, + - 84 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - 3 AS col0
----
NULL

query I rowsort
SELECT + 60 * 52 - - 31 AS col2
----
3151

query I rowsort
SELECT DISTINCT + 96 + + 99 + 84 AS col1
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL - COUNT( + - 49 ) + 36 * - + 39
----
-1405

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL - COUNT ( + - 49 ) + 36 * - + 39
----
-1405

query I rowsort
SELECT - - 58 - + 42 * + 21
----
-824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT DISTINCT CAST( - 25 AS SIGNED ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT CAST ( - 25 AS INTEGER ) AS col0
----
-25

query I rowsort
SELECT ALL - 45 - - ( 19 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT + 76 * - + 38 * - COUNT( * ) * 3
----
8664

skipif mysql # not compatible
query I rowsort label-4861
SELECT + 76 * - + 38 * - COUNT ( * ) * 3
----
8664

query II rowsort
SELECT 72 AS col0, - 72
----
72
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4863
SELECT - NULLIF ( 64, + 15 ) + + 69 + + 60 DIV + 62 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4863
SELECT - NULLIF ( 64, + 15 ) + + 69 + + 60 / + 62 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - SUM( ALL - 57 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4864
SELECT - SUM ( ALL - 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT + 23 + + - ( - COUNT( * ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4865
SELECT + 23 + + - ( - COUNT ( * ) ) AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4866
SELECT + 29 - - + 65 + + + 80 DIV + + 53
----
95

skipif mysql # not compatible
query I rowsort label-4866
SELECT + 29 - - + 65 + + + 80 / + + 53
----
95

query I rowsort
SELECT + 40 * + - 57 AS col0
----
-2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4868
SELECT + 46 * - ( - - COUNT( * ) ) * + - 66 + + 29 + + 78 DIV + 67
----
3066

skipif mysql # not compatible
query I rowsort label-4868
SELECT + 46 * - ( - - COUNT ( * ) ) * + - 66 + + 29 + + 78 / + 67
----
3066

query II rowsort
SELECT DISTINCT + 58 AS col0, - 96
----
58
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT 46 * + 28 + + - 93 + - COUNT( * ) * + 75 AS col0
----
1120

skipif mysql # not compatible
query I rowsort label-4870
SELECT 46 * + 28 + + - 93 + - COUNT ( * ) * + 75 AS col0
----
1120

query I rowsort
SELECT + 10 * + 13
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4872
SELECT - ( - 80 ) / NULLIF ( - - CAST( NULL AS SIGNED ), + 10 * - CAST( NULL AS DECIMAL ) ) + - AVG ( + 26 ) + - COALESCE ( - 29, - + 62, - - 48 ) + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4872
SELECT - ( - 80 ) / NULLIF ( - - CAST ( NULL AS INTEGER ), + 10 * - CAST ( NULL AS REAL ) ) + - AVG ( + 26 ) + - COALESCE ( - 29, - + 62, - - 48 ) + COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT + CAST( + 16 AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4873
SELECT + CAST ( + 16 AS INTEGER ) AS col2
----
16

query I rowsort
SELECT + 45 + + - 7 AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT ALL 51 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL 51 / + 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4876
SELECT + 63 DIV 18
----
3

skipif mysql # not compatible
query I rowsort label-4876
SELECT + 63 / 18
----
3

query II rowsort
SELECT + 74 + NULLIF ( + 28, 3 ), - 30 AS col1
----
102
-30

query I rowsort
SELECT ALL 45 * 8 AS col0
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT 74 * + ( - COUNT( * ) ) + - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-4879
SELECT 74 * + ( - COUNT ( * ) ) + - COUNT ( * )
----
-75

query I rowsort
SELECT ( - + 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT + 48 * NULLIF ( - COUNT( * ), COUNT( * ) ) + CAST( NULL AS SIGNED ) * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT + 48 * NULLIF ( - COUNT ( * ), COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT ALL - - 77 * + 69 + 2 + - - 41 * - 9 * + + COALESCE ( - 19, - 81 * + + 80 + - - 40, + 63 * - - 58 ) + - COUNT( * )
----
12325

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL - - 77 * + 69 + 2 + - - 41 * - 9 * + + COALESCE ( - 19, - 81 * + + 80 + - - 40, + 63 * - - 58 ) + - COUNT ( * )
----
12325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4883
SELECT ALL - 45 * - + COUNT( * ) + - CASE + 50 WHEN + 38 THEN + ( ( + CASE + - 28 WHEN + AVG ( DISTINCT + 44 ) + + 32 * + + 80 + - 96 + + 11 + + 99 * 6 THEN COALESCE ( + CAST( 42 AS SIGNED ), CASE WHEN NOT 33 IN ( ( - 17 ) ) THEN NULL ELSE - 35 END * - 61 + - 51 * - ( 9 ) ) END ) ) ELSE NULL END * COALESCE ( + CAST( 68 AS DECIMAL ) - 26 * COUNT( * ), + 70, + 34 + + 55 * 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL - 45 * - + COUNT ( * ) + - CASE + 50 WHEN + 38 THEN + ( ( + CASE + - 28 WHEN + AVG ( DISTINCT + 44 ) + + 32 * + + 80 + - 96 + + 11 + + 99 * 6 THEN COALESCE ( + CAST ( 42 AS INTEGER ), CASE WHEN NOT 33 IN ( ( - 17 ) ) THEN NULL ELSE - 35 END * - 61 + - 51 * - ( 9 ) ) END ) ) ELSE NULL END * COALESCE ( + CAST ( 68 AS REAL ) - 26 * COUNT ( * ), + 70, + 34 + + 55 * 9 )
----
NULL

query I rowsort
SELECT + 81 + 73 + 18
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT - - 23 * - 65 * + CASE - 44 WHEN - MIN( DISTINCT - 99 ) THEN NULL ELSE ( - + 84 ) END + + 6
----
125586

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - - 23 * - 65 * + CASE - 44 WHEN - MIN ( DISTINCT - 99 ) THEN NULL ELSE ( - + 84 ) END + + 6
----
125586

query I rowsort
SELECT DISTINCT - + 92 * 78 + + 28 - ( - - 98 )
----
-7246

query I rowsort
SELECT + 61 + - - 6
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + 31 * 62 - - + COUNT( * )
----
1923

skipif mysql # not compatible
query I rowsort label-4888
SELECT + 31 * 62 - - + COUNT ( * )
----
1923

query I rowsort
SELECT ALL - 58 * - + 20 * + - 57 * - 88
----
5818560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4890
SELECT SUM( DISTINCT 66 ) DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-4890
SELECT SUM ( DISTINCT 66 ) / - 84
----
0

query I rowsort
SELECT + ( - 37 ) + 71 * + - 28
----
-2025

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT - COUNT( * ) col1, - 39
----
-1
-39

skipif mysql # not compatible
query II rowsort label-4892
SELECT - COUNT ( * ) col1, - 39
----
-1
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL + 67 - - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL + 67 - - COUNT ( * )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4894
SELECT + CASE + - 79 WHEN - 62 THEN - 47 WHEN - COALESCE ( - + 87, + - CAST( + - MIN( ALL 35 ) AS SIGNED ) * + 51 ) THEN 56 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT + CASE + - 79 WHEN - 62 THEN - 47 WHEN - COALESCE ( - + 87, + - CAST ( + - MIN ( ALL 35 ) AS INTEGER ) * + 51 ) THEN 56 END AS col0
----
NULL

query I rowsort
SELECT ALL + ( + + 92 ) * ( + 24 ) AS col1
----
2208

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4896
SELECT DISTINCT 11 AS col1, 42 - 44 + - CAST( - + ( ( + + 51 ) ) AS SIGNED ) * 82
----
11
4180

skipif mysql # not compatible
query II rowsort label-4896
SELECT DISTINCT 11 AS col1, 42 - 44 + - CAST ( - + ( ( + + 51 ) ) AS INTEGER ) * 82
----
11
4180

query I rowsort
SELECT 91 + 90 + - 7
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT 97 * - COUNT( * ) * - - NULLIF ( + + 64, CASE - + 65 WHEN + COUNT( - 53 ) THEN + + ( - - 71 ) - + 54 - + 14 / + + COUNT( * ) * - + 7 + + 62 + + 86 - + - ( - ( + 58 ) ) - 79 * 16 END + 42 ) AS col2
----
-6208

skipif mysql # not compatible
query I rowsort label-4898
SELECT 97 * - COUNT ( * ) * - - NULLIF ( + + 64, CASE - + 65 WHEN + COUNT ( - 53 ) THEN + + ( - - 71 ) - + 54 - + 14 / + + COUNT ( * ) * - + 7 + + 62 + + 86 - + - ( - ( + 58 ) ) - 79 * 16 END + 42 ) AS col2
----
-6208

onlyif mysql # DIV for integer division: 
query II rowsort label-4899
SELECT 6 + - 77 * 20 * 55 DIV + 79 AS col0, 74 * - ( 7 ) AS col0
----
-1066
-518

skipif mysql # not compatible
query II rowsort label-4899
SELECT 6 + - 77 * 20 * 55 / + 79 AS col0, 74 * - ( 7 ) AS col0
----
-1066
-518

onlyif mysql # DIV for integer division: 
query I rowsort label-4900
SELECT ALL + 86 DIV - 27 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL + 86 / - 27 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT 25 + + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4901
SELECT 25 + + + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4902
SELECT 96 * ( 62 ) AS col1, NULLIF ( + - 76, - 16 - SUM( - 33 ) ) * 84 + - 68
----
5952
-6452

skipif mysql # not compatible
query II rowsort label-4902
SELECT 96 * ( 62 ) AS col1, NULLIF ( + - 76, - 16 - SUM ( - 33 ) ) * 84 + - 68
----
5952
-6452

query I rowsort
SELECT DISTINCT 46 * + 53 * + 15 AS col0
----
36570

query I rowsort
SELECT DISTINCT - 96 * + - 62 * 84
----
499968

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT 6 * + COUNT( * ) * + + 48 + 83 AS col0
----
371

skipif mysql # not compatible
query I rowsort label-4905
SELECT 6 * + COUNT ( * ) * + + 48 + 83 AS col0
----
371

query I rowsort
SELECT 57 + + 40
----
97

query I rowsort
SELECT ALL 39 + + 42 + - + 24 AS col0
----
57

query II rowsort
SELECT DISTINCT - + 33 + 29, - 45 AS col1
----
-4
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT DISTINCT - 81 / + + 7 + + + ( + MIN( ALL NULLIF ( + + 97, + 94 ) ) ) + + CASE + MIN( ALL - 42 ) WHEN 43 THEN - COUNT( * ) WHEN - 23 * - + 87 - 12 THEN + CAST( + ( + 51 ) AS SIGNED ) ELSE NULL END + - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT - 81 / + + 7 + + + ( + MIN ( ALL NULLIF ( + + 97, + 94 ) ) ) + + CASE + MIN ( ALL - 42 ) WHEN 43 THEN - COUNT ( * ) WHEN - 23 * - + 87 - 12 THEN + CAST ( + ( + 51 ) AS INTEGER ) ELSE NULL END + - 13 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 70 + 2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4911
SELECT ALL MIN( 89 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL MIN ( 89 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4912
SELECT + MIN( ALL - 14 ) AS col0, 84 - + 58 AS col0
----
-14
26

skipif mysql # not compatible
query II rowsort label-4912
SELECT + MIN ( ALL - 14 ) AS col0, 84 - + 58 AS col0
----
-14
26

query I rowsort
SELECT ALL - 32 + ( 93 ) + + 36 * + 76 * + 58
----
158749

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT - 21 * - - SUM( ALL + - 86 ) * - - 84 + 61 AS col1
----
151765

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT - 21 * - - SUM ( ALL + - 86 ) * - - 84 + 61 AS col1
----
151765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4915
SELECT ( + + ( + - 51 ) ) + + COALESCE ( 66, + + 85 DIV 94 + + COUNT( * ) ) * + 21
----
1335

skipif mysql # not compatible
query I rowsort label-4915
SELECT ( + + ( + - 51 ) ) + + COALESCE ( 66, + + 85 / 94 + + COUNT ( * ) ) * + 21
----
1335

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT ALL + ( + + 39 ) * - COUNT( * ) * + - COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL + ( + + 39 ) * - COUNT ( * ) * + - COUNT ( * ) AS col1
----
39

query I rowsort
SELECT + - 75 * + 4 + + 25 col2
----
-275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4918
SELECT + COUNT( * ) - - COUNT( * ) + + - MIN( + 97 ) DIV ( ( + 33 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4918
SELECT + COUNT ( * ) - - COUNT ( * ) + + - MIN ( + 97 ) / ( ( + 33 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT - CAST( + 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4919
SELECT - CAST ( + 10 AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT 51 * + + 81 * - SUM( ALL 24 ) AS col2
----
-99144

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT 51 * + + 81 * - SUM ( ALL 24 ) AS col2
----
-99144

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT + COUNT( * ) * - 69
----
-69

skipif mysql # not compatible
query I rowsort label-4921
SELECT + COUNT ( * ) * - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL 78 - - + CASE - SUM( - + 29 ) WHEN - - 24 THEN + 75 - CASE - CASE 16 WHEN - 32 + - + MAX( 93 ) THEN - + 57 END WHEN + 91 * - 8 * - 36 THEN NULL WHEN + 69 - - 37 * + 73 THEN + ( 69 ) - 39 ELSE NULL END WHEN + 4 * 52 THEN NULL ELSE + 12 * SUM( - 9 ) + COUNT( * ) END + - 90
----
-119

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL 78 - - + CASE - SUM ( - + 29 ) WHEN - - 24 THEN + 75 - CASE - CASE 16 WHEN - 32 + - + MAX ( 93 ) THEN - + 57 END WHEN + 91 * - 8 * - 36 THEN NULL WHEN + 69 - - 37 * + 73 THEN + ( 69 ) - 39 ELSE NULL END WHEN + 4 * 52 THEN NULL ELSE + 12 * SUM ( - 9 ) + COUNT ( * ) END + - 90
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT ALL - COALESCE ( + 26, - CAST( NULL AS SIGNED ) )
----
-26

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL - COALESCE ( + 26, - CAST ( NULL AS INTEGER ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT - COUNT( DISTINCT + 58 ) * 8 * + + 67 AS col0
----
-536

skipif mysql # not compatible
query I rowsort label-4924
SELECT - COUNT ( DISTINCT + 58 ) * 8 * + + 67 AS col0
----
-536

query I rowsort
SELECT 81 + + 48 col0
----
129

query I rowsort
SELECT ALL + 82 * 96 AS col0
----
7872

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT ALL + MIN( ALL ( + - 97 ) ) * + - 72 + - 14 AS col1
----
6970

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL + MIN ( ALL ( + - 97 ) ) * + - 72 + - 14 AS col1
----
6970

query I rowsort
SELECT DISTINCT - 28 * - 19
----
532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4929
SELECT 25 + - CAST( + + 9 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4929
SELECT 25 + - CAST ( + + 9 AS INTEGER ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4930
SELECT MIN( DISTINCT + - 81 ) + - 78 col0, + CASE + NULLIF ( + - 85, - 5 * COUNT( * ) * 35 ) WHEN 94 * 31 THEN NULL ELSE - SUM( ALL + 76 ) * CAST( - 72 AS SIGNED ) END
----
-159
5472

skipif mysql # not compatible
query II rowsort label-4930
SELECT MIN ( DISTINCT + - 81 ) + - 78 col0, + CASE + NULLIF ( + - 85, - 5 * COUNT ( * ) * 35 ) WHEN 94 * 31 THEN NULL ELSE - SUM ( ALL + 76 ) * CAST ( - 72 AS INTEGER ) END
----
-159
5472

query I rowsort
SELECT 5 + + + 64
----
69

query II rowsort
SELECT 40 AS col2, 6 * + 51 + 43 + 82
----
40
431

onlyif mysql # DIV for integer division: 
query I rowsort label-4933
SELECT 12 DIV - - 16
----
0

skipif mysql # not compatible
query I rowsort label-4933
SELECT 12 / - - 16
----
0

query I rowsort
SELECT 15 + - + 17
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT 50 - - - 2 + + SUM( - 45 ) - + 23 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4935
SELECT 50 - - - 2 + + SUM ( - 45 ) - + 23 AS col1
----
-20

query I rowsort
SELECT 57 * 88 * 5 * + - 5
----
-125400

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT - CASE ( 83 ) WHEN - NULLIF ( + 75, COALESCE ( - + 58, 81 * - + 48 ) ) THEN 11 * - 97 * - 11 WHEN - + CASE 78 WHEN + ( 30 ) * + 5 THEN NULL WHEN + 95 THEN NULL ELSE COUNT( * ) END THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT - CASE ( 83 ) WHEN - NULLIF ( + 75, COALESCE ( - + 58, 81 * - + 48 ) ) THEN 11 * - 97 * - 11 WHEN - + CASE 78 WHEN + ( 30 ) * + 5 THEN NULL WHEN + 95 THEN NULL ELSE COUNT ( * ) END THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4938
SELECT DISTINCT + 37 * + 15 + + 7 + - 92 * + 37 + 60 AS col1, + CAST( 10 AS SIGNED ) - + - 46
----
-2782
56

skipif mysql # not compatible
query II rowsort label-4938
SELECT DISTINCT + 37 * + 15 + + 7 + - 92 * + 37 + 60 AS col1, + CAST ( 10 AS INTEGER ) - + - 46
----
-2782
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT - 54 * - - 8 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT - 54 * - - 8 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4940
SELECT ALL + 52 * + - COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL + 52 * + - COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT ( ( + MAX( + ( - 17 ) ) ) ) * - ( 49 )
----
833

skipif mysql # not compatible
query I rowsort label-4941
SELECT ( ( + MAX ( + ( - 17 ) ) ) ) * - ( 49 )
----
833

onlyif mysql # aggregate syntax: 
query II rowsort label-4942
SELECT NULLIF ( 69, - 18 ) * + MAX( - ( + + 74 ) ), 8 AS col0
----
-5106
8

skipif mysql # not compatible
query II rowsort label-4942
SELECT NULLIF ( 69, - 18 ) * + MAX ( - ( + + 74 ) ), 8 AS col0
----
-5106
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4943
SELECT ALL + ( - 92 ) * - - CAST( NULL AS SIGNED ) / - + MAX( 90 ) / + 9 + + 87 * 72 * 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL + ( - 92 ) * - - CAST ( NULL AS INTEGER ) / - + MAX ( 90 ) / + 9 + + 87 * 72 * 13 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT 43 + + - 94 - ( + 28 ) DIV + + 33
----
-51

skipif mysql # not compatible
query I rowsort label-4944
SELECT 43 + + - 94 - ( + 28 ) / + + 33
----
-51

query I rowsort
SELECT DISTINCT + 64 * - + ( + 28 ) - + - 87 AS col1
----
-1705

onlyif mysql # aggregate syntax: 
query II rowsort label-4946
SELECT ALL + - 40 AS col2, + 14 * - COUNT( * )
----
-40
-14

skipif mysql # not compatible
query II rowsort label-4946
SELECT ALL + - 40 AS col2, + 14 * - COUNT ( * )
----
-40
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL - 76 * - 14 * - MIN( - 53 ) AS col1
----
56392

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - 76 * - 14 * - MIN ( - 53 ) AS col1
----
56392

query I rowsort
SELECT ALL + COALESCE ( - - 57, - 69 ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4949
SELECT DISTINCT MIN( DISTINCT CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) ) / - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT MIN ( DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) ) / - 24 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4950
SELECT + - 91, + ( - - 23 ) DIV - 5 col2
----
-91
-4

skipif mysql # not compatible
query II rowsort label-4950
SELECT + - 91, + ( - - 23 ) / - 5 col2
----
-91
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4951
SELECT - - 26 DIV 2 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4951
SELECT - - 26 / 2 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT + + 21 * 66 + - COALESCE ( + COALESCE ( + + NULLIF ( + 6, - 14 ), COUNT( * ), CAST( NULL AS SIGNED ) ), - MAX( + 17 ), - COUNT( * ) + 32 ) * + 35 AS col2
----
1176

skipif mysql # not compatible
query I rowsort label-4952
SELECT + + 21 * 66 + - COALESCE ( + COALESCE ( + + NULLIF ( + 6, - 14 ), COUNT ( * ), CAST ( NULL AS INTEGER ) ), - MAX ( + 17 ), - COUNT ( * ) + 32 ) * + 35 AS col2
----
1176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT ALL + CAST( NULL AS SIGNED ) * + - 70 * + - 2 / + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 70 * + - 2 / + 37 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - COUNT( 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-4954
SELECT - COUNT ( 54 )
----
-1

query I rowsort
SELECT + 30 + - 3 AS col1
----
27

query I rowsort
SELECT + COALESCE ( + 12, + ( + - 35 ) + + + 93 + + + 34, - - 22 * 68 ) * + - 71
----
-852

query II rowsort
SELECT - 6 + + 55 AS col1, 41 AS col1
----
49
41

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT + 17 + 75 + + 42 DIV - + 86 * + - 20
----
92

skipif mysql # not compatible
query I rowsort label-4958
SELECT + 17 + 75 + + 42 / - + 86 * + - 20
----
92

query I rowsort
SELECT + 76 * - 44
----
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL 82 * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL 82 * - COUNT ( * )
----
-82

query I rowsort
SELECT DISTINCT 41 + - - 19 AS col2
----
60

query I rowsort
SELECT ALL 99 * 29 * 84
----
241164

query I rowsort
SELECT + 70 + + 7 * - 35
----
-175

query I rowsort
SELECT DISTINCT 93 + - - 68
----
161

query I rowsort
SELECT ALL 28 + - 67
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT - 40 + - COUNT( * ) + 88 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4966
SELECT - 40 + - COUNT ( * ) + 88 AS col0
----
47

query I rowsort
SELECT + 10 * - 96
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT - COALESCE ( 44, 26, + - COUNT( * ) ) + 16 * 17 + - COALESCE ( + ( + 13 ), + - 68 ) col0
----
215

skipif mysql # not compatible
query I rowsort label-4968
SELECT - COALESCE ( 44, 26, + - COUNT ( * ) ) + 16 * 17 + - COALESCE ( + ( + 13 ), + - 68 ) col0
----
215

query I rowsort
SELECT ALL + 51 * 31 AS col2
----
1581

query I rowsort
SELECT - ( 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT - 92 + - 19 + + COUNT( * )
----
-110

skipif mysql # not compatible
query I rowsort label-4971
SELECT - 92 + - 19 + + COUNT ( * )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT - ( + - COALESCE ( - 81, - 78, - - COUNT( * ) ) ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-4972
SELECT - ( + - COALESCE ( - 81, - 78, - - COUNT ( * ) ) ) col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT DISTINCT COUNT( * ) + 96 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT COUNT ( * ) + 96 AS col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4974
SELECT - 97 + 84 DIV 78
----
-96

skipif mysql # not compatible
query I rowsort label-4974
SELECT - 97 + 84 / 78
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT DISTINCT - 7 + 50 + + - 73 + + MAX( DISTINCT COALESCE ( + 78, + 81 * - - 58 + - 21 ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT - 7 + 50 + + - 73 + + MAX ( DISTINCT COALESCE ( + 78, + 81 * - - 58 + - 21 ) ) AS col0
----
48

query I rowsort
SELECT + - 32 * - 38 * - - 63 AS col1
----
76608

query I rowsort
SELECT - 75 * 21 AS col2
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT + + 57 - + - 86 * COUNT( * )
----
143

skipif mysql # not compatible
query I rowsort label-4978
SELECT + + 57 - + - 86 * COUNT ( * )
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4979
SELECT DISTINCT 16 DIV 68 * 56 - ( + + 57 ) + + 60 * + - 38 DIV - NULLIF ( + COUNT( * ), - - 36 ) - MAX( - - 90 )
----
2133

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT 16 / 68 * 56 - ( + + 57 ) + + 60 * + - 38 / - NULLIF ( + COUNT ( * ), - - 36 ) - MAX ( - - 90 )
----
2133

query II rowsort
SELECT - 41 * - 66 AS col2, 68 * - 67 AS col2
----
2706
-4556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4981
SELECT - + 60 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT - + 60 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 55 * + + 49 AS col0
----
-2695

query II rowsort
SELECT + ( - 53 ) AS col2, + 22 col0
----
-53
22

query I rowsort
SELECT - + ( + 14 ) * - + 29
----
406

query I rowsort
SELECT DISTINCT + ( 38 ) * + 46
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT - SUM( DISTINCT - 50 ) * 53
----
2650

skipif mysql # not compatible
query I rowsort label-4986
SELECT - SUM ( DISTINCT - 50 ) * 53
----
2650

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL + COUNT( * ) * - MAX( DISTINCT + 26 ) * - 88 + 18 + 27
----
2333

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + COUNT ( * ) * - MAX ( DISTINCT + 26 ) * - 88 + 18 + 27
----
2333

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4988
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - 59 AS col2
----
NULL
-59

skipif mysql # not compatible
query II rowsort label-4988
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 59 AS col2
----
NULL
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT ALL CAST( + 66 AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL CAST ( + 66 AS INTEGER ) AS col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4990
SELECT DISTINCT + 9 * + - COUNT( DISTINCT - - 85 ) DIV COUNT( - 70 ) * - - 13 + + ( + 25 ), 16 AS col2
----
-92
16

skipif mysql # not compatible
query II rowsort label-4990
SELECT DISTINCT + 9 * + - COUNT ( DISTINCT - - 85 ) / COUNT ( - 70 ) * - - 13 + + ( + 25 ), 16 AS col2
----
-92
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL + 26 * 17 + + NULLIF ( 39, - COUNT( * ) * COUNT( ALL - + 12 ) + + 14 + + + 82 + + CASE 79 WHEN + - ( 53 ) + + - 21 THEN NULL WHEN 40 THEN NULL ELSE COUNT( * ) END * + 48 - MIN( + 22 ) * + 89 * + 47 ) AS col0
----
481

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL + 26 * 17 + + NULLIF ( 39, - COUNT ( * ) * COUNT ( ALL - + 12 ) + + 14 + + + 82 + + CASE 79 WHEN + - ( 53 ) + + - 21 THEN NULL WHEN 40 THEN NULL ELSE COUNT ( * ) END * + 48 - MIN ( + 22 ) * + 89 * + 47 ) AS col0
----
481

query I rowsort
SELECT - 58 + - 18 col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT MAX( 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4993
SELECT MAX ( 45 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL - 76 * - CASE + - SUM( ALL 61 ) WHEN 51 THEN NULL WHEN + - 41 * 14 * + - 94 + 29 + - - COUNT( * ) THEN + 62 END + + 10 + NULLIF ( 94, + SUM( + 0 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL - 76 * - CASE + - SUM ( ALL 61 ) WHEN 51 THEN NULL WHEN + - 41 * 14 * + - 94 + 29 + - - COUNT ( * ) THEN + 62 END + + 10 + NULLIF ( 94, + SUM ( + 0 ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT - 34 + - COUNT( * ) + 8 * + + COALESCE ( + 17, + - 10 ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-4995
SELECT - 34 + - COUNT ( * ) + 8 * + + COALESCE ( + 17, + - 10 ) AS col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT SUM( 20 ) col2
----
20

skipif mysql # not compatible
query I rowsort label-4996
SELECT SUM ( 20 ) col2
----
20

query I rowsort
SELECT ALL 22 + - 24 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT + 87 + + ( + - ( MIN( 66 ) ) ) AS col2, 25
----
21
25

skipif mysql # not compatible
query II rowsort label-4998
SELECT + 87 + + ( + - ( MIN ( 66 ) ) ) AS col2, 25
----
21
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT DISTINCT - COUNT( * ) + + 60 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT - COUNT ( * ) + + 60 AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT ALL 74 + - 61 * + - 36 AS col1, COUNT( * )
----
2270
1

skipif mysql # not compatible
query II rowsort label-5000
SELECT ALL 74 + - 61 * + - 36 AS col1, COUNT ( * )
----
2270
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT + 80 + + 86 * + + 20 + - MAX( DISTINCT + - ( - 4 ) ) + - - 99 AS col0
----
1895

skipif mysql # not compatible
query I rowsort label-5001
SELECT + 80 + + 86 * + + 20 + - MAX ( DISTINCT + - ( - 4 ) ) + - - 99 AS col0
----
1895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT DISTINCT CAST( NULL AS SIGNED ) * - AVG ( ALL 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - AVG ( ALL 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5003
SELECT ALL CASE + ( - 15 ) WHEN - + COUNT( * ) THEN - + 40 + 50 / 90 + - + 40 END AS col2, SUM( 52 ) AS col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-5003
SELECT ALL CASE + ( - 15 ) WHEN - + COUNT ( * ) THEN - + 40 + 50 / 90 + - + 40 END AS col2, SUM ( 52 ) AS col0
----
NULL
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5004
SELECT DISTINCT 0 AS col1, + COUNT( * ) AS col1
----
0
1

skipif mysql # not compatible
query II rowsort label-5004
SELECT DISTINCT 0 AS col1, + COUNT ( * ) AS col1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ALL COALESCE ( 59, - 41 ) - - COUNT( * ) + - 74 * - - 67 AS col0
----
-4898

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL COALESCE ( 59, - 41 ) - - COUNT ( * ) + - 74 * - - 67 AS col0
----
-4898

query I rowsort
SELECT + 44 + - - 77 + - + 81
----
40

query III rowsort
SELECT + 6 AS col2, 28 + 55, + ( 48 ) col1
----
6
83
48

query II rowsort
SELECT ALL 34 AS col0, 59 + + - 25 + + - 35 + 28 - - - NULLIF ( 74, + 80 )
----
34
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - 73 - + COUNT( * ) - - + 13 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-5009
SELECT - 73 - + COUNT ( * ) - - + 13 AS col0
----
-61

query I rowsort
SELECT - CASE + + 9 WHEN + 90 * - - 62 THEN - + 20 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT COUNT( * ) + ( SUM( - 87 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-5011
SELECT COUNT ( * ) + ( SUM ( - 87 ) )
----
-86

query I rowsort
SELECT - 86 + + + 42
----
-44

query I rowsort
SELECT DISTINCT 60 * - 93 + + + 89
----
-5491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5014
SELECT DISTINCT COUNT( * ) - + CAST( + - ( + 23 ) AS SIGNED ) * - + 25 * + 95 + + NULLIF ( + 64, 12 ) - + ( + - ( - 16 ) ) - + 83 DIV ( COUNT( * ) ) AS col0, 96 * COUNT( * ) AS col0
----
-54659
96

skipif mysql # not compatible
query II rowsort label-5014
SELECT DISTINCT COUNT ( * ) - + CAST ( + - ( + 23 ) AS INTEGER ) * - + 25 * + 95 + + NULLIF ( + 64, 12 ) - + ( + - ( - 16 ) ) - + 83 / ( COUNT ( * ) ) AS col0, 96 * COUNT ( * ) AS col0
----
-54659
96

query I rowsort
SELECT DISTINCT 18 * + + 56 AS col0
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT DISTINCT + 81 * + 61 * + - NULLIF ( CASE + 98 WHEN + - 87 * - + COUNT( * ) * + 8 + + + COUNT( * ) * 78 + + 44 * + 58 THEN + 70 * - - 73 + MAX( 53 ) ELSE NULL END, + + 9 * + ( - COUNT( * ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT + 81 * + 61 * + - NULLIF ( CASE + 98 WHEN + - 87 * - + COUNT ( * ) * + 8 + + + COUNT ( * ) * 78 + + 44 * + 58 THEN + 70 * - - 73 + MAX ( 53 ) ELSE NULL END, + + 9 * + ( - COUNT ( * ) ) ) AS col0
----
NULL

query I rowsort
SELECT 42 * + - 0 AS col0
----
0

query I rowsort
SELECT ALL 45 * 25
----
1125

onlyif mysql # aggregate syntax: 
query II rowsort label-5019
SELECT 29 + 23 + COUNT( * ) - + COUNT( * ) + 75, 4 * + - 89 / - CASE - 47 WHEN 80 / + - 19 * + 98 THEN - 6 WHEN - 47 * 82 - - 30 + 45 THEN COALESCE ( + + 75, + + 10 * COUNT( * ) ) ELSE NULL END / + 46 AS col1
----
127
NULL

skipif mysql # not compatible
query II rowsort label-5019
SELECT 29 + 23 + COUNT ( * ) - + COUNT ( * ) + 75, 4 * + - 89 / - CASE - 47 WHEN 80 / + - 19 * + 98 THEN - 6 WHEN - 47 * 82 - - 30 + 45 THEN COALESCE ( + + 75, + + 10 * COUNT ( * ) ) ELSE NULL END / + 46 AS col1
----
127
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5020
SELECT + ( - + ( + - 70 ) ) * + + 88 * + - 32 * - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT + ( - + ( + - 70 ) ) * + + 88 * + - 32 * - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5021
SELECT CAST( NULL AS SIGNED ) * 92 * CASE - COALESCE ( CAST( NULL AS SIGNED ), + - COUNT( * ), 69 - - 81 + + + ( - COUNT( + + ( ( + 31 ) ) ) ) * + 84 ) WHEN + MAX( 35 ) THEN + CAST( - COUNT( * ) AS SIGNED ) * - - COUNT( * ) * 95 END + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT CAST ( NULL AS INTEGER ) * 92 * CASE - COALESCE ( CAST ( NULL AS INTEGER ), + - COUNT ( * ), 69 - - 81 + + + ( - COUNT ( + + ( ( + 31 ) ) ) ) * + 84 ) WHEN + MAX ( 35 ) THEN + CAST ( - COUNT ( * ) AS INTEGER ) * - - COUNT ( * ) * 95 END + + 3
----
NULL

query I rowsort
SELECT DISTINCT 29 + - ( + 46 ) * - - 2
----
-63

query I rowsort
SELECT ALL + ( - 2 ) + 17 + - 96 * 47
----
-4497

query II rowsort
SELECT DISTINCT + 41 + 17, - 38 AS col0
----
58
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT ALL - CAST( + SUM( DISTINCT + 44 ) AS SIGNED ) + - 23 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL - CAST ( + SUM ( DISTINCT + 44 ) AS INTEGER ) + - 23 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( - 65 ) col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL + COUNT( * ) + + + 6
----
7

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + COUNT ( * ) + + + 6
----
7

query II rowsort
SELECT 5 col2, 48
----
5
48

query II rowsort
SELECT 6 * + 44, - 60 AS col2
----
264
-60

query I rowsort
SELECT 87 * + - 74 + 88
----
-6350

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL - SUM( DISTINCT + 89 ) * 99 - + 86 col1
----
-8897

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL - SUM ( DISTINCT + 89 ) * 99 - + 86 col1
----
-8897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT ALL - CASE SUM( DISTINCT + ( 37 ) ) WHEN 51 * - - 79 * + - 32 THEN - COUNT( * ) * + - ( 98 ) * + + 57 * + 17 ELSE + + 78 END * COUNT( * ) - CAST( - CAST( + + COUNT( * ) AS SIGNED ) AS SIGNED ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - CASE SUM ( DISTINCT + ( 37 ) ) WHEN 51 * - - 79 * + - 32 THEN - COUNT ( * ) * + - ( 98 ) * + + 57 * + 17 ELSE + + 78 END * COUNT ( * ) - CAST ( - CAST ( + + COUNT ( * ) AS INTEGER ) AS INTEGER ) col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5033
SELECT DISTINCT + COUNT( * ) - + 15 * CAST( - CASE - COUNT( * ) WHEN COUNT( * ) / - 60 / + - 1 THEN NULL ELSE - 92 * - + 97 - 58 END AS SIGNED ) AS col1
----
132991

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT + COUNT ( * ) - + 15 * CAST ( - CASE - COUNT ( * ) WHEN COUNT ( * ) / - 60 / + - 1 THEN NULL ELSE - 92 * - + 97 - 58 END AS INTEGER ) AS col1
----
132991

query I rowsort
SELECT ALL - 52 * 27 AS col0
----
-1404

onlyif mysql # aggregate syntax: 
query II rowsort label-5035
SELECT ALL 84, - 19 + - - COALESCE ( + - COUNT( * ), + + 69 + - + MIN( 72 ) / - 44 * - 19 ) * - 15 / 61 + - ( - - CASE 74 WHEN - 17 THEN NULL WHEN - 51 THEN - 90 ELSE NULL END ) AS col1
----
84
NULL

skipif mysql # not compatible
query II rowsort label-5035
SELECT ALL 84, - 19 + - - COALESCE ( + - COUNT ( * ), + + 69 + - + MIN ( 72 ) / - 44 * - 19 ) * - 15 / 61 + - ( - - CASE 74 WHEN - 17 THEN NULL WHEN - 51 THEN - 90 ELSE NULL END ) AS col1
----
84
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5036
SELECT DISTINCT 34 - ( + COUNT( - COALESCE ( + 12, - 24, + 57 ) ) ) col0, 58 * 51 + - CAST( NULL AS SIGNED ) * + 79
----
33
NULL

skipif mysql # not compatible
query II rowsort label-5036
SELECT DISTINCT 34 - ( + COUNT ( - COALESCE ( + 12, - 24, + 57 ) ) ) col0, 58 * 51 + - CAST ( NULL AS INTEGER ) * + 79
----
33
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5037
SELECT ALL 38 AS col2, + CASE - 15 WHEN + + 10 * - + SUM( ALL + - 11 ) * - 66 * - - 13 * 75 THEN + + 13 + + + ( + - 79 ) - - 55 * + - COUNT( * ) * + 29 ELSE 62 END
----
38
62

skipif mysql # not compatible
query II rowsort label-5037
SELECT ALL 38 AS col2, + CASE - 15 WHEN + + 10 * - + SUM ( ALL + - 11 ) * - 66 * - - 13 * 75 THEN + + 13 + + + ( + - 79 ) - - 55 * + - COUNT ( * ) * + 29 ELSE 62 END
----
38
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5038
SELECT ALL 68 * - - CAST( NULL AS SIGNED ) * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL 68 * - - CAST ( NULL AS INTEGER ) * 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + - 80 * - - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + - 80 * - - 69 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5040
SELECT ALL 95 AS col1, CAST( + 81 AS SIGNED ) + + - COUNT( + 72 ) AS col0
----
95
80

skipif mysql # not compatible
query II rowsort label-5040
SELECT ALL 95 AS col1, CAST ( + 81 AS INTEGER ) + + - COUNT ( + 72 ) AS col0
----
95
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT + COUNT( ALL + COALESCE ( - - 88, - 33 ) ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5041
SELECT + COUNT ( ALL + COALESCE ( - - 88, - 33 ) ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5042
SELECT - + COUNT( * ), NULLIF ( + 38, - + 99 + 50 ) AS col2
----
-1
38

skipif mysql # not compatible
query II rowsort label-5042
SELECT - + COUNT ( * ), NULLIF ( + 38, - + 99 + 50 ) AS col2
----
-1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT + MAX( ALL + 8 ) + + MIN( + 75 )
----
83

skipif mysql # not compatible
query I rowsort label-5043
SELECT + MAX ( ALL + 8 ) + + MIN ( + 75 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5044
SELECT DISTINCT 49 * - 64 * 24 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT 49 * - 64 * 24 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5045
SELECT 87 DIV - 32 + - 18 DIV - 44 + - 38 - 55 * - COUNT( * ) col0
----
15

skipif mysql # not compatible
query I rowsort label-5045
SELECT 87 / - 32 + - 18 / - 44 + - 38 - 55 * - COUNT ( * ) col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5046
SELECT ALL + COUNT( * ) * - + COUNT( * ) * - 11 * - + 36 DIV + 3 + + 55 AS col1, + CAST( + + 98 AS SIGNED ) col2
----
-77
98

skipif mysql # not compatible
query II rowsort label-5046
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) * - 11 * - + 36 / + 3 + + 55 AS col1, + CAST ( + + 98 AS INTEGER ) col2
----
-77
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5047
SELECT ALL + ( + + COUNT( * ) ) col2, 63 * - + 7 * - + NULLIF ( - 77, - 58 ) AS col2
----
1
-33957

skipif mysql # not compatible
query II rowsort label-5047
SELECT ALL + ( + + COUNT ( * ) ) col2, 63 * - + 7 * - + NULLIF ( - 77, - 58 ) AS col2
----
1
-33957

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5048
SELECT ALL CAST( NULL AS DECIMAL ) * 60 + + CAST( - 20 AS SIGNED ) + + + 58 * + 71 * - - 91 AS col2, 42
----
NULL
42

skipif mysql # not compatible
query II rowsort label-5048
SELECT ALL CAST ( NULL AS REAL ) * 60 + + CAST ( - 20 AS INTEGER ) + + + 58 * + 71 * - - 91 AS col2, 42
----
NULL
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5049
SELECT DISTINCT ( 35 ) col0, COUNT( * ) - 77 * 90
----
35
-6929

skipif mysql # not compatible
query II rowsort label-5049
SELECT DISTINCT ( 35 ) col0, COUNT ( * ) - 77 * 90
----
35
-6929

query I rowsort
SELECT DISTINCT - 52 * + 28 AS col0
----
-1456

query II rowsort
SELECT ALL - 67 col2, 94
----
-67
94

query I rowsort
SELECT - 3 - - + 30
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT + 12 * + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-5053
SELECT + 12 * + - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT + COUNT( * ) + - + 36 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-5054
SELECT + COUNT ( * ) + - + 36 AS col2
----
-35

query I rowsort
SELECT ALL - ( 39 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT DISTINCT ( SUM( ALL + + 52 ) ) + ( 51 ) * + - 3 * 68 - - 76
----
-10276

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT ( SUM ( ALL + + 52 ) ) + ( 51 ) * + - 3 * 68 - - 76
----
-10276

query I rowsort
SELECT DISTINCT - 95 + - 92 AS col1
----
-187

query I rowsort
SELECT ALL 79 + + 76
----
155

query II rowsort
SELECT + + 13 AS col0, 0
----
13
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5060
SELECT DISTINCT + COUNT( * ) + - - SUM( ALL + CASE + - 16 WHEN + 0 THEN + CAST( + 98 AS SIGNED ) / + + 39 + - 61 WHEN - 16 THEN NULL ELSE NULL END ) * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT + COUNT ( * ) + - - SUM ( ALL + CASE + - 16 WHEN + 0 THEN + CAST ( + 98 AS INTEGER ) / + + 39 + - 61 WHEN - 16 THEN NULL ELSE NULL END ) * 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL 53 + - - COUNT( * ) * - 75 * 69 + + ( 63 ) AS col2
----
-5059

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL 53 + - - COUNT ( * ) * - 75 * 69 + + ( 63 ) AS col2
----
-5059

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT + 99 )
----
100

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT + 99 )
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-5063
SELECT 41 DIV 6 AS col2, 97 + 35
----
6
132

skipif mysql # not compatible
query II rowsort label-5063
SELECT 41 / 6 AS col2, 97 + 35
----
6
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT DISTINCT - MIN( - ( + 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT - MIN ( - ( + 16 ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT - SUM( + + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - SUM ( + + 87 )
----
-87

query I rowsort
SELECT 31 - 38
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT ALL - 20 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL - 20 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL - 2 * - MIN( DISTINCT - 26 )
----
-52

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - 2 * - MIN ( DISTINCT - 26 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL - COUNT( * ) * + - 41
----
41

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL - COUNT ( * ) * + - 41
----
41

query I rowsort
SELECT - 51 * + 52 AS col2
----
-2652

query I rowsort
SELECT ALL - 20 * - 23
----
460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5072
SELECT - COUNT( * ) + - MAX( - CAST( + 15 AS SIGNED ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5072
SELECT - COUNT ( * ) + - MAX ( - CAST ( + 15 AS INTEGER ) ) AS col2
----
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5073
SELECT - CAST( NULL AS DECIMAL ) - + 4 * - - 3 * 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT - CAST ( NULL AS REAL ) - + 4 * - - 3 * 93 AS col1
----
NULL

query I rowsort
SELECT ALL - 3 * + 51 * + + 62 * - 46
----
436356

query I rowsort
SELECT - 94 * - 74 * - - 73 + - 53 AS col0
----
507735

query I rowsort
SELECT - + 95 + + 60
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL + 14 * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL + 14 * + COUNT ( * )
----
14

query II rowsort
SELECT - 21 + 3 AS col2, + 77 AS col1
----
-18
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5079
SELECT - + 87 * + COUNT( * ) + 56 - - CAST( NULL AS SIGNED ) * + - 40 * + 61 * - 87 + - + CAST( NULL AS SIGNED ) * 1 * - - COUNT( * ), 71 col0
----
NULL
71

skipif mysql # not compatible
query II rowsort label-5079
SELECT - + 87 * + COUNT ( * ) + 56 - - CAST ( NULL AS INTEGER ) * + - 40 * + 61 * - 87 + - + CAST ( NULL AS INTEGER ) * 1 * - - COUNT ( * ), 71 col0
----
NULL
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5080
SELECT DISTINCT + + 17 + - + 7 + - - COUNT( * ) * + 5 * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT + + 17 + - + 7 + - - COUNT ( * ) * + 5 * + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT + COUNT( * ) + + 63 + 20 * - 35
----
-636

skipif mysql # not compatible
query I rowsort label-5081
SELECT + COUNT ( * ) + + 63 + 20 * - 35
----
-636

query II rowsort
SELECT ALL + - 67 + + 75 * + 43 AS col0, 23 * - - 6
----
3158
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT SUM( 21 )
----
21

skipif mysql # not compatible
query I rowsort labe