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 label-5083
SELECT SUM ( 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT - 96 * ( + COUNT( + 28 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-5084
SELECT - 96 * ( + COUNT ( + 28 ) )
----
-96

query I rowsort
SELECT - 10 * - ( 40 )
----
400

query I rowsort
SELECT + + 87 + - 34
----
53

query I rowsort
SELECT ALL + - COALESCE ( 53, - 90 ) AS col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5088
SELECT - + 10 * 10 + + 15 + - + 28 + - COUNT( * ) DIV - 85 AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-5088
SELECT - + 10 * 10 + + 15 + - + 28 + - COUNT ( * ) / - 85 AS col2
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5089
SELECT ALL - COUNT( * ) * 75 + - - CAST( 22 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL - COUNT ( * ) * 75 + - - CAST ( 22 AS INTEGER )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5090
SELECT + CAST( - NULLIF ( + COUNT( * ), - + COUNT( * ) * 8 + 37 - + - 34 + - 20 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5090
SELECT + CAST ( - NULLIF ( + COUNT ( * ), - + COUNT ( * ) * 8 + 37 - + - 34 + - 20 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5091
SELECT - CASE - COALESCE ( + 14, 81 / - ( CAST( + + 8 AS SIGNED ) ), + + COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ), - 92 * + 55 - + 9, COUNT( * ) * 55 ) * - 28, + 8 * 99 * ( 32 ) + + - COUNT( * ) ) WHEN + - 78 - + + CASE CASE + 83 WHEN - 29 THEN + ( 21 ) ELSE + AVG ( 64 ) / 74 END WHEN - 73 + 58 * + 95 THEN MIN( DISTINCT - 81 ) WHEN + 76 THEN NULL ELSE + 97 / - 45 END - COALESCE ( SUM( - 42 ) - + ( - 95 ), 4 ) * + 35 THEN - COUNT( * ) * 12 + - 77 ELSE NULL END + + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT - CASE - COALESCE ( + 14, 81 / - ( CAST ( + + 8 AS INTEGER ) ), + + COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ), - 92 * + 55 - + 9, COUNT ( * ) * 55 ) * - 28, + 8 * 99 * ( 32 ) + + - COUNT ( * ) ) WHEN + - 78 - + + CASE CASE + 83 WHEN - 29 THEN + ( 21 ) ELSE + AVG ( 64 ) / 74 END WHEN - 73 + 58 * + 95 THEN MIN ( DISTINCT - 81 ) WHEN + 76 THEN NULL ELSE + 97 / - 45 END - COALESCE ( SUM ( - 42 ) - + ( - 95 ), 4 ) * + 35 THEN - COUNT ( * ) * 12 + - 77 ELSE NULL END + + 46 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5092
SELECT + 41 - + 31 + CASE - - AVG ( DISTINCT + 3 ) WHEN 90 * + 31 + + - MIN( CAST( - + ( ( 56 ) ) AS SIGNED ) ) + - - COUNT( * ) THEN 17 END * 43 * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT + 41 - + 31 + CASE - - AVG ( DISTINCT + 3 ) WHEN 90 * + 31 + + - MIN ( CAST ( - + ( ( 56 ) ) AS INTEGER ) ) + - - COUNT ( * ) THEN 17 END * 43 * - 73
----
NULL

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

query I rowsort
SELECT - 15 * 24 * - + ( + 48 ) + + 46
----
17326

query I rowsort
SELECT ALL - 28 * 15 * + 26 - - 43 col2
----
-10877

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5096
SELECT ALL + 96 AS col2, + 85 + - CASE - ( - 30 ) WHEN NULLIF ( - + CAST( 44 AS SIGNED ), 98 ) * - 85 THEN - 97 - + 14 + - + 70 * 12 END + + CAST( - 56 AS SIGNED ) AS col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-5096
SELECT ALL + 96 AS col2, + 85 + - CASE - ( - 30 ) WHEN NULLIF ( - + CAST ( 44 AS INTEGER ), 98 ) * - 85 THEN - 97 - + 14 + - + 70 * 12 END + + CAST ( - 56 AS INTEGER ) AS col0
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + SUM( ALL - + 11 ) + - ( - 9 ) - + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-5097
SELECT + SUM ( ALL - + 11 ) + - ( - 9 ) - + COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT DISTINCT + 88 * + + COUNT( * ) * + COUNT( ALL + 4 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT + 88 * + + COUNT ( * ) * + COUNT ( ALL + 4 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT DISTINCT ( + 57 ) * + CASE - COUNT( ALL - 70 ) WHEN + 47 * COUNT( * ) THEN - 95 - MAX( + 56 ) * + 50 ELSE NULL END * + 38 + + - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT ( + 57 ) * + CASE - COUNT ( ALL - 70 ) WHEN + 47 * COUNT ( * ) THEN - 95 - MAX ( + 56 ) * + 50 ELSE NULL END * + 38 + + - 56
----
NULL

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

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

query I rowsort
SELECT + 76 * 93 + - 55 AS col1
----
7013

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT ALL CASE + + ( 5 ) WHEN 73 * - 0 THEN - COUNT( * ) / - 49 WHEN + 94 * + + 46 * - + 24 THEN NULL WHEN - COALESCE ( 42, 93 / - 3 ) * + AVG ( DISTINCT + 69 ) + 63 + NULLIF ( 97, + 64 ) THEN - - 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL CASE + + ( 5 ) WHEN 73 * - 0 THEN - COUNT ( * ) / - 49 WHEN + 94 * + + 46 * - + 24 THEN NULL WHEN - COALESCE ( 42, 93 / - 3 ) * + AVG ( DISTINCT + 69 ) + 63 + NULLIF ( 97, + 64 ) THEN - - 9 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5107
SELECT MIN ( DISTINCT 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL NULLIF ( 73, - 94 * - MIN( + 10 ) + + 29 )
----
73

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL NULLIF ( 73, - 94 * - MIN ( + 10 ) + + 29 )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5109
SELECT DISTINCT - 44 DIV 10 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT - 44 / 10 AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5110
SELECT ALL ( 58 ) DIV - MAX( - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL ( 58 ) / - MAX ( - 33 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL + MAX( - + NULLIF ( - 9, + + ( - - 47 ) ) ) + + 29
----
38

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL + MAX ( - + NULLIF ( - 9, + + ( - - 47 ) ) ) + + 29
----
38

query I rowsort
SELECT + 72 - + 56 AS col2
----
16

query I rowsort
SELECT ALL + + 40 + + + 2
----
42

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT DISTINCT + 69 + - + ( - 52 ) + + 19 - + 0 + + 31 * - 23 + AVG ( ALL - 55 ) * + 9 + + CAST( NULL AS SIGNED ) * + MIN( ALL + 52 ) * 89 - - COUNT( * ) + - COUNT( * ) * + ( 76 ) * + 73 + 97 + + + 3 * - 76 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT + 69 + - + ( - 52 ) + + 19 - + 0 + + 31 * - 23 + AVG ( ALL - 55 ) * + 9 + + CAST ( NULL AS INTEGER ) * + MIN ( ALL + 52 ) * 89 - - COUNT ( * ) + - COUNT ( * ) * + ( 76 ) * + 73 + 97 + + + 3 * - 76 col1
----
NULL

query I rowsort
SELECT ALL - 11 + + - 55
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT - SUM( + + 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5117
SELECT - SUM ( + + 24 ) AS col0
----
-24

query I rowsort
SELECT ALL + + 39 + - 42
----
-3

query II rowsort
SELECT ALL + ( - 89 ) * - 46 AS col0, + 59 AS col2
----
4094
59

query II rowsort
SELECT DISTINCT 32 col1, + 77
----
32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT + 9 + - 64 * NULLIF ( 59, + COUNT( * ) * + - 33 ) - + 26 + 41
----
-3752

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT + 9 + - 64 * NULLIF ( 59, + COUNT ( * ) * + - 33 ) - + 26 + 41
----
-3752

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT - + COUNT( * ) + + 66 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5122
SELECT - + COUNT ( * ) + + 66 AS col2
----
65

query I rowsort
SELECT ALL - - 10 + - 87 + + 96 + 54
----
73

query I rowsort
SELECT - + 95 + 27 + 67 * - 47 AS col2
----
-3217

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT DISTINCT - 26 DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT - 26 / + 94 AS col1
----
0

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

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

query I rowsort
SELECT ALL - 92 * + 12
----
-1104

onlyif mysql # DIV for integer division: 
query I rowsort label-5128
SELECT - 64 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-5128
SELECT - 64 / + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL - COALESCE ( - + 69, 35, 88 ) * ( - - COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL - COALESCE ( - + 69, 35, 88 ) * ( - - COUNT ( * ) )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5130
SELECT DISTINCT + 47 * - 48 AS col2, - COALESCE ( COUNT( * ), - + 10 + + - 25 ) AS col0
----
-2256
-1

skipif mysql # not compatible
query II rowsort label-5130
SELECT DISTINCT + 47 * - 48 AS col2, - COALESCE ( COUNT ( * ), - + 10 + + - 25 ) AS col0
----
-2256
-1

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

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

query I rowsort
SELECT 29 * 41 - + 1 col2
----
1188

onlyif mysql # aggregate syntax: 
query II rowsort label-5133
SELECT COUNT( * ) * 97 AS col2, + 9 + 37 - 41 * - 55 AS col0
----
97
2301

skipif mysql # not compatible
query II rowsort label-5133
SELECT COUNT ( * ) * 97 AS col2, + 9 + 37 - 41 * - 55 AS col0
----
97
2301

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ( - ( 27 ) ) * + COUNT( * ) * + - COUNT( * ) - 64 + COALESCE ( + - COUNT( * ), + 8 ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-5134
SELECT ( - ( 27 ) ) * + COUNT ( * ) * + - COUNT ( * ) - 64 + COALESCE ( + - COUNT ( * ), + 8 ) col2
----
-38

query I rowsort
SELECT ALL 68 * - + 53 * - 1 col0
----
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT CASE - COUNT( * ) WHEN + 80 THEN ( + MAX( ALL + 25 ) ) ELSE NULL END * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT CASE - COUNT ( * ) WHEN + 80 THEN ( + MAX ( ALL + 25 ) ) ELSE NULL END * 83
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 6 + 62 / - 72 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 15 + 41 + 19 col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT 85 * + 13 * - - COUNT( * ) * + - 24 - + + 66
----
-26586

skipif mysql # not compatible
query I rowsort label-5140
SELECT 85 * + 13 * - - COUNT ( * ) * + - 24 - + + 66
----
-26586

query I rowsort
SELECT ALL 73 + + 96 * - NULLIF ( - 92, 72 * 61 ) * - 54 AS col0
----
-476855

query II rowsort
SELECT - ( - - 62 ) AS col0, + 69 AS col1
----
-62
69

query I rowsort
SELECT - 56 + ( + - ( - 4 ) )
----
-52

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

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL 0 + - COUNT ( ALL 16 ) AS col0
----
-1

query I rowsort
SELECT - 39 - + 59 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5146
SELECT COUNT( * ) + + COUNT( * ) * + - 1 * + - 67 AS col1, 17 col0
----
68
17

skipif mysql # not compatible
query II rowsort label-5146
SELECT COUNT ( * ) + + COUNT ( * ) * + - 1 * + - 67 AS col1, 17 col0
----
68
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5147
SELECT + COALESCE ( - 66, + 85 DIV + - COUNT( * ) ) + + 32 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5147
SELECT + COALESCE ( - 66, + 85 / + - COUNT ( * ) ) + + 32 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ALL - + 74 / + - ( + CASE - + 99 WHEN - + MAX( - - 26 ) * 13 * - 21 THEN + 7 / - NULLIF ( 16, - 26 ) - - COUNT( * ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL - + 74 / + - ( + CASE - + 99 WHEN - + MAX ( - - 26 ) * 13 * - 21 THEN + 7 / - NULLIF ( 16, - 26 ) - - COUNT ( * ) END ) AS col2
----
NULL

query I rowsort
SELECT 34 + - ( 5 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT DISTINCT - 16 * 75 + 84 * - COUNT( * ) / - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT - 16 * 75 + 84 * - COUNT ( * ) / - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ( - + 50 ) + + + COUNT( * ) * + 17 * + 15
----
205

skipif mysql # not compatible
query I rowsort label-5151
SELECT ( - + 50 ) + + + COUNT ( * ) * + 17 * + 15
----
205

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5153
SELECT 13 * - - 13 * + MIN( DISTINCT 77 ) AS col2, - 11
----
13013
-11

skipif mysql # not compatible
query II rowsort label-5153
SELECT 13 * - - 13 * + MIN ( DISTINCT 77 ) AS col2, - 11
----
13013
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT - 55 * + SUM( ALL - - 80 )
----
-4400

skipif mysql # not compatible
query I rowsort label-5154
SELECT - 55 * + SUM ( ALL - - 80 )
----
-4400

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

query I rowsort
SELECT 54 + - ( ( - + COALESCE ( - 74, + 90 + - + 25 ) ) ) + + - 30
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT 25 * + - MAX( ALL - - 50 ) AS col2
----
-1250

skipif mysql # not compatible
query I rowsort label-5157
SELECT 25 * + - MAX ( ALL - - 50 ) AS col2
----
-1250

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT ALL 94 * 58 DIV + + 31
----
175

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL 94 * 58 / + + 31
----
175

query II rowsort
SELECT DISTINCT - 63 AS col2, - 32 + + 46 AS col1
----
-63
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5160
SELECT 41 + 44 DIV + + 85 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5160
SELECT 41 + 44 / + + 85 AS col1
----
41

query I rowsort
SELECT 50 * - 88 * + 62
----
-272800

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT 31 + - 55 * + COUNT( ALL 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-5162
SELECT 31 + - 55 * + COUNT ( ALL 24 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5163
SELECT 69 DIV - COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-5163
SELECT 69 / - COUNT ( * ) AS col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5164
SELECT ALL - 70 DIV 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL - 70 / 56 AS col2
----
-1

query I rowsort
SELECT 34 * - + 3 + - 0 + + 87 AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT 76 - - - 28 - - COALESCE ( - + 70, + + 63 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - - 18 + - 3 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-5166
SELECT 76 - - - 28 - - COALESCE ( - + 70, + + 63 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - - 18 + - 3 ) AS col1
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5167
SELECT DISTINCT - 61 * - + COALESCE ( - - ( 6 ), - 20, + 74 DIV 93 + - 80 - 63 * 66 DIV - COUNT( * ) ) AS col0, 91 col1
----
366
91

skipif mysql # not compatible
query II rowsort label-5167
SELECT DISTINCT - 61 * - + COALESCE ( - - ( 6 ), - 20, + 74 / 93 + - 80 - 63 * 66 / - COUNT ( * ) ) AS col0, 91 col1
----
366
91

query II rowsort
SELECT + 80 col2, 63 AS col1
----
80
63

query I rowsort
SELECT ALL - 44 * - + 98 * + 85
----
366520

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5170
SELECT 59 DIV - - COALESCE ( + - 24, - 95 - + CAST( NULL AS SIGNED ) )
----
-2

skipif mysql # not compatible
query I rowsort label-5170
SELECT 59 / - - COALESCE ( + - 24, - 95 - + CAST ( NULL AS INTEGER ) )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT ALL - CAST( 98 AS SIGNED ) + 78
----
-20

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL - CAST ( 98 AS INTEGER ) + 78
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT + COUNT( * ) + - 31
----
-30

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT + COUNT ( * ) + - 31
----
-30

query I rowsort
SELECT ALL + 99 + - ( - 84 )
----
183

query I rowsort
SELECT ALL - 44 * - + 13 AS col0
----
572

query I rowsort
SELECT DISTINCT + 81 * + 75 AS col1
----
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT 41 * + + MIN( + 77 ) + - MIN( DISTINCT - 0 )
----
3157

skipif mysql # not compatible
query I rowsort label-5176
SELECT 41 * + + MIN ( + 77 ) + - MIN ( DISTINCT - 0 )
----
3157

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL - COUNT( * ) + 42
----
41

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - COUNT ( * ) + 42
----
41

query I rowsort
SELECT 87 * + 25
----
2175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5179
SELECT ALL - COUNT( DISTINCT CAST( 15 AS SIGNED ) ), + 33 AS col2
----
-1
33

skipif mysql # not compatible
query II rowsort label-5179
SELECT ALL - COUNT ( DISTINCT CAST ( 15 AS INTEGER ) ), + 33 AS col2
----
-1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT + CASE - 66 WHEN 95 THEN NULL WHEN + SUM( 10 ) + - 91 THEN NULL ELSE + 98 END AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5180
SELECT + CASE - 66 WHEN 95 THEN NULL WHEN + SUM ( 10 ) + - 91 THEN NULL ELSE + 98 END AS col1
----
98

query I rowsort
SELECT ( 94 ) + - 91
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT + 37 + + + COUNT( * ) * + 16 * + 62 col1
----
1029

skipif mysql # not compatible
query I rowsort label-5182
SELECT + 37 + + + COUNT ( * ) * + 16 * + 62 col1
----
1029

query I rowsort
SELECT ALL + 69 + - 94
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT DISTINCT + CASE - 2 WHEN + - COUNT( * ) THEN - - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + CASE - 2 WHEN + - COUNT ( * ) THEN - - 84 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5185
SELECT DISTINCT - NULLIF ( - COUNT( * ), + CAST( NULL AS DECIMAL ) / - MIN( 85 ) ) - + COUNT( * ) - + ( - - SUM( 28 ) ) - + - 40
----
12

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT - NULLIF ( - COUNT ( * ), + CAST ( NULL AS REAL ) / - MIN ( 85 ) ) - + COUNT ( * ) - + ( - - SUM ( 28 ) ) - + - 40
----
12

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

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

query I rowsort
SELECT DISTINCT 91 * - - 9
----
819

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

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

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

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

query I rowsort
SELECT 25 * - 54 * 55 AS col1
----
-74250

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT 5 / + 73 + - 6 * + 60 * 79 * + 33 + + CASE - - 17 WHEN - CAST( + 70 AS SIGNED ) THEN - 43 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT 5 / + 73 + - 6 * + 60 * 79 * + 33 + + CASE - - 17 WHEN - CAST ( + 70 AS INTEGER ) THEN - 43 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5194
SELECT DISTINCT 50 AS col1, COUNT( ALL + 89 ) col0
----
50
1

skipif mysql # not compatible
query II rowsort label-5194
SELECT DISTINCT 50 AS col1, COUNT ( ALL + 89 ) col0
----
50
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5195
SELECT DISTINCT 7 AS col2, NULLIF ( - 89, ( - COUNT( * ) ) )
----
7
-89

skipif mysql # not compatible
query II rowsort label-5195
SELECT DISTINCT 7 AS col2, NULLIF ( - 89, ( - COUNT ( * ) ) )
----
7
-89

query II rowsort
SELECT - 9 AS col0, NULLIF ( - + 95, 37 ) * + 35 * + 0 * - 33 AS col2
----
-9
0

query I rowsort
SELECT - 35 * 64 * + + 16 AS col2
----
-35840

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + 5 + - 88 - + 63 + 37 * COALESCE ( ( 37 ), + + ( 34 ) + + COUNT( * ) + - COUNT( * ), + COUNT( * ), - 33 ) AS col2
----
1223

skipif mysql # not compatible
query I rowsort label-5198
SELECT + 5 + - 88 - + 63 + 37 * COALESCE ( ( 37 ), + + ( 34 ) + + COUNT ( * ) + - COUNT ( * ), + COUNT ( * ), - 33 ) AS col2
----
1223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5199
SELECT CASE 93 WHEN + + 94 * + + COUNT( * ) / + + 48 THEN NULL WHEN ( + + CAST( - COUNT( * ) AS SIGNED ) ) THEN - - ( 4 ) * 14 * + 23 + + 32 - 41 * - - 86 / COUNT( * ) + + - 54 ELSE + - 1 END
----
-1

skipif mysql # not compatible
query I rowsort label-5199
SELECT CASE 93 WHEN + + 94 * + + COUNT ( * ) / + + 48 THEN NULL WHEN ( + + CAST ( - COUNT ( * ) AS INTEGER ) ) THEN - - ( 4 ) * 14 * + 23 + + 32 - 41 * - - 86 / COUNT ( * ) + + - 54 ELSE + - 1 END
----
-1

query I rowsort
SELECT ALL - 75 * - - 57
----
-4275

query I rowsort
SELECT + 99 * + 6 AS col0
----
594

query I rowsort
SELECT ALL 26 * + 12 + + 3 + + 84 AS col0
----
399

query I rowsort
SELECT ALL 32 * - - 38 + + 4 AS col1
----
1220

query I rowsort
SELECT - 68 * 55 * + + 37
----
-138380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5205
SELECT + CASE WHEN - 43 NOT BETWEEN - + CAST( ( - + 13 ) AS SIGNED ) DIV COUNT( * ) + 16 AND + 18 THEN + + 55 * + 11 END - + 43 + + 41 DIV 93 + 18 * + + 96
----
2290

skipif mysql # not compatible
query I rowsort label-5205
SELECT + CASE WHEN - 43 NOT BETWEEN - + CAST ( ( - + 13 ) AS INTEGER ) / COUNT ( * ) + 16 AND + 18 THEN + + 55 * + 11 END - + 43 + + 41 / 93 + 18 * + + 96
----
2290

query I rowsort
SELECT NULLIF ( + 48, 97 / + - 54 * + - 83 )
----
48

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

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

query I rowsort
SELECT - 38 * + - 31 * - 56
----
-65968

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL + - 33 * 74 * 48 - 11 + - COUNT( * ) + + - 94 * COUNT( DISTINCT + 78 )
----
-117322

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL + - 33 * 74 * 48 - 11 + - COUNT ( * ) + + - 94 * COUNT ( DISTINCT + 78 )
----
-117322

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

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

query I rowsort
SELECT - 61 * + - COALESCE ( - 34, - 38 )
----
-2074

query II rowsort
SELECT + - 94 AS col2, 83 + - - 43 AS col2
----
-94
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT ALL - + 20 * - MAX( - - 62 ) AS col1
----
1240

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL - + 20 * - MAX ( - - 62 ) AS col1
----
1240

query I rowsort
SELECT - 74 - - 65 AS col1
----
-9

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

query II rowsort
SELECT - + 94 * - 69 * - + 95 - + 9 AS col1, CASE 81 WHEN - + 45 THEN 80 END AS col0
----
-616179
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5217
SELECT ALL + MAX( + 19 ) AS col0, - 28 * - 30 AS col2
----
19
840

skipif mysql # not compatible
query II rowsort label-5217
SELECT ALL + MAX ( + 19 ) AS col0, - 28 * - 30 AS col2
----
19
840

query I rowsort
SELECT - + 58 + 0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 1 * 34 * - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 1 * 34 * - + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT ALL NULLIF ( - + ( - - COUNT( DISTINCT - - 93 ) ), - 97 + + - 8 * - - 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL NULLIF ( - + ( - - COUNT ( DISTINCT - - 93 ) ), - 97 + + - 8 * - - 30 )
----
-1

query I rowsort
SELECT - - 83 + - 25
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5222
SELECT - + ( + COUNT( * ) ) + + 98 + - - 11 AS col0, CASE + COUNT( * ) WHEN - 85 * - + 96 THEN COUNT( * ) / MAX( 30 ) * - + NULLIF ( COALESCE ( + - 18, - - COUNT( * ) ), - 77 ) + + SUM( ALL + 70 ) END AS col2
----
108
NULL

skipif mysql # not compatible
query II rowsort label-5222
SELECT - + ( + COUNT ( * ) ) + + 98 + - - 11 AS col0, CASE + COUNT ( * ) WHEN - 85 * - + 96 THEN COUNT ( * ) / MAX ( 30 ) * - + NULLIF ( COALESCE ( + - 18, - - COUNT ( * ) ), - 77 ) + + SUM ( ALL + 70 ) END AS col2
----
108
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5223
SELECT + - 2 - NULLIF ( + + 25, - - 60 ) + COALESCE ( 33, - 56 DIV - COUNT( * ) * - 44 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5223
SELECT + - 2 - NULLIF ( + + 25, - - 60 ) + COALESCE ( 33, - 56 / - COUNT ( * ) * - 44 ) AS col2
----
6

query I rowsort
SELECT - 77 * - - 19 * - ( - - 38 ) - + - 55 AS col0
----
55649

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

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

query II rowsort
SELECT 30 col0, + 5 AS col1
----
30
5

query II rowsort
SELECT DISTINCT 2 AS col0, 8 - 78 AS col1
----
2
-70

query I rowsort
SELECT ALL 34 * + 1 * + - 95 col1
----
-3230

query I rowsort
SELECT + 4 + + 86
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5230
SELECT ALL - 63 AS col0, + 93 * 89 + - COUNT( * ) DIV - 58 * - - 42 AS col1
----
-63
8277

skipif mysql # not compatible
query II rowsort label-5230
SELECT ALL - 63 AS col0, + 93 * 89 + - COUNT ( * ) / - 58 * - - 42 AS col1
----
-63
8277

query I rowsort
SELECT + COALESCE ( - 96, + 50 + 89, 29, 18 * + ( - 89 ) - - 43 - - 62 + + 38 ) + - - 5 AS col1
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-5232
SELECT DISTINCT + 88 * + 4 AS col1, 11 DIV 44 AS col1
----
352
0

skipif mysql # not compatible
query II rowsort label-5232
SELECT DISTINCT + 88 * + 4 AS col1, 11 / 44 AS col1
----
352
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT ALL 64 + 47 + 99 DIV 1
----
210

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL 64 + 47 + 99 / 1
----
210

query I rowsort
SELECT DISTINCT 58 * - 12 AS col0
----
-696

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5235
SELECT + 81 * CASE + + NULLIF ( + - 97, + - CAST( + 26 AS DECIMAL ) ) WHEN - ( + 65 ) + - - ( - 3 ) + + 75 THEN NULL WHEN - COUNT( * ) THEN COUNT( - - 60 ) ELSE NULL END / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5235
SELECT + 81 * CASE + + NULLIF ( + - 97, + - CAST ( + 26 AS REAL ) ) WHEN - ( + 65 ) + - - ( - 3 ) + + 75 THEN NULL WHEN - COUNT ( * ) THEN COUNT ( - - 60 ) ELSE NULL END / 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL - NULLIF ( + - 18, + - COUNT( * ) * 74 ) + ( + 28 ) + + 63 * 57
----
3637

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - NULLIF ( + - 18, + - COUNT ( * ) * 74 ) + ( + 28 ) + + 63 * 57
----
3637

onlyif mysql # aggregate syntax: 
query II rowsort label-5237
SELECT DISTINCT MAX( - - 57 ) AS col0, ( - 55 ) AS col0
----
57
-55

skipif mysql # not compatible
query II rowsort label-5237
SELECT DISTINCT MAX ( - - 57 ) AS col0, ( - 55 ) AS col0
----
57
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5238
SELECT ALL ( 78 ) / + - 12 + - CAST( NULL AS SIGNED ) + + COUNT( * ) * - - 22 / 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL ( 78 ) / + - 12 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - - 22 / 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5239
SELECT DISTINCT CAST( + 32 AS SIGNED ) DIV SUM( ALL + 46 ) + - 62 - + 8 DIV + + 39 * 7
----
-62

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT CAST ( + 32 AS INTEGER ) / SUM ( ALL + 46 ) + - 62 - + 8 / + + 39 * 7
----
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-5240
SELECT DISTINCT 92 DIV 59 AS col0, + 52
----
1
52

skipif mysql # not compatible
query II rowsort label-5240
SELECT DISTINCT 92 / 59 AS col0, + 52
----
1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT + COALESCE ( - + 42, - - 25 * 7 - - + 5, - 50 ) * + + MIN( DISTINCT + 50 ) AS col2
----
-2100

skipif mysql # not compatible
query I rowsort label-5241
SELECT + COALESCE ( - + 42, - - 25 * 7 - - + 5, - 50 ) * + + MIN ( DISTINCT + 50 ) AS col2
----
-2100

query I rowsort
SELECT + ( NULLIF ( - - ( + 99 ), + 48 ) ) + + + 31
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT 8 * - MAX( - 8 ) + - + 87
----
-23

skipif mysql # not compatible
query I rowsort label-5243
SELECT 8 * - MAX ( - 8 ) + - + 87
----
-23

query II rowsort
SELECT - 15 - + 27 AS col2, 84
----
-42
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5245
SELECT ALL 40 DIV NULLIF ( + 72, COUNT( * ) + - - 11 * + 14 ) - 34 col0
----
-34

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL 40 / NULLIF ( + 72, COUNT ( * ) + - - 11 * + 14 ) - 34 col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5246
SELECT ALL + COALESCE ( 36, 8 + + ( + 67 ) DIV + 78 * COUNT( * ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + COALESCE ( 36, 8 + + ( + 67 ) / + 78 * COUNT ( * ) ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5247
SELECT + CAST( - SUM( 32 ) AS SIGNED ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5247
SELECT + CAST ( - SUM ( 32 ) AS INTEGER ) AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5248
SELECT + - COALESCE ( 24, COUNT( * ) + + 74 ) + - 47, COALESCE ( 46, + CAST( NULL AS SIGNED ), + NULLIF ( 41, + 57 / + 12 * - - CASE - - 37 WHEN + CAST( + COUNT( * ) AS SIGNED ) THEN - 3 + + + 49 ELSE NULL END + + 80 / - + 95 ) * 19 * - - 72 ) AS col1
----
-71
46

skipif mysql # not compatible
query II rowsort label-5248
SELECT + - COALESCE ( 24, COUNT ( * ) + + 74 ) + - 47, COALESCE ( 46, + CAST ( NULL AS INTEGER ), + NULLIF ( 41, + 57 / + 12 * - - CASE - - 37 WHEN + CAST ( + COUNT ( * ) AS INTEGER ) THEN - 3 + + + 49 ELSE NULL END + + 80 / - + 95 ) * 19 * - - 72 ) AS col1
----
-71
46

query I rowsort
SELECT ALL - 42 * + 37 col1
----
-1554

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

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

query I rowsort
SELECT - 94 * + - 10 * - 31 AS col2
----
-29140

query I rowsort
SELECT - - 48 * 31 * - + 87 AS col0
----
-129456

query II rowsort
SELECT - 22 + 17 AS col2, + 3 + + 50 col0
----
-5
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5254
SELECT ALL + + 88 DIV - COALESCE ( + - 99, - 44 ) * - - 20 + - 94 + + CAST( - 50 AS SIGNED )
----
-144

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL + + 88 / - COALESCE ( + - 99, - 44 ) * - - 20 + - 94 + + CAST ( - 50 AS INTEGER )
----
-144

query I rowsort
SELECT DISTINCT + 9 * - 51 * - + 70 AS col0
----
32130

query I rowsort
SELECT ALL + - 13 * - + 92
----
1196

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT ALL + NULLIF ( + 30, + - 22 ), - ( + + SUM( + + 74 ) ) * - 27 * - - SUM( DISTINCT - 16 ) + 58 col2
----
30
-31910

skipif mysql # not compatible
query II rowsort label-5258
SELECT ALL + NULLIF ( + 30, + - 22 ), - ( + + SUM ( + + 74 ) ) * - 27 * - - SUM ( DISTINCT - 16 ) + 58 col2
----
30
-31910

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT 65 * 6 - CASE + 25 WHEN - ( - + 44 ) THEN NULL WHEN + NULLIF ( - ( 71 ), + + CASE COUNT( * ) WHEN + - COUNT( * ) THEN - + 87 * + 59 ELSE NULL END ) + - 19 THEN NULL WHEN + + 7 THEN + 89 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT 65 * 6 - CASE + 25 WHEN - ( - + 44 ) THEN NULL WHEN + NULLIF ( - ( 71 ), + + CASE COUNT ( * ) WHEN + - COUNT ( * ) THEN - + 87 * + 59 ELSE NULL END ) + - 19 THEN NULL WHEN + + 7 THEN + 89 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT DISTINCT - - ( COUNT( * ) ) + - 40 + - + SUM( + 19 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT - - ( COUNT ( * ) ) + - 40 + - + SUM ( + 19 ) AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5261
SELECT ALL + - 21 + - 51 * - 55 AS col0, + 26 * - CAST( - COUNT( * ) AS SIGNED ) / + + COUNT( * ) + - CAST( NULL AS SIGNED ) / + 5 - - 43 AS col0
----
2784
NULL

skipif mysql # not compatible
query II rowsort label-5261
SELECT ALL + - 21 + - 51 * - 55 AS col0, + 26 * - CAST ( - COUNT ( * ) AS INTEGER ) / + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + 5 - - 43 AS col0
----
2784
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ALL + 84 + - ( - - 95 ) * 0 * - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL + 84 + - ( - - 95 ) * 0 * - COUNT ( * )
----
84

query II rowsort
SELECT - 54 AS col0, 27 AS col1
----
-54
27

query II rowsort
SELECT - 8, - 16 * + 54 + + + 27 AS col1
----
-8
-837

onlyif mysql # aggregate syntax: 
query II rowsort label-5265
SELECT 30, + CASE - 69 WHEN - + 71 * NULLIF ( - COUNT( * ), + ( - - CASE - 84 WHEN + + 53 THEN 54 WHEN COUNT( * ) THEN NULL ELSE + COUNT( * ) + 67 END ) ) THEN - - COUNT( * ) ELSE - ( + 91 ) END + + 12 AS col2
----
30
-79

skipif mysql # not compatible
query II rowsort label-5265
SELECT 30, + CASE - 69 WHEN - + 71 * NULLIF ( - COUNT ( * ), + ( - - CASE - 84 WHEN + + 53 THEN 54 WHEN COUNT ( * ) THEN NULL ELSE + COUNT ( * ) + 67 END ) ) THEN - - COUNT ( * ) ELSE - ( + 91 ) END + + 12 AS col2
----
30
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-5266
SELECT DISTINCT 15 AS col0, - 40 * + + 81 + - 20 - - NULLIF ( COUNT( * ), + 42 ) * 47
----
15
-3213

skipif mysql # not compatible
query II rowsort label-5266
SELECT DISTINCT 15 AS col0, - 40 * + + 81 + - 20 - - NULLIF ( COUNT ( * ), + 42 ) * 47
----
15
-3213

query I rowsort
SELECT ALL 87 + - 17 AS col1
----
70

query I rowsort
SELECT ALL 46 + 83 * - 91 col1
----
-7507

query I rowsort
SELECT 75 + + 36 AS col0
----
111

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5270
SELECT MAX( DISTINCT + 25 ) - - COUNT( * ) * - CAST( NULL AS DECIMAL ), 32 + - - 62 * - 4 AS col2
----
NULL
-216

skipif mysql # not compatible
query II rowsort label-5270
SELECT MAX ( DISTINCT + 25 ) - - COUNT ( * ) * - CAST ( NULL AS REAL ), 32 + - - 62 * - 4 AS col2
----
NULL
-216

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

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

query I rowsort
SELECT ALL + 40 + 24 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT ALL - 85 + COUNT( * ) * ( - COUNT( * ) ) + - ( 63 ) AS col2
----
-149

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL - 85 + COUNT ( * ) * ( - COUNT ( * ) ) + - ( 63 ) AS col2
----
-149

query II rowsort
SELECT - 30 AS col2, + 56 col2
----
-30
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT ALL COUNT( * ) * 22 * 82
----
1804

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL COUNT ( * ) * 22 * 82
----
1804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT - 55 / + + 33 + - + NULLIF ( + CAST( NULL AS SIGNED ), 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT - 55 / + + 33 + - + NULLIF ( + CAST ( NULL AS INTEGER ), 19 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5277
SELECT COUNT( * ) - + - 73 + + + CASE - COUNT( ALL + CAST( 90 AS DECIMAL ) ) WHEN + 27 * - 61 + COUNT( * ) + - + COALESCE ( 54, - 87 + 73, - + 41 ) + + - COUNT( * ) * 1 + + 94 * + 96 + - 53 THEN 23 * - 50 + CAST( NULL AS SIGNED ) / + - 34 END * - - 66 * + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT COUNT ( * ) - + - 73 + + + CASE - COUNT ( ALL + CAST ( 90 AS REAL ) ) WHEN + 27 * - 61 + COUNT ( * ) + - + COALESCE ( 54, - 87 + 73, - + 41 ) + + - COUNT ( * ) * 1 + + 94 * + 96 + - 53 THEN 23 * - 50 + CAST ( NULL AS INTEGER ) / + - 34 END * - - 66 * + 64 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5278
SELECT ALL - 55 AS col0, + CAST( NULL AS SIGNED ) * + 22 * 38 + - 14 + + - 47 * - 82 / - MAX( + ( - 99 ) ) + SUM( DISTINCT - 94 ) * + - 27 * + + 4 * - ( - + 88 ) AS col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-5278
SELECT ALL - 55 AS col0, + CAST ( NULL AS INTEGER ) * + 22 * 38 + - 14 + + - 47 * - 82 / - MAX ( + ( - 99 ) ) + SUM ( DISTINCT - 94 ) * + - 27 * + + 4 * - ( - + 88 ) AS col1
----
-55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT DISTINCT - NULLIF ( + 49, - - COALESCE ( + - 6, - + 25 - + 96 + - 33, COALESCE ( - 59, NULLIF ( + + COUNT( * ), + - 57 * - ( - - COUNT( * ) ) * - + 5 + + 15 ) ) ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT - NULLIF ( + 49, - - COALESCE ( + - 6, - + 25 - + 96 + - 33, COALESCE ( - 59, NULLIF ( + + COUNT ( * ), + - 57 * - ( - - COUNT ( * ) ) * - + 5 + + 15 ) ) ) ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5280
SELECT ALL - + 73 AS col2, + 33 * MIN( + - 44 ) AS col1
----
-73
-1452

skipif mysql # not compatible
query II rowsort label-5280
SELECT ALL - + 73 AS col2, + 33 * MIN ( + - 44 ) AS col1
----
-73
-1452

query I rowsort
SELECT DISTINCT - - 21 col1
----
21

query II rowsort
SELECT ALL - 95 AS col2, + 91 AS col2
----
-95
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL + 32 * - 13 * - 54 + MAX( + + 65 ) AS col0
----
22529

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL + 32 * - 13 * - 54 + MAX ( + + 65 ) AS col0
----
22529

query I rowsort
SELECT 54 * - + 56 * + 99 + 43
----
-299333

onlyif mysql # DIV for integer division: 
query I rowsort label-5285
SELECT 85 DIV - - 33
----
2

skipif mysql # not compatible
query I rowsort label-5285
SELECT 85 / - - 33
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT - - 56 * + + COUNT( * ) * COUNT( * ) + - COUNT( * ) * + - 46 - 88 + + 18
----
32

skipif mysql # not compatible
query I rowsort label-5286
SELECT - - 56 * + + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) * + - 46 - 88 + + 18
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5287
SELECT 48 AS col1, COUNT( * ) + + 41 AS col1
----
48
42

skipif mysql # not compatible
query II rowsort label-5287
SELECT 48 AS col1, COUNT ( * ) + + 41 AS col1
----
48
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5288
SELECT ALL - CASE + 29 WHEN - - 33 THEN NULL WHEN - 82 THEN 13 * - AVG ( + CAST( NULL AS DECIMAL ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL - CASE + 29 WHEN - - 33 THEN NULL WHEN - 82 THEN 13 * - AVG ( + CAST ( NULL AS REAL ) ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5289
SELECT + COUNT( * ) AS col1, + 69 + - 95 + NULLIF ( - 66, + 43 ) col1
----
1
-92

skipif mysql # not compatible
query II rowsort label-5289
SELECT + COUNT ( * ) AS col1, + 69 + - 95 + NULLIF ( - 66, + 43 ) col1
----
1
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL - 69 * COUNT( * ) AS col1
----
-69

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5291
SELECT ALL - 6 + CAST( - 70 AS SIGNED ), 65 * + 44 col2
----
-76
2860

skipif mysql # not compatible
query II rowsort label-5291
SELECT ALL - 6 + CAST ( - 70 AS INTEGER ), 65 * + 44 col2
----
-76
2860

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT COUNT( * ) * + - NULLIF ( + COUNT( * ), ( 18 ) ) * - 13 - 61
----
-48

skipif mysql # not compatible
query I rowsort label-5292
SELECT COUNT ( * ) * + - NULLIF ( + COUNT ( * ), ( 18 ) ) * - 13 - 61
----
-48

query II rowsort
SELECT ALL - 44, - ( 85 ) * + 76 * - 7 AS col0
----
-44
45220

query I rowsort
SELECT DISTINCT 51 + - 78 + - 38 * + 57 / + + CASE - + 82 WHEN - + 91 + - 0 THEN - 41 + - 56 END * 15 / + 3 AS col2
----
NULL

query I rowsort
SELECT - 39 + 46 AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5296
SELECT - 75 AS col1, NULLIF ( + COUNT( * ), - + 95 - - - 34 * - 81 - - 58 * - 63 ) * - + 52 + + 56 AS col2
----
-75
4

skipif mysql # not compatible
query II rowsort label-5296
SELECT - 75 AS col1, NULLIF ( + COUNT ( * ), - + 95 - - - 34 * - 81 - - 58 * - 63 ) * - + 52 + + 56 AS col2
----
-75
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - 22 - MAX( ALL + 0 ) * - 28
----
-22

skipif mysql # not compatible
query I rowsort label-5297
SELECT - 22 - MAX ( ALL + 0 ) * - 28
----
-22

query II rowsort
SELECT 79 - + - 65, 52 * + 0 col2
----
144
0

query I rowsort
SELECT DISTINCT - 25 * 75
----
-1875

query I rowsort
SELECT 53 + + 50 * - 17 + + - 8 AS col2
----
-805

query I rowsort
SELECT ALL - 16 + - - 29 AS col1
----
13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5303
SELECT ALL 82 DIV + ( + COUNT( * ) ) col2
----
82

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL 82 / + ( + COUNT ( * ) ) col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5304
SELECT ALL + 53 + SUM( - - 0 ) DIV - 90 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + 53 + SUM ( - - 0 ) / - 90 AS col1
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5305
SELECT 69 + + COUNT( * ) AS col2, + 12 * + 6 * + 1 * - - 36 * + 84 AS col0
----
70
217728

skipif mysql # not compatible
query II rowsort label-5305
SELECT 69 + + COUNT ( * ) AS col2, + 12 * + 6 * + 1 * - - 36 * + 84 AS col0
----
70
217728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5306
SELECT ALL + 44 * - CASE CASE - - 62 WHEN + COUNT( * ) * 87 THEN NULL ELSE + MIN( 36 ) DIV 60 END WHEN 68 THEN AVG ( + - 8 ) DIV 29 * + - CASE + + 46 WHEN + COUNT( * ) THEN - 8 * - 24 WHEN - - COALESCE ( + COUNT( * ), + + 7, - + 6 ) THEN - COUNT( + CAST( - + 9 AS SIGNED ) ) * + + 50 DIV - 26 ELSE NULL END ELSE - ( - 64 ) * 58 END AS col1
----
-163328

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + 44 * - CASE CASE - - 62 WHEN + COUNT ( * ) * 87 THEN NULL ELSE + MIN ( 36 ) / 60 END WHEN 68 THEN AVG ( + - 8 ) / 29 * + - CASE + + 46 WHEN + COUNT ( * ) THEN - 8 * - 24 WHEN - - COALESCE ( + COUNT ( * ), + + 7, - + 6 ) THEN - COUNT ( + CAST ( - + 9 AS INTEGER ) ) * + + 50 / - 26 ELSE NULL END ELSE - ( - 64 ) * 58 END AS col1
----
-163328

query I rowsort
SELECT DISTINCT + 71 + 74 AS col2
----
145

query I rowsort
SELECT ALL - 8 * + 42
----
-336

onlyif mysql # aggregate syntax: 
query II rowsort label-5309
SELECT ALL + 53 - + COUNT( * ) AS col0, 33 * - 65 + + COUNT( * ) + - 77 + - 71 AS col0
----
52
-2292

skipif mysql # not compatible
query II rowsort label-5309
SELECT ALL + 53 - + COUNT ( * ) AS col0, 33 * - 65 + + COUNT ( * ) + - 77 + - 71 AS col0
----
52
-2292

query I rowsort
SELECT 65 + + + CASE 52 WHEN + 68 THEN + 59 * - 20 + - 68 * + + 3 ELSE NULL END + - 11
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT ALL MIN( ALL - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL MIN ( ALL - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL - SUM( DISTINCT + 75 ) - - 15 + - 97 AS col0
----
-157

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - SUM ( DISTINCT + 75 ) - - 15 + - 97 AS col0
----
-157

query I rowsort
SELECT 0 + - 3
----
-3

query I rowsort
SELECT - - 31 * + 77 * + 11 + + + 89 * 70 + 56
----
32543

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT COUNT( * ) + + 21 * - + 98 AS col0
----
-2057

skipif mysql # not compatible
query I rowsort label-5316
SELECT COUNT ( * ) + + 21 * - + 98 AS col0
----
-2057

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT - 98 DIV - - NULLIF ( + - 97, + 5 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5317
SELECT - 98 / - - NULLIF ( + - 97, + 5 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT SUM( ALL + - 90 ) * - 23 AS col1
----
2070

skipif mysql # not compatible
query I rowsort label-5318
SELECT SUM ( ALL + - 90 ) * - 23 AS col1
----
2070

query I rowsort
SELECT 56 + - 90 AS col2
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5320
SELECT 65 DIV + COUNT( * ) - 79 + + - 51 * + + CASE AVG ( ALL + 67 ) WHEN - + 95 + + COUNT( ALL + 98 ) * + - 33 THEN NULL ELSE COUNT( ALL + 67 ) END AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5320
SELECT 65 / + COUNT ( * ) - 79 + + - 51 * + + CASE AVG ( ALL + 67 ) WHEN - + 95 + + COUNT ( ALL + 98 ) * + - 33 THEN NULL ELSE COUNT ( ALL + 67 ) END AS col2
----
-65

query I rowsort
SELECT DISTINCT - 59 * + - 2 + - 97
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5322
SELECT ( - CASE - ( CAST( NULL AS SIGNED ) ) WHEN + MIN( DISTINCT + 36 ) THEN NULL WHEN + + 47 THEN - + 22 END ) + - 74 AS col2, ( + 35 ) + + + 93 col2
----
NULL
128

skipif mysql # not compatible
query II rowsort label-5322
SELECT ( - CASE - ( CAST ( NULL AS INTEGER ) ) WHEN + MIN ( DISTINCT + 36 ) THEN NULL WHEN + + 47 THEN - + 22 END ) + - 74 AS col2, ( + 35 ) + + + 93 col2
----
NULL
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5323
SELECT 49 * MIN( ALL + 11 ) DIV + - ( + 4 )
----
-134

skipif mysql # not compatible
query I rowsort label-5323
SELECT 49 * MIN ( ALL + 11 ) / + - ( + 4 )
----
-134

query I rowsort
SELECT DISTINCT - - 4 * - + ( 93 )
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL + 23 * - 71 * - NULLIF ( + 79, - 98 / - 62 + 85 * COUNT( * ) + - - 34 ) + - 64
----
128943

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + 23 * - 71 * - NULLIF ( + 79, - 98 / - 62 + 85 * COUNT ( * ) + - - 34 ) + - 64
----
128943

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + 56 + 18 + 58 + - - 43 * + COUNT( * )
----
175

skipif mysql # not compatible
query I rowsort label-5326
SELECT + 56 + 18 + 58 + - - 43 * + COUNT ( * )
----
175

onlyif mysql # DIV for integer division: 
query I rowsort label-5327
SELECT ALL 46 * + ( - - 30 ) + - - 65 DIV 74 AS col0
----
1380

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL 46 * + ( - - 30 ) + - - 65 / 74 AS col0
----
1380

query I rowsort
SELECT ALL - 44 * - 81 + - 45 + - ( + - 60 )
----
3579

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5329
SELECT ALL 53 + 9, - CASE + MAX( + 10 ) WHEN + 58 * - 69 + 96 + COUNT( * ) + + 80 + - 53 + - - ( + + 46 ) + - - 39 * - + COUNT( * ) * + 3 / 75 + - - 36 THEN + CAST( NULL AS DECIMAL ) + - 14 WHEN - COUNT( * ) * - COUNT( * ) * + 23 THEN + - 32 END AS col0
----
62
NULL

skipif mysql # not compatible
query II rowsort label-5329
SELECT ALL 53 + 9, - CASE + MAX ( + 10 ) WHEN + 58 * - 69 + 96 + COUNT ( * ) + + 80 + - 53 + - - ( + + 46 ) + - - 39 * - + COUNT ( * ) * + 3 / 75 + - - 36 THEN + CAST ( NULL AS REAL ) + - 14 WHEN - COUNT ( * ) * - COUNT ( * ) * + 23 THEN + - 32 END AS col0
----
62
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT + + 94 DIV 14
----
6

skipif mysql # not compatible
query I rowsort label-5330
SELECT + + 94 / 14
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT + 37 * 47 + - - COUNT( * )
----
1740

skipif mysql # not compatible
query I rowsort label-5331
SELECT + 37 * 47 + - - COUNT ( * )
----
1740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5332
SELECT + - COALESCE ( - COALESCE ( + 83, + - 40 ), - COUNT( * ) ) * - CAST( + 12 AS SIGNED ) AS col1
----
-996

skipif mysql # not compatible
query I rowsort label-5332
SELECT + - COALESCE ( - COALESCE ( + 83, + - 40 ), - COUNT ( * ) ) * - CAST ( + 12 AS INTEGER ) AS col1
----
-996

query I rowsort
SELECT + - 13 + 44 - 98 + - - CASE + 32 WHEN - 90 THEN NULL ELSE - 39 END + 2 * + + 47 * + 27 * 15
----
37964

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT - MIN( + 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5334
SELECT - MIN ( + 51 ) AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5335
SELECT ALL 70 + - 87 DIV 48
----
69

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL 70 + - 87 / 48
----
69

query I rowsort
SELECT ALL 41 * + + 67 AS col2
----
2747

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL MIN( + 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL MIN ( + 80 ) AS col0
----
80

query I rowsort
SELECT ALL 10 - + ( + 99 ) - NULLIF ( + 65, + 50 / 2 ) AS col2
----
-154

query II rowsort
SELECT - 22 * + ( - 82 ), + 4 AS col2
----
1804
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT - COALESCE ( + 13, - + COUNT( * ) * 93 + + 85 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5340
SELECT - COALESCE ( + 13, - + COUNT ( * ) * 93 + + 85 ) AS col0
----
-13

query I rowsort
SELECT + CASE 46 WHEN 49 + + 7 * - 56 THEN + - COALESCE ( - 16, + - COALESCE ( - 95, - 92 * AVG ( - - 98 ) ) ) END - - 23
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL MAX ( 49 )
----
49

query II rowsort
SELECT 85 AS col0, 55 * 40
----
85
2200

onlyif mysql # DIV for integer division: 
query II rowsort label-5345
SELECT - 16 + - - ( 21 ) + + + ( + 39 ) AS col0, + 60 DIV - 16 AS col2
----
44
-3

skipif mysql # not compatible
query II rowsort label-5345
SELECT - 16 + - - ( 21 ) + + + ( + 39 ) AS col0, + 60 / - 16 AS col2
----
44
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT DISTINCT MIN( - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT MIN ( - 92 ) AS col1
----
-92

query I rowsort
SELECT DISTINCT - 68 * + + 90 AS col1
----
-6120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5348
SELECT DISTINCT 27 DIV + + 1 DIV + COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5348
SELECT DISTINCT 27 / + + 1 / + COUNT ( * ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5349
SELECT ALL - MIN( 3 ) * - 4 * + CAST( NULL AS SIGNED ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL - MIN ( 3 ) * - 4 * + CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT - 56 * + 90 AS col0
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ALL MIN( + 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL MIN ( + 3 ) AS col2
----
3

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

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

query I rowsort
SELECT - ( - 41 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL COUNT( - 32 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL COUNT ( - 32 ) AS col0
----
1

query I rowsort
SELECT - + ( 88 ) * - ( 88 ) + - CASE + 74 WHEN + 75 THEN 23 * + - 86 - ( - + 24 ) END AS col0
----
NULL

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

query I rowsort
SELECT - - 24 * - 69 * + 76
----
-125856

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

query I rowsort
SELECT ALL + - 84 * - - 10 * + + 88 + 60
----
-73860

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT - 33 * + MIN( DISTINCT 56 ) + - - COUNT( * ) AS col0
----
-1847

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - 33 * + MIN ( DISTINCT 56 ) + - - COUNT ( * ) AS col0
----
-1847

query I rowsort
SELECT DISTINCT + ( + 75 ) * 81 * + 36 AS col2
----
218700

query I rowsort
SELECT DISTINCT 44 * - + 50 * 57 + 45 AS col2
----
-125355

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT + 94 * - CASE + 29 WHEN + 55 * 22 * - + 42 + 60 + - - 61 THEN + + 58 WHEN 71 + - - ( 37 ) * - 67 * - + 6 THEN 28 - - 70 + MIN( - - 16 ) * - 82 * - + COUNT( * ) ELSE + 62 - + 48 END + ( + + 56 ) - - + 31 - - 4 * + + 11
----
-1185

skipif mysql # not compatible
query I rowsort label-5364
SELECT + 94 * - CASE + 29 WHEN + 55 * 22 * - + 42 + 60 + - - 61 THEN + + 58 WHEN 71 + - - ( 37 ) * - 67 * - + 6 THEN 28 - - 70 + MIN ( - - 16 ) * - 82 * - + COUNT ( * ) ELSE + 62 - + 48 END + ( + + 56 ) - - + 31 - - 4 * + + 11
----
-1185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT - CAST( NULLIF ( + 96, ( + ( 63 ) ) * - + NULLIF ( + 75, - + COUNT( * ) ) ) AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-5365
SELECT - CAST ( NULLIF ( + 96, ( + ( 63 ) ) * - + NULLIF ( + 75, - + COUNT ( * ) ) ) AS INTEGER )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL - - 67 * - CASE - + 44 WHEN - 94 THEN COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN 65 - + 26 THEN NULL ELSE NULL END * - + 21 + + + 55 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL - - 67 * - CASE - + 44 WHEN - 94 THEN COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN 65 - + 26 THEN NULL ELSE NULL END * - + 21 + + + 55 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT - 6 * 85 + - + 38 * - 57 + + - SUM( + 57 ) * - + 67
----
5475

skipif mysql # not compatible
query I rowsort label-5367
SELECT - 6 * 85 + - + 38 * - 57 + + - SUM ( + 57 ) * - + 67
----
5475

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT + + COUNT( ALL + 73 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5368
SELECT + + COUNT ( ALL + 73 ) col1
----
1

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

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

query II rowsort
SELECT - + 48 + + ( + 79 ) + + + 82 + + 68 AS col0, 82
----
181
82

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

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

query I rowsort
SELECT DISTINCT - 26 * + 20 * + + 43
----
-22360

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT ALL + 89 * 80 - - 19 - - - 45 + - ( MAX( + - 89 ) ) + COUNT( * ) AS col2
----
7184

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + 89 * 80 - - 19 - - - 45 + - ( MAX ( + - 89 ) ) + COUNT ( * ) AS col2
----
7184

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT - 57 - + SUM( DISTINCT 12 )
----
-69

skipif mysql # not compatible
query I rowsort label-5374
SELECT - 57 - + SUM ( DISTINCT 12 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5375
SELECT DISTINCT + 30 AS col2, 35 * + - COUNT( * ) col0
----
30
-35

skipif mysql # not compatible
query II rowsort label-5375
SELECT DISTINCT + 30 AS col2, 35 * + - COUNT ( * ) col0
----
30
-35

query I rowsort
SELECT DISTINCT 88 * ( - 25 ) - - + 39 AS col1
----
-2161

onlyif mysql # DIV for integer division: 
query II rowsort label-5377
SELECT ALL 64 DIV + 41 AS col2, - 74 col1
----
1
-74

skipif mysql # not compatible
query II rowsort label-5377
SELECT ALL 64 / + 41 AS col2, - 74 col1
----
1
-74

query I rowsort
SELECT 89 * + 2 + - - 76
----
254

query I rowsort
SELECT ALL 63 * + 30 - + 31 AS col1
----
1859

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT NULLIF ( 31, + + COUNT( * ) )
----
31

skipif mysql # not compatible
query I rowsort label-5380
SELECT NULLIF ( 31, + + COUNT ( * ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT - ( + - SUM( ALL + - 92 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5381
SELECT - ( + - SUM ( ALL + - 92 ) ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT - COUNT( * ) + COUNT( * ) * - + 31 + 50 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5382
SELECT - COUNT ( * ) + COUNT ( * ) * - + 31 + 50 AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT + ( ( + + 30 ) ) DIV - COALESCE ( + ( - 7 ), 86, - ( 33 ) )
----
4

skipif mysql # not compatible
query I rowsort label-5383
SELECT + ( ( + + 30 ) ) / - COALESCE ( + ( - 7 ), 86, - ( 33 ) )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT ALL 28 DIV - ( - 44 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL 28 / - ( - 44 ) AS col0
----
0

query I rowsort
SELECT + 99 - + - 41 AS col1
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-5386
SELECT - COALESCE ( - 31, 80 * - COUNT( * ) * - 21 + + 66 ) col2, - 54
----
31
-54

skipif mysql # not compatible
query II rowsort label-5386
SELECT - COALESCE ( - 31, 80 * - COUNT ( * ) * - 21 + + 66 ) col2, - 54
----
31
-54

query I rowsort
SELECT + 75 - 48 AS col0
----
27

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5389
SELECT + 63 * - + COUNT( * ) DIV + 84 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5389
SELECT + 63 * - + COUNT ( * ) / + 84 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL 74 * + CASE + SUM( DISTINCT + 14 ) WHEN - - 48 * 0 * - COALESCE ( - CASE + + 62 WHEN - + COUNT( * ) THEN - ( - - 70 ) * + - ( - 15 ) END, 42 + + 8, 3 ) / + + COUNT( * ) * 38 THEN + + 93 WHEN 49 THEN - 23 ELSE + - 8 * 50 * + - NULLIF ( - - 71, 12 ) * + 39 + + CASE - NULLIF ( - 0, AVG ( 90 ) ) WHEN 61 THEN NULL ELSE 62 END + 22 - CASE 52 WHEN CASE 4 WHEN 31 THEN NULL WHEN - 14 + CASE 18 WHEN 88 THEN NULL WHEN 41 * - AVG ( - 32 ) THEN 59 + 27 * 54 WHEN - COUNT( * ) THEN COALESCE ( COUNT( * ), ( 58 ) ) + + COALESCE ( - 25 + - 67, + COUNT( * ) + - 70, 70 * 73 ) END THEN NULL WHEN + MIN( ALL 25 ) / COUNT( * ) THEN 49 ELSE NULL END THEN - 5 WHEN 26 THEN + MAX( 97 ) WHEN + 62 THEN NULL ELSE NULL END / - COALESCE ( 54 + 32 / + 28, - 35 * - 18 - COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL 74 * + CASE + SUM ( DISTINCT + 14 ) WHEN - - 48 * 0 * - COALESCE ( - CASE + + 62 WHEN - + COUNT ( * ) THEN - ( - - 70 ) * + - ( - 15 ) END, 42 + + 8, 3 ) / + + COUNT ( * ) * 38 THEN + + 93 WHEN 49 THEN - 23 ELSE + - 8 * 50 * + - NULLIF ( - - 71, 12 ) * + 39 + + CASE - NULLIF ( - 0, AVG ( 90 ) ) WHEN 61 THEN NULL ELSE 62 END + 22 - CASE 52 WHEN CASE 4 WHEN 31 THEN NULL WHEN - 14 + CASE 18 WHEN 88 THEN NULL WHEN 41 * - AVG ( - 32 ) THEN 59 + 27 * 54 WHEN - COUNT ( * ) THEN COALESCE ( COUNT ( * ), ( 58 ) ) + + COALESCE ( - 25 + - 67, + COUNT ( * ) + - 70, 70 * 73 ) END THEN NULL WHEN + MIN ( ALL 25 ) / COUNT ( * ) THEN 49 ELSE NULL END THEN - 5 WHEN 26 THEN + MAX ( 97 ) WHEN + 62 THEN NULL ELSE NULL END / - COALESCE ( 54 + 32 / + 28, - 35 * - 18 - COUNT ( * ) ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 86 * - 32
----
-2752

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT + 15 + + COALESCE ( 27, 95 + - + 48 * + MAX( - 30 ), - + 29 )
----
42

skipif mysql # not compatible
query I rowsort label-5392
SELECT + 15 + + COALESCE ( 27, 95 + - + 48 * + MAX ( - 30 ), - + 29 )
----
42

query I rowsort
SELECT ALL 21 * + - 94
----
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT + COUNT( * ) * + NULLIF ( - 73, + - ( 30 ) * COUNT( * ) + - 24 * - 6 * - + 34 + - + 61 * + 1 )
----
-73

skipif mysql # not compatible
query I rowsort label-5394
SELECT + COUNT ( * ) * + NULLIF ( - 73, + - ( 30 ) * COUNT ( * ) + - 24 * - 6 * - + 34 + - + 61 * + 1 )
----
-73

query I rowsort
SELECT + 33 * 47 AS col1
----
1551

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT ALL SUM( - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL SUM ( - 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5398
SELECT CAST( + COUNT( - - 15 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5398
SELECT CAST ( + COUNT ( - - 15 ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT + MIN( 17 ) + - 93 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-5399
SELECT + MIN ( 17 ) + - 93 AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5400
SELECT - CAST( - 16 AS SIGNED ) * + - 19
----
-304

skipif mysql # not compatible
query I rowsort label-5400
SELECT - CAST ( - 16 AS INTEGER ) * + - 19
----
-304

query I rowsort
SELECT DISTINCT 28 + - - 17
----
45

query II rowsort
SELECT ALL + 42, 39 AS col1
----
42
39

query I rowsort
SELECT ALL 72 + - - 80 * - + 19 AS col1
----
-1448

query I rowsort
SELECT COALESCE ( 7, + 28 ) col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT ALL + - CASE + + 11 WHEN - 28 THEN + - 9 WHEN - MIN( ALL + CASE + - 31 WHEN 10 * + CAST( NULL AS SIGNED ) THEN - 98 WHEN + 26 THEN 8 END ) THEN - + ( AVG ( CAST( - 72 AS SIGNED ) ) ) + - NULLIF ( - 84, + 82 ) END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL + - CASE + + 11 WHEN - 28 THEN + - 9 WHEN - MIN ( ALL + CASE + - 31 WHEN 10 * + CAST ( NULL AS INTEGER ) THEN - 98 WHEN + 26 THEN 8 END ) THEN - + ( AVG ( CAST ( - 72 AS INTEGER ) ) ) + - NULLIF ( - 84, + 82 ) END + COUNT ( * )
----
NULL

query I rowsort
SELECT + 25 + - NULLIF ( - 46, 67 ) * + + 54
----
2509

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT - 82 + + 19 + + MIN( + - 29 ) * - 88 AS col0
----
2489

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT - 82 + + 19 + + MIN ( + - 29 ) * - 88 AS col0
----
2489

onlyif mysql # aggregate syntax: 
query II rowsort label-5408
SELECT 72 AS col1, SUM( + 53 ) + - + 54
----
72
-1

skipif mysql # not compatible
query II rowsort label-5408
SELECT 72 AS col1, SUM ( + 53 ) + - + 54
----
72
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT - 91 + + 14 + + 95 + - COUNT( DISTINCT - 16 )
----
17

skipif mysql # not compatible
query I rowsort label-5409
SELECT - 91 + + 14 + + 95 + - COUNT ( DISTINCT - 16 )
----
17

query I rowsort
SELECT ALL - - 75 * 72 col0
----
5400

query I rowsort
SELECT + 66 * + 1 + - 12 + - + 87 + 26 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT - MIN( ALL + + 80 ) + + 54
----
-26

skipif mysql # not compatible
query I rowsort label-5412
SELECT - MIN ( ALL + + 80 ) + + 54
----
-26

query I rowsort
SELECT 47 * + 12 * + - 57 * + 75 * 66 - + 29 AS col0
----
-159132629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5414
SELECT 78 + - CAST( 34 AS SIGNED ) + + - COUNT( * ) * - - 42 * + COUNT( * ) AS col1, COUNT( * ) * 77 DIV + 89 * - - 61 + + 47 + - COALESCE ( + 59, - - 28 * - + 41 DIV + 77 + + 55 + 44 * + - COUNT( * ) + + 33, - 25 * + - 13 * 84 ) AS col2
----
2
-12

skipif mysql # not compatible
query II rowsort label-5414
SELECT 78 + - CAST ( 34 AS INTEGER ) + + - COUNT ( * ) * - - 42 * + COUNT ( * ) AS col1, COUNT ( * ) * 77 / + 89 * - - 61 + + 47 + - COALESCE ( + 59, - - 28 * - + 41 / + 77 + + 55 + 44 * + - COUNT ( * ) + + 33, - 25 * + - 13 * 84 ) AS col2
----
2
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL + - MIN( ALL 83 ) - + COUNT( - 42 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL + - MIN ( ALL 83 ) - + COUNT ( - 42 ) AS col2
----
-84

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5417
SELECT DISTINCT - COALESCE ( + 33, + 82 - - + 30 * - + 60 DIV - COUNT( * ) * 55 * - 3, - ( + NULLIF ( - ( - 65 ), - - 81 * + CAST( NULL AS SIGNED ) ) ) ) AS col1, + 78
----
-33
78

skipif mysql # not compatible
query II rowsort label-5417
SELECT DISTINCT - COALESCE ( + 33, + 82 - - + 30 * - + 60 / - COUNT ( * ) * 55 * - 3, - ( + NULLIF ( - ( - 65 ), - - 81 * + CAST ( NULL AS INTEGER ) ) ) ) AS col1, + 78
----
-33
78

query I rowsort
SELECT ALL 2 * + + 90 + + 97 AS col1
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT - COUNT( ALL 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT - COUNT ( ALL 38 )
----
-1

query I rowsort
SELECT 57 * - + 47 * - 82 + 38
----
219716

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT 85 * - ( - MIN( ( 84 ) ) )
----
7140

skipif mysql # not compatible
query I rowsort label-5421
SELECT 85 * - ( - MIN ( ( 84 ) ) )
----
7140

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT COUNT( * ) + + 53
----
54

skipif mysql # not compatible
query I rowsort label-5422
SELECT COUNT ( * ) + + 53
----
54

query II rowsort
SELECT 88 * - 33, + ( - ( 22 ) ) * 69 AS col1
----
-2904
-1518

query I rowsort
SELECT ALL + 95 * 5
----
475

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT 10 + - 34 + SUM( DISTINCT + 93 )
----
69

skipif mysql # not compatible
query I rowsort label-5425
SELECT 10 + - 34 + SUM ( DISTINCT + 93 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5426
SELECT NULLIF ( 2, SUM( + - 93 ) ) DIV + 88 AS col2, - 57
----
0
-57

skipif mysql # not compatible
query II rowsort label-5426
SELECT NULLIF ( 2, SUM ( + - 93 ) ) / + 88 AS col2, - 57
----
0
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL + 50 + + + 54 + - COUNT( + + 25 )
----
103

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + 50 + + + 54 + - COUNT ( + + 25 )
----
103

query I rowsort
SELECT 93 - 87
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5429
SELECT COUNT( * ) - + + CASE - CASE NULLIF ( + ( + CAST( - 57 AS DECIMAL ) ), - 83 ) WHEN - - 64 + - 79 THEN - 24 WHEN 13 + 90 + 50 + 58 + - 67 / + - COUNT( * ) + - - MAX( 50 ) THEN NULL ELSE NULL END WHEN - 46 THEN 97 + - + 84 WHEN - + 72 THEN + 38 END / - 4 * - MAX( DISTINCT + 89 ) * - COALESCE ( NULLIF ( - 54, + 46 * + 53 + - AVG ( ALL 47 ) ), 89 * - 67 ) + - NULLIF ( COUNT( * ) + 76 * 9, 20 ) - - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT COUNT ( * ) - + + CASE - CASE NULLIF ( + ( + CAST ( - 57 AS REAL ) ), - 83 ) WHEN - - 64 + - 79 THEN - 24 WHEN 13 + 90 + 50 + 58 + - 67 / + - COUNT ( * ) + - - MAX ( 50 ) THEN NULL ELSE NULL END WHEN - 46 THEN 97 + - + 84 WHEN - + 72 THEN + 38 END / - 4 * - MAX ( DISTINCT + 89 ) * - COALESCE ( NULLIF ( - 54, + 46 * + 53 + - AVG ( ALL 47 ) ), 89 * - 67 ) + - NULLIF ( COUNT ( * ) + 76 * 9, 20 ) - - 47 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT COALESCE ( - + 44, + - 45 * ( + 52 ) ) DIV 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT COALESCE ( - + 44, + - 45 * ( + 52 ) ) / 58 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT CAST( NULL AS SIGNED ) + - - 73 - + 61 * - 52 * + 58 / + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT CAST ( NULL AS INTEGER ) + - - 73 - + 61 * - 52 * + 58 / + 50 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 72 + 47 AS col0
----
119

query I rowsort
SELECT ALL 17 * 6 col2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5434
SELECT ALL + + 10 + + - 16 AS col0, CASE + ( + - 6 ) WHEN - 15 * - - 30 THEN 3 + - CASE - 2 WHEN + + 63 THEN 63 + - 28 - COUNT( * ) * + 36 + 51 WHEN + CAST( + + 35 AS SIGNED ) / - AVG ( ALL + 91 ) THEN - 81 - - CAST( - 36 AS DECIMAL ) WHEN 13 + + ( - COUNT( + 94 ) ) THEN NULL END END AS col1
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-5434
SELECT ALL + + 10 + + - 16 AS col0, CASE + ( + - 6 ) WHEN - 15 * - - 30 THEN 3 + - CASE - 2 WHEN + + 63 THEN 63 + - 28 - COUNT ( * ) * + 36 + 51 WHEN + CAST ( + + 35 AS INTEGER ) / - AVG ( ALL + 91 ) THEN - 81 - - CAST ( - 36 AS REAL ) WHEN 13 + + ( - COUNT ( + 94 ) ) THEN NULL END END AS col1
----
-6
NULL

query I rowsort
SELECT ALL - 44 + + - 91 + 54
----
-81

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

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

query I rowsort
SELECT DISTINCT + 64 + - 59 * + ( 17 ) AS col1
----
-939

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT DISTINCT - SUM( DISTINCT 70 ) + 48
----
-22

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT - SUM ( DISTINCT 70 ) + 48
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5439
SELECT DISTINCT + 20 * - + 70 + - 10 - + 36 + + + COUNT( * ) * 54 DIV + 14 AS col2
----
-1443

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT + 20 * - + 70 + - 10 - + 36 + + + COUNT ( * ) * 54 / + 14 AS col2
----
-1443

onlyif mysql # aggregate syntax: 
query II rowsort label-5440
SELECT DISTINCT - 28 - - COUNT( * ) AS col2, 64
----
-27
64

skipif mysql # not compatible
query II rowsort label-5440
SELECT DISTINCT - 28 - - COUNT ( * ) AS col2, 64
----
-27
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5441
SELECT DISTINCT + 70 - + CASE 70 WHEN - + 15 THEN + - COUNT( * ) ELSE + + CAST( NULL AS SIGNED ) * + COUNT( * ) * 30 + - 18 * + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT + 70 - + CASE 70 WHEN - + 15 THEN + - COUNT ( * ) ELSE + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 30 + - 18 * + 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5442
SELECT ALL - COUNT( - 74 ) AS col2, COUNT( * ) * + 20 col0
----
-1
20

skipif mysql # not compatible
query II rowsort label-5442
SELECT ALL - COUNT ( - 74 ) AS col2, COUNT ( * ) * + 20 col0
----
-1
20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT DISTINCT + CAST( - 61 AS SIGNED ) * + 32
----
-1952

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT + CAST ( - 61 AS INTEGER ) * + 32
----
-1952

query I rowsort
SELECT DISTINCT - COALESCE ( - 64, + - 93 )
----
64

query I rowsort
SELECT 89 * NULLIF ( + 64, + + 97 ) + + 54 * + + 57
----
8774

query I rowsort
SELECT 94 * + 41 col2
----
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT 98 * + + COUNT( * ) * - 85 * - - 75 * - + 78
----
48730500

skipif mysql # not compatible
query I rowsort label-5448
SELECT 98 * + + COUNT ( * ) * - 85 * - - 75 * - + 78
----
48730500

onlyif mysql # aggregate syntax: 
query II rowsort label-5449
SELECT ALL - COUNT( * ) col2, - 59 col0
----
-1
-59

skipif mysql # not compatible
query II rowsort label-5449
SELECT ALL - COUNT ( * ) col2, - 59 col0
----
-1
-59

query I rowsort
SELECT DISTINCT 10 * - ( + ( - CASE - 49 WHEN - ( + - 77 ) THEN COALESCE ( + - 49, - - 78, 65 * - 89 + + 19 ) WHEN 36 THEN NULL ELSE 76 - 18 END ) ) AS col1
----
580

query II rowsort
SELECT DISTINCT - 65 AS col1, + 26
----
-65
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL + 63 + + 77 * - 99 * - MIN( + 99 ) AS col1
----
754740

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL + 63 + + 77 * - 99 * - MIN ( + 99 ) AS col1
----
754740

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - 97 * - - 95 * 34 * + 65 * + 62 + - ( 21 ) + + CASE 78 WHEN + COUNT( * ) THEN 68 / + 83 + - 0 END - + 44 / - - MAX( - 45 ) + + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT - 97 * - - 95 * 34 * + 65 * + 62 + - ( 21 ) + + CASE 78 WHEN + COUNT ( * ) THEN 68 / + 83 + - 0 END - + 44 / - - MAX ( - 45 ) + + + 91
----
NULL

query I rowsort
SELECT 13 + + 45 col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT DISTINCT - 18 + + + 2 + + - 80 DIV - 90 * - 37 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT - 18 + + + 2 + + - 80 / - 90 * - 37 AS col2
----
-16

query I rowsort
SELECT ALL + ( - 78 ) + + - 1 * 93 + + ( - + ( 38 ) ) AS col1
----
-209

query I rowsort
SELECT 93 + + 90
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT 64 * + 76 + + COUNT( * ) * - COALESCE ( - COUNT( * ), + - 81 + - 2 ) * + 7 * - 38 AS col0
----
4598

skipif mysql # not compatible
query I rowsort label-5458
SELECT 64 * + 76 + + COUNT ( * ) * - COALESCE ( - COUNT ( * ), + - 81 + - 2 ) * + 7 * - 38 AS col0
----
4598

query I rowsort
SELECT 38 - + + 60
----
-22

query I rowsort
SELECT 12 + 73 AS col0
----
85

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

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT COALESCE ( 48, + + CAST ( + 6 AS INTEGER ) )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT ALL + CAST( NULL AS SIGNED ) + 74 + + - 16 * - AVG ( + 71 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL + CAST ( NULL AS INTEGER ) + 74 + + - 16 * - AVG ( + 71 ) col1
----
NULL

query I rowsort
SELECT DISTINCT + + 46 + - 98
----
-52

query II rowsort
SELECT ALL + 56, - 98 AS col1
----
56
-98

query I rowsort
SELECT ALL - 93 + - - 31 AS col2
----
-62

query II rowsort
SELECT ALL 49 col2, 47 AS col1
----
49
47

query I rowsort
SELECT - NULLIF ( - - 44, + 17 ) + - 40
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5468
SELECT - ( + 29 ) * + - MAX( DISTINCT - + CAST( 79 AS SIGNED ) ) * 10 col1, + 72 + - - 56 AS col1
----
-22910
128

skipif mysql # not compatible
query II rowsort label-5468
SELECT - ( + 29 ) * + - MAX ( DISTINCT - + CAST ( 79 AS INTEGER ) ) * 10 col1, + 72 + - - 56 AS col1
----
-22910
128

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

skipif mysql # not compatible
query I rowsort label-5469
SELECT + - COUNT ( * ) / + + 35
----
0

query I rowsort
SELECT DISTINCT - 99 - + 2 AS col0
----
-101

query I rowsort
SELECT ALL + 66 * 30 + 11 AS col2
----
1991

query I rowsort
SELECT + - 86 * 98 * + 43
----
-362404

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

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

query I rowsort
SELECT DISTINCT - 47 * - - 93
----
-4371

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - MAX( 41 ) * + 90 * - 78 * - - 1 + + COUNT( * ) AS col2
----
287821

skipif mysql # not compatible
query I rowsort label-5475
SELECT - MAX ( 41 ) * + 90 * - 78 * - - 1 + + COUNT ( * ) AS col2
----
287821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5476
SELECT + + 48 DIV - 68 + COUNT( * ) * COUNT( * ) * + + 99 * - 81 * - COUNT( * ) + - - 32 + 37 + + - 64 * - COUNT( * ) * - + MIN( 50 ) * - 84 + - 11 + - ( - 85 )
----
276962

skipif mysql # not compatible
query I rowsort label-5476
SELECT + + 48 / - 68 + COUNT ( * ) * COUNT ( * ) * + + 99 * - 81 * - COUNT ( * ) + - - 32 + 37 + + - 64 * - COUNT ( * ) * - + MIN ( 50 ) * - 84 + - 11 + - ( - 85 )
----
276962

query I rowsort
SELECT ALL + 14 * 22 * + 66 * + 18 - 77 AS col2
----
365827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5478
SELECT + 99 DIV + + 43 * - COUNT( * ) + 74 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5478
SELECT + 99 / + + 43 * - COUNT ( * ) + 74 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT CASE - COUNT( * ) WHEN - CASE + 14 WHEN - 11 THEN NULL WHEN - COUNT( * ) + 31 THEN NULL WHEN + 45 * 61 THEN + SUM( DISTINCT + 8 ) END THEN COUNT( * ) ELSE 20 * 14 END
----
280

skipif mysql # not compatible
query I rowsort label-5479
SELECT CASE - COUNT ( * ) WHEN - CASE + 14 WHEN - 11 THEN NULL WHEN - COUNT ( * ) + 31 THEN NULL WHEN + 45 * 61 THEN + SUM ( DISTINCT + 8 ) END THEN COUNT ( * ) ELSE 20 * 14 END
----
280

query I rowsort
SELECT + 0 + - 55 * COALESCE ( + - 60, ( - 99 ), 37 ) AS col0
----
3300

query I rowsort
SELECT + 70 * - 91 AS col2
----
-6370

query I rowsort
SELECT ALL + 14 col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT + COALESCE ( + SUM( ALL 98 ), 44 )
----
98

skipif mysql # not compatible
query I rowsort label-5483
SELECT + COALESCE ( + SUM ( ALL 98 ), 44 )
----
98

query I rowsort
SELECT ALL + 75 * + - 31 * 54 + - 49
----
-125599

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5485
SELECT + COUNT( * ) DIV - ( + COUNT( * ) ) + - NULLIF ( - + 89, 45 * 37 + + 35 + - 41 * - COUNT( * ) ), + COUNT( * ) + COALESCE ( + 86, 92, - 61 DIV - NULLIF ( + + 75, - 73 * MAX( - - 1 ) + - 94 ) * - + NULLIF ( + 8, - 0 + + 57 ) ) + + ( - - 4 ) AS col1, + ( - + 88 ) * - 10 AS col1
----
88
91
880

skipif mysql # not compatible
query III rowsort label-5485
SELECT + COUNT ( * ) / - ( + COUNT ( * ) ) + - NULLIF ( - + 89, 45 * 37 + + 35 + - 41 * - COUNT ( * ) ), + COUNT ( * ) + COALESCE ( + 86, 92, - 61 / - NULLIF ( + + 75, - 73 * MAX ( - - 1 ) + - 94 ) * - + NULLIF ( + 8, - 0 + + 57 ) ) + + ( - - 4 ) AS col1, + ( - + 88 ) * - 10 AS col1
----
88
91
880

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT CASE + 11 WHEN 82 THEN NULL ELSE + - CASE + SUM( + 4 ) WHEN + NULLIF ( + 54, - - 46 / 86 ) THEN + ( AVG ( + 49 ) ) ELSE NULL END * - + 18 - + MAX( ALL - 57 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT CASE + 11 WHEN 82 THEN NULL ELSE + - CASE + SUM ( + 4 ) WHEN + NULLIF ( + 54, - - 46 / 86 ) THEN + ( AVG ( + 49 ) ) ELSE NULL END * - + 18 - + MAX ( ALL - 57 ) END AS col0
----
NULL

query I rowsort
SELECT + 40 + 78 + NULLIF ( - 75, + 55 )
----
43

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5489
SELECT DISTINCT COUNT( ALL - 49 ) * - + 30 + 79 + - 80, 57 * - 53 * - - 68 AS col0
----
-31
-205428

skipif mysql # not compatible
query II rowsort label-5489
SELECT DISTINCT COUNT ( ALL - 49 ) * - + 30 + 79 + - 80, 57 * - 53 * - - 68 AS col0
----
-31
-205428

query I rowsort
SELECT COALESCE ( + 36, - 62, - + ( + 88 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT ALL + 48 * COUNT( * ) + 40 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL + 48 * COUNT ( * ) + 40 AS col2
----
88

query I rowsort
SELECT + 4 * + 44 AS col1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL + COUNT( DISTINCT - - ( ( 56 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL + COUNT ( DISTINCT - - ( ( 56 ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT COUNT( + 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5494
SELECT COUNT ( + 86 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5495
SELECT ALL 86 * - 16 + + 71 * - COUNT( * ) + - + COUNT( * ), 41 col2
----
-1448
41

skipif mysql # not compatible
query II rowsort label-5495
SELECT ALL 86 * - 16 + + 71 * - COUNT ( * ) + - + COUNT ( * ), 41 col2
----
-1448
41

query I rowsort
SELECT + 74 * - + 81 * + 3 AS col1
----
-17982

query I rowsort
SELECT ALL - 32 * + + ( + - 99 ) + + 92 + - - 34 AS col1
----
3294

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL SUM( DISTINCT - 17 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL SUM ( DISTINCT - 17 ) col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT DISTINCT + + 10 + + 50 + 71 + + COUNT( * ) * 95 AS col0
----
226

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT + + 10 + + 50 + 71 + + COUNT ( * ) * 95 AS col0
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT DISTINCT ( + + COUNT( DISTINCT - + 12 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT ( + + COUNT ( DISTINCT - + 12 ) ) AS col1
----
1

query I rowsort
SELECT + + 31 * + 45 * + 12 AS col0
----
16740

onlyif mysql # aggregate syntax: 
query II rowsort label-5502
SELECT - SUM( + 63 ), COUNT( * ) * + 41 + - COUNT( * ) - 15 AS col1
----
-63
25

skipif mysql # not compatible
query II rowsort label-5502
SELECT - SUM ( + 63 ), COUNT ( * ) * + 41 + - COUNT ( * ) - 15 AS col1
----
-63
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT + - SUM( DISTINCT ( + 83 ) ) - + - ( - + 84 ) AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-5503
SELECT + - SUM ( DISTINCT ( + 83 ) ) - + - ( - + 84 ) AS col1
----
-167

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT - + 18 * - 39 * - SUM( + 39 ) + - + 25 col0
----
-27403

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - + 18 * - 39 * - SUM ( + 39 ) + - + 25 col0
----
-27403

onlyif mysql # DIV for integer division: 
query II rowsort label-5506
SELECT DISTINCT + + COALESCE ( - 9, + 11 ) - + ( + 80 ) DIV - - 95 + - 65, - 90 col2
----
-74
-90

skipif mysql # not compatible
query II rowsort label-5506
SELECT DISTINCT + + COALESCE ( - 9, + 11 ) - + ( + 80 ) / - - 95 + - 65, - 90 col2
----
-74
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5507
SELECT ALL - COALESCE ( - + 51, - - 21 + - + 56 + + 50 ) * - + 40 + ( MIN( 69 ) ) DIV - 63
----
-2041

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL - COALESCE ( - + 51, - - 21 + - + 56 + + 50 ) * - + 40 + ( MIN ( 69 ) ) / - 63
----
-2041

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - COUNT( * ) - + 28 * - 12 AS col0
----
335

skipif mysql # not compatible
query I rowsort label-5508
SELECT - COUNT ( * ) - + 28 * - 12 AS col0
----
335

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT - - 54 DIV + + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5509
SELECT - - 54 / + + 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - - 49 * + COUNT( * ) * + 43 * 2
----
4214

skipif mysql # not compatible
query I rowsort label-5510
SELECT - - 49 * + COUNT ( * ) * + 43 * 2
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + MIN( DISTINCT + 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5511
SELECT + MIN ( DISTINCT + 83 ) AS col1
----
83

query I rowsort
SELECT + + 74 * + 45
----
3330

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5515
SELECT ALL + 29 col1, CAST( NULL AS SIGNED ) * - 17
----
29
NULL

skipif mysql # not compatible
query II rowsort label-5515
SELECT ALL + 29 col1, CAST ( NULL AS INTEGER ) * - 17
----
29
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5516
SELECT ALL 27 DIV + - 20 + - 58 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL 27 / + - 20 + - 58 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT + CASE 42 WHEN - - 6 THEN + - 93 / + COUNT( * ) + 53 + + 17 WHEN + 88 + MAX( 77 ) THEN - 94 - - - MIN( ALL + - 53 ) - 84 ELSE 43 * + + MIN( - + 6 ) END AS col0
----
-258

skipif mysql # not compatible
query I rowsort label-5517
SELECT + CASE 42 WHEN - - 6 THEN + - 93 / + COUNT ( * ) + 53 + + 17 WHEN + 88 + MAX ( 77 ) THEN - 94 - - - MIN ( ALL + - 53 ) - 84 ELSE 43 * + + MIN ( - + 6 ) END AS col0
----
-258

query I rowsort
SELECT + 16 * 71 AS col0
----
1136

query I rowsort
SELECT - 28 + + 60
----
32

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

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

query I rowsort
SELECT + 89 * 71 + 97
----
6416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT CAST( - 14 AS SIGNED ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5522
SELECT CAST ( - 14 AS INTEGER ) AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5523
SELECT + CAST( NULL AS SIGNED ) AS col2, COUNT( - + 54 ) - + + 90 * - + MIN( - 43 ) + 29 AS col0
----
NULL
-3840

skipif mysql # not compatible
query II rowsort label-5523
SELECT + CAST ( NULL AS INTEGER ) AS col2, COUNT ( - + 54 ) - + + 90 * - + MIN ( - 43 ) + 29 AS col0
----
NULL
-3840

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

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

query I rowsort
SELECT + 57 + 42
----
99

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

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

query I rowsort
SELECT 73 * 33 + + 24 AS col2
----
2433

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT ALL COUNT( * ) - + ( + 6 ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL COUNT ( * ) - + ( + 6 ) col1
----
-5

query I rowsort
SELECT 28 + 36
----
64

query I rowsort
SELECT ALL - NULLIF ( - 79, - 5 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5531
SELECT + 42, + 59 * SUM( ALL 35 ) AS col1
----
42
2065

skipif mysql # not compatible
query II rowsort label-5531
SELECT + 42, + 59 * SUM ( ALL 35 ) AS col1
----
42
2065

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT COUNT( * ) + - ( + 84 ) - - - 57 + - 90 - 85 + + 18
----
-297

skipif mysql # not compatible
query I rowsort label-5532
SELECT COUNT ( * ) + - ( + 84 ) - - - 57 + - 90 - 85 + + 18
----
-297

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5534
SELECT COUNT( * ) * + + 68 * NULLIF ( 85, + 84 ), 24 col1
----
5780
24

skipif mysql # not compatible
query II rowsort label-5534
SELECT COUNT ( * ) * + + 68 * NULLIF ( 85, + 84 ), 24 col1
----
5780
24

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

query I rowsort
SELECT 9 * + 46 * - 86
----
-35604

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5538
SELECT ALL ( - - COUNT( - 84 ) ) * - 44 + + 9 col2, 34 AS col2
----
-35
34

skipif mysql # not compatible
query II rowsort label-5538
SELECT ALL ( - - COUNT ( - 84 ) ) * - 44 + + 9 col2, 34 AS col2
----
-35
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT DISTINCT - COUNT( 29 ) * 23
----
-23

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT - COUNT ( 29 ) * 23
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5540
SELECT ALL + 50 DIV + ( 95 ) * - 48 + - 41 + - - 46 + 67 + + - ( - - COUNT( * ) ) * + + COUNT( 70 ) * - 60 * 35 AS col1
----
2172

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL + 50 / + ( 95 ) * - 48 + - 41 + - - 46 + 67 + + - ( - - COUNT ( * ) ) * + + COUNT ( 70 ) * - 60 * 35 AS col1
----
2172

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( - 71, + 90 + 42 )
----
-71

query I rowsort
SELECT ALL - COALESCE ( + 56, + - 86 + 62 )
----
-56

query II rowsort
SELECT - 80 AS col1, 13 + - 60 * - 12 + + - 70 - + 6 * + + 18
----
-80
555

query I rowsort
SELECT - ( 56 ) AS col1
----
-56

query I rowsort
SELECT - 58 + 14 col0
----
-44

query II rowsort
SELECT ALL - - 48 * - + 95 + + - 73, + 14 * 99 AS col0
----
-4633
1386

onlyif mysql # aggregate syntax: 
query II rowsort label-5549
SELECT ALL + 6 + 73 * + MAX( 7 ) * - COUNT( * ), 86 AS col2
----
-505
86

skipif mysql # not compatible
query II rowsort label-5549
SELECT ALL + 6 + 73 * + MAX ( 7 ) * - COUNT ( * ), 86 AS col2
----
-505
86

query I rowsort
SELECT 94 + - - 40 * - ( + - 74 ) * + 0 * + + 15
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT DISTINCT + COUNT( * ) + + MAX( DISTINCT - 29 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT + COUNT ( * ) + + MAX ( DISTINCT - 29 ) AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5552
SELECT 98 AS col0, COUNT( * ) DIV + 91 * - CAST( + 65 AS SIGNED ) + - 17 + + 20 * - + 6
----
98
-137

skipif mysql # not compatible
query II rowsort label-5552
SELECT 98 AS col0, COUNT ( * ) / + 91 * - CAST ( + 65 AS INTEGER ) + - 17 + + 20 * - + 6
----
98
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5553
SELECT - 86 * + + 80 + - - ( 76 ) * 52 * 0 * + - 6 * 89 - 90 + + 72 + + + CAST( 98 AS SIGNED ) + - 21 AS col0
----
-6821

skipif mysql # not compatible
query I rowsort label-5553
SELECT - 86 * + + 80 + - - ( 76 ) * 52 * 0 * + - 6 * 89 - 90 + + 72 + + + CAST ( 98 AS INTEGER ) + - 21 AS col0
----
-6821

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

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

query I rowsort
SELECT 84 * + 72 AS col0
----
6048

onlyif mysql # DIV for integer division: 
query I rowsort label-5556
SELECT 4 DIV - ( - 24 ) + + + 37 * - + 87 * - 81 + 99 + + - 34
----
260804

skipif mysql # not compatible
query I rowsort label-5556
SELECT 4 / - ( - 24 ) + + + 37 * - + 87 * - 81 + 99 + + - 34
----
260804

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT 3 DIV + ( 64 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5557
SELECT 3 / + ( 64 ) col1
----
0

query I rowsort
SELECT ALL - ( - 91 ) - - 97
----
188

query II rowsort
SELECT DISTINCT - 54 AS col0, - 38 * + 69
----
-54
-2622

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5560
SELECT COUNT( * ) DIV - + 14, - 76 + + + 51 col0
----
0
-25

skipif mysql # not compatible
query II rowsort label-5560
SELECT COUNT ( * ) / - + 14, - 76 + + + 51 col0
----
0
-25

query II rowsort
SELECT DISTINCT - 99 col2, - 1 * 39 AS col1
----
-99
-39

query I rowsort
SELECT DISTINCT - ( 77 )
----
-77

query II rowsort
SELECT 22 AS col1, - ( + - 72 ) AS col1
----
22
72

query II rowsort
SELECT + 89 AS col0, + 11
----
89
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT ALL - - CASE + CAST( NULL AS SIGNED ) WHEN + 14 * 27 + + 60 + - - 59 THEN - 58 + - 16 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - - CASE + CAST ( NULL AS INTEGER ) WHEN + 14 * 27 + + 60 + - - 59 THEN - 58 + - 16 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5566
SELECT ALL - 3 AS col0, + COUNT( * ) DIV + 70 + 38 AS col0
----
-3
38

skipif mysql # not compatible
query II rowsort label-5566
SELECT ALL - 3 AS col0, + COUNT ( * ) / + 70 + 38 AS col0
----
-3
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT - SUM( - 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT - SUM ( - 73 ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5569
SELECT ALL - + MIN( - - CAST( + 22 AS SIGNED ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - + MIN ( - - CAST ( + 22 AS INTEGER ) ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT COUNT( * ) * - - 7 * 82 * + 77 - + 70 AS col2
----
44128

skipif mysql # not compatible
query I rowsort label-5570
SELECT COUNT ( * ) * - - 7 * 82 * + 77 - + 70 AS col2
----
44128

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT - COALESCE ( + - 73, - COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-5571
SELECT - COALESCE ( + - 73, - COUNT ( * ) )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5572
SELECT DISTINCT - 44, 27 + - + COUNT( * ) AS col0
----
-44
26

skipif mysql # not compatible
query II rowsort label-5572
SELECT DISTINCT - 44, 27 + - + COUNT ( * ) AS col0
----
-44
26

query II rowsort
SELECT - - 62 AS col1, - 73 col0
----
62
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT - 60 * + COUNT( - 40 )
----
-60

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT - 60 * + COUNT ( - 40 )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5575
SELECT - COUNT( - - 36 ), + 91 * - 93 AS col1
----
-1
-8463

skipif mysql # not compatible
query II rowsort label-5575
SELECT - COUNT ( - - 36 ), + 91 * - 93 AS col1
----
-1
-8463

query I rowsort
SELECT 95 - + 98
----
-3

query I rowsort
SELECT ALL 86 * 80 col1
----
6880

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT + 56 DIV + 16 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5578
SELECT + 56 / + 16 AS col2
----
3

query I rowsort
SELECT + 26 + 14 AS col0
----
40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT ALL + 35 + 0 * + - 41 * - CAST( 89 AS SIGNED ) * + 1
----
35

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + 35 + 0 * + - 41 * - CAST ( 89 AS INTEGER ) * + 1
----
35

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

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

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

skipif mysql # not compatible
query I rowsort label-5583
SELECT COUNT ( * ) * 70
----
70

query I rowsort
SELECT CASE 20 WHEN - 42 THEN - - 78 * 76 ELSE NULL END * 55 / + 85 + - 67 - - ( + 88 ) + + 26 * + 99 AS col0
----
NULL

query I rowsort
SELECT 29 * 84 AS col0
----
2436

query I rowsort
SELECT DISTINCT + 18 + - 12 - 54 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-5587
SELECT - 45 * 62 * 45, + COUNT( * ) AS col2
----
-125550
1

skipif mysql # not compatible
query II rowsort label-5587
SELECT - 45 * 62 * 45, + COUNT ( * ) AS col2
----
-125550
1

query I rowsort
SELECT CASE + 46 WHEN 0 THEN - + 7 END
----
NULL

query I rowsort
SELECT ALL + 50 * - 11 - + ( + + 90 ) + + 70 + 73
----
-497

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT DISTINCT MAX( + 20 ) * + - 11 * + - 67
----
14740

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT MAX ( + 20 ) * + - 11 * + - 67
----
14740

query I rowsort
SELECT 1 * - ( - + 42 ) - 25
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5592
SELECT - 10 * 0 AS col1, NULLIF ( COALESCE ( 48, 45, COUNT( * ) * 7, - 22 ), 16 * + 74 - - 40 + + CAST( 5 AS DECIMAL ) ) * + ( 50 ) DIV + 50 AS col2
----
0
48

skipif mysql # not compatible
query II rowsort label-5592
SELECT - 10 * 0 AS col1, NULLIF ( COALESCE ( 48, 45, COUNT ( * ) * 7, - 22 ), 16 * + 74 - - 40 + + CAST ( 5 AS REAL ) ) * + ( 50 ) / + 50 AS col2
----
0
48

query I rowsort
SELECT ALL + ( - 60 )
----
-60

query I rowsort
SELECT ALL - 73 * + 82 - + 93 + 59 AS col1
----
-6020

query I rowsort
SELECT 10 * - + 82 + + + 41 - + - 1 + 46 + - 14 + + 35 - - 41 * - 23 AS col0
----
-1654

onlyif mysql # aggregate syntax: 
query II rowsort label-5596
SELECT NULLIF ( - ( 72 ), - 31 + + 27 ), + COUNT( * ) * 68 * COUNT( * ) * - 18 AS col2
----
-72
-1224

skipif mysql # not compatible
query II rowsort label-5596
SELECT NULLIF ( - ( 72 ), - 31 + + 27 ), + COUNT ( * ) * 68 * COUNT ( * ) * - 18 AS col2
----
-72
-1224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5597
SELECT NULLIF ( + CASE + 5 WHEN - 59 + + - CASE - 76 WHEN CAST( NULL AS SIGNED ) THEN - - 2 * - ( + + 9 ) WHEN + + MIN( DISTINCT - + 99 ) THEN + 26 * - - 68 WHEN AVG ( DISTINCT + NULLIF ( 62, - + 94 ) ) THEN NULL ELSE 63 * 58 END + MIN( DISTINCT + 72 ) * 34 * - 11 * 74 THEN - 52 * + NULLIF ( + 66, + 40 ) * - NULLIF ( - COALESCE ( 72, - 63 + - 96 / - 17 * + ( 7 ) + - COUNT( * ) * 66 ), 24 + 4 ) * - COUNT( * ) + COUNT( * ) * 91 END, + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5597
SELECT NULLIF ( + CASE + 5 WHEN - 59 + + - CASE - 76 WHEN CAST ( NULL AS INTEGER ) THEN - - 2 * - ( + + 9 ) WHEN + + MIN ( DISTINCT - + 99 ) THEN + 26 * - - 68 WHEN AVG ( DISTINCT + NULLIF ( 62, - + 94 ) ) THEN NULL ELSE 63 * 58 END + MIN ( DISTINCT + 72 ) * 34 * - 11 * 74 THEN - 52 * + NULLIF ( + 66, + 40 ) * - NULLIF ( - COALESCE ( 72, - 63 + - 96 / - 17 * + ( 7 ) + - COUNT ( * ) * 66 ), 24 + 4 ) * - COUNT ( * ) + COUNT ( * ) * 91 END, + 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT - COUNT( * ) * + 37 + 85
----
48

skipif mysql # not compatible
query I rowsort label-5598
SELECT - COUNT ( * ) * + 37 + 85
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL + SUM( ALL + ( + 26 ) ) * - 12 AS col2
----
-312

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL + SUM ( ALL + ( + 26 ) ) * - 12 AS col2
----
-312

onlyif mysql # DIV for integer division: 
query II rowsort label-5600
SELECT ALL + 72 DIV 44, 79 AS col0
----
1
79

skipif mysql # not compatible
query II rowsort label-5600
SELECT ALL + 72 / 44, 79 AS col0
----
1
79

query I rowsort
SELECT ALL 90 * - - 48
----
4320

query I rowsort
SELECT ALL + 31 + - 14 - + 90 + - ( - 13 ) * + 65
----
772

query II rowsort
SELECT - 45 * + 75 AS col2, - 58
----
-3375
-58

query I rowsort
SELECT + - 87 + + + 93
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5605
SELECT - COUNT( ALL + + CAST( NULL AS SIGNED ) ) AS col1, 11 AS col0
----
0
11

skipif mysql # not compatible
query II rowsort label-5605
SELECT - COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1, 11 AS col0
----
0
11

query I rowsort
SELECT + - 26 * + - 59 AS col1
----
1534

query I rowsort
SELECT ALL 20 * + 29 + 58 + + 10 col1
----
648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5608
SELECT + 87 - - COUNT( * ) + + CASE - + 65 WHEN - CAST( NULL AS SIGNED ) THEN - - 96 + 99 END * - + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT + 87 - - COUNT ( * ) + + CASE - + 65 WHEN - CAST ( NULL AS INTEGER ) THEN - - 96 + 99 END * - + 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT DISTINCT MAX( + + 86 ) - + 60
----
26

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT MAX ( + + 86 ) - + 60
----
26

query I rowsort
SELECT + 57 * - 65
----
-3705

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT + 10 DIV - 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT + 10 / - 73 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5614
SELECT ALL - 42 DIV 8
----
-5

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL - 42 / 8
----
-5

query I rowsort
SELECT + 27 + + COALESCE ( + + 7, + 40 + - 59 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT + NULLIF ( - 45, + - 60 / + SUM( 87 ) * - ( + 88 ) * + 79 + COUNT( * ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-5616
SELECT + NULLIF ( - 45, + - 60 / + SUM ( 87 ) * - ( + 88 ) * + 79 + COUNT ( * ) ) AS col1
----
-45

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT + MAX( - + 66 ) * - + 35 AS col0
----
2310

skipif mysql # not compatible
query I rowsort label-5621
SELECT + MAX ( - + 66 ) * - + 35 AS col0
----
2310

query II rowsort
SELECT DISTINCT + 79 AS col1, + 49 AS col0
----
79
49

query I rowsort
SELECT + + 48 * - + 22 * + 25 AS col1
----
-26400

query II rowsort
SELECT DISTINCT + 35, 93 - + - 89 AS col0
----
35
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5625
SELECT ALL NULLIF ( - 85, + CAST( NULL AS SIGNED ) - 95 ) * - SUM( 35 ) * + - 32 * - 79 + - 31 AS col0
----
7520769

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL NULLIF ( - 85, + CAST ( NULL AS INTEGER ) - 95 ) * - SUM ( 35 ) * + - 32 * - 79 + - 31 AS col0
----
7520769

query I rowsort
SELECT - 62 * + 4
----
-248

query I rowsort
SELECT 71 * - 6 * + 11 * - + 94 * - 21 - 95 * - - 81 + + 87 AS col0
----
-9257772

query I rowsort
SELECT ALL + ( CASE 79 WHEN + 79 THEN NULL WHEN - 68 THEN - 64 END )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5629
SELECT + MAX ( + - 26 )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-5630
SELECT + 31 AS col0, - ( + 16 ) + - - 99 + 29 + + 3 * + COUNT( * ) AS col1
----
31
115

skipif mysql # not compatible
query II rowsort label-5630
SELECT + 31 AS col0, - ( + 16 ) + - - 99 + 29 + + 3 * + COUNT ( * ) AS col1
----
31
115

query I rowsort
SELECT - - 21 * - - 74
----
1554

query I rowsort
SELECT - + 16 * + 91 AS col2
----
-1456

onlyif mysql # DIV for integer division: 
query I rowsort label-5633
SELECT ALL - + 42 DIV 20
----
-2

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL - + 42 / 20
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT - + 46 * - + MAX( ALL 38 )
----
1748

skipif mysql # not compatible
query I rowsort label-5634
SELECT - + 46 * - + MAX ( ALL 38 )
----
1748

query II rowsort
SELECT + 32 AS col1, 23
----
32
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL 75 * + COALESCE ( + - 95, + 26 ) + 94 + COUNT( * ) + - 35
----
-7065

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL 75 * + COALESCE ( + - 95, + 26 ) + 94 + COUNT ( * ) + - 35
----
-7065

query I rowsort
SELECT DISTINCT 12 * - 52 + - 45 + 50
----
-619

query II rowsort
SELECT ALL 44 AS col1, - 51 + + 12 - + 24 + 13
----
44
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5639
SELECT ALL ( + NULLIF ( + CAST( NULL AS DECIMAL ), + 37 + - 61 + 38 + + 52 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL ( + NULLIF ( + CAST ( NULL AS REAL ), + 37 + - 61 + 38 + + 52 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5640
SELECT DISTINCT + COUNT( * ) * - + ( ( - 47 ) ), + ( + 79 ) * - 51 AS col1
----
47
-4029

skipif mysql # not compatible
query II rowsort label-5640
SELECT DISTINCT + COUNT ( * ) * - + ( ( - 47 ) ), + ( + 79 ) * - 51 AS col1
----
47
-4029

query II rowsort
SELECT ( 78 ) + - 38 + + + 15 AS col0, + 33
----
55
33

query I rowsort
SELECT DISTINCT + ( - + 54 ) - 76
----
-130

query I rowsort
SELECT DISTINCT - 28 * - + 79 AS col0
----
2212

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT - COUNT( * ) - 84
----
-85

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT - COUNT ( * ) - 84
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-5645
SELECT 48 * ( ( - 81 ) ), + 51 DIV + - 92 col2
----
-3888
0

skipif mysql # not compatible
query II rowsort label-5645
SELECT 48 * ( ( - 81 ) ), + 51 / + - 92 col2
----
-3888
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5646
SELECT 19 - - - COUNT( ALL 96 ) + - 6 AS col0, - 94
----
12
-94

skipif mysql # not compatible
query II rowsort label-5646
SELECT 19 - - - COUNT ( ALL 96 ) + - 6 AS col0, - 94
----
12
-94

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT 67 DIV + 16 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5648
SELECT 67 / + 16 AS col2
----
4

query I rowsort
SELECT 38 * - + 95 * + + 93 AS col1
----
-335730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5650
SELECT DISTINCT - CAST( + 41 AS SIGNED ) * + 95
----
-3895

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT - CAST ( + 41 AS INTEGER ) * + 95
----
-3895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5651
SELECT ALL + COUNT( * ) + + COALESCE ( - 92, CAST( 92 AS SIGNED ) + 61 ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL + COUNT ( * ) + + COALESCE ( - 92, CAST ( 92 AS INTEGER ) + 61 ) col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT + 47 * 55 - - 56 - - - COUNT( ALL 33 )
----
2640

skipif mysql # not compatible
query I rowsort label-5652
SELECT + 47 * 55 - - 56 - - - COUNT ( ALL 33 )
----
2640

onlyif mysql # DIV for integer division: 
query I rowsort label-5653
SELECT 57 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5653
SELECT 57 / 81 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5654
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - NULLIF ( 26, 10 + - 60 * 22 * + - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - NULLIF ( 26, 10 + - 60 * 22 * + - 31 )
----
NULL

query I rowsort
SELECT + + 80 * - 92 + 68 + - 33 - 24
----
-7349

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5656
SELECT - 6 * - - 56 * - NULLIF ( - + MAX( ALL CAST( NULL AS DECIMAL ) ), - AVG ( DISTINCT - - 33 ) * - 71 ) * - 29 + - + 64 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT - 6 * - - 56 * - NULLIF ( - + MAX ( ALL CAST ( NULL AS REAL ) ), - AVG ( DISTINCT - - 33 ) * - 71 ) * - 29 + - + 64 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5657
SELECT - 98 * - 59 * CAST( - ( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) - 67 + - 68 * + + CASE - 1 WHEN - - CASE - 51 WHEN + CAST( NULL AS DECIMAL ) + 73 THEN NULL ELSE 72 END - + 71 THEN + 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT - 98 * - 59 * CAST ( - ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) - 67 + - 68 * + + CASE - 1 WHEN - - CASE - 51 WHEN + CAST ( NULL AS REAL ) + 73 THEN NULL ELSE 72 END - + 71 THEN + 70 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT DISTINCT - MAX( 73 ) * - 65
----
4745

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT - MAX ( 73 ) * - 65
----
4745

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

query I rowsort
SELECT ALL - 48 * + 44 * - - 33
----
-69696

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

query I rowsort
SELECT + - 79 * + 37 + + 88
----
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + 2 * - COALESCE ( + 7, + + 95 * 68 + COUNT( * ) + - 97 * + ( - 49 ) * 71 * + + 99 * 83 + - - 68 ) * + + 23 + + MIN( 97 )
----
-225

skipif mysql # not compatible
query I rowsort label-5664
SELECT + 2 * - COALESCE ( + 7, + + 95 * 68 + COUNT ( * ) + - 97 * + ( - 49 ) * 71 * + + 99 * 83 + - - 68 ) * + + 23 + + MIN ( 97 )
----
-225

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT + - NULLIF ( COUNT( * ), AVG ( ALL + 89 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5666
SELECT + - NULLIF ( COUNT ( * ), AVG ( ALL + 89 ) ) AS col0
----
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-5668
SELECT + 29 / 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT 22 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-5669
SELECT 22 / + 67
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5670
SELECT 29 + + ( + 53 ) + - 51 - + + 54 AS col1, MIN( ALL - 96 ) AS col1
----
-23
-96

skipif mysql # not compatible
query II rowsort label-5670
SELECT 29 + + ( + 53 ) + - 51 - + + 54 AS col1, MIN ( ALL - 96 ) AS col1
----
-23
-96

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5672
SELECT ALL 62 AS col0, + CASE - + COALESCE ( - 53, + 13 ) WHEN - - COUNT( ALL - 38 ) + + + 66 THEN CASE + 21 WHEN + 11 THEN NULL WHEN - COUNT( ALL 53 ) * - 26 THEN COUNT( * ) END ELSE NULL END AS col0
----
62
NULL

skipif mysql # not compatible
query II rowsort label-5672
SELECT ALL 62 AS col0, + CASE - + COALESCE ( - 53, + 13 ) WHEN - - COUNT ( ALL - 38 ) + + + 66 THEN CASE + 21 WHEN + 11 THEN NULL WHEN - COUNT ( ALL 53 ) * - 26 THEN COUNT ( * ) END ELSE NULL END AS col0
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT 28 + + + COUNT( 18 ) * + 80
----
108

skipif mysql # not compatible
query I rowsort label-5673
SELECT 28 + + + COUNT ( 18 ) * + 80
----
108

query I rowsort
SELECT 64 - 42
----
22

query I rowsort
SELECT 38 + + 81 + - - 71 * ( + 67 ) + + 95 AS col0
----
4971

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT ALL + NULLIF ( - + 21, + 29 * - ( 69 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL + NULLIF ( - + 21, + 29 * - ( 69 ) ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 47 * - 55 * - + 76 AS col2
----
196460

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

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT + 25 + COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5679
SELECT DISTINCT - ( - + COUNT( * ) ) * 72 AS col0, + 62
----
72
62

skipif mysql # not compatible
query II rowsort label-5679
SELECT DISTINCT - ( - + COUNT ( * ) ) * 72 AS col0, + 62
----
72
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT ALL 32 + 83 + + + 6 * - + CAST( - + 57 AS SIGNED ) * + 71
----
24397

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL 32 + 83 + + + 6 * - + CAST ( - + 57 AS INTEGER ) * + 71
----
24397

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT CASE 4 WHEN - 71 + + 41 THEN COUNT( * ) WHEN + - 32 - + - 94 - + 90 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT CASE 4 WHEN - 71 + + 41 THEN COUNT ( * ) WHEN + - 32 - + - 94 - + 90 THEN NULL END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5684
SELECT + CASE + + 73 WHEN COUNT( * ) + + 20 THEN + 10 + - 54 ELSE + 83 + + 10 * + 48 + + + 66 DIV - + 55 END
----
562

skipif mysql # not compatible
query I rowsort label-5684
SELECT + CASE + + 73 WHEN COUNT ( * ) + + 20 THEN + 10 + - 54 ELSE + 83 + + 10 * + 48 + + + 66 / - + 55 END
----
562

query I rowsort
SELECT 13 + + + 47
----
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT ALL - CASE - COUNT( - 27 ) WHEN - 46 * + 87 + 4 * - NULLIF ( + 37, COUNT( * ) ) + ( + - 29 ) * 92 / 50 THEN - 67 + - 35 ELSE - + 1 END
----
1

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL - CASE - COUNT ( - 27 ) WHEN - 46 * + 87 + 4 * - NULLIF ( + 37, COUNT ( * ) ) + ( + - 29 ) * 92 / 50 THEN - 67 + - 35 ELSE - + 1 END
----
1

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

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

query I rowsort
SELECT ALL - 8 * + 21 AS col1
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT DISTINCT - - NULLIF ( + CAST( NULL AS SIGNED ), + - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT - - NULLIF ( + CAST ( NULL AS INTEGER ), + - 88 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5691
SELECT - 0 - - 53 * - 14 / 90 - NULLIF ( 2, 24 ) / + + CAST( NULL AS SIGNED ) + - ( - + 43 ) * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT - 0 - - 53 * - 14 / 90 - NULLIF ( 2, 24 ) / + + CAST ( NULL AS INTEGER ) + - ( - + 43 ) * + 77
----
NULL

query I rowsort
SELECT 62 * - - 7
----
434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5693
SELECT + COALESCE ( + 99, + 53 * CAST( NULL AS SIGNED ) + + 69 ) - 69, - MIN( - 97 ) * ( - 88 ) AS col0
----
30
-8536

skipif mysql # not compatible
query II rowsort label-5693
SELECT + COALESCE ( + 99, + 53 * CAST ( NULL AS INTEGER ) + + 69 ) - 69, - MIN ( - 97 ) * ( - 88 ) AS col0
----
30
-8536

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

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

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

query I rowsort
SELECT + + 87 * - 59
----
-5133

query I rowsort
SELECT DISTINCT + 76 * + - 91 AS col0
----
-6916

query I rowsort
SELECT ALL - 55 * - - 40
----
-2200

query I rowsort
SELECT + 11 - - - 93 AS col2
----
-82

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

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

query II rowsort
SELECT ALL 10 + - CASE - 47 WHEN - 33 THEN - 13 WHEN 42 * ( - 2 ) / 23 + + - 27 THEN - 31 ELSE NULL END AS col2, 25 AS col2
----
NULL
25

onlyif mysql # DIV for integer division: 
query II rowsort label-5702
SELECT ALL 57 AS col0, 11 DIV - 97 AS col0
----
57
0

skipif mysql # not compatible
query II rowsort label-5702
SELECT ALL 57 AS col0, 11 / - 97 AS col0
----
57
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5703
SELECT - COUNT( CAST( + 20 AS DECIMAL ) ) DIV - + 66 col1, CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5703
SELECT - COUNT ( CAST ( + 20 AS REAL ) ) / - + 66 col1, CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT + 92 * + SUM( - 34 )
----
-3128

skipif mysql # not compatible
query I rowsort label-5704
SELECT + 92 * + SUM ( - 34 )
----
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT + 51 + + MAX( - + 90 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5705
SELECT + 51 + + MAX ( - + 90 ) AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5706
SELECT ALL COUNT( * ), - 74 + COUNT( * ) DIV + 99 * - 57 AS col1
----
1
-74

skipif mysql # not compatible
query II rowsort label-5706
SELECT ALL COUNT ( * ), - 74 + COUNT ( * ) / + 99 * - 57 AS col1
----
1
-74

query I rowsort
SELECT ALL 74 + - 1 AS col1
----
73

query I rowsort
SELECT ALL COALESCE ( + 30, + ( - + 1 ) ) + - + 56
----
-26

query I rowsort
SELECT - ( - 53 ) col2
----
53

query I rowsort
SELECT ALL + 11 + 54
----
65

query II rowsort
SELECT - 24 AS col2, 18 AS col0
----
-24
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT - CASE - + 18 WHEN + 31 THEN + 18 WHEN ( + 3 ) * - 1 THEN - - 79 / - + 24 + - ( - COALESCE ( - - COUNT( * ), - COUNT( ALL 67 ) * + - 30 * 38, + + 3 * + - 29 + + COUNT( * ) + + 26 * - 7 * 51 * + 62 ) ) END * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT - CASE - + 18 WHEN + 31 THEN + 18 WHEN ( + 3 ) * - 1 THEN - - 79 / - + 24 + - ( - COALESCE ( - - COUNT ( * ), - COUNT ( ALL 67 ) * + - 30 * 38, + + 3 * + - 29 + + COUNT ( * ) + + 26 * - 7 * 51 * + 62 ) ) END * - 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5713
SELECT - ( + 12 ), - COUNT( DISTINCT 9 ) + - 37 AS col0
----
-12
-38

skipif mysql # not compatible
query II rowsort label-5713
SELECT - ( + 12 ), - COUNT ( DISTINCT 9 ) + - 37 AS col0
----
-12
-38

query II rowsort
SELECT 27, 74 AS col0
----
27
74

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

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL - 48 + 35 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 2 - 24 + - 21 col1
----
-43

query I rowsort
SELECT - + 83 + - NULLIF ( - 52, + 41 ) AS col1
----
-31

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

query I rowsort
SELECT + COALESCE ( - 91, + + 22 * + 54, - - 74 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL - 3 - + COUNT( DISTINCT 63 )
----
-4

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL - 3 - + COUNT ( DISTINCT 63 )
----
-4

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5722
SELECT ALL - 36 DIV + COUNT( * ) + + 43 - ( - 0 ) * + 59, + 95 AS col0
----
7
95

skipif mysql # not compatible
query II rowsort label-5722
SELECT ALL - 36 / + COUNT ( * ) + + 43 - ( - 0 ) * + 59, + 95 AS col0
----
7
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5723
SELECT + COUNT( * ) AS col1, 53 * + 69 AS col1
----
1
3657

skipif mysql # not compatible
query II rowsort label-5723
SELECT + COUNT ( * ) AS col1, 53 * + 69 AS col1
----
1
3657

onlyif mysql # aggregate syntax: 
query II rowsort label-5724
SELECT 18 AS col2, - 3 * - ( 64 ) * + COUNT( ALL - - 89 ) AS col1
----
18
192

skipif mysql # not compatible
query II rowsort label-5724
SELECT 18 AS col2, - 3 * - ( 64 ) * + COUNT ( ALL - - 89 ) AS col1
----
18
192

onlyif mysql # DIV for integer division: 
query I rowsort label-5725
SELECT ALL + - 55 DIV + 50 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL + - 55 / + 50 AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-5726
SELECT + + COUNT ( * ) * 35 + + 23 AS col1
----
58

query I rowsort
SELECT + + 76 * 38
----
2888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5728
SELECT COALESCE ( + ( - ( - 33 ) ), - - 74 + - 98, - - CAST( NULL AS SIGNED ) / + 71 + - ( SUM( + NULLIF ( + 62, NULLIF ( - + 78, + 6 + - 35 ) + - + 85 ) ) ) + 64 ) * + + 42 * + 79 / - 59 / 46 * + - CAST( NULL AS SIGNED ) - + - 70, 42 AS col0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-5728
SELECT COALESCE ( + ( - ( - 33 ) ), - - 74 + - 98, - - CAST ( NULL AS INTEGER ) / + 71 + - ( SUM ( + NULLIF ( + 62, NULLIF ( - + 78, + 6 + - 35 ) + - + 85 ) ) ) + 64 ) * + + 42 * + 79 / - 59 / 46 * + - CAST ( NULL AS INTEGER ) - + - 70, 42 AS col0
----
NULL
42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5730
SELECT ALL + - 63 / - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + - 63 / - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 38 AS col1, 44 + 27 + - 57 AS col2
----
38
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT ALL 23 DIV 5 DIV - 17
----
0

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL 23 / 5 / - 17
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT + COUNT( * ) * - CASE - 14 WHEN + - 80 THEN NULL WHEN + 66 THEN 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT + COUNT ( * ) * - CASE - 14 WHEN + - 80 THEN NULL WHEN + 66 THEN 94 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 52 * - + 52 + + 43
----
2747

query I rowsort
SELECT + 5 * + 97 * + 75 * - 66 AS col2
----
-2400750

query I rowsort
SELECT + 63 + - 74 - - 7 * - + 15
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT - CASE - 88 WHEN 72 THEN - - 40 + + - 51 + - - 75 WHEN + + 68 + - COUNT( * ) THEN - 34 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT - CASE - 88 WHEN 72 THEN - - 40 + + - 51 + - - 75 WHEN + + 68 + - COUNT ( * ) THEN - 34 END AS col0
----
NULL

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

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

query I rowsort
SELECT + 69 * 62
----
4278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5740
SELECT ALL + CAST( NULL AS SIGNED ) * - MAX( DISTINCT - 49 ) + - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL + CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT - 49 ) + - 93 AS col2
----
NULL

query I rowsort
SELECT ALL - 42 * + 89 * + 46 + + 96 + + 40 - - ( - 68 ) AS col1
----
-171880

onlyif mysql # DIV for integer division: 
query I rowsort label-5742
SELECT ALL COALESCE ( + 53, 77 ) * 57 DIV - + 13 + - ( - 57 ) + + + 83 col0
----
-92

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL COALESCE ( + 53, 77 ) * 57 / - + 13 + - ( - 57 ) + + + 83 col0
----
-92

query I rowsort
SELECT ALL 85 * + ( + 68 ) + - + 50 AS col0
----
5730

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT SUM( ALL + 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5744
SELECT SUM ( ALL + 8 ) AS col0
----
8

query I rowsort
SELECT - NULLIF ( + 84, - 49 )
----
-84

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

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

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

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

query I rowsort
SELECT + 79 + 28 AS col1
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-5749
SELECT - COUNT( ALL NULLIF ( - 19, - 45 ) ) - + + COUNT( * ), - 56 AS col0
----
-2
-56

skipif mysql # not compatible
query II rowsort label-5749
SELECT - COUNT ( ALL NULLIF ( - 19, - 45 ) ) - + + COUNT ( * ), - 56 AS col0
----
-2
-56

query II rowsort
SELECT - 43 * 36 AS col0, + 42 AS col0
----
-1548
42

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

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

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

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

query I rowsort
SELECT + 88 + - 20 - + - 23 * 67
----
1609

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT + + 86 * + - 88 AS col1, COUNT( * ) + + 87
----
-7568
88

skipif mysql # not compatible
query II rowsort label-5756
SELECT + + 86 * + - 88 AS col1, COUNT ( * ) + + 87
----
-7568
88

query I rowsort
SELECT + 59 * - 16 * + 91 AS col1
----
-85904

onlyif mysql # DIV for integer division: 
query I rowsort label-5758
SELECT 22 DIV 14 + + 63 + + 43 * + + 90 * + + 77 * 89 AS col1
----
26521174

skipif mysql # not compatible
query I rowsort label-5758
SELECT 22 / 14 + + 63 + + 43 * + + 90 * + + 77 * 89 AS col1
----
26521174

query I rowsort
SELECT DISTINCT + 58 * - + 60 * + 50
----
-174000

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT ALL - + MIN( - + 33 ) AS col1, COUNT( * ) * - 87 AS col0
----
33
-87

skipif mysql # not compatible
query II rowsort label-5761
SELECT ALL - + MIN ( - + 33 ) AS col1, COUNT ( * ) * - 87 AS col0
----
33
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5762
SELECT DISTINCT + 98 * + 78, COALESCE ( + 76, + ( COUNT( * ) ), + 16 + + + COUNT( * ), + 49, + 71 DIV 61 + 27 ) col0
----
7644
76

skipif mysql # not compatible
query II rowsort label-5762
SELECT DISTINCT + 98 * + 78, COALESCE ( + 76, + ( COUNT ( * ) ), + 16 + + + COUNT ( * ), + 49, + 71 / 61 + 27 ) col0
----
7644
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5763
SELECT CAST( + 67 AS SIGNED ) * 60 AS col0
----
4020

skipif mysql # not compatible
query I rowsort label-5763
SELECT CAST ( + 67 AS INTEGER ) * 60 AS col0
----
4020

query I rowsort
SELECT ALL + ( + - 34 ) * - 22 AS col0
----
748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5765
SELECT ALL - CAST( NULL AS SIGNED ) + - + MIN( DISTINCT + + 47 ) + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL - CAST ( NULL AS INTEGER ) + - + MIN ( DISTINCT + + 47 ) + 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL - + CASE + 95 WHEN 47 THEN + 6 * + 26 WHEN + + 26 THEN + - 8 * + 77 + - + 4 + - 93 / - ( - NULLIF ( + + 46, - 66 / + - 97 ) ) * + 97 + + SUM( DISTINCT + - ( - 64 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL - + CASE + 95 WHEN 47 THEN + 6 * + 26 WHEN + + 26 THEN + - 8 * + 77 + - + 4 + - 93 / - ( - NULLIF ( + + 46, - 66 / + - 97 ) ) * + 97 + + SUM ( DISTINCT + - ( - 64 ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ( + 34 ) + 53
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT - 73 + - + 28 * + 18 + - 34 + COUNT( * ) * - 0 AS col1
----
-611

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT - 73 + - + 28 * + 18 + - 34 + COUNT ( * ) * - 0 AS col1
----
-611

query II rowsort
SELECT 42 AS col2, - 45 col1
----
42
-45

query II rowsort
SELECT + 43 AS col1, - 21 + + - 5 * 64 - 59 * 39
----
43
-2642

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT 22 - + COUNT( 73 ) * + 52 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5771
SELECT 22 - + COUNT ( 73 ) * + 52 AS col2
----
-30

query II rowsort
SELECT + 46 AS col2, + 55 AS col2
----
46
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL - COUNT( DISTINCT 80 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL - COUNT ( DISTINCT 80 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5774
SELECT 31 - - 66 * - 95 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5774
SELECT 31 - - 66 * - 95 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 11 + 62 * 70 + + - 21
----
4308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5776
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 47 * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 47 * - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5777
SELECT 57 * CASE + 35 WHEN + 92 + + - COUNT( * ) THEN NULL WHEN + - 11 * + 83 THEN + + 0 + - + CASE - 18 WHEN - 88 THEN NULL WHEN 60 * - - 52 + 46 - + 2 - 42 * + - 45 + - CAST( 89 AS SIGNED ) THEN + 50 WHEN - ( + - 82 ) THEN NULL ELSE NULL END - 51 + - 17 + - CAST( - 31 AS SIGNED ) * ( + 60 ) END AS col2, - 88 * + - NULLIF ( 21, + + 13 - - COALESCE ( + + 90, - SUM( DISTINCT 0 ) ) )
----
NULL
1848

skipif mysql # not compatible
query II rowsort label-5777
SELECT 57 * CASE + 35 WHEN + 92 + + - COUNT ( * ) THEN NULL WHEN + - 11 * + 83 THEN + + 0 + - + CASE - 18 WHEN - 88 THEN NULL WHEN 60 * - - 52 + 46 - + 2 - 42 * + - 45 + - CAST ( 89 AS INTEGER ) THEN + 50 WHEN - ( + - 82 ) THEN NULL ELSE NULL END - 51 + - 17 + - CAST ( - 31 AS INTEGER ) * ( + 60 ) END AS col2, - 88 * + - NULLIF ( 21, + + 13 - - COALESCE ( + + 90, - SUM ( DISTINCT 0 ) ) )
----
NULL
1848

query I rowsort
SELECT ALL - 20 * 89
----
-1780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5779
SELECT DISTINCT + CAST( + - ( NULLIF ( - - 82, + 44 * - + ( ( - 29 ) ) + 57 ) ) AS SIGNED ) + + 91 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT + CAST ( + - ( NULLIF ( - - 82, + 44 * - + ( ( - 29 ) ) + 57 ) ) AS INTEGER ) + + 91 AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5780
SELECT DISTINCT - COALESCE ( 67, COUNT( ALL + 76 ) ) + + 90 + 65 * COUNT( * ) DIV - - 85 - 44
----
-21

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT - COALESCE ( 67, COUNT ( ALL + 76 ) ) + + 90 + 65 * COUNT ( * ) / - - 85 - 44
----
-21

query II rowsort
SELECT 58 AS col2, + NULLIF ( - 92, - 38 ) * - 87 * 14
----
58
112056

query I rowsort
SELECT 47 * + 68 AS col2
----
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-5783
SELECT 53 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-5783
SELECT 53 / 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5784
SELECT DISTINCT 15 DIV - 1 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT 15 / - 1 AS col0
----
-15

query I rowsort
SELECT ( 72 ) + - 73 + 46 + + ( - 61 ) * + + 81
----
-4896

query II rowsort
SELECT 52, 24 * - 45 AS col0
----
52
-1080

query I rowsort
SELECT 98 * + + ( + - 41 ) * - 51 + - 27 AS col1
----
204891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5788
SELECT - CASE - + MIN( ALL - - NULLIF ( + 17, 33 ) ) WHEN - - ( + 20 ) * - + 68 THEN COALESCE ( + 69, + 75 + + CAST( + 14 AS SIGNED ) ) WHEN - + CASE - - 35 WHEN 96 / 31 * - 18 + 47 / NULLIF ( + - 14, + - 38 ) THEN + COUNT( * ) - + 14 / + 34 * 39 / - 6 WHEN - + 27 + + 98 + - COUNT( * ) THEN - ( + 59 ) + 61 + 6 * + 91 END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT - CASE - + MIN ( ALL - - NULLIF ( + 17, 33 ) ) WHEN - - ( + 20 ) * - + 68 THEN COALESCE ( + 69, + 75 + + CAST ( + 14 AS INTEGER ) ) WHEN - + CASE - - 35 WHEN 96 / 31 * - 18 + 47 / NULLIF ( + - 14, + - 38 ) THEN + COUNT ( * ) - + 14 / + 34 * 39 / - 6 WHEN - + 27 + + 98 + - COUNT ( * ) THEN - ( + 59 ) + 61 + 6 * + 91 END THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL - 20 * + 23 * 29 + + 84
----
-13256

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT MAX( - - 90 ) - - 25 * 54 * + - 97 AS col2
----
-130860

skipif mysql # not compatible
query I rowsort label-5791
SELECT MAX ( - - 90 ) - - 25 * 54 * + - 97 AS col2
----
-130860

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT - + MIN( DISTINCT 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-5792
SELECT - + MIN ( DISTINCT 62 )
----
-62

query I rowsort
SELECT + 27 * + + 8
----
216

query II rowsort
SELECT ALL + 26 col2, 50
----
26
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5795
SELECT 70 + - - 56 - + + 96 * CAST( NULL AS SIGNED ) * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5795
SELECT 70 + - - 56 - + + 96 * CAST ( NULL AS INTEGER ) * - 67
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5796
SELECT COUNT( * ), 1
----
1
1

skipif mysql # not compatible
query II rowsort label-5796
SELECT COUNT ( * ), 1
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5797
SELECT - 93 / 27 * - CAST( NULL AS SIGNED ) * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-5797
SELECT - 93 / 27 * - CAST ( NULL AS INTEGER ) * 34
----
NULL

query I rowsort
SELECT ALL 63 + + - 77
----
-14

query I rowsort
SELECT + 80 * - 18 * COALESCE ( 22, - - 14 ) - 47
----
-31727

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5800
SELECT DISTINCT - + MAX( 12 ) * 25 DIV + - 6 col2, + 9 AS col0
----
50
9

skipif mysql # not compatible
query II rowsort label-5800
SELECT DISTINCT - + MAX ( 12 ) * 25 / + - 6 col2, + 9 AS col0
----
50
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5801
SELECT DISTINCT 81 + 12 + - + 81 * - - CAST( NULL AS SIGNED ) * + NULLIF ( - - 23, 63 / + - NULLIF ( + 36, + 88 - + - 63 * COALESCE ( 37, COUNT( * ) + + 45 ) ) ) + + COALESCE ( - MAX( ALL + 59 ), NULLIF ( 59, - + 71 * + 15 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT 81 + 12 + - + 81 * - - CAST ( NULL AS INTEGER ) * + NULLIF ( - - 23, 63 / + - NULLIF ( + 36, + 88 - + - 63 * COALESCE ( 37, COUNT ( * ) + + 45 ) ) ) + + COALESCE ( - MAX ( ALL + 59 ), NULLIF ( 59, - + 71 * + 15 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT - COUNT( * ) * + COUNT( - + 44 ) + - - 85 + 87 - + - 84
----
255

skipif mysql # not compatible
query I rowsort label-5802
SELECT - COUNT ( * ) * + COUNT ( - + 44 ) + - - 85 + 87 - + - 84
----
255

query I rowsort
SELECT + ( COALESCE ( - + 28, 17 ) ) + - + 27 * - NULLIF ( 74, - 5 )
----
1970

onlyif mysql # DIV for integer division: 
query I rowsort label-5804
SELECT DISTINCT - - COALESCE ( - + 4, - 46 + + 82 * - 41 DIV - + 98, - - 98 * 11 + 6 + - + 54 )
----
-4

skipif mysql # not compatible
query I rowsort label-5804
SELECT DISTINCT - - COALESCE ( - + 4, - 46 + + 82 * - 41 / - + 98, - - 98 * 11 + 6 + - + 54 )
----
-4

query I rowsort
SELECT DISTINCT 8 + - 14
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5806
SELECT 60 DIV COUNT( * ) DIV ( - + 85 ) + + COUNT( + CASE - 72 WHEN + 79 THEN 52 + + 20 DIV 86 * - - 69 END ) + 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5806
SELECT 60 / COUNT ( * ) / ( - + 85 ) + + COUNT ( + CASE - 72 WHEN + 79 THEN 52 + + 20 / 86 * - - 69 END ) + 85 AS col0
----
85

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

skipif mysql # not compatible
query I rowsort label-5807
SELECT COUNT ( * ) * COUNT ( * ) * - + COUNT ( * ) / - 40 - - - 7 * + 61 AS col0
----
-427

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT 41 + MAX( ALL - - 77 )
----
118

skipif mysql # not compatible
query I rowsort label-5808
SELECT 41 + MAX ( ALL - - 77 )
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5809
SELECT ALL - 24 + - NULLIF ( - 7, NULLIF ( + 97, 5 * + MIN( 55 ) ) + CAST( 53 AS SIGNED ) ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - 24 + - NULLIF ( - 7, NULLIF ( + 97, 5 * + MIN ( 55 ) ) + CAST ( 53 AS INTEGER ) ) AS col2
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL - NULLIF ( - COUNT( * ), ( - 92 ) / + 15 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL - NULLIF ( - COUNT ( * ), ( - 92 ) / + 15 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT 76 + + 11 DIV - 2 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5812
SELECT 76 + + 11 / - 2 AS col0
----
71

query II rowsort
SELECT ALL + 61 - 20 AS col0, 31 AS col1
----
41
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT ALL - COALESCE ( - 8, - - 65 - + - 69, + ( + COUNT( * ) ) )
----
8

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL - COALESCE ( - 8, - - 65 - + - 69, + ( + COUNT ( * ) ) )
----
8

query I rowsort
SELECT 56 * + - ( - 44 ) AS col1
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT 92 * - 48 * + COUNT( * ) AS col2
----
-4416

skipif mysql # not compatible
query I rowsort label-5816
SELECT 92 * - 48 * + COUNT ( * ) AS col2
----
-4416

query I rowsort
SELECT 63 + - 90 * - 67
----
6093

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT MIN( ALL 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT MIN ( ALL 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL - 62 * MIN( DISTINCT - 84 ) AS col2
----
5208

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL - 62 * MIN ( DISTINCT - 84 ) AS col2
----
5208

query I rowsort
SELECT 82 * 88 AS col2
----
7216

query I rowsort
SELECT ALL - 90 * - 9 AS col2
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT DISTINCT MAX( ALL + - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT MAX ( ALL + - 81 )
----
-81

query I rowsort
SELECT ALL ( - 21 ) AS col1
----
-21

query I rowsort
SELECT + 71 + - 6
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5825
SELECT DISTINCT + 24 * COUNT( * ) col2, - 16 + + CAST( 10 AS SIGNED ) * + 76 AS col0
----
24
744

skipif mysql # not compatible
query II rowsort label-5825
SELECT DISTINCT + 24 * COUNT ( * ) col2, - 16 + + CAST ( 10 AS INTEGER ) * + 76 AS col0
----
24
744

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT NULLIF ( 47, + + MIN( + + ( - ( + 82 ) ) ) ) * - - 87 AS col0
----
4089

skipif mysql # not compatible
query I rowsort label-5826
SELECT NULLIF ( 47, + + MIN ( + + ( - ( + 82 ) ) ) ) * - - 87 AS col0
----
4089

query I rowsort
SELECT 46 + + 96 AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + 28 * + COUNT( DISTINCT - - 81 )
----
28

skipif mysql # not compatible
query I rowsort label-5828
SELECT + 28 * + COUNT ( DISTINCT - - 81 )
----
28

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

skipif mysql # not compatible
query I rowsort label-5829
SELECT + COUNT ( * ) / 99 + - 56
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5830
SELECT ALL CAST( COUNT( * ) AS SIGNED ) DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) / - 51 AS col1
----
0

query II rowsort
SELECT + 20 - 86, 63 AS col0
----
-66
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT ALL + 59 + + 53 + - COUNT( * )
----
111

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL + 59 + + 53 + - COUNT ( * )
----
111

query I rowsort
SELECT + + 53 + - 45 * 46 col1
----
-2017

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5835
SELECT + + 4 / + - COUNT( * ) * + CAST( NULL AS SIGNED ) * 54 / + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5835
SELECT + + 4 / + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 54 / + - CAST ( NULL AS REAL )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT DISTINCT - 64 * CASE 81 WHEN + CASE - CASE + 24 WHEN + COUNT( * ) THEN NULL WHEN + 23 THEN NULL ELSE - ( 94 ) END WHEN - MIN( ALL - 19 ) THEN + 36 END THEN + 46 WHEN 8 THEN + + ( - 27 ) + 6 END + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT - 64 * CASE 81 WHEN + CASE - CASE + 24 WHEN + COUNT ( * ) THEN NULL WHEN + 23 THEN NULL ELSE - ( 94 ) END WHEN - MIN ( ALL - 19 ) THEN + 36 END THEN + 46 WHEN 8 THEN + + ( - 27 ) + 6 END + 99
----
NULL

query I rowsort
SELECT DISTINCT - 38 * COALESCE ( + 89, - - 39 ) AS col0
----
-3382

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5839
SELECT + NULLIF ( - COALESCE ( - COUNT( * ), + 6 ), - CAST( NULL AS DECIMAL ) * + - 69 + + 17 * 48 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5839
SELECT + NULLIF ( - COALESCE ( - COUNT ( * ), + 6 ), - CAST ( NULL AS REAL ) * + - 69 + + 17 * 48 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5840
SELECT ALL MAX( ALL + + 25 ) * - COUNT( * ) + 87 + 4, 70 DIV - - MAX( DISTINCT - 14 ) AS col2
----
66
-5

skipif mysql # not compatible
query II rowsort label-5840
SELECT ALL MAX ( ALL + + 25 ) * - COUNT ( * ) + 87 + 4, 70 / - - MAX ( DISTINCT - 14 ) AS col2
----
66
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5841
SELECT DISTINCT + 77 * + 95 - + + 12 DIV - 93
----
7315

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT + 77 * + 95 - + + 12 / - 93
----
7315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5842
SELECT ALL + SUM( + CASE WHEN NOT NULL IS NOT NULL THEN + CAST( + 52 AS SIGNED ) END ) * 42
----
2184

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL + SUM ( + CASE WHEN NOT NULL IS NOT NULL THEN + CAST ( + 52 AS INTEGER ) END ) * 42
----
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5843
SELECT + 10 * - 71 * - CASE + + 17 WHEN - + CAST( NULL AS SIGNED ) THEN 29 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT + 10 * - 71 * - CASE + + 17 WHEN - + CAST ( NULL AS INTEGER ) THEN 29 END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5845
SELECT + ( - COALESCE ( - 34, + 28 + + + 45 DIV 75 * - + CAST( NULL AS SIGNED ) + 58 ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5845
SELECT + ( - COALESCE ( - 34, + 28 + + + 45 / 75 * - + CAST ( NULL AS INTEGER ) + 58 ) ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT + NULLIF ( + 17, + 53 / - + COUNT( * ) - + 84 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5846
SELECT + NULLIF ( + 17, + 53 / - + COUNT ( * ) - + 84 ) AS col1
----
17

query I rowsort
SELECT ALL 57 * - 57 AS col1
----
-3249

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + MAX( DISTINCT - 53 ) * ( - 9 ) AS col1
----
477

skipif mysql # not compatible
query I rowsort label-5848
SELECT + MAX ( DISTINCT - 53 ) * ( - 9 ) AS col1
----
477

query I rowsort
SELECT + 39 - 94
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT MAX( DISTINCT - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-5850
SELECT MAX ( DISTINCT - 22 )
----
-22

query I rowsort
SELECT + 35 * + 81 + + 3 + + 30
----
2868

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

query I rowsort
SELECT DISTINCT 97 * - 3 AS col2
----
-291

query I rowsort
SELECT - 8 * - 38 AS col0
----
304

query II rowsort
SELECT + 34 AS col0, - 41 + 93 * + - 60 + + - 36
----
34
-5657

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT - 85 - - CASE - 9 WHEN - 16 + + 71 THEN + + 30 / + - 57 END * + COUNT( * ) * 97 * 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5856
SELECT - 85 - - CASE - 9 WHEN - 16 + + 71 THEN + + 30 / + - 57 END * + COUNT ( * ) * 97 * 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL MAX( ALL - 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL MAX ( ALL - 71 ) AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5858
SELECT - - CASE + CASE 9 WHEN - + 87 * - 93 THEN - 38 * ( 86 ) / CAST( NULL AS SIGNED ) + - 11 ELSE NULL END WHEN - - CAST( NULL AS SIGNED ) * - 5 * - - COUNT( ALL - 38 ) * + CAST( - COUNT( * ) AS SIGNED ) - + + 65 + COUNT( * ) - 9 * 18 THEN - 25 ELSE 8 END
----
8

skipif mysql # not compatible
query I rowsort label-5858
SELECT - - CASE + CASE 9 WHEN - + 87 * - 93 THEN - 38 * ( 86 ) / CAST ( NULL AS INTEGER ) + - 11 ELSE NULL END WHEN - - CAST ( NULL AS INTEGER ) * - 5 * - - COUNT ( ALL - 38 ) * + CAST ( - COUNT ( * ) AS INTEGER ) - + + 65 + COUNT ( * ) - 9 * 18 THEN - 25 ELSE 8 END
----
8

query II rowsort
SELECT - 13 AS col0, 90 * - + 85
----
-13
-7650

query I rowsort
SELECT DISTINCT + ( + 90 ) col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5861
SELECT - + 49 * - 82 * + NULLIF ( + 61, - - CAST( + NULLIF ( ( + 34 ), + 28 ) AS SIGNED ) / CAST( - - 2 AS SIGNED ) )
----
245098

skipif mysql # not compatible
query I rowsort label-5861
SELECT - + 49 * - 82 * + NULLIF ( + 61, - - CAST ( + NULLIF ( ( + 34 ), + 28 ) AS INTEGER ) / CAST ( - - 2 AS INTEGER ) )
----
245098

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT DISTINCT + + 54 + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT + + 54 + + COUNT ( * )
----
55

query II rowsort
SELECT DISTINCT 92 AS col2, 79
----
92
79

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

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

query I rowsort
SELECT - 84 * - - 77 AS col2
----
-6468

query I rowsort
SELECT ALL + 77 + + 23 AS col2
----
100

query I rowsort
SELECT ALL - - 42 * + 74 AS col2
----
3108

onlyif mysql # aggregate syntax: 
query II rowsort label-5868
SELECT DISTINCT + + COUNT( DISTINCT - 19 ) + 94 - + 17 + - 30 + - NULLIF ( + - 60, + + 48 ), - COUNT( * ) * - COUNT( * ) col1
----
108
1

skipif mysql # not compatible
query II rowsort label-5868
SELECT DISTINCT + + COUNT ( DISTINCT - 19 ) + 94 - + 17 + - 30 + - NULLIF ( + - 60, + + 48 ), - COUNT ( * ) * - COUNT ( * ) col1
----
108
1

query I rowsort
SELECT - 37 - 86 + - 52 AS col0
----
-175

query I rowsort
SELECT ALL + 28 + + 36
----
64

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

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

query I rowsort
SELECT - - 47 + - ( - + 43 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT - + MIN( DISTINCT + + 38 ) + - 85 * - 20
----
1662

skipif mysql # not compatible
query I rowsort label-5873
SELECT - + MIN ( DISTINCT + + 38 ) + - 85 * - 20
----
1662

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5874
SELECT DISTINCT + COUNT( * ) DIV + 59 - + - 86
----
86

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT + COUNT ( * ) / + 59 - + - 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT ALL + MAX( 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + MAX ( 50 ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5876
SELECT ALL 25 DIV 98 - - 86
----
86

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL 25 / 98 - - 86
----
86

query I rowsort
SELECT DISTINCT - 7 * - 93
----
651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5878
SELECT + MAX( + CAST( + 87 AS SIGNED ) ) + - + 96, 94 * 36 col0
----
-9
3384

skipif mysql # not compatible
query II rowsort label-5878
SELECT + MAX ( + CAST ( + 87 AS INTEGER ) ) + - + 96, 94 * 36 col0
----
-9
3384

query I rowsort
SELECT - 86 * - 99
----
8514

query I rowsort
SELECT ALL 98 * + 34 AS col0
----
3332

query II rowsort
SELECT + COALESCE ( - + 70, 76, - 47 ) AS col2, 32 + - - 64
----
-70
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5882
SELECT + COUNT( * ) + + - 98 - - 78 - - ( - + NULLIF ( + 42, + ( - - CAST( 47 AS SIGNED ) ) - + 99 + - + CASE - 0 WHEN - 98 * + COUNT( * ) THEN NULL WHEN - 94 * - 93 + + 3 * + + 67 THEN - 95 ELSE NULL END * + 89 / - 39 - - 18 ) ) + - ( COUNT( * ) )
----
-62

skipif mysql # not compatible
query I rowsort label-5882
SELECT + COUNT ( * ) + + - 98 - - 78 - - ( - + NULLIF ( + 42, + ( - - CAST ( 47 AS INTEGER ) ) - + 99 + - + CASE - 0 WHEN - 98 * + COUNT ( * ) THEN NULL WHEN - 94 * - 93 + + 3 * + + 67 THEN - 95 ELSE NULL END * + 89 / - 39 - - 18 ) ) + - ( COUNT ( * ) )
----
-62

query II rowsort
SELECT ALL + 37 col2, 34 AS col0
----
37
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5884
SELECT + CASE - + CASE + COUNT( * ) WHEN - COUNT( * ) THEN NULL ELSE 20 END WHEN + 73 - + - MAX( ALL + 78 ) * 9 THEN + - 91 ELSE + COUNT( * ) END * + COUNT( * ) + + 33 DIV + COUNT( * ) col2
----
34

skipif mysql # not compatible
query I rowsort label-5884
SELECT + CASE - + CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL ELSE 20 END WHEN + 73 - + - MAX ( ALL + 78 ) * 9 THEN + - 91 ELSE + COUNT ( * ) END * + COUNT ( * ) + + 33 / + COUNT ( * ) col2
----
34

query I rowsort
SELECT ALL + 89 * + 53 * + + 26 AS col1
----
122642

query I rowsort
SELECT ( - - 86 ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5887
SELECT ALL + 20 col2, CAST( + CAST( + 88 AS SIGNED ) AS SIGNED ) DIV - 94 AS col0
----
20
0

skipif mysql # not compatible
query II rowsort label-5887
SELECT ALL + 20 col2, CAST ( + CAST ( + 88 AS INTEGER ) AS INTEGER ) / - 94 AS col0
----
20
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5888
SELECT DISTINCT + 24 AS col2, 78 DIV 93
----
24
0

skipif mysql # not compatible
query II rowsort label-5888
SELECT DISTINCT + 24 AS col2, 78 / 93
----
24
0

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

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

query I rowsort
SELECT 35 * + 30 + + 52
----
1102

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

skipif mysql # not compatible
query I rowsort label-5891
SELECT CAST ( NULL AS REAL ) / - + 45 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 45 * 79
----
3555

query I rowsort
SELECT ( - 69 ) AS col1
----
-69

query I rowsort
SELECT - 73 * + - 17 + + - 29
----
1212

query I rowsort
SELECT ALL + 14 + - - 56 AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5896
SELECT - COUNT( DISTINCT + + 47 ) + - 99 DIV + COALESCE ( 57, + + 78 * MAX( - + 63 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-5896
SELECT - COUNT ( DISTINCT + + 47 ) + - 99 / + COALESCE ( 57, + + 78 * MAX ( - + 63 ) )
----
-2

query II rowsort
SELECT ALL 65 AS col2, 68
----
65
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5898
SELECT + NULLIF ( - NULLIF ( 36, COALESCE ( + 37, - - 5 * COUNT( * ) * + + 5 * + 82 / CAST( NULL AS SIGNED ) - + 16 ) ), + 5 ) + - 13 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-5898
SELECT + NULLIF ( - NULLIF ( 36, COALESCE ( + 37, - - 5 * COUNT ( * ) * + + 5 * + 82 / CAST ( NULL AS INTEGER ) - + 16 ) ), + 5 ) + - 13 AS col0
----
-49

query II rowsort
SELECT COALESCE ( + - 34, - 86 ) + - 42 + + + 13 * - - 87, + 76 AS col1
----
1055
76

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

query I rowsort
SELECT 24 + - 87
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT - + CASE 91 WHEN + + 41 * + - 94 + ( 91 ) * - COUNT( * ) * + NULLIF ( 92, - AVG ( - + 22 ) + - 18 + - ( 10 ) ) THEN 69 - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT - + CASE 91 WHEN + + 41 * + - 94 + ( 91 ) * - COUNT ( * ) * + NULLIF ( 92, - AVG ( - + 22 ) + - 18 + - ( 10 ) ) THEN 69 - 24 END
----
NULL

query I rowsort
SELECT ALL + + ( - ( - 54 ) ) - - 23 - + 72
----
5

query II rowsort
SELECT ALL + + 1 * + 53 * - 18 + - + 54, 34 - 10 AS col0
----
-1008
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT COUNT( 94 ) + 82 * + 44
----
3609

skipif mysql # not compatible
query I rowsort label-5905
SELECT COUNT ( 94 ) + 82 * + 44
----
3609

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

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

query I rowsort
SELECT DISTINCT + 75 * 27 * - 74 col0
----
-149850

onlyif mysql # aggregate syntax: 
query II rowsort label-5908
SELECT SUM( 27 ) + 34 col1, 69
----
61
69

skipif mysql # not compatible
query II rowsort label-5908
SELECT SUM ( 27 ) + 34 col1, 69
----
61
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5909
SELECT 72 / + 65 / 10 / - CAST( + COALESCE ( - + 81, 21 ) AS SIGNED ) * - COUNT( * ) * - - CASE COUNT( * ) WHEN 48 THEN 24 + + + 55 + + + 35 * - 47 * - 94 WHEN - COUNT( * ) THEN NULL WHEN + 33 THEN NULL END * + 29 * + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT 72 / + 65 / 10 / - CAST ( + COALESCE ( - + 81, 21 ) AS INTEGER ) * - COUNT ( * ) * - - CASE COUNT ( * ) WHEN 48 THEN 24 + + + 55 + + + 35 * - 47 * - 94 WHEN - COUNT ( * ) THEN NULL WHEN + 33 THEN NULL END * + 29 * + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5910
SELECT 82 * 25, - COUNT( * ) + 21 * - - 58 + - + 89 + - - 89 AS col2
----
2050
1217

skipif mysql # not compatible
query II rowsort label-5910
SELECT 82 * 25, - COUNT ( * ) + 21 * - - 58 + - + 89 + - - 89 AS col2
----
2050
1217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5911
SELECT NULLIF ( ( - COALESCE ( + - 93, - 34 DIV - SUM( DISTINCT - 38 ) + + 19 ) ), + - 33 * - - 35 - + 33 * 89 * + 47 * 59 ) + + 34
----
127

skipif mysql # not compatible
query I rowsort label-5911
SELECT NULLIF ( ( - COALESCE ( + - 93, - 34 / - SUM ( DISTINCT - 38 ) + + 19 ) ), + - 33 * - - 35 - + 33 * 89 * + 47 * 59 ) + + 34
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL - COUNT( * ) + - 32 * + 9
----
-289

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL - COUNT ( * ) + - 32 * + 9
----
-289

query I rowsort
SELECT ALL CASE + 44 WHEN - 30 THEN + + ( - 4 ) + - + 32 ELSE 25 - 5 + - - 78 + - 90 END * - 43 AS col0
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT + + COALESCE ( - - 47, 46 ) + - + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT + + COALESCE ( - - 47, 46 ) + - + COUNT ( * )
----
46

query I rowsort
SELECT ALL - - NULLIF ( - - 98, - 42 + + AVG ( DISTINCT - 77 ) * - COALESCE ( - + 70, - 2 * - 8 ) + + 57 * - + 24 - - 45 + 65 ) col2
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL SUM( ALL + 34 ) + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL SUM ( ALL + 34 ) + + COUNT ( * )
----
35

query I rowsort
SELECT ALL - 61 + + 98
----
37

query I rowsort
SELECT ALL - 2 + - 96 + 19 * 87
----
1555

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

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

query I rowsort
SELECT ALL 63 * - 55
----
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT ALL 3 - CASE - 18 WHEN - 56 + + - 99 THEN - COUNT( * ) * + 48 WHEN - COUNT( DISTINCT + NULLIF ( 14, - - 84 ) ) * 46 + ( + + 1 ) * - + 2 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL 3 - CASE - 18 WHEN - 56 + + - 99 THEN - COUNT ( * ) * + 48 WHEN - COUNT ( DISTINCT + NULLIF ( 14, - - 84 ) ) * 46 + ( + + 1 ) * - + 2 THEN NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5924
SELECT ALL ( + 91 ) * + 84 AS col0, COUNT( * ) AS col0
----
7644
1

skipif mysql # not compatible
query II rowsort label-5924
SELECT ALL ( + 91 ) * + 84 AS col0, COUNT ( * ) AS col0
----
7644
1

query I rowsort
SELECT + 55 - 27 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT - 9 * - COUNT( * ) + 14 col1
----
23

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT - 9 * - COUNT ( * ) + 14 col1
----
23

query I rowsort
SELECT - ( - 70 ) AS col1
----
70

query I rowsort
SELECT + 22 * - 23 + - 26 - 45 * + 92 AS col1
----
-4672

query I rowsort
SELECT 41 + - 4
----
37

query I rowsort
SELECT 86 * - ( 7 ) AS col1
----
-602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5931
SELECT CAST( + CASE - + 65 WHEN + + 97 * + COALESCE ( 64, + + COUNT( * ) * + + 64 * + + COUNT( * ) * COUNT( * ) + + 88 + + 72 + - 78, 72 / + SUM( ALL - 47 ) ) THEN + 62 * - COUNT( * ) * - MIN( - + 69 ) + - COALESCE ( + ( + - 59 ), + 37, - + NULLIF ( 24, + ( + - 78 ) ) ) * - + 52 * 15 ELSE NULL END AS SIGNED ) + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5931
SELECT CAST ( + CASE - + 65 WHEN + + 97 * + COALESCE ( 64, + + COUNT ( * ) * + + 64 * + + COUNT ( * ) * COUNT ( * ) + + 88 + + 72 + - 78, 72 / + SUM ( ALL - 47 ) ) THEN + 62 * - COUNT ( * ) * - MIN ( - + 69 ) + - COALESCE ( + ( + - 59 ), + 37, - + NULLIF ( 24, + ( + - 78 ) ) ) * - + 52 * 15 ELSE NULL END AS INTEGER ) + - 54
----
NULL

query II rowsort
SELECT DISTINCT 99 col1, 48 AS col0
----
99
48

query I rowsort
SELECT ALL - 44 * 0
----
0

query I rowsort
SELECT 76 + - ( + ( + 16 ) )
----
60

query I rowsort
SELECT ALL - 35 * - 10 AS col2
----
350

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT ALL 39 DIV + - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL 39 / + - 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5937
SELECT + 60 * - COUNT( * ) * - ( - 99 ) * - ( 75 ) * + - 43 - 67, MIN( + 95 ) AS col0
----
-19156567
95

skipif mysql # not compatible
query II rowsort label-5937
SELECT + 60 * - COUNT ( * ) * - ( - 99 ) * - ( 75 ) * + - 43 - 67, MIN ( + 95 ) AS col0
----
-19156567
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5938
SELECT ALL COUNT( * ) * + 95 + + COALESCE ( 50, - + 73 DIV + + COALESCE ( - COUNT( * ), + + 24, 47 ) - - 72 )
----
145

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL COUNT ( * ) * + 95 + + COALESCE ( 50, - + 73 / + + COALESCE ( - COUNT ( * ), + + 24, 47 ) - - 72 )
----
145

query I rowsort
SELECT 66 + - 81 AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5940
SELECT - 3 DIV - + 1 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5940
SELECT - 3 / - + 1 AS col0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5941
SELECT CASE 9 WHEN CAST( NULL AS DECIMAL ) THEN + 43 ELSE NULL END / + + 8 + 81 * 96 * 96 + - 94 + + 80 * - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT CASE 9 WHEN CAST ( NULL AS REAL ) THEN + 43 ELSE NULL END / + + 8 + 81 * 96 * 96 + - 94 + + 80 * - 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5942
SELECT - SUM( - 64 ) DIV + + NULLIF ( ( - COUNT( DISTINCT - 54 ) ), - + COUNT( * ) * + + 73 * 81 ) AS col0, + ( + 73 ) col1
----
-64
73

skipif mysql # not compatible
query II rowsort label-5942
SELECT - SUM ( - 64 ) / + + NULLIF ( ( - COUNT ( DISTINCT - 54 ) ), - + COUNT ( * ) * + + 73 * 81 ) AS col0, + ( + 73 ) col1
----
-64
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT ALL 22 * - CASE - 12 WHEN + COUNT( * ) THEN - - COUNT( * ) / + - 5 + - + 91 * + - 97 * - 20 - + 32 + 11 END + + 30 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL 22 * - CASE - 12 WHEN + COUNT ( * ) THEN - - COUNT ( * ) / + - 5 + - + 91 * + - 97 * - 20 - + 32 + 11 END + + 30 * 31
----
NULL

query I rowsort
SELECT - 2 + + 8 AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5945
SELECT ALL COALESCE ( - + 85, + COUNT( * ) ) * + 35 DIV + 35 + + + 72 + - - SUM( + - 11 )
----
-24

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL COALESCE ( - + 85, + COUNT ( * ) ) * + 35 / + 35 + + + 72 + - - SUM ( + - 11 )
----
-24

query II rowsort
SELECT ALL + 49 col2, 41
----
49
41

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

skipif mysql # not compatible
query I rowsort label-5947
SELECT - - 34 * + 98 + - COUNT ( * ) AS col1
----
3331

onlyif mysql # aggregate syntax: 
query II rowsort label-5948
SELECT 96 AS col2, + SUM( ALL ( - - 66 ) ) + 67
----
96
133

skipif mysql # not compatible
query II rowsort label-5948
SELECT 96 AS col2, + SUM ( ALL ( - - 66 ) ) + 67
----
96
133

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT ALL + - COALESCE ( 44, 82 * 9 DIV + 18 * - 72 * + 34 - - 74, - 3, + - MAX( + ( 82 ) ) + + MIN( ALL - 62 ) + + 54 * + COUNT( * ) * - 20 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL + - COALESCE ( 44, 82 * 9 / + 18 * - 72 * + 34 - - 74, - 3, + - MAX ( + ( 82 ) ) + + MIN ( ALL - 62 ) + + 54 * + COUNT ( * ) * - 20 ) AS col0
----
-44

query I rowsort
SELECT - 4 + 96 + ( + ( + 82 ) ) - + 41
----
133

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

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

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) - - 39 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT ALL NULLIF ( COUNT( * ), + 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL NULLIF ( COUNT ( * ), + 37 ) AS col0
----
1

query I rowsort
SELECT + - 68 + - 67 + - + 31
----
-166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5956
SELECT + - 10 DIV - 55 * + - COUNT( * ) * + + 47 + 99 + + 78 + + ( - 68 ) * + COUNT( * ) * 85 AS col2
----
-5603

skipif mysql # not compatible
query I rowsort label-5956
SELECT + - 10 / - 55 * + - COUNT ( * ) * + + 47 + 99 + + 78 + + ( - 68 ) * + COUNT ( * ) * 85 AS col2
----
-5603

query I rowsort
SELECT + 80 + 60 col2
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT DISTINCT - CASE + 77 WHEN - 46 THEN NULL WHEN + + 39 THEN 52 END / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT - CASE + 77 WHEN - 46 THEN NULL WHEN + + 39 THEN 52 END / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5959
SELECT + SUM( - 8 ) + 61 DIV 18 AS col1, - MAX( - + NULLIF ( + 65, + - 59 ) )
----
-5
65

skipif mysql # not compatible
query II rowsort label-5959
SELECT + SUM ( - 8 ) + 61 / 18 AS col1, - MAX ( - + NULLIF ( + 65, + - 59 ) )
----
-5
65

query I rowsort
SELECT DISTINCT 75 * 83 AS col1
----
6225

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT DISTINCT 93 * COUNT( * ) * - 94 AS col1
----
-8742

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT 93 * COUNT ( * ) * - 94 AS col1
----
-8742

onlyif mysql # DIV for integer division: 
query I rowsort label-5962
SELECT DISTINCT 4 DIV + 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT 4 / + 11 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-5963
SELECT + COUNT ( * ) / - 93 * - + 40 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5964
SELECT ALL MIN( - + 17 ) AS col1, + CAST( NULL AS SIGNED ) / + 91 AS col2
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-5964
SELECT ALL MIN ( - + 17 ) AS col1, + CAST ( NULL AS INTEGER ) / + 91 AS col2
----
-17
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5965
SELECT - CASE - + 46 WHEN - - 85 + - + CAST( - - ( + COUNT( * ) ) AS SIGNED ) * + ( - 44 ) THEN + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5965
SELECT - CASE - + 46 WHEN - - 85 + - + CAST ( - - ( + COUNT ( * ) ) AS INTEGER ) * + ( - 44 ) THEN + 22 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT + 92 * - 45 DIV 1 AS col0
----
-4140

skipif mysql # not compatible
query I rowsort label-5966
SELECT + 92 * - 45 / 1 AS col0
----
-4140

query I rowsort
SELECT + 10 + - 61 - NULLIF ( - 94, - 78 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT ALL 74 + + - SUM( ALL - + 55 ) AS col0
----
129

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL 74 + + - SUM ( ALL - + 55 ) AS col0
----
129

query I rowsort
SELECT ALL 92 + 31
----
123

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT ALL + SUM( DISTINCT - 14 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL + SUM ( DISTINCT - 14 ) AS col1
----
-14

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

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

query I rowsort
SELECT DISTINCT - ( + 23 ) * + 61
----
-1403

query I rowsort
SELECT - - 16 * + + 39 * 29
----
18096

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT DISTINCT + + MIN( 72 )
----
72

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT + + MIN ( 72 )
----
72

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

skipif mysql # not compatible
query I rowsort label-5976
SELECT - 0 / + 45 + 95
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL + - 18 * + - COUNT( * ) - + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL + - 18 * + - COUNT ( * ) - + - COUNT ( * )
----
19

query I rowsort
SELECT + 79 * + + 74 AS col1
----
5846

query I rowsort
SELECT - 49 * + 68 - + - 79 AS col0
----
-3253

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT MAX( ALL - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5980
SELECT MAX ( ALL - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5981
SELECT ALL + 78 DIV + SUM( ALL 61 )
----
1

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL + 78 / + SUM ( ALL 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT - - 14 * + - 85 * 73 + + COUNT( * ) col0
----
-86869

skipif mysql # not compatible
query I rowsort label-5982
SELECT - - 14 * + - 85 * 73 + + COUNT ( * ) col0
----
-86869

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

query I rowsort
SELECT - 95 * - 1
----
95

query I rowsort
SELECT - ( - - 30 ) * 90
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT - - CASE - 61 WHEN 55 / 20 THEN NULL ELSE - COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5986
SELECT - - CASE - 61 WHEN 55 / 20 THEN NULL ELSE - COUNT ( * ) END AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5987
SELECT - - COUNT( DISTINCT + 40 ) AS col0, + 9 AS col2
----
1
9

skipif mysql # not compatible
query II rowsort label-5987
SELECT - - COUNT ( DISTINCT + 40 ) AS col0, + 9 AS col2
----
1
9

query I rowsort
SELECT ALL - 43 * + - 42
----
1806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5989
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 84 * - 12 * + - 89 / - + 52 + + ( + AVG ( 49 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 84 * - 12 * + - 89 / - + 52 + + ( + AVG ( 49 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5990
SELECT DISTINCT - 62 * - CAST( + + COALESCE ( + COUNT( * ), + CAST( COUNT( + - 43 ) AS SIGNED ) ) AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT - 62 * - CAST ( + + COALESCE ( + COUNT ( * ), + CAST ( COUNT ( + - 43 ) AS INTEGER ) ) AS INTEGER ) AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT - CAST( NULL AS SIGNED ) - + COUNT( * ) * - 35 * + ( + - ( + - 46 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5991
SELECT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - 35 * + ( + - ( + - 46 ) ) col2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5993
SELECT 56, 0 * - 76 DIV 83 AS col1
----
56
0

skipif mysql # not compatible
query II rowsort label-5993
SELECT 56, 0 * - 76 / 83 AS col1
----
56
0

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

skipif mysql # not compatible
query I rowsort label-5994
SELECT 66 + - + 55 * CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5996
SELECT COALESCE ( - - 66, - ( - - 88 ) * 32 * COALESCE ( + 15, COALESCE ( + + 91, - COUNT( * ), - 52 + - 5 ) * + 11 + - 76 + COUNT( * ) * + CAST( - 70 AS SIGNED ) ) + + 28 * - 87 DIV - CAST( - 71 AS SIGNED ) DIV 68, 16 * 47 ) * - - 94 * + - 11 - + - COUNT( * )
----
-68243

skipif mysql # not compatible
query I rowsort label-5996
SELECT COALESCE ( - - 66, - ( - - 88 ) * 32 * COALESCE ( + 15, COALESCE ( + + 91, - COUNT ( * ), - 52 + - 5 ) * + 11 + - 76 + COUNT ( * ) * + CAST ( - 70 AS INTEGER ) ) + + 28 * - 87 / - CAST ( - 71 AS INTEGER ) / 68, 16 * 47 ) * - - 94 * + - 11 - + - COUNT ( * )
----
-68243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5997
SELECT ALL 44 + + - 7 - - COALESCE ( + + 68, 42 ) DIV + 63 * - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL 44 + + - 7 - - COALESCE ( + + 68, 42 ) / + 63 * - COUNT ( * )
----
36

query I rowsort
SELECT 91 + + ( 47 )
----
138

query I rowsort
SELECT 26 - - 3 * - 52
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT ALL + 9 + NULLIF ( + + 52, - 9 * 1 - 34 / - 86 ) * 15 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL + 9 + NULLIF ( + + 52, - 9 * 1 - 34 / - 86 ) * 15 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT DISTINCT + 0 DIV 63 * - + 62
----
0

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT + 0 / 63 * - + 62
----
0

query I rowsort
SELECT ALL 14 - + 14
----
0

query I rowsort
SELECT DISTINCT 43 - - 38 + + 66 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT COUNT( * ) + + 22 * - - 83 * + - 92
----
-167991

skipif mysql # not compatible
query I rowsort label-6004
SELECT COUNT ( * ) + + 22 * - - 83 * + - 92
----
-167991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6005
SELECT ALL 78 - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL 78 - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 6 * + 22 AS col0
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6007
SELECT CAST( NULL AS SIGNED ) + - ( - COUNT( * ) + - 48 ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ALL - SUM( 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - SUM ( 68 ) AS col0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6009
SELECT 46 DIV + 9 + - 11 * 42 AS col0
----
-457

skipif mysql # not compatible
query I rowsort label-6009
SELECT 46 / + 9 + - 11 * 42 AS col0
----
-457

query I rowsort
SELECT 61 * 62 AS col1
----
3782

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6011
SELECT COUNT( * ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT COUNT ( * ) * - CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT ALL + 38 * 52
----
1976

onlyif mysql # DIV for integer division: 
query I rowsort label-6014
SELECT DISTINCT ( - 58 ) DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT ( - 58 ) / 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6015
SELECT COALESCE ( + ( 10 ), 37 * CAST( + 70 AS SIGNED ), - 2 DIV 57, - MAX( + 6 ) ) DIV + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6015
SELECT COALESCE ( + ( 10 ), 37 * CAST ( + 70 AS INTEGER ), - 2 / 57, - MAX ( + 6 ) ) / + 55 AS col2
----
0

query I rowsort
SELECT 76 * + 60
----
4560

query I rowsort
SELECT 57 + + 91 AS col2
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6018
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1
----
NULL

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

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

query I rowsort
SELECT ALL + 3 + 50 AS col2
----
53

query I rowsort
SELECT 76 * 92 AS col2
----
6992

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

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

query I rowsort
SELECT 3 * 38 + 12
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6024
SELECT 92 + CASE + 97 WHEN ( CAST( NULL AS SIGNED ) ) THEN COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT 92 + CASE + 97 WHEN ( CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) END col1
----
NULL

query I rowsort
SELECT ALL + 3 + 10 * - 1 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL - COUNT( * ) + - NULLIF ( - 24, + 65 - CASE 66 WHEN + 95 THEN NULL WHEN - 12 * - 84 + 50 THEN 67 * COUNT( * ) ELSE NULL END )
----
23

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL - COUNT ( * ) + - NULLIF ( - 24, + 65 - CASE 66 WHEN + 95 THEN NULL WHEN - 12 * - 84 + 50 THEN 67 * COUNT ( * ) ELSE NULL END )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT 11 + + COALESCE ( SUM( ALL 40 ), 49 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-6027
SELECT 11 + + COALESCE ( SUM ( ALL 40 ), 49 ) col2
----
51

query I rowsort
SELECT ALL + 13 * - 20 AS col2
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT 91 * + MAX( 56 )
----
5096

skipif mysql # not compatible
query I rowsort label-6029
SELECT 91 * + MAX ( 56 )
----
5096

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT COUNT( * ) + + 9 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6030
SELECT COUNT ( * ) + + 9 AS col0
----
10

query I rowsort
SELECT ALL - 40 - 83
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT ALL SUM( DISTINCT 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL SUM ( DISTINCT 95 ) AS col0
----
95

query I rowsort
SELECT ALL + 13 * 28 AS col2
----
364

query I rowsort
SELECT 16 * 83
----
1328

query I rowsort
SELECT 6 * - 91
----
-546

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

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT SUM ( DISTINCT - 64 )
----
-64

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

query I rowsort
SELECT - - ( 77 )
----
77

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

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

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

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

query I rowsort
SELECT ALL - 78 * 30 - + 77 AS col2
----
-2417

query I rowsort
SELECT 14 * - ( + 5 ) AS col1
----
-70

query I rowsort
SELECT ALL 14 * - 54
----
-756

query I rowsort
SELECT 60 * - 23
----
-1380

query I rowsort
SELECT + 88 * - 23
----
-2024

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL + 83 * SUM( 32 )
----
2656

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + 83 * SUM ( 32 )
----
2656

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

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

query I rowsort
SELECT ALL CASE 8 WHEN - 65 - - 41 * + 85 THEN NULL WHEN + 54 THEN 47 + 90 END * + ( + 13 * 42 )
----
NULL

query I rowsort
SELECT DISTINCT + ( - 35 ) * COALESCE ( ( 8 ), 28, COALESCE ( 17, - 31 ), - 97 ) col2
----
-280

query I rowsort
SELECT 39 * + 4 col2
----
156

query I rowsort
SELECT + + CASE AVG ( ALL + 12 ) WHEN 16 THEN NULL WHEN + 26 THEN + 62 + - 84 END
----
NULL

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

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

query I rowsort
SELECT ALL 16 + + 96 AS col1
----
112

query I rowsort
SELECT DISTINCT + 68 + 44 * 0
----
68

query I rowsort
SELECT DISTINCT + 98 + 98 col2
----
196

query I rowsort
SELECT DISTINCT 39 + 87 AS col0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT ALL 43 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL 43 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6058
SELECT DISTINCT 87 + COALESCE ( 33, - 76 * 11, - 47 * - 92 + 62 DIV + NULLIF ( 97 * COUNT( * ), - COUNT( * ) * COUNT( * ) ), + 17 )
----
120

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT 87 + COALESCE ( 33, - 76 * 11, - 47 * - 92 + 62 / + NULLIF ( 97 * COUNT ( * ), - COUNT ( * ) * COUNT ( * ) ), + 17 )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT + COALESCE ( - NULLIF ( + 45, - 46 ), + 44 + 83 * + 50, MIN( ALL - 19 ) * 86 ) * COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT + COALESCE ( - NULLIF ( + 45, - 46 ), + 44 + 83 * + 50, MIN ( ALL - 19 ) * 86 ) * COUNT ( * ) AS col0
----
-45

query I rowsort
SELECT + COALESCE ( + 35, 68, 92 ) col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL 75 * MIN( 96 )
----
7200

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL 75 * MIN ( 96 )
----
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT DISTINCT COUNT( * ) * - 62 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT COUNT ( * ) * - 62 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL 69 + + 79 * + ( - MAX( - 65 ) )
----
5204

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL 69 + + 79 * + ( - MAX ( - 65 ) )
----
5204

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

skipif mysql # not compatible
query I rowsort label-6064
SELECT + CAST ( NULL AS INTEGER ) * - 90 * 74
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6065
SELECT + 51 DIV 25
----
2

skipif mysql # not compatible
query I rowsort label-6065
SELECT + 51 / 25
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6066
SELECT - 57 DIV 15
----
-3

skipif mysql # not compatible
query I rowsort label-6066
SELECT - 57 / 15
----
-3

query I rowsort
SELECT DISTINCT 74 * + ( - ( + 17 ) )
----
-1258

query I rowsort
SELECT ALL + 9 - - + 39 * 38 AS col0
----
1491

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

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

query I rowsort
SELECT - 3 * + 41 AS col2
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6071
SELECT DISTINCT MAX( + CAST( NULL AS SIGNED ) ) - - 86 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) - - 86 * + 50
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT - COUNT ( * ) / + ( 47 ) col2
----
0

query I rowsort
SELECT ALL + 9 - - - 58 + ( - 7 ) * - 17
----
70

query I rowsort
SELECT + 67 + - 25 AS col2
----
42

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

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT SUM ( - - 32 )
----
32

query I rowsort
SELECT + 44 * + + 90 AS col1
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT ALL COUNT( DISTINCT - + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL COUNT ( DISTINCT - + 3 )
----
1

query I rowsort
SELECT ALL COALESCE ( + 20, + 49, + 35 - + 89, + 48 + 46 ) AS col2
----
20

query I rowsort
SELECT - 37 + + + 21
----
-16

query I rowsort
SELECT - - 76 * - 46 * ( 63 )
----
-220248

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT - 72 + + - SUM( ALL 17 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-6081
SELECT - 72 + + - SUM ( ALL 17 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT DISTINCT + - 34 * - - 43 * COUNT( * ) + + 88
----
-1374

skipif mysql # not compatible
query I rowsort label-6082
SELECT DISTINCT + - 34 * - - 43 * COUNT ( * ) + + 88
----
-1374

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6084
SELECT ALL - 45 * - - 86 - - COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL - 45 * - - 86 - - COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6085
SELECT ALL + CASE + CAST( NULL AS SIGNED ) WHEN 93 - 84 * - MIN( 39 ) THEN NULL ELSE 10 * 80 END
----
800

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL + CASE + CAST ( NULL AS INTEGER ) WHEN 93 - 84 * - MIN ( 39 ) THEN NULL ELSE 10 * 80 END
----
800

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT - + 16 DIV + 73 * + 18
----
0

skipif mysql # not compatible
query I rowsort label-6086
SELECT - + 16 / + 73 * + 18
----
0

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

skipif mysql # not compatible
query I rowsort label-6087
SELECT - COUNT ( * ) * 71
----
-71

query I rowsort
SELECT - + 52 + + 65 AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6089
SELECT ALL + 16 * 63 * 41 + + 53 DIV - 71
----
41328

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL + 16 * 63 * 41 + + 53 / - 71
----
41328

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT ALL MAX( ALL - - 73 ) * ( - 76 * + 45 + 79 ) + - ( 57 )
----
-243950

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL MAX ( ALL - - 73 ) * ( - 76 * + 45 + 79 ) + - ( 57 )
----
-243950

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6092
SELECT ALL MIN( DISTINCT + 17 ) * COALESCE ( - NULLIF ( 81, - 51 * 25 ) * + 2, + 5 ) + 86 DIV + 32
----
-2752

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL MIN ( DISTINCT + 17 ) * COALESCE ( - NULLIF ( 81, - 51 * 25 ) * + 2, + 5 ) + 86 / + 32
----
-2752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6093
SELECT DISTINCT - CAST( + 38 AS SIGNED ) * 84
----
-3192

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT - CAST ( + 38 AS INTEGER ) * 84
----
-3192

onlyif mysql # DIV for integer division: 
query I rowsort label-6094
SELECT + + 9 - + + 14 - 42 DIV 67
----
-5

skipif mysql # not compatible
query I rowsort label-6094
SELECT + + 9 - + + 14 - 42 / 67
----
-5

query I rowsort
SELECT + NULLIF ( - ( COALESCE ( 57, 22 + + 81, + 96 ) ), 6 )
----
-57

query I rowsort
SELECT + NULLIF ( + 52, - + 82 + 72 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT + 46 + + COUNT( * ) * MAX( DISTINCT - 48 ) + 78 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-6097
SELECT + 46 + + COUNT ( * ) * MAX ( DISTINCT - 48 ) + 78 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT COALESCE ( - 75, COUNT( ALL 98 ) * + ( 31 ), 4 * COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-6098
SELECT COALESCE ( - 75, COUNT ( ALL 98 ) * + ( 31 ), 4 * COUNT ( * ) )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6099
SELECT - CAST( MAX( + 42 ) AS SIGNED ) + + 70
----
28

skipif mysql # not compatible
query I rowsort label-6099
SELECT - CAST ( MAX ( + 42 ) AS INTEGER ) + + 70
----
28

query I rowsort
SELECT - 46 * - 69 + + 77 + 69 AS col1
----
3320

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT ALL SUM( ALL 64 )
----
64

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL SUM ( ALL 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT MIN( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-6102
SELECT MIN ( 82 )
----
82

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT + 21 + 65 DIV - 83
----
21

skipif mysql # not compatible
query I rowsort label-6104
SELECT + 21 + 65 / - 83
----
21

query I rowsort
SELECT + 80 * 51
----
4080

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6106
SELECT ALL - CAST( + 91 AS SIGNED ) * 8 DIV 79 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL - CAST ( + 91 AS INTEGER ) * 8 / 79 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT + 97 + COUNT( * ) + 17 + 55
----
170

skipif mysql # not compatible
query I rowsort label-6107
SELECT + 97 + COUNT ( * ) + 17 + 55
----
170

query I rowsort
SELECT ALL - 56 * ( - 21 ) - 12
----
1164

onlyif mysql # aggregate syntax: 
query II rowsort label-6109
SELECT ALL 64 AS col2, + COUNT( * ) + - 63 - - 97 AS col1
----
64
35

skipif mysql # not compatible
query II rowsort label-6109
SELECT ALL 64 AS col2, + COUNT ( * ) + - 63 - - 97 AS col1
----
64
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT SUM( + - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6110
SELECT SUM ( + - 84 ) AS col0
----
-84

query I rowsort
SELECT + 73 + - 34 + + 82
----
121

query I rowsort
SELECT + 44 * + 66 AS col2
----
2904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6113
SELECT - 50 + 88 - - + 29 DIV - COALESCE ( + 63 * CASE ( 34 ) WHEN MIN( ALL + 78 ) - - 46 THEN NULL WHEN + 64 THEN NULL ELSE 71 END, + ( 32 ) DIV 62 + + MAX( DISTINCT + 63 ) * 90 )
----
38

skipif mysql # not compatible
query I rowsort label-6113
SELECT - 50 + 88 - - + 29 / - COALESCE ( + 63 * CASE ( 34 ) WHEN MIN ( ALL + 78 ) - - 46 THEN NULL WHEN + 64 THEN NULL ELSE 71 END, + ( 32 ) / 62 + + MAX ( DISTINCT + 63 ) * 90 )
----
38

query I rowsort
SELECT ALL 55 * - 82 * 8
----
-36080

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

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

query I rowsort
SELECT + 14 * - - 41 AS col2
----
574

query I rowsort
SELECT ALL 20 * + ( 96 )
----
1920

query II rowsort
SELECT ALL 64 AS col0, - 63
----
64
-63

query I rowsort
SELECT + - 87 * + ( - 66 ) col0
----
5742

onlyif mysql # aggregate syntax: 
query II rowsort label-6120
SELECT - - 22, + 83 * + + COUNT( * ) AS col2
----
22
83

skipif mysql # not compatible
query II rowsort label-6120
SELECT - - 22, + 83 * + + COUNT ( * ) AS col2
----
22
83

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL + 1 + MIN( - 82 ) * 36
----
-2951

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL + 1 + MIN ( - 82 ) * 36
----
-2951

query II rowsort
SELECT - - 12, - 38 + + 71 col1
----
12
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6125
SELECT - 59 * CAST( NULL AS SIGNED ) - - - CASE CASE + 53 WHEN + ( + 22 ) + + 72 THEN NULL ELSE 30 END WHEN ( 12 ) * 87 + 29 THEN NULL ELSE COUNT( * ) END + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT - 59 * CAST ( NULL AS INTEGER ) - - - CASE CASE + 53 WHEN + ( + 22 ) + + 72 THEN NULL ELSE 30 END WHEN ( 12 ) * 87 + 29 THEN NULL ELSE COUNT ( * ) END + - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL - - 56 * - COUNT( * ) + - 3 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - - 56 * - COUNT ( * ) + - 3 AS col2
----
-59

query II rowsort
SELECT DISTINCT + - 3 AS col1, + 38
----
-3
38

query II rowsort
SELECT + 26 AS col2, 71 AS col1
----
26
71

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT DISTINCT - 4 DIV + + 12 + ( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT - 4 / + + 12 + ( - 5 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6131
SELECT + 95 * + - COALESCE ( NULLIF ( + 31, - CAST( COUNT( * ) AS SIGNED ) ), MAX( DISTINCT + 88 ) * - 59 ) * CASE + 20 WHEN - ( 33 ) + + 94 THEN NULL WHEN + 85 + + 61 THEN + 73 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT + 95 * + - COALESCE ( NULLIF ( + 31, - CAST ( COUNT ( * ) AS INTEGER ) ), MAX ( DISTINCT + 88 ) * - 59 ) * CASE + 20 WHEN - ( 33 ) + + 94 THEN NULL WHEN + 85 + + 61 THEN + 73 WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL - COALESCE ( + 32, 72 * COALESCE ( COALESCE ( + 69, - 0 + + 70 ), + COUNT( * ), - COUNT( - 87 ) - - 33, - 77 + 64 ), + COALESCE ( + 90, 51, + 13 ) ) * 71
----
-2272

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL - COALESCE ( + 32, 72 * COALESCE ( COALESCE ( + 69, - 0 + + 70 ), + COUNT ( * ), - COUNT ( - 87 ) - - 33, - 77 + 64 ), + COALESCE ( + 90, 51, + 13 ) ) * 71
----
-2272

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

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

query II rowsort
SELECT + - 71, - 30 AS col2
----
-71
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6135
SELECT 30 DIV - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6135
SELECT 30 / - 97 AS col0
----
0

query I rowsort
SELECT - 62 * + - 15 AS col0
----
930

onlyif mysql # aggregate syntax: 
query II rowsort label-6137
SELECT ALL + 26 - 18 col2, + 41 * - + SUM( DISTINCT - 90 ) col2
----
8
3690

skipif mysql # not compatible
query II rowsort label-6137
SELECT ALL + 26 - 18 col2, + 41 * - + SUM ( DISTINCT - 90 ) col2
----
8
3690

query I rowsort
SELECT ALL - 54 * + + 72
----
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT 1 * - CAST( 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-6139
SELECT 1 * - CAST ( 14 AS INTEGER )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6140
SELECT ALL - 81 DIV + SUM( - 89 )
----
0

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL - 81 / + SUM ( - 89 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT ALL + COUNT( * ) - - 77 * - + ( ( - 23 ) ) AS col1
----
1772

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL + COUNT ( * ) - - 77 * - + ( ( - 23 ) ) AS col1
----
1772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6142
SELECT ALL CAST( NULL AS SIGNED ) * + 26 AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6143
SELECT ALL CASE - CAST( 36 AS SIGNED ) WHEN - - COUNT( * ) THEN NULL WHEN - AVG ( ALL 57 ) THEN 98 * 10 ELSE NULL END - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL CASE - CAST ( 36 AS INTEGER ) WHEN - - COUNT ( * ) THEN NULL WHEN - AVG ( ALL 57 ) THEN 98 * 10 ELSE NULL END - COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6144
SELECT 20 DIV + - ( - 17 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6144
SELECT 20 / + - ( - 17 ) col2
----
1

query I rowsort
SELECT 29 + - + 30 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT + 36 * - + MIN( - - 44 ) AS col0
----
-1584

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT + 36 * - + MIN ( - - 44 ) AS col0
----
-1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6147
SELECT ALL - ( + 51 ) * 52 + COALESCE ( - CAST( 71 AS SIGNED ), 8 ) AS col2
----
-2723

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL - ( + 51 ) * 52 + COALESCE ( - CAST ( 71 AS INTEGER ), 8 ) AS col2
----
-2723

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT - CASE - 61 WHEN + - 17 + - ( COUNT( * ) ) THEN NULL WHEN 85 THEN 12 * 94 ELSE NULL END * - 43 - + 61 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT - CASE - 61 WHEN + - 17 + - ( COUNT ( * ) ) THEN NULL WHEN 85 THEN 12 * 94 ELSE NULL END * - 43 - + 61 * 82
----
NULL

query I rowsort
SELECT 45 * + - 43 * + 17
----
-32895

query I rowsort
SELECT ALL 2 + + - 36 + - 45
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6151
SELECT 51 - CAST( + - 26 AS SIGNED ) col0
----
77

skipif mysql # not compatible
query I rowsort label-6151
SELECT 51 - CAST ( + - 26 AS INTEGER ) col0
----
77

query I rowsort
SELECT ALL - 96 + - ( - 73 )
----
-23

query I rowsort
SELECT - 94 + + 59 AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT COALESCE ( - + 50, 89 DIV - 59 )
----
-50

skipif mysql # not compatible
query I rowsort label-6154
SELECT COALESCE ( - + 50, 89 / - 59 )
----
-50

query I rowsort
SELECT - 77 * 20 * ( + 40 ) col1
----
-61600

query I rowsort
SELECT ALL 47 + + 12 AS col1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6157
SELECT ( + 79 ) AS col0, + NULLIF ( - 71, - 2 / 91 ) + - COUNT( - ( + 24 ) )
----
79
-72

skipif mysql # not compatible
query II rowsort label-6157
SELECT ( + 79 ) AS col0, + NULLIF ( - 71, - 2 / 91 ) + - COUNT ( - ( + 24 ) )
----
79
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT - MIN( ALL 98 ) col1
----
-98

skipif mysql # not compatible
query I rowsort label-6158
SELECT - MIN ( ALL 98 ) col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT NULLIF ( + 82, - CASE - 79 WHEN 79 THEN NULL WHEN + 26 THEN - 45 - 31 / + MAX( + 51 ) END ) + 32 col0
----
114

skipif mysql # not compatible
query I rowsort label-6159
SELECT NULLIF ( + 82, - CASE - 79 WHEN 79 THEN NULL WHEN + 26 THEN - 45 - 31 / + MAX ( + 51 ) END ) + 32 col0
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-6160
SELECT ALL - COUNT( DISTINCT 9 ), + NULLIF ( + 64, + 60 ) * 27 AS col0
----
-1
1728

skipif mysql # not compatible
query II rowsort label-6160
SELECT ALL - COUNT ( DISTINCT 9 ), + NULLIF ( + 64, + 60 ) * 27 AS col0
----
-1
1728

query I rowsort
SELECT + 57 + 67 * - + 73 AS col2
----
-4834

query I rowsort
SELECT ALL + 69 + + 24
----
93

query I rowsort
SELECT DISTINCT - 11 * - 59 - + - ( 77 ) * - 77 col0
----
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT 76 + - NULLIF ( COUNT( * ), - 42 )
----
75

skipif mysql # not compatible
query I rowsort label-6164
SELECT 76 + - NULLIF ( COUNT ( * ), - 42 )
----
75

query I rowsort
SELECT ALL + + 41 - - - 56 + - 89 + + - 89 AS col2
----
-193

query I rowsort
SELECT 6 * + + 41 AS col0
----
246

query I rowsort
SELECT DISTINCT - COALESCE ( - 80, - 19 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL MAX( ( + 93 ) ) - + 33 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL MAX ( ( + 93 ) ) - + 33 AS col2
----
60

query I rowsort
SELECT + 59 * - COALESCE ( - 49, ( + 40 ) )
----
2891

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6170
SELECT MAX( - 22 ) * - 4 DIV 20 DIV 82 + - 59 * ( 49 + + 9 )
----
-3422

skipif mysql # not compatible
query I rowsort label-6170
SELECT MAX ( - 22 ) * - 4 / 20 / 82 + - 59 * ( 49 + + 9 )
----
-3422

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT ALL - - COUNT( * ) * - 70 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL - - COUNT ( * ) * - 70 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6172
SELECT + 28 * + 11 + + - 99 * - CAST( NULL AS SIGNED ) / - 15 + + COUNT( * ) + + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT + 28 * + 11 + + - 99 * - CAST ( NULL AS INTEGER ) / - 15 + + COUNT ( * ) + + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6173
SELECT 97 AS col2, 83 * + - 64 + + NULLIF ( - 31, - COALESCE ( + ( - MAX( DISTINCT 56 ) ), 54 + 46, 29 * 55 ) * 24 ) AS col2
----
97
-5343

skipif mysql # not compatible
query II rowsort label-6173
SELECT 97 AS col2, 83 * + - 64 + + NULLIF ( - 31, - COALESCE ( + ( - MAX ( DISTINCT 56 ) ), 54 + 46, 29 * 55 ) * 24 ) AS col2
----
97
-5343

query I rowsort
SELECT ALL - ( - 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6175
SELECT ALL 93 * + COUNT( * ) * - - 25 AS col1, + 21 * + 94 * + 59 AS col0
----
2325
116466

skipif mysql # not compatible
query II rowsort label-6175
SELECT ALL 93 * + COUNT ( * ) * - - 25 AS col1, + 21 * + 94 * + 59 AS col0
----
2325
116466

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT ALL - CAST( 23 AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - CAST ( 23 AS INTEGER ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT DISTINCT - MAX( 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT - MAX ( 36 ) AS col0
----
-36

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

skipif mysql # not compatible
query I rowsort label-6178
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + - 80 + 54 * - 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6179
SELECT + 50, CAST( NULL AS SIGNED ) AS col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-6179
SELECT + 50, CAST ( NULL AS INTEGER ) AS col2
----
50
NULL

query I rowsort
SELECT COALESCE ( - 46, - + COALESCE ( 96, + + 41 ) * 88, - 80 ) * 3
----
-138

query I rowsort
SELECT 36 * + 65 AS col1
----
2340

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

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

query I rowsort
SELECT 16 + + 51 AS col2
----
67

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

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL + COUNT ( * ) + + 51 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL + 51 + - MAX( ALL + 36 ) + + 33 + ( 7 )
----
55

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL + 51 + - MAX ( ALL + 36 ) + + 33 + ( 7 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6186
SELECT - 27 col0, 91 DIV - COUNT( * ) - - 35 AS col1
----
-27
-56

skipif mysql # not compatible
query II rowsort label-6186
SELECT - 27 col0, 91 / - COUNT ( * ) - - 35 AS col1
----
-27
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT 25 * - - MIN( 59 ) * 72 AS col0
----
106200

skipif mysql # not compatible
query I rowsort label-6187
SELECT 25 * - - MIN ( 59 ) * 72 AS col0
----
106200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6188
SELECT 61 + COUNT( * ) DIV COALESCE ( + + 71, + 97 * 79 - - 67, 0 ) * + 73 + - 2 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6188
SELECT 61 + COUNT ( * ) / COALESCE ( + + 71, + 97 * 79 - - 67, 0 ) * + 73 + - 2 AS col0
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT SUM( + - 10 ) + - - 19
----
9

skipif mysql # not compatible
query I rowsort label-6190
SELECT SUM ( + - 10 ) + - - 19
----
9

query I rowsort
SELECT ALL + - 77 + 63 + 86 + + 71
----
143

query I rowsort
SELECT + NULLIF ( - + 77, AVG ( - COALESCE ( + + 65, 57 / 80 ) ) ) * 84 col1
----
-6468

query I rowsort
SELECT + 75 + + - 35 * + + 28 * 11 col2
----
-10705

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT + 14 * + COUNT( * ) - + - COALESCE ( - COUNT( - + NULLIF ( 97, 49 * - 95 ) ), - 30 ) * ( 84 )
----
-70

skipif mysql # not compatible
query I rowsort label-6194
SELECT + 14 * + COUNT ( * ) - + - COALESCE ( - COUNT ( - + NULLIF ( 97, 49 * - 95 ) ), - 30 ) * ( 84 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6195
SELECT - + COALESCE ( - 10, + CAST( NULL AS SIGNED ) * - + 45 * - + NULLIF ( + 99, SUM( 4 ) ) * 95 + 57 DIV - 52 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6195
SELECT - + COALESCE ( - 10, + CAST ( NULL AS INTEGER ) * - + 45 * - + NULLIF ( + 99, SUM ( 4 ) ) * 95 + 57 / - 52 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6196
SELECT - 88 AS col2, - COUNT( * ) + COUNT( * )
----
-88
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6197
SELECT ALL + + CAST( - NULLIF ( - COUNT( * ), - 11 + + 58 + 3 ) AS SIGNED ) + 73
----
74

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL + + CAST ( - NULLIF ( - COUNT ( * ), - 11 + + 58 + 3 ) AS INTEGER ) + 73
----
74

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

query I rowsort
SELECT ALL CASE WHEN NOT - 63 IS NULL THEN NULL ELSE - 71 END - - + 79 * - 12 AS col2
----
NULL

query I rowsort
SELECT ALL 94 - + + 21
----
73

query I rowsort
SELECT - + 27 * + - 70 AS col2
----
1890

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

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

query I rowsort
SELECT ALL - 57 - + - 26 + + 24
----
-7

query I rowsort
SELECT + + 77 - - 60 + - + 18
----
119

query I rowsort
SELECT + - 72 * 74
----
-5328

query I rowsort
SELECT + 53 * + 10 col1
----
530

query I rowsort
SELECT DISTINCT + 55 * - - 76
----
4180

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

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

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

skipif mysql # not compatible
query I rowsort label-6209
SELECT + 4 / - 56
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6210
SELECT 18 DIV - COALESCE ( - + 83, + 73 * 92 * COUNT( 35 ) + + 84, + 49 ) + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6210
SELECT 18 / - COALESCE ( - + 83, + 73 * 92 * COUNT ( 35 ) + + 84, + 49 ) + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6211
SELECT DISTINCT + 62, CAST( + 45 AS SIGNED ) * - 44 * 9 AS col2
----
62
-17820

skipif mysql # not compatible
query II rowsort label-6211
SELECT DISTINCT + 62, CAST ( + 45 AS INTEGER ) * - 44 * 9 AS col2
----
62
-17820

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + CASE - - 26 WHEN + 89 THEN - - 1 * + COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT + CASE - - 26 WHEN + 89 THEN - - 1 * + COUNT ( * ) END col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6214
SELECT + CASE - - 13 WHEN + CAST( - 69 AS SIGNED ) THEN + + CASE - + 27 WHEN 87 THEN NULL ELSE + COUNT( * ) END WHEN + ( + 94 ) * - 61 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT + CASE - - 13 WHEN + CAST ( - 69 AS INTEGER ) THEN + + CASE - + 27 WHEN 87 THEN NULL ELSE + COUNT ( * ) END WHEN + ( + 94 ) * - 61 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6215
SELECT + 6 AS col2, - 41 DIV + 75
----
6
0

skipif mysql # not compatible
query II rowsort label-6215
SELECT + 6 AS col2, - 41 / + 75
----
6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL - 75 * - COUNT( * ) + 84 - 21 + + - 55 - + 65 + - 62 * 60 * 29
----
-107862

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - 75 * - COUNT ( * ) + 84 - 21 + + - 55 - + 65 + - 62 * 60 * 29
----
-107862

query I rowsort
SELECT ALL - 97 * + + 0 + + - 32
----
-32

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

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

query II rowsort
SELECT ALL + 9 AS col2, NULLIF ( + 7, + 72 ) AS col1
----
9
7

query I rowsort
SELECT ALL 26 * + 31 * - 10 * 56 * + ( - 42 ) + + 62
----
18957182

query I rowsort
SELECT + 79 * + 54
----
4266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6222
SELECT - CASE - 14 WHEN + 98 THEN - 30 + + 5 WHEN + 64 + + COUNT( * ) THEN + ( - COUNT( * ) ) - - 58 / COUNT( ALL - 14 - 23 ) WHEN COUNT( * ) * - 90 + + 88 THEN NULL ELSE NULL END * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT - CASE - 14 WHEN + 98 THEN - 30 + + 5 WHEN + 64 + + COUNT ( * ) THEN + ( - COUNT ( * ) ) - - 58 / COUNT ( ALL - 14 - 23 ) WHEN COUNT ( * ) * - 90 + + 88 THEN NULL ELSE NULL END * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6223
SELECT ALL + 82 * 3 + 25 + - CAST( NULL AS SIGNED ) + 18 * + 23 + - 69 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL + 82 * 3 + 25 + - CAST ( NULL AS INTEGER ) + 18 * + 23 + - 69 col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-6224
SELECT COUNT ( * ), 25 AS col2
----
1
25

query I rowsort
SELECT + 72 - 18 AS col0
----
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT + + COUNT( * ) * - 23 - + 13 + 90 * - + CASE 14 WHEN 50 + - AVG ( ALL 12 ) THEN - MIN( + CASE - 93 WHEN + 13 THEN - 27 END ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT + + COUNT ( * ) * - 23 - + 13 + 90 * - + CASE 14 WHEN 50 + - AVG ( ALL 12 ) THEN - MIN ( + CASE - 93 WHEN + 13 THEN - 27 END ) END AS col2
----
NULL

query I rowsort
SELECT - 68 * - 18 AS col2
----
1224

query II rowsort
SELECT ALL 32 AS col1, 32 * + - 95 + + - 9 * 24 + - 54 col0
----
32
-3310

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL + COUNT( * ) - - COALESCE ( 93, ( - + 99 ) * - 46 + 1, ( 11 ) - COUNT( ALL + 56 + 15 / + 70 ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL + COUNT ( * ) - - COALESCE ( 93, ( - + 99 ) * - 46 + 1, ( 11 ) - COUNT ( ALL + 56 + 15 / + 70 ) ) AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6231
SELECT ALL - 56, CAST( NULL AS SIGNED ) + - - 11 AS col2
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-6231
SELECT ALL - 56, CAST ( NULL AS INTEGER ) + - - 11 AS col2
----
-56
NULL

query I rowsort
SELECT - + 42 - + - 87 + + + ( 56 ) AS col1
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6233
SELECT - + 98 + + 56 DIV + - 97 * - COUNT( * ) * - 59 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6233
SELECT - + 98 + + 56 / + - 97 * - COUNT ( * ) * - 59 AS col2
----
-98

query II rowsort
SELECT 81 AS col2, - 36
----
81
-36

query I rowsort
SELECT - 14 * + - 89 AS col0
----
1246

query I rowsort
SELECT DISTINCT + 70 * + 47 AS col0
----
3290

onlyif mysql # aggregate syntax: 
query II rowsort label-6237
SELECT 24 AS col0, NULLIF ( - 59, + CASE - 9 WHEN - 18 THEN + COUNT( * ) * + 83 END ) AS col0
----
24
-59

skipif mysql # not compatible
query II rowsort label-6237
SELECT 24 AS col0, NULLIF ( - 59, + CASE - 9 WHEN - 18 THEN + COUNT ( * ) * + 83 END ) AS col0
----
24
-59

query II rowsort
SELECT ALL 73 col1, 56 AS col2
----
73
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6239
SELECT ALL 90 AS col2, ( - CASE 37 WHEN 34 * - - 65 + COUNT( * ) THEN NULL WHEN 82 THEN - 45 WHEN 35 * 65 + - 74 * - 32 THEN NULL ELSE NULL END )
----
90
NULL

skipif mysql # not compatible
query II rowsort label-6239
SELECT ALL 90 AS col2, ( - CASE 37 WHEN 34 * - - 65 + COUNT ( * ) THEN NULL WHEN 82 THEN - 45 WHEN 35 * 65 + - 74 * - 32 THEN NULL ELSE NULL END )
----
90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT - 41 + - MIN( - 41 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6240
SELECT - 41 + - MIN ( - 41 ) AS col1
----
0

query I rowsort
SELECT ALL + 26 * - + 35 + + + 67
----
-843

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT - MIN( DISTINCT + ( + - 85 ) ) + + 76 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-6242
SELECT - MIN ( DISTINCT + ( + - 85 ) ) + + 76 AS col1
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-6243
SELECT ALL + COUNT( * ) AS col2, 34 + - 37 AS col0
----
1
-3

skipif mysql # not compatible
query II rowsort label-6243
SELECT ALL + COUNT ( * ) AS col2, 34 + - 37 AS col0
----
1
-3

query II rowsort
SELECT DISTINCT - 64 AS col1, 95
----
-64
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT + 81 + + 31 * + + COUNT( * ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-6245
SELECT + 81 + + 31 * + + COUNT ( * ) AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6246
SELECT - CAST( + - 57 AS SIGNED ) * 88 col1
----
5016

skipif mysql # not compatible
query I rowsort label-6246
SELECT - CAST ( + - 57 AS INTEGER ) * 88 col1
----
5016

onlyif mysql # aggregate syntax: 
query II rowsort label-6247
SELECT + ( 86 ), - CASE - + 16 WHEN 54 * + 63 - + 42 THEN - COUNT( * ) ELSE NULL END AS col0
----
86
NULL

skipif mysql # not compatible
query II rowsort label-6247
SELECT + ( 86 ), - CASE - + 16 WHEN 54 * + 63 - + 42 THEN - COUNT ( * ) ELSE NULL END AS col0
----
86
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6248
SELECT + COUNT( * ) + CAST( + - 89 AS SIGNED ) * - 22
----
1959

skipif mysql # not compatible
query I rowsort label-6248
SELECT + COUNT ( * ) + CAST ( + - 89 AS INTEGER ) * - 22
----
1959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6249
SELECT CAST( 57 AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6249
SELECT CAST ( 57 AS INTEGER ) AS col2
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT + 97 * - 97 * 48 * - COUNT( * ) col1
----
451632

skipif mysql # not compatible
query I rowsort label-6251
SELECT + 97 * - 97 * 48 * - COUNT ( * ) col1
----
451632

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6252
SELECT CAST( + CAST( - + 23 AS SIGNED ) AS SIGNED ) col0, 56 AS col2
----
-23
56

skipif mysql # not compatible
query II rowsort label-6252
SELECT CAST ( + CAST ( - + 23 AS INTEGER ) AS INTEGER ) col0, 56 AS col2
----
-23
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT DISTINCT + 71 DIV 3 + ( 82 ) col0
----
105

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT + 71 / 3 + ( 82 ) col0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT + 67 * - CAST( + 67 AS SIGNED ) AS col2
----
-4489

skipif mysql # not compatible
query I rowsort label-6254
SELECT + 67 * - CAST ( + 67 AS INTEGER ) AS col2
----
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT + NULLIF ( 85, + 73 * + COUNT( * ) / + 19 * - CASE - 4 WHEN - 41 THEN 7 END ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6255
SELECT + NULLIF ( 85, + 73 * + COUNT ( * ) / + 19 * - CASE - 4 WHEN - 41 THEN 7 END ) AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6256
SELECT NULLIF ( 14, CAST( - COUNT( 12 ) AS SIGNED ) ) * + - 92 + - - 28 - - ( ( 72 ) - - CAST( NULL AS SIGNED ) * - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6256
SELECT NULLIF ( 14, CAST ( - COUNT ( 12 ) AS INTEGER ) ) * + - 92 + - - 28 - - ( ( 72 ) - - CAST ( NULL AS INTEGER ) * - 1 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6257
SELECT ALL + 38 DIV - 48 * 21 + + 61 + - 6 * COUNT( * ) + + 22 DIV 94
----
55

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL + 38 / - 48 * 21 + + 61 + - 6 * COUNT ( * ) + + 22 / 94
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6258
SELECT ( + + 58 ) AS col1, + COUNT( * ) * + + CAST( + 72 AS SIGNED ) * - - 66
----
58
4752

skipif mysql # not compatible
query II rowsort label-6258
SELECT ( + + 58 ) AS col1, + COUNT ( * ) * + + CAST ( + 72 AS INTEGER ) * - - 66
----
58
4752

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

skipif mysql # not compatible
query I rowsort label-6259
SELECT + COUNT ( * ) * - - 20 + - + 55 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT + COUNT( - - 51 ) + - 45 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-6260
SELECT + COUNT ( - - 51 ) + - 45 AS col0
----
-44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT ALL 43 DIV - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL 43 / - 75 AS col0
----
0

query I rowsort
SELECT ALL - 66 * + 77 - ( - 49 ) + + + 71 AS col0
----
-4962

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6264
SELECT ALL - - 10 - - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL - - 10 - - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT ALL - 82 * - ( COUNT( * ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL - 82 * - ( COUNT ( * ) ) AS col1
----
82

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6268
SELECT - COALESCE ( + 29, - + 67 * + 95 - + COUNT( * ) DIV 85 + + 76 * NULLIF ( 83, 58 * + 58 ) ) + 55
----
26

skipif mysql # not compatible
query I rowsort label-6268
SELECT - COALESCE ( + 29, - + 67 * + 95 - + COUNT ( * ) / 85 + + 76 * NULLIF ( 83, 58 * + 58 ) ) + 55
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL - 32 * + + COUNT( * ) * + 48
----
-1536

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL - 32 * + + COUNT ( * ) * + 48
----
-1536

onlyif mysql # aggregate syntax: 
query II rowsort label-6270
SELECT - 59 + - 53 col2, - COUNT( * ) * + + 63 AS col0
----
-112
-63

skipif mysql # not compatible
query II rowsort label-6270
SELECT - 59 + - 53 col2, - COUNT ( * ) * + + 63 AS col0
----
-112
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT - COALESCE ( - + 83, + 69 ) * + + MAX( ALL - 75 ) * - - 91 * + 79 AS col2
----
-44751525

skipif mysql # not compatible
query I rowsort label-6271
SELECT - COALESCE ( - + 83, + 69 ) * + + MAX ( ALL - 75 ) * - - 91 * + 79 AS col2
----
-44751525

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6272
SELECT + 35 DIV 69 AS col1, + COALESCE ( + 93, + - 60 * + + 25 + - 90 * - ( + 63 - - 61 ) ) + + 50 * - COUNT( * ) AS col0
----
0
43

skipif mysql # not compatible
query II rowsort label-6272
SELECT + 35 / 69 AS col1, + COALESCE ( + 93, + - 60 * + + 25 + - 90 * - ( + 63 - - 61 ) ) + + 50 * - COUNT ( * ) AS col0
----
0
43

query I rowsort
SELECT DISTINCT COALESCE ( + - 63, 75 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT DISTINCT MAX( ( - 87 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT MAX ( ( - 87 ) )
----
-87

query II rowsort
SELECT ALL 82 AS col0, 99 * - - 43
----
82
4257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6276
SELECT DISTINCT - 9 * + - 60 * NULLIF ( - CAST( 73 AS SIGNED ), + CAST( 5 AS SIGNED ) / 95 + + ( 3 + 73 ) )
----
-39420

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT - 9 * + - 60 * NULLIF ( - CAST ( 73 AS INTEGER ), + CAST ( 5 AS INTEGER ) / 95 + + ( 3 + 73 ) )
----
-39420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6277
SELECT 4 DIV - COALESCE ( + 90, - + 59 ) * + MAX( - - ( 23 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6277
SELECT 4 / - COALESCE ( + 90, - + 59 ) * + MAX ( - - ( 23 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6278
SELECT 39 * + 72 / - MIN( - 59 ) * COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6278
SELECT 39 * + 72 / - MIN ( - 59 ) * COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 64 * + - 48 AS col0
----
-3072

query I rowsort
SELECT 26 * 65 * + 29 * - CASE - 26 WHEN + 38 THEN - - 70 / AVG ( ALL 9 ) END * - 37 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6281
SELECT COUNT( * ) * 0 * + 55 - CASE - COUNT( * ) WHEN - 53 / + - 44 + - 20 + - 69 / ( + NULLIF ( 3, MIN( - CAST( 60 AS SIGNED ) ) + 96 ) ) THEN NULL WHEN + 95 THEN - 21 END * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6281
SELECT COUNT ( * ) * 0 * + 55 - CASE - COUNT ( * ) WHEN - 53 / + - 44 + - 20 + - 69 / ( + NULLIF ( 3, MIN ( - CAST ( 60 AS INTEGER ) ) + 96 ) ) THEN NULL WHEN + 95 THEN - 21 END * + 99
----
NULL

query II rowsort
SELECT ALL - 0, - 22 - 13 AS col1
----
0
-35

query I rowsort
SELECT ALL 86 + - 54 AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6284
SELECT + 4, + COUNT( * ) + + 82 AS col0
----
4
83

skipif mysql # not compatible
query II rowsort label-6284
SELECT + 4, + COUNT ( * ) + + 82 AS col0
----
4
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6285
SELECT DISTINCT + CASE COUNT( DISTINCT 45 ) WHEN - + CAST( NULL AS SIGNED ) + + ( + + 3 ) + - NULLIF ( 71, + 93 * 5 ) + - 88 / 30 / + 43 THEN NULL WHEN - ( 19 ) THEN + 93 + 29 * - 39 END + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + CASE COUNT ( DISTINCT 45 ) WHEN - + CAST ( NULL AS INTEGER ) + + ( + + 3 ) + - NULLIF ( 71, + 93 * 5 ) + - 88 / 30 / + 43 THEN NULL WHEN - ( 19 ) THEN + 93 + 29 * - 39 END + 83
----
NULL

query I rowsort
SELECT DISTINCT - 19 + + 96 + + 46 * 72
----
3389

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT COUNT( ALL + 85 ) + + 49 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6287
SELECT COUNT ( ALL + 85 ) + + 49 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT 38 * - 48 - 55 - + MIN( DISTINCT + 61 ) AS col2
----
-1940

skipif mysql # not compatible
query I rowsort label-6288
SELECT 38 * - 48 - 55 - + MIN ( DISTINCT + 61 ) AS col2
----
-1940

query II rowsort
SELECT ALL - 99 AS col0, - 57 * 48 AS col2
----
-99
-2736

query II rowsort
SELECT + 15, 8 AS col0
----
15
8

query I rowsort
SELECT DISTINCT 2 - - 65
----
67

query I rowsort
SELECT 54 + + 79 col2
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6293
SELECT ALL - 2 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL - 2 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 84 * 95 col2
----
-7980

onlyif mysql # aggregate syntax: 
query II rowsort label-6295
SELECT ALL - 48 col1, + 67 * 88 * + CASE 37 WHEN - - COUNT( * ) THEN NULL ELSE + 89 - + 61 END + 32
----
-48
165120

skipif mysql # not compatible
query II rowsort label-6295
SELECT ALL - 48 col1, + 67 * 88 * + CASE 37 WHEN - - COUNT ( * ) THEN NULL ELSE + 89 - + 61 END + 32
----
-48
165120

query I rowsort
SELECT DISTINCT - ( - + 61 ) AS col1
----
61

query I rowsort
SELECT DISTINCT - - 86 col0
----
86

query I rowsort
SELECT - 60 + - 94 + + 93 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT + 83 - - CASE - 38 WHEN + 91 THEN + AVG ( ALL 68 ) * - COUNT( * ) * + SUM( 2 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT + 83 - - CASE - 38 WHEN + 91 THEN + AVG ( ALL 68 ) * - COUNT ( * ) * + SUM ( 2 ) ELSE NULL END
----
NULL

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

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

query II rowsort
SELECT - 40, 94 AS col2
----
-40
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT - ( 68 ) * + COUNT( * ) - + + 93 col1
----
-161

skipif mysql # not compatible
query I rowsort label-6302
SELECT - ( 68 ) * + COUNT ( * ) - + + 93 col1
----
-161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT ALL CAST( COALESCE ( + 18, 78 * 35, - 2 + + - 37 / + 98 ) AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL CAST ( COALESCE ( + 18, 78 * 35, - 2 + + - 37 / + 98 ) AS INTEGER )
----
18

query I rowsort
SELECT + 10 + - - 21 AS col2
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT CASE 95 WHEN 55 THEN NULL WHEN + 58 * - 97 THEN 53 ELSE NULL END * 65 * - - MAX( - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT CASE 95 WHEN 55 THEN NULL WHEN + 58 * - 97 THEN 53 ELSE NULL END * 65 * - - MAX ( - 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT ALL + COUNT( * ) + 91 col2
----
92

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL + COUNT ( * ) + 91 col2
----
92

query I rowsort
SELECT DISTINCT - 87 + - 12
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL + 29 + - - COUNT( * ) + - COALESCE ( + 24, + ( - + 54 ) ) * + 26
----
-594

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL + 29 + - - COUNT ( * ) + - COALESCE ( + 24, + ( - + 54 ) ) * + 26
----
-594

query I rowsort
SELECT 75 - - 81
----
156

query I rowsort
SELECT - 60 - 11 - + + 31 + 53 * 79
----
4085

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT DISTINCT - COUNT( * ) + - - ( + - 83 ) * ( + 71 ) * - 49
----
288756

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT - COUNT ( * ) + - - ( + - 83 ) * ( + 71 ) * - 49
----
288756

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT COUNT( * ) + - + 50 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6313
SELECT COUNT ( * ) + - + 50 AS col2
----
-49

query I rowsort
SELECT ALL 28 * 38 * - + 53
----
-56392

onlyif mysql # DIV for integer division: 
query I rowsort label-6315
SELECT DISTINCT - 78 DIV - ( - 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT - 78 / - ( - 53 )
----
-1

query II rowsort
SELECT 45 * - 39 AS col0, - 48
----
-1755
-48

query I rowsort
SELECT ALL - 60 * 86
----
-5160

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT DISTINCT + 87 - + 22 + COUNT( * ) + + + 54 * + 92 - COUNT( * ) * - 45 + 71 * 23 * + COALESCE ( - ( 11 ), + 85 ) AS col0
----
-12884

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT + 87 - + 22 + COUNT ( * ) + + + 54 * + 92 - COUNT ( * ) * - 45 + 71 * 23 * + COALESCE ( - ( 11 ), + 85 ) AS col0
----
-12884

query I rowsort
SELECT ALL + 61 * - 59 AS col2
----
-3599

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT NULLIF ( - - 21, - 89 + + MIN( DISTINCT - + 13 ) )
----
21

skipif mysql # not compatible
query I rowsort label-6320
SELECT NULLIF ( - - 21, - 89 + + MIN ( DISTINCT - + 13 ) )
----
21

query I rowsort
SELECT 61 * + + 18 + - 85
----
1013

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

skipif mysql # not compatible
query I rowsort label-6322
SELECT 54 / - 69 / - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL + 70 * + - ( - 18 )
----
1260

query I rowsort
SELECT ALL - 98 * 75 AS col0
----
-7350

query I rowsort
SELECT ALL + COALESCE ( + - 99, 51 + 46 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT DISTINCT + SUM( - + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT + SUM ( - + 78 )
----
-78

query I rowsort
SELECT ALL + - 75 col2
----
-75

query I rowsort
SELECT - COALESCE ( + 88, + + 88 ) * + 77 * + 19 AS col2
----
-128744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6329
SELECT + 47 * + + 22 + CAST( + + 78 AS SIGNED ) AS col2
----
1112

skipif mysql # not compatible
query I rowsort label-6329
SELECT + 47 * + + 22 + CAST ( + + 78 AS INTEGER ) AS col2
----
1112

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

skipif mysql # not compatible
query II rowsort label-6330
SELECT DISTINCT + - MAX ( + + 56 ) AS col2, 56
----
-56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT ALL + + CASE + COUNT( * ) WHEN 77 / - 74 - COUNT( * ) THEN + + 60 ELSE + 2 END AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + + CASE + COUNT ( * ) WHEN 77 / - 74 - COUNT ( * ) THEN + + 60 ELSE + 2 END AS col0
----
2

query I rowsort
SELECT - + 68 + + ( - 5 )
----
-73

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6335
SELECT - - ( COUNT( * ) ) + + ( 73 ) + + COUNT( * ) col2, + 41
----
75
41

skipif mysql # not compatible
query II rowsort label-6335
SELECT - - ( COUNT ( * ) ) + + ( 73 ) + + COUNT ( * ) col2, + 41
----
75
41

query I rowsort
SELECT DISTINCT NULLIF ( + 63, + - ( + 94 ) + - + 17 + - 84 ) * + NULLIF ( - 68, + 51 ) + + ( 47 ) + 57
----
-4180

onlyif mysql # DIV for integer division: 
query I rowsort label-6337
SELECT + 8 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-6337
SELECT + 8 / 72
----
0

query I rowsort
SELECT ALL + 38 + 1 * 78
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6339
SELECT DISTINCT + NULLIF ( + 58, + 15 ) + + 41 DIV COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT + NULLIF ( + 58, + 15 ) + + 41 / COUNT ( * )
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-6340
SELECT - 74 DIV + 45, - ( 50 ) + 97 AS col2
----
-1
47

skipif mysql # not compatible
query II rowsort label-6340
SELECT - 74 / + 45, - ( 50 ) + 97 AS col2
----
-1
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT + + SUM( + 38 ) + + CASE - - 29 WHEN + 11 THEN NULL ELSE - COUNT( * ) END AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6341
SELECT + + SUM ( + 38 ) + + CASE - - 29 WHEN + 11 THEN NULL ELSE - COUNT ( * ) END AS col1
----
37

query I rowsort
SELECT DISTINCT ( 73 ) + + - 44 AS col0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6343
SELECT ALL - 98 + - 90 DIV - 58 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL - 98 + - 90 / - 58 AS col0
----
-97

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

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

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

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

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

query I rowsort
SELECT - NULLIF ( 5, + + 7 ) AS col0
----
-5

query I rowsort
SELECT DISTINCT 27 * + - 33
----
-891

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

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

query I rowsort
SELECT + 62 - - 62 - - 27 * 83
----
2365

query I rowsort
SELECT + 68 * - 33
----
-2244

query II rowsort
SELECT DISTINCT 98 AS col0, + 13
----
98
13

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

skipif mysql # not compatible
query I rowsort label-6353
SELECT + COUNT ( * ) + + ( - 41 ) AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6354
SELECT - NULLIF ( + COUNT( + + CAST( NULL AS SIGNED ) ), - 54 )
----
0

skipif mysql # not compatible
query I rowsort label-6354
SELECT - NULLIF ( + COUNT ( + + CAST ( NULL AS INTEGER ) ), - 54 )
----
0

query I rowsort
SELECT + 32 * 43 AS col0
----
1376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6356
SELECT - NULLIF ( - + NULLIF ( + + 10, NULLIF ( + + 52, - CAST( NULL AS SIGNED ) ) ), - + 18 / - - 60 + + - ( - - ( ( COUNT( * ) ) ) ) + - 14 ) * - 21
----
-210

skipif mysql # not compatible
query I rowsort label-6356
SELECT - NULLIF ( - + NULLIF ( + + 10, NULLIF ( + + 52, - CAST ( NULL AS INTEGER ) ) ), - + 18 / - - 60 + + - ( - - ( ( COUNT ( * ) ) ) ) + - 14 ) * - 21
----
-210

query I rowsort
SELECT DISTINCT + 30 * - 79 * - 6 * + + 47
----
668340

query II rowsort
SELECT + 23 AS col1, 8 AS col2
----
23
8

query I rowsort
SELECT + 34 * - 30 + - 28 AS col1
----
-1048

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6360
SELECT ALL 60 DIV 36 * 94 * 1 * COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL 60 / 36 * 94 * 1 * COUNT ( * ) AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6361
SELECT + CASE + CAST( + - ( CAST( + ( - 34 ) AS SIGNED ) ) AS SIGNED ) WHEN NULLIF ( 80, + + 23 + ( 19 ) + 61 * COUNT( * ) ) + 9 THEN NULL ELSE - COUNT( * ) END * ( 0 * ( 16 ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6361
SELECT + CASE + CAST ( + - ( CAST ( + ( - 34 ) AS INTEGER ) ) AS INTEGER ) WHEN NULLIF ( 80, + + 23 + ( 19 ) + 61 * COUNT ( * ) ) + 9 THEN NULL ELSE - COUNT ( * ) END * ( 0 * ( 16 ) ) col0
----
0

query I rowsort
SELECT + 45 * - 17 - - - 23 - + 14 * - - 31 * - 98 * + 10 + + 77 + 27 - + - 44 + + NULLIF ( 36, 84 + + NULLIF ( 26 + + 12, + 39 ) ) * - 59 * 90
----
233520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6363
SELECT ALL + 60 * + 20 + - CAST( - + 40 AS SIGNED ) * COUNT( * ) AS col1, + 42 * 9 DIV - 49
----
1240
-7

skipif mysql # not compatible
query II rowsort label-6363
SELECT ALL + 60 * + 20 + - CAST ( - + 40 AS INTEGER ) * COUNT ( * ) AS col1, + 42 * 9 / - 49
----
1240
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT ALL + ( COUNT( * ) ) * + + 37 + + + NULLIF ( - 43, 10 / 97 + + 20 )
----
-6

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL + ( COUNT ( * ) ) * + + 37 + + + NULLIF ( - 43, 10 / 97 + + 20 )
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT - + 34 DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6365
SELECT - + 34 / 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6366
SELECT - + MIN( DISTINCT 34 ) + 5 * + ( + 50 ) AS col0, 11 AS col1
----
216
11

skipif mysql # not compatible
query II rowsort label-6366
SELECT - + MIN ( DISTINCT 34 ) + 5 * + ( + 50 ) AS col0, 11 AS col1
----
216
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL 19 * COUNT( * ) * + 15 + + 5
----
290

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL 19 * COUNT ( * ) * + 15 + + 5
----
290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6368
SELECT DISTINCT - 2 * + 73 / + 9 + COALESCE ( 82, + MIN( + - 96 ) ) + + + 7 + 63 - - 6 / - CASE 47 WHEN COUNT( - 44 ) THEN - 49 - CAST( NULL AS SIGNED ) ELSE NULL END * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT - 2 * + 73 / + 9 + COALESCE ( 82, + MIN ( + - 96 ) ) + + + 7 + 63 - - 6 / - CASE 47 WHEN COUNT ( - 44 ) THEN - 49 - CAST ( NULL AS INTEGER ) ELSE NULL END * - 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6369
SELECT - - MAX( ALL - 9 ) + + - CASE SUM( - 69 ) WHEN COUNT( + - CAST( - 73 AS SIGNED ) ) THEN ( + + 3 ) * 76 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6369
SELECT - - MAX ( ALL - 9 ) + + - CASE SUM ( - 69 ) WHEN COUNT ( + - CAST ( - 73 AS INTEGER ) ) THEN ( + + 3 ) * 76 END AS col2
----
NULL

query II rowsort
SELECT - + 82 * - 73 * - 51, - 82 * + - 12 AS col1
----
-305286
984

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

query I rowsort
SELECT - + 12 + + 23
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6373
SELECT + ( + CASE + 68 WHEN + 38 THEN NULL ELSE 11 * - CAST( ( CASE + 31 WHEN - 1 * + 36 - 82 / 18 THEN 0 * 79 WHEN - 32 - + 33 * NULLIF ( CASE CASE - 46 WHEN 26 THEN - 48 * + 88 WHEN + 0 + 9 THEN 9 END WHEN - 24 THEN 87 ELSE SUM( + 11 ) END, 70 * + MAX( DISTINCT + ( 23 ) ) ) THEN NULL WHEN + COUNT( * ) + 70 THEN + 21 ELSE NULL END ) AS DECIMAL ) / - CASE 6 WHEN - COUNT( * ) + 67 * - NULLIF ( + 42, - 27 ) THEN - COUNT( + 50 ) * + 35 END + - 13 END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT + ( + CASE + 68 WHEN + 38 THEN NULL ELSE 11 * - CAST ( ( CASE + 31 WHEN - 1 * + 36 - 82 / 18 THEN 0 * 79 WHEN - 32 - + 33 * NULLIF ( CASE CASE - 46 WHEN 26 THEN - 48 * + 88 WHEN + 0 + 9 THEN 9 END WHEN - 24 THEN 87 ELSE SUM ( + 11 ) END, 70 * + MAX ( DISTINCT + ( 23 ) ) ) THEN NULL WHEN + COUNT ( * ) + 70 THEN + 21 ELSE NULL END ) AS REAL ) / - CASE 6 WHEN - COUNT ( * ) + 67 * - NULLIF ( + 42, - 27 ) THEN - COUNT ( + 50 ) * + 35 END + - 13 END ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT ALL - 30 * CASE + + COUNT( * ) WHEN + + 26 + - 53 THEN - COUNT( * ) + 4 - - 51 WHEN 52 THEN NULL WHEN - 38 - 78 THEN NULL END + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL - 30 * CASE + + COUNT ( * ) WHEN + + 26 + - 53 THEN - COUNT ( * ) + 4 - - 51 WHEN 52 THEN NULL WHEN - 38 - 78 THEN NULL END + 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6375
SELECT - CAST( + 18 AS DECIMAL ) - - 75 - + CASE + - COUNT( * ) WHEN + 36 * + + ( 43 ) THEN - 83 END + + - NULLIF ( 18, + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) + 52 * ( + 43 - + 55 / - COUNT( * ) ) * 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT - CAST ( + 18 AS REAL ) - - 75 - + CASE + - COUNT ( * ) WHEN + 36 * + + ( 43 ) THEN - 83 END + + - NULLIF ( 18, + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) + 52 * ( + 43 - + 55 / - COUNT ( * ) ) * 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6376
SELECT COUNT( * ) * + 6 DIV 13 * 4 + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6376
SELECT COUNT ( * ) * + 6 / 13 * 4 + - - COUNT ( * )
----
1

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

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

query I rowsort
SELECT - ( - 95 ) + - 47 * - 74
----
3573

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6379
SELECT ALL - + 5 * - - COUNT( * ) DIV 57 - - 27
----
27

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL - + 5 * - - COUNT ( * ) / 57 - - 27
----
27

query I rowsort
SELECT ALL 57 * - - 83 - + 79 - 16 * + 74 * - 88 + CASE 61 WHEN + + 42 THEN + 69 ELSE NULL END + - - 20 / + 87 * + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT - 63 + 57 + + + COUNT( * ) + 65 + - 37 * + - 23 + 13 col2
----
924

skipif mysql # not compatible
query I rowsort label-6381
SELECT - 63 + 57 + + + COUNT ( * ) + 65 + - 37 * + - 23 + 13 col2
----
924

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT - 80 * + NULLIF ( 45, 27 * 0 ) DIV - 3 + 73 + 59 + + - 82
----
1250

skipif mysql # not compatible
query I rowsort label-6382
SELECT - 80 * + NULLIF ( 45, 27 * 0 ) / - 3 + 73 + 59 + + - 82
----
1250

query I rowsort
SELECT - 39 + - + 62 * - 36
----
2193

query II rowsort
SELECT - ( + 70 ) AS col1, 51 AS col2
----
-70
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6385
SELECT + CAST( NULL AS DECIMAL ) + + + COUNT( * ) + - - 54 - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT + CAST ( NULL AS REAL ) + + + COUNT ( * ) + - - 54 - - 56
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT - 33 + MAX( ALL + - 69 ) AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-6387
SELECT - 33 + MAX ( ALL + - 69 ) AS col2
----
-102

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

skipif mysql # not compatible
query I rowsort label-6388
SELECT + 38 / - + 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6389
SELECT - CAST( - ( ( - 23 ) ) AS SIGNED ) AS col2, 85 AS col1
----
-23
85

skipif mysql # not compatible
query II rowsort label-6389
SELECT - CAST ( - ( ( - 23 ) ) AS INTEGER ) AS col2, 85 AS col1
----
-23
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT + COUNT( * ) + - + SUM( DISTINCT NULLIF ( + 34, + 31 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-6390
SELECT + COUNT ( * ) + - + SUM ( DISTINCT NULLIF ( + 34, + 31 ) ) AS col0
----
-33

query I rowsort
SELECT ALL 79 * 79 AS col2
----
6241

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6394
SELECT CAST( NULL AS SIGNED ) * CASE - CASE + - 32 WHEN 3 THEN + NULLIF ( + 60, - 61 ) * 22 + NULLIF ( + COUNT( * ), 60 + + COUNT( * ) ) ELSE 95 END WHEN 62 - + 32 THEN 21 END * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6394
SELECT CAST ( NULL AS INTEGER ) * CASE - CASE + - 32 WHEN 3 THEN + NULLIF ( + 60, - 61 ) * 22 + NULLIF ( + COUNT ( * ), 60 + + COUNT ( * ) ) ELSE 95 END WHEN 62 - + 32 THEN 21 END * - COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6395
SELECT DISTINCT - 53 AS col1, CAST( - + 54 AS SIGNED ) + - 80 * - 42
----
-53
3306

skipif mysql # not compatible
query II rowsort label-6395
SELECT DISTINCT - 53 AS col1, CAST ( - + 54 AS INTEGER ) + - 80 * - 42
----
-53
3306

query I rowsort
SELECT DISTINCT - 5 + - 80 + 68
----
-17

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6398
SELECT ALL + 72 + + 30 + + + 71 * - + CAST( NULL AS DECIMAL ) * + ( + 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL + 72 + + 30 + + + 71 * - + CAST ( NULL AS REAL ) * + ( + 72 ) AS col2
----
NULL

query I rowsort
SELECT ALL 37 + - 42
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL - + 84 + - COALESCE ( - MIN( ALL + 63 ), + 78 ) + + 22 + - + 23 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL - + 84 + - COALESCE ( - MIN ( ALL + 63 ), + 78 ) + + 22 + - + 23 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT COUNT( DISTINCT + - 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6401
SELECT COUNT ( DISTINCT + - 79 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6402
SELECT + 29 DIV + 64 * - SUM( DISTINCT - 96 ) * + 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6402
SELECT + 29 / + 64 * - SUM ( DISTINCT - 96 ) * + 33 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT + - CASE - - 41 WHEN + 45 + - 11 THEN ( - COALESCE ( - - MIN( DISTINCT + 22 ), 86 + + 25 - - MIN( ALL + 75 ) * + SUM( DISTINCT + 82 - - 28 / - 61 ) ) ) + + 50 / CASE - 26 WHEN COUNT( * ) THEN NULL WHEN - 57 + 49 THEN NULL ELSE + 52 * - 80 END ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT + - CASE - - 41 WHEN + 45 + - 11 THEN ( - COALESCE ( - - MIN ( DISTINCT + 22 ), 86 + + 25 - - MIN ( ALL + 75 ) * + SUM ( DISTINCT + 82 - - 28 / - 61 ) ) ) + + 50 / CASE - 26 WHEN COUNT ( * ) THEN NULL WHEN - 57 + 49 THEN NULL ELSE + 52 * - 80 END ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 0 * 36 + 75 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL CASE - + 48 WHEN 1 + - + COUNT( * ) * + - 18 * + - 72 THEN - 55 END + MAX( DISTINCT + + 97 ) + + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL CASE - + 48 WHEN 1 + - + COUNT ( * ) * + - 18 * + - 72 THEN - 55 END + MAX ( DISTINCT + + 97 ) + + + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT 61 * COUNT( * ) + ( 73 ) AS col0
----
134

skipif mysql # not compatible
query I rowsort label-6406
SELECT 61 * COUNT ( * ) + ( 73 ) AS col0
----
134

query II rowsort
SELECT + - 53 AS col0, - 68
----
-53
-68

query I rowsort
SELECT ALL + ( - 73 ) - - 13 AS col0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6409
SELECT DISTINCT 66 * + 55 AS col2, ( - CAST( - 73 AS SIGNED ) ) col0
----
3630
73

skipif mysql # not compatible
query II rowsort label-6409
SELECT DISTINCT 66 * + 55 AS col2, ( - CAST ( - 73 AS INTEGER ) ) col0
----
3630
73

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

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

query I rowsort
SELECT - 8 * 3 + + 19 col2
----
-5

query I rowsort
SELECT DISTINCT - CASE + + 73 WHEN 60 * 18 * ( + - 62 ) THEN + 38 WHEN - ( - 4 ) + 87 / - 18 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT MIN( + 64 ) + + 18 + - 53
----
29

skipif mysql # not compatible
query I rowsort label-6413
SELECT MIN ( + 64 ) + + 18 + - 53
----
29

query II rowsort
SELECT 35 * - 88, 64 AS col2
----
-3080
64

query II rowsort
SELECT DISTINCT + 56 * - 20 AS col1, 3 + + 65 AS col0
----
-1120
68

query I rowsort
SELECT 60 * 10 AS col2
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT DISTINCT - 29 * ( MAX( ALL NULLIF ( - + 25, 89 + - 55 ) ) ) * - 42 AS col2
----
-30450

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT - 29 * ( MAX ( ALL NULLIF ( - + 25, 89 + - 55 ) ) ) * - 42 AS col2
----
-30450

query I rowsort
SELECT 73 * + + 82 * + CASE - 79 WHEN - 63 THEN NULL WHEN + 77 / - 78 * + 97 THEN + 39 + - 58 WHEN + + 92 THEN + 51 * 76 ELSE 0 - 89 END * + 87
----
-46349598

query I rowsort
SELECT ALL - 39 * 14
----
-546

onlyif mysql # aggregate syntax: 
query II rowsort label-6420
SELECT 50 * - 38 col2, - COUNT( * ) * + + 79
----
-1900
-79

skipif mysql # not compatible
query II rowsort label-6420
SELECT 50 * - 38 col2, - COUNT ( * ) * + + 79
----
-1900
-79

query I rowsort
SELECT 54 + - ( - 19 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT SUM( 70 ) + - 6 * + COALESCE ( 66, - + COUNT( * ), + 43 ) AS col2
----
-326

skipif mysql # not compatible
query I rowsort label-6422
SELECT SUM ( 70 ) + - 6 * + COALESCE ( 66, - + COUNT ( * ), + 43 ) AS col2
----
-326

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6423
SELECT DISTINCT + 66 + COUNT( + 88 ) * 46 DIV - + 91 AS col1, + 6 * - 87 AS col2
----
66
-522

skipif mysql # not compatible
query II rowsort label-6423
SELECT DISTINCT + 66 + COUNT ( + 88 ) * 46 / - + 91 AS col1, + 6 * - 87 AS col2
----
66
-522

onlyif mysql # DIV for integer division: 
query I rowsort label-6424
SELECT 5 DIV + 29 col2
----
0

skipif mysql # not compatible
query I rowsort label-6424
SELECT 5 / + 29 col2
----
0

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

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT 72 / + ( COUNT ( * ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT MAX( 72 ) * CASE WHEN NOT + 23 IS NOT NULL THEN - 48 * - 19 * - 52 + ( 35 ) + ( + COUNT( * ) ) + 24 * - 32 END * - 34 + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT MAX ( 72 ) * CASE WHEN NOT + 23 IS NOT NULL THEN - 48 * - 19 * - 52 + ( 35 ) + ( + COUNT ( * ) ) + 24 * - 32 END * - 34 + 89 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 27 + - 6
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-6428
SELECT DISTINCT - - 15 DIV + - 86
----
0

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT - - 15 / + - 86
----
0

query I rowsort
SELECT ALL + NULLIF ( 24, + - 31 + + 91 + + 73 * - 34 * 14 * 26 * + 91 + + 83 ) * + - 46 + - 32 AS col1
----
-1136

query I rowsort
SELECT DISTINCT - 4 * - 50 + - 25
----
175

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6432
SELECT - ( 77 ) - 88 + CAST( + + 7 AS SIGNED ) + + 66 * - - 90 col2, + COUNT( * )
----
5782
1

skipif mysql # not compatible
query II rowsort label-6432
SELECT - ( 77 ) - 88 + CAST ( + + 7 AS INTEGER ) + + 66 * - - 90 col2, + COUNT ( * )
----
5782
1

query I rowsort
SELECT ALL + + 69 * + 72 * + 67 * + 11 + + + 35
----
3661451

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT - 54 * - 48 * + 6 * + + SUM( DISTINCT - 88 ) AS col2
----
-1368576

skipif mysql # not compatible
query I rowsort label-6434
SELECT - 54 * - 48 * + 6 * + + SUM ( DISTINCT - 88 ) AS col2
----
-1368576

query I rowsort
SELECT DISTINCT - - 28 AS col0
----
28

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

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

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

skipif mysql # not compatible
query I rowsort label-6437
SELECT COUNT ( DISTINCT - 86 ) * + 17 AS col1
----
17

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

skipif mysql # not compatible
query I rowsort label-6438
SELECT 98 / - + CAST ( NULL AS INTEGER ) + + 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT - 43 + 8 * - CASE + 24 WHEN 44 + + ( - MAX( 75 ) ) THEN - - 40 - 88 WHEN - + ( + + 83 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT - 43 + 8 * - CASE + 24 WHEN 44 + + ( - MAX ( 75 ) ) THEN - - 40 - 88 WHEN - + ( + + 83 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 29 + 5 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6441
SELECT ALL 51 * 30 * + + ( - - ( 77 ) ) * - 60 AS col1, CAST( + 69 AS SIGNED )
----
-7068600
69

skipif mysql # not compatible
query II rowsort label-6441
SELECT ALL 51 * 30 * + + ( - - ( 77 ) ) * - 60 AS col1, CAST ( + 69 AS INTEGER )
----
-7068600
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT 35 DIV - 60 * - + ( 89 )
----
0

skipif mysql # not compatible
query I rowsort label-6442
SELECT 35 / - 60 * - + ( 89 )
----
0

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

skipif mysql # not compatible
query I rowsort label-6443
SELECT + MAX ( - 6 )
----
-6

query I rowsort
SELECT 80 * + 76 * 23 AS col0
----
139840

query I rowsort
SELECT ALL - 15 * + - 79
----
1185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6446
SELECT + 9 + - CAST( + + 67 AS SIGNED ) * - COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-6446
SELECT + 9 + - CAST ( + + 67 AS INTEGER ) * - COUNT ( * ) AS col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6447
SELECT ALL COUNT( * ) * ( 90 ) AS col2, 41 DIV - + 47 * + COUNT( * ) * + COUNT( * )
----
90
0

skipif mysql # not compatible
query II rowsort label-6447
SELECT ALL COUNT ( * ) * ( 90 ) AS col2, 41 / - + 47 * + COUNT ( * ) * + COUNT ( * )
----
90
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6448
SELECT - ( 65 ) + - + COUNT( * ) AS col0, + CASE + 90 WHEN + 28 + + CAST( - 12 AS SIGNED ) THEN 45 / + 24 + - - 59 + 93 WHEN + 66 THEN NULL ELSE NULL END + MIN( ALL ( 40 ) )
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-6448
SELECT - ( 65 ) + - + COUNT ( * ) AS col0, + CASE + 90 WHEN + 28 + + CAST ( - 12 AS INTEGER ) THEN 45 / + 24 + - - 59 + 93 WHEN + 66 THEN NULL ELSE NULL END + MIN ( ALL ( 40 ) )
----
-66
NULL

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

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

query II rowsort
SELECT DISTINCT 9 * - + ( - 76 ) AS col0, - 38 AS col1
----
684
-38

query II rowsort
SELECT - 54 AS col0, + 64
----
-54
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT + 50 + + 16 - COALESCE ( 48, + - COUNT( * ), - 89 )
----
18

skipif mysql # not compatible
query I rowsort label-6452
SELECT + 50 + + 16 - COALESCE ( 48, + - COUNT ( * ), - 89 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT - 55 + - - COUNT( * ) + - SUM( - 36 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6453
SELECT - 55 + - - COUNT ( * ) + - SUM ( - 36 ) AS col2
----
-18

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

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

query I rowsort
SELECT - 8 + - - 46 AS col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6456
SELECT - 20 + - COUNT( * ) * - 9 AS col0, 36 AS col2
----
-11
36

skipif mysql # not compatible
query II rowsort label-6456
SELECT - 20 + - COUNT ( * ) * - 9 AS col0, 36 AS col2
----
-11
36

query I rowsort
SELECT ALL - 8 * - - 46 AS col2
----
-368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6458
SELECT - ( + MAX( + 83 ) ) + + CAST( NULL AS SIGNED ) + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT - ( + MAX ( + 83 ) ) + + CAST ( NULL AS INTEGER ) + - 81
----
NULL

query II rowsort
SELECT - 76 AS col0, + 85 col0
----
-76
85

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6460
SELECT ALL - CAST( - CAST( 83 AS DECIMAL ) AS SIGNED ) * CAST( + 25 AS SIGNED ) * + 64 + + + 29
----
132829

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL - CAST ( - CAST ( 83 AS REAL ) AS INTEGER ) * CAST ( + 25 AS INTEGER ) * + 64 + + + 29
----
132829

query I rowsort
SELECT ALL - + 12 * - + 68 + - - 77
----
893

query I rowsort
SELECT - 98 + - 35
----
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6463
SELECT - COUNT( * ) DIV + 62 + + CASE + - 20 WHEN + - ( COUNT( ALL - ( 15 ) ) ) THEN + 38 WHEN - 58 DIV 1 THEN NULL ELSE + NULLIF ( 67, + 97 ) * - 11 END * 23
----
-16951

skipif mysql # not compatible
query I rowsort label-6463
SELECT - COUNT ( * ) / + 62 + + CASE + - 20 WHEN + - ( COUNT ( ALL - ( 15 ) ) ) THEN + 38 WHEN - 58 / 1 THEN NULL ELSE + NULLIF ( 67, + 97 ) * - 11 END * 23
----
-16951

query I rowsort
SELECT - 72 + 31
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL - - 25 * + 67 - - ( ( + 16 ) ) + + CASE - 58 WHEN + - 38 / + NULLIF ( + - ( + - 9 ), - - 32 ) + - ( COUNT( 55 ) ) + + 81 * - CASE 28 * ( + 75 / + 21 ) WHEN + COUNT( * ) THEN - 87 ELSE + COUNT( ALL + 54 ) END THEN 77 END * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL - - 25 * + 67 - - ( ( + 16 ) ) + + CASE - 58 WHEN + - 38 / + NULLIF ( + - ( + - 9 ), - - 32 ) + - ( COUNT ( 55 ) ) + + 81 * - CASE 28 * ( + 75 / + 21 ) WHEN + COUNT ( * ) THEN - 87 ELSE + COUNT ( ALL + 54 ) END THEN 77 END * + 14
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6466
SELECT - + 50 * + COUNT( * ) * - 38 col1, ( + 26 ) * + NULLIF ( 91, + + 13 * + 79 * - 14 + + COALESCE ( - COUNT( * ), + COUNT( * ) ) + + COUNT( 28 ) * 49 )
----
1900
2366

skipif mysql # not compatible
query II rowsort label-6466
SELECT - + 50 * + COUNT ( * ) * - 38 col1, ( + 26 ) * + NULLIF ( 91, + + 13 * + 79 * - 14 + + COALESCE ( - COUNT ( * ), + COUNT ( * ) ) + + COUNT ( 28 ) * 49 )
----
1900
2366

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL + - NULLIF ( - SUM( DISTINCT - + 43 ), 57 * 74 - + NULLIF ( + 39, - 22 ) + + 32 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL + - NULLIF ( - SUM ( DISTINCT - + 43 ), 57 * 74 - + NULLIF ( + 39, - 22 ) + + 32 ) AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6469
SELECT ALL CAST( NULL AS DECIMAL ) * COUNT( * ) * + 63 * + 43 * 44 - ( + 37 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL CAST ( NULL AS REAL ) * COUNT ( * ) * + 63 * + 43 * 44 - ( + 37 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT + 74 * + - 17 * + - 89 * + - 30 - - 5 * + COUNT( * )
----
-3358855

skipif mysql # not compatible
query I rowsort label-6470
SELECT + 74 * + - 17 * + - 89 * + - 30 - - 5 * + COUNT ( * )
----
-3358855

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6471
SELECT ALL + MIN( - 90 ) DIV + - 25 + 64
----
67

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL + MIN ( - 90 ) / + - 25 + 64
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6472
SELECT + - CASE - - 99 WHEN + CASE - + 44 WHEN - 30 * - 92 + - CAST( - + 99 AS SIGNED ) + 74 THEN + - MAX( 67 ) ELSE NULL END THEN - - 12 WHEN + + 56 * + COUNT( * ) + + 57 * + NULLIF ( + CAST( NULL AS SIGNED ) * + CASE - 75 * + 23 WHEN 18 THEN + 82 + 83 * 49 ELSE COUNT( * ) END - - CAST( NULL AS DECIMAL ), + 5 + + COUNT( * ) * + ( - 89 + 10 ) ) THEN 82 + + 52 END + + AVG ( DISTINCT - 99 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT + - CASE - - 99 WHEN + CASE - + 44 WHEN - 30 * - 92 + - CAST ( - + 99 AS INTEGER ) + 74 THEN + - MAX ( 67 ) ELSE NULL END THEN - - 12 WHEN + + 56 * + COUNT ( * ) + + 57 * + NULLIF ( + CAST ( NULL AS INTEGER ) * + CASE - 75 * + 23 WHEN 18 THEN + 82 + 83 * 49 ELSE COUNT ( * ) END - - CAST ( NULL AS REAL ), + 5 + + COUNT ( * ) * + ( - 89 + 10 ) ) THEN 82 + + 52 END + + AVG ( DISTINCT - 99 ) col1
----
NULL

query I rowsort
SELECT + + 93 + - + 73 AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6474
SELECT ALL + MAX( ALL 99 ) * 66 DIV 74 AS col1, + COUNT( * ) * 0 * + + 80 AS col2
----
88
0

skipif mysql # not compatible
query II rowsort label-6474
SELECT ALL + MAX ( ALL 99 ) * 66 / 74 AS col1, + COUNT ( * ) * 0 * + + 80 AS col2
----
88
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT + - 3 * + - COUNT( ALL + 60 ) * 26 - - 87 + + 28 col0
----
193

skipif mysql # not compatible
query I rowsort label-6475
SELECT + - 3 * + - COUNT ( ALL + 60 ) * 26 - - 87 + + 28 col0
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT + + COALESCE ( + - 71, + COUNT( * ), CASE 59 WHEN - 33 THEN - 30 WHEN - COUNT( * ) THEN NULL END )
----
-71

skipif mysql # not compatible
query I rowsort label-6476
SELECT + + COALESCE ( + - 71, + COUNT ( * ), CASE 59 WHEN - 33 THEN - 30 WHEN - COUNT ( * ) THEN NULL END )
----
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT CASE - 86 WHEN + 20 THEN 30 ELSE + MAX( + 0 ) END
----
0

skipif mysql # not compatible
query I rowsort label-6478
SELECT CASE - 86 WHEN + 20 THEN 30 ELSE + MAX ( + 0 ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT + MIN( DISTINCT - + 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6479
SELECT + MIN ( DISTINCT - + 4 ) AS col1
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT DISTINCT - 2 * + MIN( - 96 ) + - 84 * + 17 * + 21 AS col2
----
-29796

skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT - 2 * + MIN ( - 96 ) + - 84 * + 17 * + 21 AS col2
----
-29796

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT MIN( ALL - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-6484
SELECT MIN ( ALL - 22 )
----
-22

query I rowsort
SELECT + 50 * - - 37
----
1850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT + CASE - + ( - + CAST( + - 40 AS SIGNED ) ) WHEN - 65 THEN + + 13 END + - 88 + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT + CASE - + ( - + CAST ( + - 40 AS INTEGER ) ) WHEN - 65 THEN + + 13 END + - 88 + - 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6487
SELECT - 8 DIV + 15
----
0

skipif mysql # not compatible
query I rowsort label-6487
SELECT - 8 / + 15
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6488
SELECT + NULLIF ( + COALESCE ( - - 61, - 25 ), + 41 ) * + COALESCE ( + 65, + 65 - - 9, - CAST( NULL AS SIGNED ) * 18 * + CASE - ( - 16 ) WHEN 73 THEN 95 + - 69 WHEN + 35 THEN 60 + - 11 * + 20 END + COUNT( 95 - - 73 ) )
----
3965

skipif mysql # not compatible
query I rowsort label-6488
SELECT + NULLIF ( + COALESCE ( - - 61, - 25 ), + 41 ) * + COALESCE ( + 65, + 65 - - 9, - CAST ( NULL AS INTEGER ) * 18 * + CASE - ( - 16 ) WHEN 73 THEN 95 + - 69 WHEN + 35 THEN 60 + - 11 * + 20 END + COUNT ( 95 - - 73 ) )
----
3965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT ALL 26 / + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL 26 / + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT ALL - COALESCE ( 65, + 98 + - 31, + 63, - - ( 95 ) ) + COUNT( * ) + - 42 + + 94 + COALESCE ( + - 17, ( + 55 ), 85 ) * - 28 * - 2 * - 23 AS col0
----
21884

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL - COALESCE ( 65, + 98 + - 31, + 63, - - ( 95 ) ) + COUNT ( * ) + - 42 + + 94 + COALESCE ( + - 17, ( + 55 ), 85 ) * - 28 * - 2 * - 23 AS col0
----
21884

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT DISTINCT + 67 + MAX( DISTINCT - + 82 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT + 67 + MAX ( DISTINCT - + 82 ) AS col1
----
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT + 90 * + MIN( DISTINCT - 97 )
----
-8730

skipif mysql # not compatible
query I rowsort label-6493
SELECT + 90 * + MIN ( DISTINCT - 97 )
----
-8730

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ALL SUM( ALL - 90 ) * 31 AS col0
----
-2790

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL SUM ( ALL - 90 ) * 31 AS col0
----
-2790

query I rowsort
SELECT ALL 54 + + 6
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-6496
SELECT + ( + 70 ) AS col1, + 95 DIV + - 97
----
70
0

skipif mysql # not compatible
query II rowsort label-6496
SELECT + ( + 70 ) AS col1, + 95 / + - 97
----
70
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6497
SELECT - - 79 - 18 AS col0, ( - - 64 ) - + CAST( 49 AS SIGNED ) AS col1
----
61
15

skipif mysql # not compatible
query II rowsort label-6497
SELECT - - 79 - 18 AS col0, ( - - 64 ) - + CAST ( 49 AS INTEGER ) AS col1
----
61
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6498
SELECT DISTINCT - + 35 * + - 22 AS col1, COUNT( * ) + + 18 AS col1
----
770
19

skipif mysql # not compatible
query II rowsort label-6498
SELECT DISTINCT - + 35 * + - 22 AS col1, COUNT ( * ) + + 18 AS col1
----
770
19

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

skipif mysql # not compatible
query I rowsort label-6499
SELECT - 45 * - COUNT ( * )
----
45

query I rowsort
SELECT DISTINCT + + 43 * + 51
----
2193

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT - 72 DIV 2 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6501
SELECT - 72 / 2 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT + COUNT( + + COALESCE ( + 26, - + 1 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6502
SELECT + COUNT ( + + COALESCE ( + 26, - + 1 ) ) AS col0
----
1

query I rowsort
SELECT + - 72 * 87
----
-6264

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT - COUNT( * ) * - 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6504
SELECT - COUNT ( * ) * - 23 AS col2
----
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ALL - CASE - - COUNT( * ) WHEN - 26 THEN NULL ELSE + 11 END AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL - CASE - - COUNT ( * ) WHEN - 26 THEN NULL ELSE + 11 END AS col0
----
-11

query I rowsort
SELECT 73 * + 60 col2
----
4380

query I rowsort
SELECT ALL - 52 + 91
----
39

query I rowsort
SELECT 54 + + - 44 AS col1
----
10

query II rowsort
SELECT + 95 AS col2, - 8 col1
----
95
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-6511
SELECT ALL + 80 + COALESCE ( - - 83, + - AVG ( + 65 ) * + COALESCE ( 4, - - 26 ) DIV 70 * + - 11 - - 96, + + 25 + + + 86 * + 41 ) AS col0
----
163

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL + 80 + COALESCE ( - - 83, + - AVG ( + 65 ) * + COALESCE ( 4, - - 26 ) / 70 * + - 11 - - 96, + + 25 + + + 86 * + 41 ) AS col0
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6512
SELECT ALL - 25 * - + CAST( + 56 AS SIGNED ) * - 21 AS col2
----
-29400

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL - 25 * - + CAST ( + 56 AS INTEGER ) * - 21 AS col2
----
-29400

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT 89 * - 38 * + 4 + - 7 - + - COUNT( * ) col2
----
-13534

skipif mysql # not compatible
query I rowsort label-6513
SELECT 89 * - 38 * + 4 + - 7 - + - COUNT ( * ) col2
----
-13534

query I rowsort
SELECT DISTINCT 56 * 86 AS col1
----
4816

onlyif mysql # aggregate syntax: 
query II rowsort label-6515
SELECT ALL 14 + - MAX( - + 27 ) AS col0, 80 * - COALESCE ( 21, - 44 * - 7 )
----
41
-1680

skipif mysql # not compatible
query II rowsort label-6515
SELECT ALL 14 + - MAX ( - + 27 ) AS col0, 80 * - COALESCE ( 21, - 44 * - 7 )
----
41
-1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6516
SELECT 17 * 51 * - - 14 + + ( + CAST( + 34 AS SIGNED ) )
----
12172

skipif mysql # not compatible
query I rowsort label-6516
SELECT 17 * 51 * - - 14 + + ( + CAST ( + 34 AS INTEGER ) )
----
12172

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

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

query II rowsort
SELECT ALL 63 AS col1, - 85 * + 96 col2
----
63
-8160

query I rowsort
SELECT DISTINCT + 8 * - + 6
----
-48

query I rowsort
SELECT ALL - 53 - + COALESCE ( - + 58, + 79 * + + 38 + 53, 80 ) AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT NULLIF ( + 57, - CAST( NULL AS SIGNED ) ) + 43
----
100

skipif mysql # not compatible
query I rowsort label-6521
SELECT NULLIF ( + 57, - CAST ( NULL AS INTEGER ) ) + 43
----
100

query II rowsort
SELECT ALL 73, 63 - - 34 AS col1
----
73
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT DISTINCT + 5 DIV - 36
----
0

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT + 5 / - 36
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6524
SELECT + 54 + + 12 DIV + 66 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-6524
SELECT + 54 + + 12 / + 66 AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6525
SELECT ALL COALESCE ( 6, - - 50 + - 4 * + 48 DIV - 68 * + + NULLIF ( + 28, - 13 + + 67 * - COUNT( * ) + + 11 * 83 * COUNT( * ) * + + 98 ) ) * ( NULLIF ( 22, - 48 ) + 31 DIV 37 ) AS col2
----
132

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL COALESCE ( 6, - - 50 + - 4 * + 48 / - 68 * + + NULLIF ( + 28, - 13 + + 67 * - COUNT ( * ) + + 11 * 83 * COUNT ( * ) * + + 98 ) ) * ( NULLIF ( 22, - 48 ) + 31 / 37 ) AS col2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT - COUNT( * ) + + 15 + - 24 + - + ( + COUNT( * ) ) * - 67
----
57

skipif mysql # not compatible
query I rowsort label-6526
SELECT - COUNT ( * ) + + 15 + - 24 + - + ( + COUNT ( * ) ) * - 67
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6527
SELECT DISTINCT 81 DIV 55 * - - 26 AS col2, NULLIF ( + 53, - + 95 ) * - - MIN( ALL - - 45 ) * CASE + - 46 WHEN - - CASE - + 57 WHEN - 17 THEN + 38 * 72 + 98 END THEN + 10 WHEN + COUNT( * ) * - 8 THEN NULL END * + COUNT( * ) + + 60 AS col0
----
26
NULL

skipif mysql # not compatible
query II rowsort label-6527
SELECT DISTINCT 81 / 55 * - - 26 AS col2, NULLIF ( + 53, - + 95 ) * - - MIN ( ALL - - 45 ) * CASE + - 46 WHEN - - CASE - + 57 WHEN - 17 THEN + 38 * 72 + 98 END THEN + 10 WHEN + COUNT ( * ) * - 8 THEN NULL END * + COUNT ( * ) + + 60 AS col0
----
26
NULL

query I rowsort
SELECT - 20 + + + 14
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-6529
SELECT DISTINCT 57 col0, 4 + - COUNT( * )
----
57
3

skipif mysql # not compatible
query II rowsort label-6529
SELECT DISTINCT 57 col0, 4 + - COUNT ( * )
----
57
3

query II rowsort
SELECT 74 * - ( 5 ), 57 AS col0
----
-370
57

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

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

query II rowsort
SELECT - 96 + 11 * NULLIF ( - 34, - 3 ), 50 + - 4 AS col0
----
-470
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6533
SELECT + 70 + 17 + - 41 DIV + - 18 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6533
SELECT + 70 + 17 + - 41 / + - 18 AS col2
----
89

query I rowsort
SELECT 53 * + 0 - - 43 col1
----
43

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

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

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

query I rowsort
SELECT DISTINCT + + 65 + + 19 AS col1
----
84

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

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

query I rowsort
SELECT ALL 51 + - 92
----
-41

query II rowsort
SELECT 16 AS col1, - 9 * - 11
----
16
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6541
SELECT ALL + COUNT( DISTINCT - + 14 ) + + 15 DIV - + 44 + - + 77
----
-76

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL + COUNT ( DISTINCT - + 14 ) + + 15 / - + 44 + - + 77
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-6542
SELECT 80 + + - MIN( ALL + 53 ) + + COUNT( * ) * + 68 + - 70 AS col2, 5 + 48 AS col0
----
25
53

skipif mysql # not compatible
query II rowsort label-6542
SELECT 80 + + - MIN ( ALL + 53 ) + + COUNT ( * ) * + 68 + - 70 AS col2, 5 + 48 AS col0
----
25
53

query I rowsort
SELECT DISTINCT + 11 * - 93 col2
----
-1023

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6544
SELECT ALL - 18, - NULLIF ( + - 71, 52 + - - CASE ( - + 58 ) WHEN + 20 * - 10 - 60 THEN 31 * - 57 + - 4 WHEN 76 * + - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ) + 6 AS col0
----
-18
77

skipif mysql # not compatible
query II rowsort label-6544
SELECT ALL - 18, - NULLIF ( + - 71, 52 + - - CASE ( - + 58 ) WHEN + 20 * - 10 - 60 THEN 31 * - 57 + - 4 WHEN 76 * + - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ) + 6 AS col0
----
-18
77

query I rowsort
SELECT ALL + 93 * + + 99
----
9207

query I rowsort
SELECT ALL - 21 + + 99 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6547
SELECT 16 AS col2, CASE 2 WHEN - COUNT( * ) * + COALESCE ( + COUNT( * ), - CASE + + ( + NULLIF ( 80, 86 + COUNT( * ) * 78 + - 48 ) ) WHEN 80 THEN + + COUNT( * ) END * - 68 + + ( + 82 ) ) THEN + 47 + + 90 WHEN CAST( NULL AS DECIMAL ) THEN 56 * - AVG ( DISTINCT 11 * 21 ) ELSE - 29 * 41 + 76 END col0
----
16
-1113

skipif mysql # not compatible
query II rowsort label-6547
SELECT 16 AS col2, CASE 2 WHEN - COUNT ( * ) * + COALESCE ( + COUNT ( * ), - CASE + + ( + NULLIF ( 80, 86 + COUNT ( * ) * 78 + - 48 ) ) WHEN 80 THEN + + COUNT ( * ) END * - 68 + + ( + 82 ) ) THEN + 47 + + 90 WHEN CAST ( NULL AS REAL ) THEN 56 * - AVG ( DISTINCT 11 * 21 ) ELSE - 29 * 41 + 76 END col0
----
16
-1113

query I rowsort
SELECT ALL + 48 * + - 54
----
-2592

query II rowsort
SELECT ALL - 18 AS col0, 86
----
-18
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6550
SELECT ALL - 49 DIV - 24, - COUNT( * ) AS col1
----
2
-1

skipif mysql # not compatible
query II rowsort label-6550
SELECT ALL - 49 / - 24, - COUNT ( * ) AS col1
----
2
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6551
SELECT ALL - COUNT( * ) AS col2, 18 * + + 4 AS col2
----
-1
72

skipif mysql # not compatible
query II rowsort label-6551
SELECT ALL - COUNT ( * ) AS col2, 18 * + + 4 AS col2
----
-1
72

query I rowsort
SELECT DISTINCT - 67 - + + 14 AS col0
----
-81

query I rowsort
SELECT ALL 61 * - 53 AS col0
----
-3233

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT 14 DIV + - 20
----
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT 14 / + - 20
----
0

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

query I rowsort
SELECT 94 * - - 59 AS col1
----
5546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6557
SELECT DISTINCT + CASE + - SUM( 19 ) WHEN 34 THEN NULL WHEN + 87 - 18 THEN + ( + - CAST( + 84 AS SIGNED ) ) * + + 15 * - + CAST( NULL AS SIGNED ) + + 47 - 94 * - - 97 - - + CASE 35 WHEN 1 THEN 77 * 14 END ELSE 4 * 11 + + 24 END * - 96 AS col0
----
-6528

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT + CASE + - SUM ( 19 ) WHEN 34 THEN NULL WHEN + 87 - 18 THEN + ( + - CAST ( + 84 AS INTEGER ) ) * + + 15 * - + CAST ( NULL AS INTEGER ) + + 47 - 94 * - - 97 - - + CASE 35 WHEN 1 THEN 77 * 14 END ELSE 4 * 11 + + 24 END * - 96 AS col0
----
-6528

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT - SUM( ALL 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-6558
SELECT - SUM ( ALL 59 )
----
-59

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6560
SELECT DISTINCT - 68, + 58 DIV - 61 AS col2
----
-68
0

skipif mysql # not compatible
query II rowsort label-6560
SELECT DISTINCT - 68, + 58 / - 61 AS col2
----
-68
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6561
SELECT 2, 91 DIV 35 AS col1
----
2
2

skipif mysql # not compatible
query II rowsort label-6561
SELECT 2, 91 / 35 AS col1
----
2
2

query I rowsort
SELECT DISTINCT - 33 + - + 98 AS col2
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6563
SELECT - 94 DIV 91 + 28 + + - 36 AS col0, COUNT( * ) * - 64 AS col2
----
-9
-64

skipif mysql # not compatible
query II rowsort label-6563
SELECT - 94 / 91 + 28 + + - 36 AS col0, COUNT ( * ) * - 64 AS col2
----
-9
-64

query I rowsort
SELECT - 63 + + 29
----
-34

query II rowsort
SELECT - 42 AS col1, - 44 + 92 + + 46 AS col0
----
-42
94

query I rowsort
SELECT + 21 + 65 * - 6 AS col2
----
-369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6567
SELECT ALL - CASE - - 10 WHEN - 98 + 67 + + 31 * - NULLIF ( 9, - CASE - - 77 WHEN + - COUNT( * ) THEN - - 46 * + 47 + + 68 * + 0 ELSE - 9 END ) * - 31 THEN NULL WHEN 58 * 84 THEN NULL WHEN + AVG ( DISTINCT - ( + 72 ) ) THEN + 27 ELSE + 15 END DIV COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL - CASE - - 10 WHEN - 98 + 67 + + 31 * - NULLIF ( 9, - CASE - - 77 WHEN + - COUNT ( * ) THEN - - 46 * + 47 + + 68 * + 0 ELSE - 9 END ) * - 31 THEN NULL WHEN 58 * 84 THEN NULL WHEN + AVG ( DISTINCT - ( + 72 ) ) THEN + 27 ELSE + 15 END / COUNT ( * ) AS col0
----
-15

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

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

query I rowsort
SELECT ALL - 6 + + 34 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6570
SELECT ALL COUNT( * ) * - 87 * + + 50 + + 11 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL COUNT ( * ) * - 87 * + + 50 + + 11 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT NULLIF ( + 27, + 29 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6573
SELECT COUNT( * ) * + + ( + CAST( NULL AS DECIMAL ) ) - + + ( CASE + - ( + 83 ) WHEN - - 25 * 97 * - 35 THEN - + COUNT( * ) * - SUM( DISTINCT - - 31 ) / + 51 END ) + 11 * - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT COUNT ( * ) * + + ( + CAST ( NULL AS REAL ) ) - + + ( CASE + - ( + 83 ) WHEN - - 25 * 97 * - 35 THEN - + COUNT ( * ) * - SUM ( DISTINCT - - 31 ) / + 51 END ) + 11 * - - 18
----
NULL

query I rowsort
SELECT + CASE + - 0 WHEN + - 93 THEN + 58 + + - 92 WHEN - ( 69 ) THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT + 75 DIV + ( + 89 ) - + 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6575
SELECT + 75 / + ( + 89 ) - + 19 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL 94 * + COALESCE ( 53, + COUNT( * ), - COUNT( * ) ) - + - 92 + + 73 * + 79
----
10841

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL 94 * + COALESCE ( 53, + COUNT ( * ), - COUNT ( * ) ) - + - 92 + + 73 * + 79
----
10841

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6577
SELECT NULLIF ( + - CASE 90 WHEN + ( - 65 ) * - ( - + 69 ) + - 92 THEN - - 67 ELSE + 37 DIV 19 END, + - SUM( DISTINCT + 97 ) ), 15 * 61 * - - 92 AS col1
----
-1
84180

skipif mysql # not compatible
query II rowsort label-6577
SELECT NULLIF ( + - CASE 90 WHEN + ( - 65 ) * - ( - + 69 ) + - 92 THEN - - 67 ELSE + 37 / 19 END, + - SUM ( DISTINCT + 97 ) ), 15 * 61 * - - 92 AS col1
----
-1
84180

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT 69 * - + 25 - + - CASE 47 WHEN + MAX( 38 ) * + ( - COUNT( * ) ) * + SUM( 45 ) * - 60 + - COUNT( + 43 ) THEN 12 * + 80 END * 79 * ( - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT 69 * - + 25 - + - CASE 47 WHEN + MAX ( 38 ) * + ( - COUNT ( * ) ) * + SUM ( 45 ) * - 60 + - COUNT ( + 43 ) THEN 12 * + 80 END * 79 * ( - 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT - COUNT( * ) * - 16 - - - 83 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6579
SELECT - COUNT ( * ) * - 16 - - - 83 AS col2
----
-67

query II rowsort
SELECT ALL - 63 * 68, - 83 AS col2
----
-4284
-83

query I rowsort
SELECT + 37 + + 68
----
105

query I rowsort
SELECT + 55 * - 70 * + 88
----
-338800

query I rowsort
SELECT + 31 * 55 + - ( + - 9 ) + 58 AS col0
----
1772

query I rowsort
SELECT - 95 * - 10 AS col2
----
950

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT 91 * + 75 * + COUNT( 23 ) + - 26 + 18 * + 62 col0
----
7915

skipif mysql # not compatible
query I rowsort label-6585
SELECT 91 * + 75 * + COUNT ( 23 ) + - 26 + 18 * + 62 col0
----
7915

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6586
SELECT - + 17 + 89 AS col0, - 8 * - COUNT( * ) DIV - - COUNT( * )
----
72
8

skipif mysql # not compatible
query II rowsort label-6586
SELECT - + 17 + 89 AS col0, - 8 * - COUNT ( * ) / - - COUNT ( * )
----
72
8

query I rowsort
SELECT DISTINCT NULLIF ( + 13, 24 ) col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6588
SELECT - + COUNT( * ) * + - CAST( + 63 AS SIGNED ) + 73 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-6588
SELECT - + COUNT ( * ) * + - CAST ( + 63 AS INTEGER ) + 73 AS col0
----
136

query I rowsort
SELECT - 69 * - + 96
----
6624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6590
SELECT - 38 + + 41 + + 17 + 77 * + CASE + ( + - 90 ) WHEN 5 THEN 41 * 98 WHEN - + 17 THEN 1 ELSE + CAST( - COUNT( * ) AS SIGNED ) + - 16 + + - COUNT( * ) * + 2 * 62 END - - NULLIF ( 98, 28 ) * + CAST( 54 AS SIGNED )
----
-5545

skipif mysql # not compatible
query I rowsort label-6590
SELECT - 38 + + 41 + + 17 + 77 * + CASE + ( + - 90 ) WHEN 5 THEN 41 * 98 WHEN - + 17 THEN 1 ELSE + CAST ( - COUNT ( * ) AS INTEGER ) + - 16 + + - COUNT ( * ) * + 2 * 62 END - - NULLIF ( 98, 28 ) * + CAST ( 54 AS INTEGER )
----
-5545

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT ALL - + 23 + - 20 * - - 65 + - MIN( + + 97 )
----
-1420

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL - + 23 + - 20 * - - 65 + - MIN ( + + 97 )
----
-1420

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT - ( - COUNT( - 3 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6592
SELECT - ( - COUNT ( - 3 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6593
SELECT - COALESCE ( - - 28, - + 75 + CASE 93 WHEN CASE + 13 WHEN 9 * + 36 THEN + - COUNT( * ) ELSE NULL END THEN - 79 END, 45 DIV - + 16 + + - MAX( ALL + 72 ) ), 76 col2
----
-28
76

skipif mysql # not compatible
query II rowsort label-6593
SELECT - COALESCE ( - - 28, - + 75 + CASE 93 WHEN CASE + 13 WHEN 9 * + 36 THEN + - COUNT ( * ) ELSE NULL END THEN - 79 END, 45 / - + 16 + + - MAX ( ALL + 72 ) ), 76 col2
----
-28
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT DISTINCT + + ( + NULLIF ( + + 9, - + MIN( ALL + + 97 ) ) ) + + ( - - 21 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT + + ( + NULLIF ( + + 9, - + MIN ( ALL + + 97 ) ) ) + + ( - - 21 ) AS col1
----
30

query I rowsort
SELECT ALL - ( - 55 ) + - 2 + 24 * + - 25 + - 61 AS col2
----
-608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6596
SELECT DISTINCT 67 + MIN( - 58 ) DIV + + 69 * - 97
----
67

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT 67 + MIN ( - 58 ) / + + 69 * - 97
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6597
SELECT DISTINCT - - 81 * - 75 - - 62 - 37 + + 26 + + CAST( - CASE COALESCE ( + ( CASE - - 72 WHEN + + 15 THEN + 78 END ), - - ( CAST( NULL AS SIGNED ) ), - - 50 * + - 97 ) WHEN + COUNT( * ) * - 31 - 32 THEN + 53 + 76 ELSE NULL END AS DECIMAL ) * 70 * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT - - 81 * - 75 - - 62 - 37 + + 26 + + CAST ( - CASE COALESCE ( + ( CASE - - 72 WHEN + + 15 THEN + 78 END ), - - ( CAST ( NULL AS INTEGER ) ), - - 50 * + - 97 ) WHEN + COUNT ( * ) * - 31 - 32 THEN + 53 + 76 ELSE NULL END AS REAL ) * 70 * + 87
----
NULL

query II rowsort
SELECT - 80 + - 35 AS col1, + ( 78 ) AS col1
----
-115
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6599
SELECT - 85 * - 8 * + COUNT( * ) + - COALESCE ( - ( - COALESCE ( - + 29, + CAST( + COUNT( * ) AS SIGNED ), + + 33 * - 78 + + 59 + + 72 * - 20 + - 82 ) ), + 9, - 84, - 76 * + 87 + 41, + 49 ) + 63 * ( - 57 + NULLIF ( + CAST( NULL AS SIGNED ), 92 * + COALESCE ( + ( 85 ), 68, 68 ) ) ) * - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT - 85 * - 8 * + COUNT ( * ) + - COALESCE ( - ( - COALESCE ( - + 29, + CAST ( + COUNT ( * ) AS INTEGER ), + + 33 * - 78 + + 59 + + 72 * - 20 + - 82 ) ), + 9, - 84, - 76 * + 87 + 41, + 49 ) + 63 * ( - 57 + NULLIF ( + CAST ( NULL AS INTEGER ), 92 * + COALESCE ( + ( 85 ), 68, 68 ) ) ) * - 99 AS col1
----
NULL

query II rowsort
SELECT + 55 * 56, 1 * + 3 + + 1 col1
----
3080
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT - + COUNT( * ) + 33 + - 46 + - 51 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6601
SELECT - + COUNT ( * ) + 33 + - 46 + - 51 AS col2
----
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ALL 98 - + 62 + ( - + COUNT( * ) ) * - + 92 * ( + + 9 ) * - 3 * - ( 4 ) AS col1
----
9972

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL 98 - + 62 + ( - + COUNT ( * ) ) * - + 92 * ( + + 9 ) * - 3 * - ( 4 ) AS col1
----
9972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6604
SELECT CAST( + - ( - CASE 61 WHEN MIN( + 41 ) THEN 7 / + 39 ELSE NULL END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT CAST ( + - ( - CASE 61 WHEN MIN ( + 41 ) THEN 7 / + 39 ELSE NULL END ) AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 53 col0, 35 - - 43
----
53
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6606
SELECT ALL 62 DIV + - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL 62 / + - 70 AS col0
----
0

query II rowsort
SELECT ALL + 69 AS col0, + 98 AS col1
----
69
98

query I rowsort
SELECT DISTINCT 97 * 36
----
3492

query II rowsort
SELECT + COALESCE ( 32, + 76 ), + 99 AS col1
----
32
99

query I rowsort
SELECT + 67 + - 19 AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6611
SELECT + 26 DIV - + 85 * - ( - 50 ), - NULLIF ( 72, + CAST( NULL AS SIGNED ) + + + 13 - - + 83 ) AS col1
----
0
-72

skipif mysql # not compatible
query II rowsort label-6611
SELECT + 26 / - + 85 * - ( - 50 ), - NULLIF ( 72, + CAST ( NULL AS INTEGER ) + + + 13 - - + 83 ) AS col1
----
0
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6612
SELECT + COALESCE ( + ( 41 ), - 44 DIV + - 80 - - - MAX( + ( + 35 ) ) ) * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-6612
SELECT + COALESCE ( + ( 41 ), - 44 / + - 80 - - - MAX ( + ( + 35 ) ) ) * COUNT ( * )
----
41

query I rowsort
SELECT + 14 * + NULLIF ( 64, - - 56 )
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT 95 * + + 71 * + - NULLIF ( - 90, COUNT( * ) * COUNT( * ) + - + CASE - 21 WHEN - + ( - 33 ) + + 9 * - + 81 * + + 27 + + 92 THEN NULL WHEN + ( 32 ) + + 19 + - 69 THEN 78 + COUNT( * ) ELSE NULL END ) * 94 + - 20 AS col2
----
57062680

skipif mysql # not compatible
query I rowsort label-6614
SELECT 95 * + + 71 * + - NULLIF ( - 90, COUNT ( * ) * COUNT ( * ) + - + CASE - 21 WHEN - + ( - 33 ) + + 9 * - + 81 * + + 27 + + 92 THEN NULL WHEN + ( 32 ) + + 19 + - 69 THEN 78 + COUNT ( * ) ELSE NULL END ) * 94 + - 20 AS col2
----
57062680

query II rowsort
SELECT DISTINCT + 72 AS col0, + 91
----
72
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT DISTINCT - 91 * + SUM( ALL - ( 20 ) ) + - - 78
----
1898

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT - 91 * + SUM ( ALL - ( 20 ) ) + - - 78
----
1898

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT + - COUNT( + + 32 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6618
SELECT + - COUNT ( + + 32 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6619
SELECT ALL - + 22 * + CAST( + + 41 AS SIGNED ) + + + COUNT( + 19 )
----
-901

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL - + 22 * + CAST ( + + 41 AS INTEGER ) + + + COUNT ( + 19 )
----
-901

query I rowsort
SELECT + 39 * + 72
----
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT MAX( - 80 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-6621
SELECT MAX ( - 80 ) AS col2
----
-80

query I rowsort
SELECT ALL - + 23 * + 12 - - 95 + + 83 AS col1
----
-98

query II rowsort
SELECT - 3 AS col1, 62 + 42 + + 80 * + - 43 * ( + - 63 ) * 95 + 12 * 66
----
-3
20589296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6624
SELECT + - NULLIF ( - CAST( - 40 AS SIGNED ), - ( ( 21 ) ) ) DIV SUM( ALL - + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-6624
SELECT + - NULLIF ( - CAST ( - 40 AS INTEGER ), - ( ( 21 ) ) ) / SUM ( ALL - + 80 )
----
0

query I rowsort
SELECT 18 * 94 col0
----
1692

query I rowsort
SELECT ALL - 0 + - - 62 AS col2
----
62

query II rowsort
SELECT - 65, ( + 80 ) + + 50 * - 84 AS col0
----
-65
-4120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6628
SELECT DISTINCT CAST( - 40 AS SIGNED ) + - + COALESCE ( + 94, COALESCE ( - 16, - 12 ) - + - COUNT( * ), + 46 )
----
-134

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT CAST ( - 40 AS INTEGER ) + - + COALESCE ( + 94, COALESCE ( - 16, - 12 ) - + - COUNT ( * ), + 46 )
----
-134

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6630
SELECT 97 DIV 57 * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6630
SELECT 97 / 57 * COUNT ( * )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT - 16 * - - NULLIF ( + ( 90 ), 68 * - - AVG ( DISTINCT - 33 ) + - 86 + + 69 - - 5 + - 65 * ( - SUM( DISTINCT - 91 ) ) * + - 9 * 30 + + - 82 ) + - 56 * - 42 col2
----
912

skipif mysql # not compatible
query I rowsort label-6632
SELECT - 16 * - - NULLIF ( + ( 90 ), 68 * - - AVG ( DISTINCT - 33 ) + - 86 + + 69 - - 5 + - 65 * ( - SUM ( DISTINCT - 91 ) ) * + - 9 * 30 + + - 82 ) + - 56 * - 42 col2
----
912

onlyif mysql # aggregate syntax: 
query II rowsort label-6633
SELECT ALL - 59 + - COUNT( * ) * 67 AS col0, COUNT( * ) * 21
----
-126
21

skipif mysql # not compatible
query II rowsort label-6633
SELECT ALL - 59 + - COUNT ( * ) * 67 AS col0, COUNT ( * ) * 21
----
-126
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT SUM( ALL - 97 ) + + + ( + 50 )
----
-47

skipif mysql # not compatible
query I rowsort label-6634
SELECT SUM ( ALL - 97 ) + + + ( + 50 )
----
-47

query I rowsort
SELECT + 39 * - + 3 * + + 18 * 95 + - + ( - + 78 ) * - 83
----
-206544

query I rowsort
SELECT + 48 + 94 * + + 44 AS col2
----
4184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6637
SELECT DISTINCT + 57 - - MAX( ( 98 ) ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT + 57 - - MAX ( ( 98 ) ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL + COUNT ( * ) - - - 58 AS col2
----
-57

query I rowsort
SELECT DISTINCT - 80 * + ( 11 )
----
-880

query I rowsort
SELECT DISTINCT - 80 * - 55
----
4400

query I rowsort
SELECT 8 * + - 20 * - 77 AS col0
----
12320

query I rowsort
SELECT DISTINCT - CASE + 14 WHEN - 71 THEN + + 27 WHEN + 47 THEN NULL WHEN - COALESCE ( + - 40, + 64 ) THEN NULL END
----
NULL

query I rowsort
SELECT 98 * 29 AS col0
----
2842

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT - COUNT( * ) * + + 28 - 64 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-6645
SELECT - COUNT ( * ) * + + 28 - 64 AS col2
----
-92

query I rowsort
SELECT ALL 2 + + - ( - + 37 ) col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6647
SELECT 27 DIV 2 - 59
----
-46

skipif mysql # not compatible
query I rowsort label-6647
SELECT 27 / 2 - 59
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT COUNT( * ) * + 97 * + 16 col0
----
1552

skipif mysql # not compatible
query I rowsort label-6648
SELECT COUNT ( * ) * + 97 * + 16 col0
----
1552

query I rowsort
SELECT ALL + NULLIF ( - 61, 11 ) + - 69 AS col2
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT DISTINCT + 18 + 95 DIV + - 4
----
-5

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + 18 + 95 / + - 4
----
-5

query I rowsort
SELECT ALL 72 + 42 AS col0
----
114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6652
SELECT + COUNT( * ) + 98, + CAST( NULL AS DECIMAL ) * - 28 / - ( COUNT( * ) ) AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-6652
SELECT + COUNT ( * ) + 98, + CAST ( NULL AS REAL ) * - 28 / - ( COUNT ( * ) ) AS col0
----
99
NULL

query I rowsort
SELECT - + 57 * - 35 - + ( + COALESCE ( + - 84, - 59 ) )
----
2079

query I rowsort
SELECT 97 + - 78 col2
----
19

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6656
SELECT - 61 * - + 67 * + + 69 DIV + COUNT( * ) + + 44 + + - 79
----
281968

skipif mysql # not compatible
query I rowsort label-6656
SELECT - 61 * - + 67 * + + 69 / + COUNT ( * ) + + 44 + + - 79
----
281968

query I rowsort
SELECT - + 28 * 97 + - 5 + 6 - 65
----
-2780

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT ALL COUNT( * ) + - - 80 + + NULLIF ( + SUM( ALL - 36 ), 91 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL COUNT ( * ) + - - 80 + + NULLIF ( + SUM ( ALL - 36 ), 91 ) AS col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6659
SELECT - COUNT( * ) * 68 DIV + COUNT( DISTINCT + - 49 ) * - COUNT( * ) + + 44
----
112

skipif mysql # not compatible
query I rowsort label-6659
SELECT - COUNT ( * ) * 68 / + COUNT ( DISTINCT + - 49 ) * - COUNT ( * ) + + 44
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6660
SELECT ALL 57 + - 30 + + CAST( - 5 AS SIGNED ) * 55 + CAST( NULL AS SIGNED ) * - - AVG ( - - 55 ) * + + 9 * - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL 57 + - 30 + + CAST ( - 5 AS INTEGER ) * 55 + CAST ( NULL AS INTEGER ) * - - AVG ( - - 55 ) * + + 9 * - 65 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 3, - 87 ) AS col1
----
3

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

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

query I rowsort
SELECT DISTINCT 88 - 90 AS col1
----
-2

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

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

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

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

query I rowsort
SELECT ALL 6 * + 85 + - 1
----
509

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT CASE - - COALESCE ( + 43, + - 68 ) WHEN MIN( ALL - + 94 ) + - - COUNT( * ) THEN + - ( + 44 ) END + + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6667
SELECT CASE - - COALESCE ( + 43, + - 68 ) WHEN MIN ( ALL - + 94 ) + - - COUNT ( * ) THEN + - ( + 44 ) END + + - 71 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6668
SELECT DISTINCT - NULLIF ( ( + CAST( 7 AS SIGNED ) ), - AVG ( + 24 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - NULLIF ( ( + CAST ( 7 AS INTEGER ) ), - AVG ( + 24 ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL MIN( 76 )
----
76

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL MIN ( 76 )
----
76

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6671
SELECT ALL 86 * - ( CAST( NULL AS SIGNED ) ) * + - 40 + - COUNT( * ) + 74 + - + ( + 63 ) / - + COUNT( 11 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL 86 * - ( CAST ( NULL AS INTEGER ) ) * + - 40 + - COUNT ( * ) + 74 + - + ( + 63 ) / - + COUNT ( 11 ) AS col0
----
NULL

query I rowsort
SELECT 89 * + + 24
----
2136

onlyif mysql # aggregate syntax: 
query II rowsort label-6673
SELECT 4, CASE 35 WHEN - 89 - - 75 THEN 23 END / - COUNT( * ) + + 60 AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-6673
SELECT 4, CASE 35 WHEN - 89 - - 75 THEN 23 END / - COUNT ( * ) + + 60 AS col1
----
4
NULL

query II rowsort
SELECT 9, - 11 AS col0
----
9
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT 8 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-6675
SELECT 8 / + 26
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6676
SELECT CAST( + - 48 AS SIGNED ) + 11 * 32
----
304

skipif mysql # not compatible
query I rowsort label-6676
SELECT CAST ( + - 48 AS INTEGER ) + 11 * 32
----
304

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

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT + COUNT ( * ) / ( - - 42 ) AS col2
----
0

query I rowsort
SELECT ALL + 4 * - 97
----
-388

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6679
SELECT 33 DIV - MAX( DISTINCT 98 ) * 67 + + 96
----
96

skipif mysql # not compatible
query I rowsort label-6679
SELECT 33 / - MAX ( DISTINCT 98 ) * 67 + + 96
----
96

query I rowsort
SELECT 4 + - ( - ( 62 ) )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-6681
SELECT DISTINCT - 75, - 4 * - MAX( ALL - CASE + 45 WHEN - 6 + - + 52 THEN 97 ELSE NULL END ) AS col2
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-6681
SELECT DISTINCT - 75, - 4 * - MAX ( ALL - CASE + 45 WHEN - 6 + - + 52 THEN 97 ELSE NULL END ) AS col2
----
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT ALL 69 * - - 27 + + COUNT( - + 11 )
----
1864

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL 69 * - - 27 + + COUNT ( - + 11 )
----
1864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6683
SELECT ALL + NULLIF ( - CAST( - 64 AS SIGNED ), + + 40 ) * 56 * + 90 + - COUNT( - ( - - 84 ) ) + + 52 + - 10
----
322601

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL + NULLIF ( - CAST ( - 64 AS INTEGER ), + + 40 ) * 56 * + 90 + - COUNT ( - ( - - 84 ) ) + + 52 + - 10
----
322601

query I rowsort
SELECT ALL + 70 * + 76 + + ( 66 )
----
5386

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT + SUM( DISTINCT + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-6685
SELECT + SUM ( DISTINCT + 71 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6686
SELECT - NULLIF ( + 96, + COUNT( * ) * - 52 ) / - 64 * CAST( NULL AS SIGNED ) * + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6686
SELECT - NULLIF ( + 96, + COUNT ( * ) * - 52 ) / - 64 * CAST ( NULL AS INTEGER ) * + 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL - - COUNT( * ) * + 28 + ( 41 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL - - COUNT ( * ) * + 28 + ( 41 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6688
SELECT 49 AS col1, + 90 + COUNT( * )
----
49
91

skipif mysql # not compatible
query II rowsort label-6688
SELECT 49 AS col1, + 90 + COUNT ( * )
----
49
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT + COUNT( + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-6689
SELECT + COUNT ( + 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT ALL 88 * - COUNT( * ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL 88 * - COUNT ( * ) AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6691
SELECT DISTINCT 66 * + - CASE + 71 WHEN NULLIF ( + 52, + AVG ( - 12 ) ) THEN + + 13 WHEN + AVG ( - + 40 ) THEN NULL WHEN + - COUNT( * ) + + 10 THEN - - CAST( COUNT( * ) AS DECIMAL ) / + MIN( ALL 15 ) * - + COUNT( * ) + 99 * 15 - + ( - 12 ) END - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT 66 * + - CASE + 71 WHEN NULLIF ( + 52, + AVG ( - 12 ) ) THEN + + 13 WHEN + AVG ( - + 40 ) THEN NULL WHEN + - COUNT ( * ) + + 10 THEN - - CAST ( COUNT ( * ) AS REAL ) / + MIN ( ALL 15 ) * - + COUNT ( * ) + 99 * 15 - + ( - 12 ) END - 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6692
SELECT DISTINCT + + 50 DIV + 45
----
1

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT + + 50 / + 45
----
1

query I rowsort
SELECT ALL + 23 * 19
----
437

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

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

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

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

query I rowsort
SELECT - 29 * 35 * + 0 - + 9 AS col2
----
-9

query I rowsort
SELECT + 7 * 46 * + 76 * - 90
----
-2202480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6698
SELECT ALL MIN( - - 23 ) - + - 57 + + - 7 DIV - 12 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL MIN ( - - 23 ) - + - 57 + + - 7 / - 12 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT + + 46 * + 69 + 4 - - + 81 + + + COUNT( * )
----
3260

skipif mysql # not compatible
query I rowsort label-6699
SELECT + + 46 * + 69 + 4 - - + 81 + + + COUNT ( * )
----
3260

query I rowsort
SELECT + 74 * - + 86 * + 27 + - 32 * - 75 AS col1
----
-169428

query I rowsort
SELECT ALL NULLIF ( - 3, + 40 ) col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ALL - COALESCE ( - + MIN( 92 ), - 3 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL - COALESCE ( - + MIN ( 92 ), - 3 ) AS col0
----
92

query I rowsort
SELECT + NULLIF ( - 98, - 98 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6704
SELECT + CAST( 91 AS SIGNED ) * - ( - + 53 ) * - 49 * - 35 * - ( COUNT( * ) )
----
-8271445

skipif mysql # not compatible
query I rowsort label-6704
SELECT + CAST ( 91 AS INTEGER ) * - ( - + 53 ) * - 49 * - 35 * - ( COUNT ( * ) )
----
-8271445

query II rowsort
SELECT ALL 78, 31 AS col2
----
78
31

query I rowsort
SELECT - NULLIF ( 2, - 2 * 59 + - 16 * - 10 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT + ( + 87 ) + + ( MIN( ALL 99 ) ) AS col1
----
186

skipif mysql # not compatible
query I rowsort label-6707
SELECT + ( + 87 ) + + ( MIN ( ALL 99 ) ) AS col1
----
186

query I rowsort
SELECT + 27 - + - CASE - 86 WHEN + - 26 THEN NULL WHEN - + 26 * - 49 THEN 63 + - 68 ELSE + + 72 + 77 + - 54 + 47 END
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT ALL NULLIF ( - 4, NULLIF ( - 30, - 83 * - AVG ( + 90 ) + + - 71 * + 30 ) + + 4 ) * - 47 + MAX( 77 ) AS col2
----
265

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL NULLIF ( - 4, NULLIF ( - 30, - 83 * - AVG ( + 90 ) + + - 71 * + 30 ) + + 4 ) * - 47 + MAX ( 77 ) AS col2
----
265

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

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

query I rowsort
SELECT - 44 + + 80 col1
----
36

query I rowsort
SELECT - 3 - 51 + + 39 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT - COALESCE ( + 20, - MAX( - CAST( 61 AS SIGNED ) ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6713
SELECT - COALESCE ( + 20, - MAX ( - CAST ( 61 AS INTEGER ) ) ) AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6714
SELECT ALL + 0 + + 62 + + CAST( NULL AS SIGNED ) * 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL + 0 + + 62 + + CAST ( NULL AS INTEGER ) * 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT + 8 * + COUNT( ALL - + 28 )
----
8

skipif mysql # not compatible
query I rowsort label-6715
SELECT + 8 * + COUNT ( ALL - + 28 )
----
8

query I rowsort
SELECT DISTINCT 14 + + 87 col0
----
101

query I rowsort
SELECT ALL - CASE 44 WHEN + + 57 * ( - 66 ) THEN + ( - - 87 ) - 73 END / 72 + + + 43 / AVG ( + 34 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT + 49 + + SUM( DISTINCT + 46 ) + + 34
----
129

skipif mysql # not compatible
query I rowsort label-6718
SELECT + 49 + + SUM ( DISTINCT + 46 ) + + 34
----
129

query II rowsort
SELECT + 66, NULLIF ( 67, 78 ) AS col0
----
66
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6720
SELECT ALL - 73 DIV + COUNT( ALL - 14 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL - 73 / + COUNT ( ALL - 14 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT + COUNT( + 5 )
----
1

skipif mysql # not compatible
query I rowsort label-6721
SELECT + COUNT ( + 5 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT - 56 * - 50 * + 91 - + 19 + + MAX( DISTINCT - ( - - 55 ) ) * - 9 * - 93 AS col2
----
208746

skipif mysql # not compatible
query I rowsort label-6722
SELECT - 56 * - 50 * + 91 - + 19 + + MAX ( DISTINCT - ( - - 55 ) ) * - 9 * - 93 AS col2
----
208746

onlyif mysql # DIV for integer division: 
query I rowsort label-6723
SELECT + 69 DIV - 85 - 2
----
-2

skipif mysql # not compatible
query I rowsort label-6723
SELECT + 69 / - 85 - 2
----
-2

query II rowsort
SELECT DISTINCT + - 21 AS col0, + 10 AS col2
----
-21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT DISTINCT COUNT( * ) * - MAX( ALL + + 77 ) * + 59 + + 84 + - 10 - 32 - + 80 - + - 90 + - 93 AS col2
----
-4584

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT COUNT ( * ) * - MAX ( ALL + + 77 ) * + 59 + + 84 + - 10 - 32 - + 80 - + - 90 + - 93 AS col2
----
-4584

query I rowsort
SELECT - 83 * - 33 + - 6 * - ( + 30 )
----
2919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6727
SELECT - COUNT( * ) + + 14 * CAST( NULL AS SIGNED ) * - 24 * - COALESCE ( 77, - 58, - 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6727
SELECT - COUNT ( * ) + + 14 * CAST ( NULL AS INTEGER ) * - 24 * - COALESCE ( 77, - 58, - 5 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT ALL + + CASE - 37 WHEN - 63 + - COUNT( * ) THEN + 69 + 60 + 26 + - + 69 + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL + + CASE - 37 WHEN - 63 + - COUNT ( * ) THEN + 69 + 60 + 26 + - + 69 + COUNT ( * ) END col2
----
NULL

query I rowsort
SELECT - 35 + - + 83 + - 50 * 88
----
-4518

onlyif mysql # DIV for integer division: 
query I rowsort label-6730
SELECT - 5 - - 9 DIV + 24 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6730
SELECT - 5 - - 9 / + 24 AS col1
----
-5

query II rowsort
SELECT - COALESCE ( - - 58, CASE + - 8 WHEN - 42 THEN NULL ELSE - 22 END ), + 37 AS col2
----
-58
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT - COUNT( * ) * CASE + 3 WHEN + - 9 THEN + + COUNT( - 11 ) + - 92 / - 51 + 89 * - 27 * 54 + + 89 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT - COUNT ( * ) * CASE + 3 WHEN + - 9 THEN + + COUNT ( - 11 ) + - 92 / - 51 + 89 * - 27 * 54 + + 89 END col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT - 89 * - - 22 * + ( - 70 ) + + COUNT( * ) col2
----
137061

skipif mysql # not compatible
query I rowsort label-6734
SELECT - 89 * - - 22 * + ( - 70 ) + + COUNT ( * ) col2
----
137061

query I rowsort
SELECT ALL + + NULLIF ( - 90, + 94 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT + + 82 * 6 + COUNT( * ) * - 29
----
463

skipif mysql # not compatible
query I rowsort label-6736
SELECT + + 82 * 6 + COUNT ( * ) * - 29
----
463

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

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

query II rowsort
SELECT + - 82 AS col0, - 72 AS col1
----
-82
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6739
SELECT ALL CAST( + - 60 AS SIGNED ) AS col0, 91
----
-60
91

skipif mysql # not compatible
query II rowsort label-6739
SELECT ALL CAST ( + - 60 AS INTEGER ) AS col0, 91
----
-60
91

query II rowsort
SELECT - 21 * - - 79 * + 77, 90 AS col1
----
-127743
90

query I rowsort
SELECT + 27 + + ( 83 ) AS col2
----
110

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6742
SELECT ALL - 4 * + CAST( NULL AS DECIMAL ) / + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - 4 * + CAST ( NULL AS REAL ) / + 78 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6743
SELECT + 45 DIV + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6743
SELECT + 45 / + 95 AS col1
----
0

query I rowsort
SELECT + 3 + + + 14
----
17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6746
SELECT ALL ( + 26 ) + 40 AS col1, ( + + 93 ) + - - SUM( 98 ) DIV MIN( DISTINCT + - 17 ) * - 45 * + 44 + - 13
----
66
9980

skipif mysql # not compatible
query II rowsort label-6746
SELECT ALL ( + 26 ) + 40 AS col1, ( + + 93 ) + - - SUM ( 98 ) / MIN ( DISTINCT + - 17 ) * - 45 * + 44 + - 13
----
66
9980

query I rowsort
SELECT - NULLIF ( - + 57, 18 * + 63 + 84 * - 59 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT + 9 + - COUNT( 50 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6748
SELECT + 9 + - COUNT ( 50 ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT ALL + NULLIF ( 81, 78 DIV + - 83 - - 11 DIV 36 * - 23 ) + - + 65 DIV - 33
----
82

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL + NULLIF ( 81, 78 / + - 83 - - 11 / 36 * - 23 ) + - + 65 / - 33
----
82

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

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

query I rowsort
SELECT DISTINCT 14 * + + NULLIF ( + 73, - 4 ) AS col0
----
1022

onlyif mysql # aggregate syntax: 
query II rowsort label-6752
SELECT ALL 26 + + - COUNT( * ) - 26 + 93 + - 47 + + 88 * 32 AS col0, 8 col0
----
2861
8

skipif mysql # not compatible
query II rowsort label-6752
SELECT ALL 26 + + - COUNT ( * ) - 26 + 93 + - 47 + + 88 * 32 AS col0, 8 col0
----
2861
8

query I rowsort
SELECT + 49 + + - 96 * - - 27 + + 69
----
-2474

query I rowsort
SELECT + 55 + - 64 + + 34
----
25

query I rowsort
SELECT DISTINCT 78 * - + 49 AS col2
----
-3822

query I rowsort
SELECT 61 * - - 52 * - ( - 87 )
----
275964

query I rowsort
SELECT ALL 13 * + 26
----
338

query I rowsort
SELECT DISTINCT 25 * - 61 AS col1
----
-1525

onlyif mysql # DIV for integer division: 
query I rowsort label-6759
SELECT 78 DIV - 94 - - 95 col2
----
95

skipif mysql # not compatible
query I rowsort label-6759
SELECT 78 / - 94 - - 95 col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6760
SELECT ALL 9 * - MAX( ALL - + 5 ) * - + NULLIF ( + 38, - 29 * + 29 * + COALESCE ( 78, - COUNT( DISTINCT + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) ) ) / + AVG ( ALL - 29 ) + + + 26 + + + CAST( NULL AS DECIMAL ) - - ( - - ( + COALESCE ( - + COUNT( * ), - 81, COUNT( * ) * + ( 78 ) ) ) ) / + 82 * + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL 9 * - MAX ( ALL - + 5 ) * - + NULLIF ( + 38, - 29 * + 29 * + COALESCE ( 78, - COUNT ( DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) ) ) / + AVG ( ALL - 29 ) + + + 26 + + + CAST ( NULL AS REAL ) - - ( - - ( + COALESCE ( - + COUNT ( * ), - 81, COUNT ( * ) * + ( 78 ) ) ) ) / + 82 * + 48 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6761
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT - CAST ( NULL AS REAL ) / + 62 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT DISTINCT - - NULLIF ( - - NULLIF ( + 10, + MAX( DISTINCT - 37 ) ), + + CAST( - + 98 AS SIGNED ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT - - NULLIF ( - - NULLIF ( + 10, + MAX ( DISTINCT - 37 ) ), + + CAST ( - + 98 AS INTEGER ) ) AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6763
SELECT ALL - 90 DIV - 58
----
1

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL - 90 / - 58
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-6765
SELECT CAST ( NULL AS INTEGER ) * 19 col1
----
NULL

query I rowsort
SELECT + 33 * + - 61
----
-2013

query I rowsort
SELECT ALL + 40 * + - 31 * + - 59
----
73160

query I rowsort
SELECT DISTINCT - + 77 col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL - 49 * 11 * CASE - 75 WHEN + - 0 THEN - + COUNT( * ) * - 31 WHEN + - NULLIF ( 8, + - 26 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL - 49 * 11 * CASE - 75 WHEN + - 0 THEN - + COUNT ( * ) * - 31 WHEN + - NULLIF ( 8, + - 26 ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6770
SELECT DISTINCT - COUNT( * ) + - - 59 col2, - CAST( - 40 AS SIGNED ) * - SUM( - 94 ) AS col0
----
58
3760

skipif mysql # not compatible
query II rowsort label-6770
SELECT DISTINCT - COUNT ( * ) + - - 59 col2, - CAST ( - 40 AS INTEGER ) * - SUM ( - 94 ) AS col0
----
58
3760

onlyif mysql # aggregate syntax: 
query II rowsort label-6771
SELECT + - SUM( ALL - 65 ) AS col0, 0 AS col2
----
65
0

skipif mysql # not compatible
query II rowsort label-6771
SELECT + - SUM ( ALL - 65 ) AS col0, 0 AS col2
----
65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT - 83 * - COALESCE ( - + NULLIF ( - 45, + 27 ), CASE + 29 WHEN + 27 + + + NULLIF ( 93, + 32 ) THEN NULL WHEN 70 + - CASE + - 1 WHEN - - MAX( - 49 ) THEN + 69 WHEN - + 1 + + ( 22 ) - + - 99 * - - 36 THEN NULL END * 91 THEN 6 + 41 END - + COUNT( * ) )
----
3735

skipif mysql # not compatible
query I rowsort label-6772
SELECT - 83 * - COALESCE ( - + NULLIF ( - 45, + 27 ), CASE + 29 WHEN + 27 + + + NULLIF ( 93, + 32 ) THEN NULL WHEN 70 + - CASE + - 1 WHEN - - MAX ( - 49 ) THEN + 69 WHEN - + 1 + + ( 22 ) - + - 99 * - - 36 THEN NULL END * 91 THEN 6 + 41 END - + COUNT ( * ) )
----
3735

query II rowsort
SELECT ALL - + 78 + - ( 95 ), 86 AS col0
----
-173
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6774
SELECT 33 AS col0, - 57 * COUNT( * )
----
33
-57

skipif mysql # not compatible
query II rowsort label-6774
SELECT 33 AS col0, - 57 * COUNT ( * )
----
33
-57

query II rowsort
SELECT + 75 AS col2, 75
----
75
75

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

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

query I rowsort
SELECT DISTINCT - 99 + - 22 AS col2
----
-121

query I rowsort
SELECT ALL + ( + - COALESCE ( 0, + 90 + 33 ) ) + - 66 * 2
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT 7 - - CAST( - 1 AS SIGNED ) + - 88 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6779
SELECT 7 - - CAST ( - 1 AS INTEGER ) + - 88 AS col2
----
-82

query I rowsort
SELECT DISTINCT - 18 + 6 + + + 63 + + 81 * + 9 AS col2
----
780

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

query II rowsort
SELECT ALL - ( + 7 ) * 31, - 78 * 75 col1
----
-217
-5850

query I rowsort
SELECT 7 + + NULLIF ( + - 46, - 50 - + + 66 ) + - + 81
----
-120

query I rowsort
SELECT 42 * 12
----
504

query II rowsort
SELECT 19 AS col1, + 97
----
19
97

query I rowsort
SELECT 16 + - + COALESCE ( - 21, - 20 * + 87 ) AS col2
----
37

query I rowsort
SELECT 52 - - 14
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT ALL - COUNT( * ) - - 99
----
98

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL - COUNT ( * ) - - 99
----
98

query I rowsort
SELECT 32 * + 27 AS col1
----
864

onlyif mysql # DIV for integer division: 
query I rowsort label-6790
SELECT 39 DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6790
SELECT 39 / - 94 AS col1
----
0

query I rowsort
SELECT 42 * - - 74
----
3108

query II rowsort
SELECT 49, + 9 - + - 2 AS col1
----
49
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT DISTINCT NULLIF ( MAX( DISTINCT - - 79 ), 66 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT NULLIF ( MAX ( DISTINCT - - 79 ), 66 ) AS col1
----
79

query I rowsort
SELECT ALL - + 31 - + 47 AS col0
----
-78

query II rowsort
SELECT - 84 AS col0, 17 * - ( + + 88 )
----
-84
-1496

query I rowsort
SELECT 74 + + - 91
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-6797
SELECT - - 17, ( - + ( + COUNT( * ) ) ) - 25 * + 91 AS col1
----
17
-2276

skipif mysql # not compatible
query II rowsort label-6797
SELECT - - 17, ( - + ( + COUNT ( * ) ) ) - 25 * + 91 AS col1
----
17
-2276

query I rowsort
SELECT + 90 + + - ( + 83 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT + SUM( ALL - + 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6799
SELECT + SUM ( ALL - + 36 ) AS col0
----
-36

query I rowsort
SELECT ALL + 60 * 77
----
4620

query I rowsort
SELECT 66 * 95 * + 71 col1
----
445170

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL 43 * + 26 * + - 14 * COALESCE ( - COUNT( * ), 44 * - 96 ) AS col1
----
15652

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL 43 * + 26 * + - 14 * COALESCE ( - COUNT ( * ), 44 * - 96 ) AS col1
----
15652

query II rowsort
SELECT - 40 AS col2, - 30 col2
----
-40
-30

query I rowsort
SELECT + - NULLIF ( - 18, + 9 )
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT + 9 * - 65 * - 10 - - + CAST( ( + - ( MIN( - 96 ) ) ) AS SIGNED ) AS col2
----
5946

skipif mysql # not compatible
query I rowsort label-6806
SELECT + 9 * - 65 * - 10 - - + CAST ( ( + - ( MIN ( - 96 ) ) ) AS INTEGER ) AS col2
----
5946

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6807
SELECT DISTINCT - + 66 col0, + 27 * + ( CAST( NULL AS SIGNED ) ) AS col2
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-6807
SELECT DISTINCT - + 66 col0, + 27 * + ( CAST ( NULL AS INTEGER ) ) AS col2
----
-66
NULL

query I rowsort
SELECT ALL - 8 + 44 AS col2
----
36

query I rowsort
SELECT DISTINCT 28 * + 71 + - 33 AS col2
----
1955

onlyif mysql # DIV for integer division: 
query I rowsort label-6810
SELECT 81 DIV - - 80 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6810
SELECT 81 / - - 80 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT + - 45 DIV 12 + - 93 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6811
SELECT + - 45 / 12 + - 93 AS col2
----
-96

query I rowsort
SELECT - 21 * - 97 - + - 76
----
2113

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT 14 + - ( ( - COUNT( + + 81 ) ) )
----
15

skipif mysql # not compatible
query I rowsort label-6813
SELECT 14 + - ( ( - COUNT ( + + 81 ) ) )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6814
SELECT NULLIF ( + 8, - 90 ) * - 35 * - - 21 - + 65 * - COUNT( * ) * - 30 AS col0, + 80 AS col2
----
-7830
80

skipif mysql # not compatible
query II rowsort label-6814
SELECT NULLIF ( + 8, - 90 ) * - 35 * - - 21 - + 65 * - COUNT ( * ) * - 30 AS col0, + 80 AS col2
----
-7830
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT ALL + 84 DIV + ( + 96 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL + 84 / + ( + 96 ) AS col1
----
0

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

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

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

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

query I rowsort
SELECT 37 * - + 57
----
-2109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6819
SELECT 77 * + ( + COUNT( * ) ) * + COUNT( * ) DIV + COUNT( * ) + + + 34 + - 58 col2
----
53

skipif mysql # not compatible
query I rowsort label-6819
SELECT 77 * + ( + COUNT ( * ) ) * + COUNT ( * ) / + COUNT ( * ) + + + 34 + - 58 col2
----
53

query I rowsort
SELECT ALL - 4 * + 34 AS col1
----
-136

query I rowsort
SELECT 27 + - 44 col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6822
SELECT ALL 50 + + + CAST( NULL AS SIGNED ) AS col0, SUM( - + 97 ) AS col0
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-6822
SELECT ALL 50 + + + CAST ( NULL AS INTEGER ) AS col0, SUM ( - + 97 ) AS col0
----
NULL
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT - 9 * + SUM( DISTINCT + + 39 ) + + + COALESCE ( + 14, - 54, - 50 ) AS col2
----
-337

skipif mysql # not compatible
query I rowsort label-6823
SELECT - 9 * + SUM ( DISTINCT + + 39 ) + + + COALESCE ( + 14, - 54, - 50 ) AS col2
----
-337

query I rowsort
SELECT + 8 * + - 58 * + 53 AS col2
----
-24592

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT 14 * + 19 * - - ( 72 ) + - + 75 + + + CASE COUNT( * ) WHEN - + 90 THEN 16 * + MIN( DISTINCT - 45 ) + + - MIN( 29 ) + ( + - 68 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6825
SELECT 14 * + 19 * - - ( 72 ) + - + 75 + + + CASE COUNT ( * ) WHEN - + 90 THEN 16 * + MIN ( DISTINCT - 45 ) + + - MIN ( 29 ) + ( + - 68 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT DISTINCT COUNT( 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT COUNT ( 63 ) AS col2
----
1

query I rowsort
SELECT - 78 * 51 AS col2
----
-3978

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT ALL + 42 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL + 42 / - 95
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6829
SELECT DISTINCT COUNT( - 78 ), + 31 AS col0
----
1
31

skipif mysql # not compatible
query II rowsort label-6829
SELECT DISTINCT COUNT ( - 78 ), + 31 AS col0
----
1
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6830
SELECT ALL NULLIF ( + NULLIF ( 19, 52 ), + CAST( NULL AS DECIMAL ) + - 91 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL NULLIF ( + NULLIF ( 19, 52 ), + CAST ( NULL AS REAL ) + - 91 ) AS col0
----
19

query I rowsort
SELECT - 72 + - 65
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT - COALESCE ( - 44, + 19, + + 53 * - 98 * + 52 ) * - + COUNT( * ) * 54 AS col0
----
-2376

skipif mysql # not compatible
query I rowsort label-6832
SELECT - COALESCE ( - 44, + 19, + + 53 * - 98 * + 52 ) * - + COUNT ( * ) * 54 AS col0
----
-2376

query I rowsort
SELECT - 61 + - 6 - + + 29 AS col1
----
-96

query I rowsort
SELECT - NULLIF ( + 64, 55 )
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6835
SELECT + ( + + MIN( 29 ) ) + 46, 79 AS col2
----
75
79

skipif mysql # not compatible
query II rowsort label-6835
SELECT + ( + + MIN ( 29 ) ) + 46, 79 AS col2
----
75
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6836
SELECT + 71 + COALESCE ( - + 53, 29 ) - CAST( - COALESCE ( + - 10, + 25 * + 60 * - 64 ) AS SIGNED ) col1
----
8

skipif mysql # not compatible
query I rowsort label-6836
SELECT + 71 + COALESCE ( - + 53, 29 ) - CAST ( - COALESCE ( + - 10, + 25 * + 60 * - 64 ) AS INTEGER ) col1
----
8

query I rowsort
SELECT - - 93 + - - 92
----
185

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

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT COUNT ( DISTINCT + - 12 ) AS col0
----
1

query I rowsort
SELECT ALL 74 * + 96 + - + 62
----
7042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6840
SELECT ALL + - CAST( NULL AS SIGNED ) * - - COUNT( * ) / 75 + + - 76 + - 82 + ( - - ( - - MAX( DISTINCT + - 87 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / 75 + + - 76 + - 82 + ( - - ( - - MAX ( DISTINCT + - 87 ) ) ) AS col2
----
NULL

query I rowsort
SELECT + 60 + + 77 * - 77 AS col1
----
-5869

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL COUNT( * ) * COUNT( * ) + + + 49 + 36 + - MIN( ALL 25 ) + + + 48 * + COUNT( * ) * COUNT( * ) * + - ( 37 ) * - 11 + 18 + + COUNT( * ) AS col1
----
19616

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL COUNT ( * ) * COUNT ( * ) + + + 49 + 36 + - MIN ( ALL 25 ) + + + 48 * + COUNT ( * ) * COUNT ( * ) * + - ( 37 ) * - 11 + 18 + + COUNT ( * ) AS col1
----
19616

onlyif mysql # aggregate syntax: 
query II rowsort label-6843
SELECT - ( - SUM( ALL + 23 ) ) * + 43 * + 36 AS col2, - 20
----
35604
-20

skipif mysql # not compatible
query II rowsort label-6843
SELECT - ( - SUM ( ALL + 23 ) ) * + 43 * + 36 AS col2, - 20
----
35604
-20

query I rowsort
SELECT - ( - + ( - 34 ) ) * + 9 + 94 col0
----
-212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6845
SELECT ALL - + ( - COUNT( + 85 ) ) * + 25 * - 82 * 66 * + CASE 21 WHEN - - NULLIF ( COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ), + 1 * - - 46 + 63 * 85 * - - 0 * + + 96 ) THEN - COUNT( * ) END * 35 + + + ( - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL - + ( - COUNT ( + 85 ) ) * + 25 * - 82 * 66 * + CASE 21 WHEN - - NULLIF ( COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ), + 1 * - - 46 + 63 * 85 * - - 0 * + + 96 ) THEN - COUNT ( * ) END * 35 + + + ( - COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT DISTINCT 62 * COALESCE ( + 76, - 48 )
----
4712

query I rowsort
SELECT + 92 * 21 col0
----
1932

query I rowsort
SELECT ALL ( - 59 ) * - + 39 * 94 col1
----
216294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6849
SELECT DISTINCT 5 * CAST( NULL AS SIGNED ) * + 76 * - - 28 + - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT 5 * CAST ( NULL AS INTEGER ) * + 76 * - - 28 + - 87 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6850
SELECT CASE - COUNT( * ) WHEN 31 + - 25 THEN - - 11 END, + 8 col0
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6850
SELECT CASE - COUNT ( * ) WHEN 31 + - 25 THEN - - 11 END, + 8 col0
----
NULL
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6851
SELECT ALL + ( 49 ) * 90 * - 61 * + - 82 - - + 90 + - 57 + + CAST( NULL AS SIGNED ) + - + 60 + - 49 + - COUNT( * ) * - - 44 * + ( - 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + ( 49 ) * 90 * - 61 * + - 82 - - + 90 + - 57 + + CAST ( NULL AS INTEGER ) + - + 60 + - 49 + - COUNT ( * ) * - - 44 * + ( - 11 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT ALL + COUNT( * ) * - 73 - 95 + - 20 + - 17 * - - 8 AS col0
----
-324

skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL + COUNT ( * ) * - 73 - 95 + - 20 + - 17 * - - 8 AS col0
----
-324

query I rowsort
SELECT + 62 * - 81
----
-5022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6854
SELECT + 32 - NULLIF ( 37, - 84 * + - 39 + 70 * + + 84 * + COUNT( * ) ) / + + 84 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT + 32 - NULLIF ( 37, - 84 * + - 39 + 70 * + + 84 * + COUNT ( * ) ) / + + 84 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 81, 7 col0
----
81
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6856
SELECT - 5 * - 7 + CAST( - - 95 AS SIGNED ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-6856
SELECT - 5 * - 7 + CAST ( - - 95 AS INTEGER ) AS col1
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6857
SELECT - COALESCE ( ( - + 55 ), NULLIF ( - COUNT( * ), 51 ) DIV - 13 * - - 79 * - + COALESCE ( - + CASE CAST( NULL AS DECIMAL ) WHEN + 84 + + CAST( CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ) - 87 * - 17 * - 33 THEN + 50 + - - 72 * - - 83 WHEN + 91 THEN NULL ELSE 54 END, - COUNT( * ) ) + - + COUNT( * ) + 48 + - CASE - 70 WHEN + 50 + - 82 THEN + 60 WHEN 0 + 73 THEN NULL ELSE COALESCE ( 26, COUNT( * ), - 17 * + 26 + 43 ) END ) + + COALESCE ( 12, 60 * - 86 - 69 * 69, 43 )
----
67

skipif mysql # not compatible
query I rowsort label-6857
SELECT - COALESCE ( ( - + 55 ), NULLIF ( - COUNT ( * ), 51 ) / - 13 * - - 79 * - + COALESCE ( - + CASE CAST ( NULL AS REAL ) WHEN + 84 + + CAST ( CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) - 87 * - 17 * - 33 THEN + 50 + - - 72 * - - 83 WHEN + 91 THEN NULL ELSE 54 END, - COUNT ( * ) ) + - + COUNT ( * ) + 48 + - CASE - 70 WHEN + 50 + - 82 THEN + 60 WHEN 0 + 73 THEN NULL ELSE COALESCE ( 26, COUNT ( * ), - 17 * + 26 + 43 ) END ) + + COALESCE ( 12, 60 * - 86 - 69 * 69, 43 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT ALL + COUNT( * ) * + 18 - - MIN( - 63 )
----
-45

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL + COUNT ( * ) * + 18 - - MIN ( - 63 )
----
-45

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6860
SELECT + 78 - - 92 * - 25 + + 62 + + COUNT( * ) * + CAST( + - 21 AS SIGNED ) AS col2
----
-2181

skipif mysql # not compatible
query I rowsort label-6860
SELECT + 78 - - 92 * - 25 + + 62 + + COUNT ( * ) * + CAST ( + - 21 AS INTEGER ) AS col2
----
-2181

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT DISTINCT 2 DIV 46 * 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT 2 / 46 * 81 AS col2
----
0

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

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

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

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

query I rowsort
SELECT ALL - 2 + 96
----
94

query I rowsort
SELECT DISTINCT 60 + - - 70 * + 47 + + 76
----
3426

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6868
SELECT DISTINCT + 50 DIV MAX( - 46 ) * - 53
----
53

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT + 50 / MAX ( - 46 ) * - 53
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT ALL - + 59 + - 88 - + 92 DIV + - 46
----
-145

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL - + 59 + - 88 - + 92 / + - 46
----
-145

query I rowsort
SELECT + 75 + - 95 * + ( - ( - 82 ) )
----
-7715

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6872
SELECT ALL - 8 DIV + - 86 + - COUNT( + 84 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - 8 / + - 86 + - COUNT ( + 84 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT + 50 * - - 44 * - 42 - COUNT( * ) AS col1
----
-92401

skipif mysql # not compatible
query I rowsort label-6873
SELECT + 50 * - - 44 * - 42 - COUNT ( * ) AS col1
----
-92401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6874
SELECT ALL - CAST( - 97 AS SIGNED ) * - + 27 * - NULLIF ( NULLIF ( 77, - MIN( DISTINCT 44 ) ), - - 76 ) + + COUNT( * ) AS col1, + 9 AS col2
----
201664
9

skipif mysql # not compatible
query II rowsort label-6874
SELECT ALL - CAST ( - 97 AS INTEGER ) * - + 27 * - NULLIF ( NULLIF ( 77, - MIN ( DISTINCT 44 ) ), - - 76 ) + + COUNT ( * ) AS col1, + 9 AS col2
----
201664
9

query I rowsort
SELECT - - 71 + 67
----
138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6876
SELECT ALL + 83 DIV + + 37 - - - CAST( 90 AS SIGNED ) * + 63 + + - 22 * - - 76 * - 8
----
7708

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL + 83 / + + 37 - - - CAST ( 90 AS INTEGER ) * + 63 + + - 22 * - - 76 * - 8
----
7708

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

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

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

query I rowsort
SELECT - 33 + 70 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT - 38 * - 58 - + COUNT( * )
----
2203

skipif mysql # not compatible
query I rowsort label-6880
SELECT - 38 * - 58 - + COUNT ( * )
----
2203

onlyif mysql # aggregate syntax: 
query III rowsort label-6881
SELECT DISTINCT - 0 AS col2, + COUNT( * ) * ( + 5 ) AS col0, 88 * ( - 68 )
----
0
5
-5984

skipif mysql # not compatible
query III rowsort label-6881
SELECT DISTINCT - 0 AS col2, + COUNT ( * ) * ( + 5 ) AS col0, 88 * ( - 68 )
----
0
5
-5984

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT DISTINCT + 69 DIV CASE + 85 WHEN + 55 THEN NULL WHEN + 79 * - 34 THEN + 93 * + 99 DIV 41 * 67 ELSE + 84 + 95 END
----
0

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT + 69 / CASE + 85 WHEN + 55 THEN NULL WHEN + 79 * - 34 THEN + 93 * + 99 / 41 * 67 ELSE + 84 + 95 END
----
0

query II rowsort
SELECT ALL - 13 AS col1, - 51 - - 1 AS col1
----
-13
-50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6885
SELECT DISTINCT - CASE 95 WHEN - 35 THEN NULL WHEN - + SUM( 23 ) THEN - 76 WHEN + + COUNT( * ) THEN NULL WHEN - ( + + CAST( NULL AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT - CASE 95 WHEN - 35 THEN NULL WHEN - + SUM ( 23 ) THEN - 76 WHEN + + COUNT ( * ) THEN NULL WHEN - ( + + CAST ( NULL AS INTEGER ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6886
SELECT MAX( NULLIF ( + 20, - 94 * 15 ) ) + + + 14 AS col1, 9 AS col2
----
34
9

skipif mysql # not compatible
query II rowsort label-6886
SELECT MAX ( NULLIF ( + 20, - 94 * 15 ) ) + + + 14 AS col1, 9 AS col2
----
34
9

query I rowsort
SELECT DISTINCT 96 * - 85
----
-8160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6888
SELECT ALL 59, - 67 DIV - ( + - 31 ) * - COUNT( * ) AS col1
----
59
2

skipif mysql # not compatible
query II rowsort label-6888
SELECT ALL 59, - 67 / - ( + - 31 ) * - COUNT ( * ) AS col1
----
59
2

query I rowsort
SELECT + 43 * + - 99 + + 46 col0
----
-4211

query I rowsort
SELECT 31 + + 68 AS col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6891
SELECT + COUNT( * ), - 20 DIV 59 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-6891
SELECT + COUNT ( * ), - 20 / 59 AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL - 57 + + 11 / - 21 - + CASE + + 7 WHEN - COUNT( * ) THEN - MIN( - 30 ) + 88 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - 57 + + 11 / - 21 - + CASE + + 7 WHEN - COUNT ( * ) THEN - MIN ( - 30 ) + 88 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6893
SELECT 48 + 44 + + 5 * - NULLIF ( - MAX( 84 ), + COUNT( * ) DIV 53 * AVG ( ( 40 ) ) ) AS col2, + 52 DIV - 99 * - 88
----
512
0

skipif mysql # not compatible
query II rowsort label-6893
SELECT 48 + 44 + + 5 * - NULLIF ( - MAX ( 84 ), + COUNT ( * ) / 53 * AVG ( ( 40 ) ) ) AS col2, + 52 / - 99 * - 88
----
512
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6894
SELECT ALL COALESCE ( + 50, - CAST( NULL AS SIGNED ), + 28 DIV + COUNT( * ), + ( + ( - 49 ) ) ) + + 15 * - 22
----
-280

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL COALESCE ( + 50, - CAST ( NULL AS INTEGER ), + 28 / + COUNT ( * ), + ( + ( - 49 ) ) ) + + 15 * - 22
----
-280

query I rowsort
SELECT - 93 + - 82
----
-175

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6897
SELECT DISTINCT 53 AS col2, + 37 + - + MAX( CAST( NULL AS DECIMAL ) )
----
53
NULL

skipif mysql # not compatible
query II rowsort label-6897
SELECT DISTINCT 53 AS col2, + 37 + - + MAX ( CAST ( NULL AS REAL ) )
----
53
NULL

query II rowsort
SELECT ALL + - 36 * - 62 AS col1, 80 AS col0
----
2232
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT ALL 90 * - COUNT( + 8 )
----
-90

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL 90 * - COUNT ( + 8 )
----
-90

query I rowsort
SELECT + 59 * - 9
----
-531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6901
SELECT 89 - - 93 * + + ( + 29 ) / - COUNT( * ) + - 62 / + CAST( NULL AS SIGNED ) AS col0, - 88 * + 25 * 67 + 41 + - + COUNT( * )
----
NULL
-147360

skipif mysql # not compatible
query II rowsort label-6901
SELECT 89 - - 93 * + + ( + 29 ) / - COUNT ( * ) + - 62 / + CAST ( NULL AS INTEGER ) AS col0, - 88 * + 25 * 67 + 41 + - + COUNT ( * )
----
NULL
-147360

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT - MAX( 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6902
SELECT - MAX ( 92 ) AS col0
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-6903
SELECT - 82, + 9 DIV - 18 AS col0
----
-82
0

skipif mysql # not compatible
query II rowsort label-6903
SELECT - 82, + 9 / - 18 AS col0
----
-82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT + ( - 17 ) + - + MAX( + 36 ) - + + 91
----
-144

skipif mysql # not compatible
query I rowsort label-6904
SELECT + ( - 17 ) + - + MAX ( + 36 ) - + + 91
----
-144

query II rowsort
SELECT ALL + 23, + COALESCE ( + 10, - - 53 ) col2
----
23
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6906
SELECT + COUNT( * ) col1, 8 * + - CAST( NULL AS SIGNED ) + 9 - + 96 / + + 45 col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6906
SELECT + COUNT ( * ) col1, 8 * + - CAST ( NULL AS INTEGER ) + 9 - + 96 / + + 45 col1
----
1
NULL

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

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

query I rowsort
SELECT ( 56 ) col2
----
56

query II rowsort
SELECT ALL - 0, 35 col2
----
0
35

query I rowsort
SELECT - 9 + + 20
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT ALL 79 - 5 + - 65 + + - ( - COUNT( ALL + 95 ) ) + + + MAX( + 30 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL 79 - 5 + - 65 + + - ( - COUNT ( ALL + 95 ) ) + + + MAX ( + 30 ) AS col2
----
40

query I rowsort
SELECT DISTINCT - CASE 3 WHEN - 74 * - 82 THEN + - AVG ( 27 ) + - 25 WHEN - + ( + - 16 ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - + 1 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT ALL - 27 * + COUNT( - 8 ) * + 14 AS col1
----
-378

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL - 27 * + COUNT ( - 8 ) * + 14 AS col1
----
-378

query I rowsort
SELECT 36 * + 0 * + 95 * - 44
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT ALL - 55 DIV - 30 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL - 55 / - 30 AS col2
----
1

query I rowsort
SELECT DISTINCT - CASE + 6 WHEN + + 85 THEN + 12 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT DISTINCT - NULLIF ( + + CASE + - 65 WHEN + 45 - - - 71 * + 60 * 49 THEN + 70 + + - 84 END, - 34 ) * + 85 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT - NULLIF ( + + CASE + - 65 WHEN + 45 - - - 71 * + 60 * 49 THEN + 70 + + - 84 END, - 34 ) * + 85 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 26 * + + 81
----
2106

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

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

query I rowsort
SELECT ALL + ( - 16 ) * - - 61
----
-976

onlyif mysql # DIV for integer division: 
query I rowsort label-6923
SELECT ALL - 83 DIV - 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL - 83 / - 52 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6924
SELECT 58 DIV - COUNT( DISTINCT 33 )
----
-58

skipif mysql # not compatible
query I rowsort label-6924
SELECT 58 / - COUNT ( DISTINCT 33 )
----
-58

query I rowsort
SELECT ALL + 92 + + 63 + 57 AS col0
----
212

query II rowsort
SELECT 42 + - 22 AS col2, ( 72 ) AS col2
----
20
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT DISTINCT 42 * - COUNT( * ) * + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT 42 * - COUNT ( * ) * + COUNT ( * ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6928
SELECT - 68 - + ( - 17 ) + - 16 * + 80 * - 75 * 37 + - + COUNT( * ) * - 67 * - CAST( + 93 AS SIGNED )
----
3545718

skipif mysql # not compatible
query I rowsort label-6928
SELECT - 68 - + ( - 17 ) + - 16 * + 80 * - 75 * 37 + - + COUNT ( * ) * - 67 * - CAST ( + 93 AS INTEGER )
----
3545718

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT ALL - COUNT( * ) * + 52 * - 56 AS col0
----
2912

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - COUNT ( * ) * + 52 * - 56 AS col0
----
2912

query I rowsort
SELECT - ( + - 90 ) - - 17 - - - 86
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT CAST( NULL AS SIGNED ) / - 92 * - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT CAST ( NULL AS INTEGER ) / - 92 * - 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT NULLIF ( COUNT( * ), - 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6932
SELECT NULLIF ( COUNT ( * ), - 40 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6933
SELECT ( - - 38 ) AS col1, - 22 + + 43 + + 85 * 36 - - + 81 * - + 92 + + - 74 + MIN( DISTINCT + - 66 )
----
38
-4511

skipif mysql # not compatible
query II rowsort label-6933
SELECT ( - - 38 ) AS col1, - 22 + + 43 + + 85 * 36 - - + 81 * - + 92 + + - 74 + MIN ( DISTINCT + - 66 )
----
38
-4511

query I rowsort
SELECT DISTINCT - 18 - - 27 + - 83 col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6935
SELECT + - 68 + + 16, - 4 * 53 + MAX( ALL - 87 ) + + 94 AS col1
----
-52
-205

skipif mysql # not compatible
query II rowsort label-6935
SELECT + - 68 + + 16, - 4 * 53 + MAX ( ALL - 87 ) + + 94 AS col1
----
-52
-205

query I rowsort
SELECT + 98 * + 21 AS col0
----
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL + COUNT( DISTINCT 64 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL + COUNT ( DISTINCT 64 ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6938
SELECT - 30 * + 70 + - 59 - + 23 DIV - 27 * COUNT( * ) * + 32 - - 40 - 46 DIV 7
----
-2125

skipif mysql # not compatible
query I rowsort label-6938
SELECT - 30 * + 70 + - 59 - + 23 / - 27 * COUNT ( * ) * + 32 - - 40 - 46 / 7
----
-2125

query I rowsort
SELECT + 62 * + ( + - 11 )
----
-682

onlyif mysql # DIV for integer division: 
query II rowsort label-6940
SELECT ALL + 7 AS col0, 91 DIV 52 * 74 * 2 AS col2
----
7
148

skipif mysql # not compatible
query II rowsort label-6940
SELECT ALL + 7 AS col0, 91 / 52 * 74 * 2 AS col2
----
7
148

query I rowsort
SELECT ALL 85 * - 34
----
-2890

onlyif mysql # aggregate syntax: 
query II rowsort label-6942
SELECT + CASE - 59 WHEN + ( + ( - + COUNT( * ) ) ) THEN - COUNT( DISTINCT - + 57 ) + + + 34 ELSE NULL END + - + COUNT( * ), 50 + - 17 + 59 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-6942
SELECT + CASE - 59 WHEN + ( + ( - + COUNT ( * ) ) ) THEN - COUNT ( DISTINCT - + 57 ) + + + 34 ELSE NULL END + - + COUNT ( * ), 50 + - 17 + 59 AS col0
----
NULL
92

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

skipif mysql # not compatible
query I rowsort label-6943
SELECT + COUNT ( * ) + - 81 AS col1
----
-80

query I rowsort
SELECT + NULLIF ( 74, + 33 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT + 96 + MIN( ALL 87 ) * + + 18
----
1662

skipif mysql # not compatible
query I rowsort label-6945
SELECT + 96 + MIN ( ALL 87 ) * + + 18
----
1662

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT - NULLIF ( 13, ( - 10 ) * - SUM( DISTINCT 24 ) ) + - 54
----
-67

skipif mysql # not compatible
query I rowsort label-6946
SELECT - NULLIF ( 13, ( - 10 ) * - SUM ( DISTINCT 24 ) ) + - 54
----
-67

query I rowsort
SELECT ALL + 88 * 51 AS col0
----
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT MIN( ALL - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-6948
SELECT MIN ( ALL - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT DISTINCT 48 * + 37 + + COUNT( * ) * + 58 col1
----
1834

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT 48 * + 37 + + COUNT ( * ) * + 58 col1
----
1834

onlyif mysql # aggregate syntax: 
query II rowsort label-6950
SELECT ALL COUNT( * ) * + 40 + + + 39, + 24 col1
----
79
24

skipif mysql # not compatible
query II rowsort label-6950
SELECT ALL COUNT ( * ) * + 40 + + + 39, + 24 col1
----
79
24

query I rowsort
SELECT ALL 71 * - 94 AS col2
----
-6674

query I rowsort
SELECT DISTINCT - 34 * + 84 AS col1
----
-2856

onlyif mysql # aggregate syntax: 
query II rowsort label-6953
SELECT - 66 + - 53 + - 67 + COALESCE ( + ( - + 37 ), + - COUNT( * ) ) * 75 AS col0, + COUNT( * ) - + 42
----
-2961
-41

skipif mysql # not compatible
query II rowsort label-6953
SELECT - 66 + - 53 + - 67 + COALESCE ( + ( - + 37 ), + - COUNT ( * ) ) * 75 AS col0, + COUNT ( * ) - + 42
----
-2961
-41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6955
SELECT ALL CASE + 84 WHEN + - 34 * - - 1 - - CAST( - 89 AS SIGNED ) - 43 + + + COUNT( * ) THEN NULL WHEN CASE 56 WHEN - 81 THEN - + 27 WHEN + 38 THEN 61 * + 71 * - 88 + - COUNT( * ) WHEN + 0 * - 83 THEN - - 95 + + 21 * - 58 END THEN COUNT( * ) * + MIN( 27 ) + + 31 * COUNT( * ) + + 31 + - COALESCE ( COUNT( * ), 25 ) ELSE NULL END * + 41 + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL CASE + 84 WHEN + - 34 * - - 1 - - CAST ( - 89 AS INTEGER ) - 43 + + + COUNT ( * ) THEN NULL WHEN CASE 56 WHEN - 81 THEN - + 27 WHEN + 38 THEN 61 * + 71 * - 88 + - COUNT ( * ) WHEN + 0 * - 83 THEN - - 95 + + 21 * - 58 END THEN COUNT ( * ) * + MIN ( 27 ) + + 31 * COUNT ( * ) + + 31 + - COALESCE ( COUNT ( * ), 25 ) ELSE NULL END * + 41 + 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6956
SELECT - 28 + - + 49 + 61 AS col0, + 41 + - SUM( - 93 ) AS col0
----
-16
134

skipif mysql # not compatible
query II rowsort label-6956
SELECT - 28 + - + 49 + 61 AS col0, + 41 + - SUM ( - 93 ) AS col0
----
-16
134

query I rowsort
SELECT - + 10 * + 18
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT + COUNT( * ) * - + 13 + + - 76 + - - COUNT( * ) * - + 55
----
-144

skipif mysql # not compatible
query I rowsort label-6958
SELECT + COUNT ( * ) * - + 13 + + - 76 + - - COUNT ( * ) * - + 55
----
-144

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6960
SELECT - - ( 60 ) + - - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) + - 98 * + 13
----
61
NULL

skipif mysql # not compatible
query II rowsort label-6960
SELECT - - ( 60 ) + - - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + - 98 * + 13
----
61
NULL

query II rowsort
SELECT - + 96 col1, 4 AS col2
----
-96
4

query I rowsort
SELECT DISTINCT + + 10 * + 30
----
300

query II rowsort
SELECT 39 AS col0, + 9 AS col2
----
39
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT + - 83 + - - 92 * CASE - COUNT( * ) WHEN 79 THEN + 11 WHEN - 24 - AVG ( - 14 ) + + - ( - - COALESCE ( + 68, - 59, - + 7 ) ) * + 45 THEN - - 74 * 33 WHEN 6 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT + - 83 + - - 92 * CASE - COUNT ( * ) WHEN 79 THEN + 11 WHEN - 24 - AVG ( - 14 ) + + - ( - - COALESCE ( + 68, - 59, - + 7 ) ) * + 45 THEN - - 74 * 33 WHEN 6 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 78 * - + 41 AS col0
----
-3198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6966
SELECT 83 AS col0, 7 + + - CAST( - 49 AS SIGNED )
----
83
56

skipif mysql # not compatible
query II rowsort label-6966
SELECT 83 AS col0, 7 + + - CAST ( - 49 AS INTEGER )
----
83
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT + 27 + + MIN( ALL + + 39 ) + - 49 * - 30 AS col1
----
1536

skipif mysql # not compatible
query I rowsort label-6967
SELECT + 27 + + MIN ( ALL + + 39 ) + - 49 * - 30 AS col1
----
1536

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT + - 34 DIV + + 21
----
-1

skipif mysql # not compatible
query I rowsort label-6968
SELECT + - 34 / + + 21
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT - 71 * - 91 * - COUNT( * ) AS col0
----
-6461

skipif mysql # not compatible
query I rowsort label-6969
SELECT - 71 * - 91 * - COUNT ( * ) AS col0
----
-6461

query I rowsort
SELECT + ( - 33 ) + - 40 + 52 AS col2
----
-21

query I rowsort
SELECT + 92 + + 72
----
164

query I rowsort
SELECT DISTINCT ( 32 ) col2
----
32

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

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

query I rowsort
SELECT ALL 67 * + 83
----
5561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT ALL 26 * + CAST( + 77 AS SIGNED )
----
2002

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL 26 * + CAST ( + 77 AS INTEGER )
----
2002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6976
SELECT ALL - CAST( - 10 AS SIGNED ) DIV + 16 + 58 + - ( + 9 ) - COUNT( * ) * + + MAX( 95 )
----
-46

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL - CAST ( - 10 AS INTEGER ) / + 16 + 58 + - ( + 9 ) - COUNT ( * ) * + + MAX ( 95 )
----
-46

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6978
SELECT CAST( - 85 AS SIGNED ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-6978
SELECT CAST ( - 85 AS INTEGER ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-6979
SELECT DISTINCT 66 * - COUNT( * ), + 71 AS col2
----
-66
71

skipif mysql # not compatible
query II rowsort label-6979
SELECT DISTINCT 66 * - COUNT ( * ), + 71 AS col2
----
-66
71

query I rowsort
SELECT ( 98 ) AS col2
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6981
SELECT ALL CAST( NULL AS DECIMAL ) / + 20 + - - 64 + + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL CAST ( NULL AS REAL ) / + 20 + - - 64 + + 95 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6983
SELECT ALL 50 DIV - 43 + COUNT( DISTINCT + 96 ) AS col1, 26 + - + ( - - 34 ) + + 13
----
0
5

skipif mysql # not compatible
query II rowsort label-6983
SELECT ALL 50 / - 43 + COUNT ( DISTINCT + 96 ) AS col1, 26 + - + ( - - 34 ) + + 13
----
0
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6984
SELECT DISTINCT 18 * 14 + + 53 DIV + MIN( DISTINCT - 29 ) + + 55 col0
----
306

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT 18 * 14 + + 53 / + MIN ( DISTINCT - 29 ) + + 55 col0
----
306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6985
SELECT ALL + COUNT( - - CAST( 86 AS SIGNED ) ) DIV - - 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL + COUNT ( - - CAST ( 86 AS INTEGER ) ) / - - 74 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6986
SELECT DISTINCT + NULLIF ( 6, COALESCE ( - 71, 26 ) ) * - CAST( 0 AS SIGNED ), + ( + 31 ) AS col0
----
0
31

skipif mysql # not compatible
query II rowsort label-6986
SELECT DISTINCT + NULLIF ( 6, COALESCE ( - 71, 26 ) ) * - CAST ( 0 AS INTEGER ), + ( + 31 ) AS col0
----
0
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6987
SELECT + + 19 + - + 20 + - 73 + 61 / + - 76 + CAST( NULL AS SIGNED ) * - ( - SUM( + 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6987
SELECT + + 19 + - + 20 + - 73 + 61 / + - 76 + CAST ( NULL AS INTEGER ) * - ( - SUM ( + 25 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT + - 85 * + SUM( DISTINCT - 1 ) + - + 23 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6988
SELECT + - 85 * + SUM ( DISTINCT - 1 ) + - + 23 AS col0
----
62

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

skipif mysql # not compatible
query I rowsort label-6989
SELECT - 86 * - COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6990
SELECT DISTINCT + COUNT( * ) * - - 30 AS col2, - 71 AS col1
----
30
-71

skipif mysql # not compatible
query II rowsort label-6990
SELECT DISTINCT + COUNT ( * ) * - - 30 AS col2, - 71 AS col1
----
30
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6991
SELECT ALL + + 78 * + + 84 - - CASE + CAST( 52 AS SIGNED ) WHEN 93 THEN + - COUNT( * ) * - COUNT( * ) ELSE - SUM( + - 62 ) - + - 75 END
----
6689

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + + 78 * + + 84 - - CASE + CAST ( 52 AS INTEGER ) WHEN 93 THEN + - COUNT ( * ) * - COUNT ( * ) ELSE - SUM ( + - 62 ) - + - 75 END
----
6689

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6992
SELECT + + 79 DIV 70 - - MIN( + + 58 ) * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-6992
SELECT + + 79 / 70 - - MIN ( + + 58 ) * COUNT ( * )
----
59

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

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

query I rowsort
SELECT DISTINCT 40 * + 66 - + 65 AS col0
----
2575

query I rowsort
SELECT ALL 45 * - + 25 AS col0
----
-1125

onlyif mysql # DIV for integer division: 
query II rowsort label-6996
SELECT ALL + + 37 DIV - + 7 col1, COALESCE ( - - 25, + 75 ) DIV 24 * - - 97 + - + 34 + + 91 AS col2
----
-5
154

skipif mysql # not compatible
query II rowsort label-6996
SELECT ALL + + 37 / - + 7 col1, COALESCE ( - - 25, + 75 ) / 24 * - - 97 + - + 34 + + 91 AS col2
----
-5
154

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT ALL - 1 DIV ( - - ( + 17 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL - 1 / ( - - ( + 17 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT - COUNT( * ) * + MIN( DISTINCT - + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-6998
SELECT - COUNT ( * ) * + MIN ( DISTINCT - + 95 )
----
95

query I rowsort
SELECT - ( 20 ) + + - 50 AS col0
----
-70

query I rowsort
SELECT + 38 * - + COALESCE ( - 76, 22 + + 84, + + ( - 79 ) * 51 + - 78 )
----
2888

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT DISTINCT NULLIF ( - - 22, COUNT( * ) * - COUNT( * ) )
----
22

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT NULLIF ( - - 22, COUNT ( * ) * - COUNT ( * ) )
----
22

query I rowsort
SELECT DISTINCT + 5 + 79
----
84

query I rowsort
SELECT ALL + NULLIF ( ( 18 ), + 27 ) + + 80
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT 18 AS col2, - 56 + + COUNT( * )
----
18
-55

skipif mysql # not compatible
query II rowsort label-7004
SELECT 18 AS col2, - 56 + + COUNT ( * )
----
18
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7005
SELECT 51 + - ( 6 ) + + + COUNT( * ) - + - 51 * - + CAST( + 83 AS SIGNED ) * - COUNT( * ) - - + ( + 51 ) * - CASE 88 WHEN + COUNT( * ) THEN + NULLIF ( 90, - ( MIN( ALL + 86 ) ) ) * - COALESCE ( CAST( 52 AS SIGNED ), - COALESCE ( - 77, - + 63 + + - 37 ), + - 60 * - + 56 + + 57 ) / + - COUNT( + 85 ) + 88 END / - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT 51 + - ( 6 ) + + + COUNT ( * ) - + - 51 * - + CAST ( + 83 AS INTEGER ) * - COUNT ( * ) - - + ( + 51 ) * - CASE 88 WHEN + COUNT ( * ) THEN + NULLIF ( 90, - ( MIN ( ALL + 86 ) ) ) * - COALESCE ( CAST ( 52 AS INTEGER ), - COALESCE ( - 77, - + 63 + + - 37 ), + - 60 * - + 56 + + 57 ) / + - COUNT ( + 85 ) + 88 END / - 56 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7006
SELECT CAST( + + 57 AS SIGNED ) DIV - - 88 - + - 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7006
SELECT CAST ( + + 57 AS INTEGER ) / - - 88 - + - 76 AS col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7007
SELECT ALL SUM( ALL + 34 ) + + COUNT( DISTINCT + ( + 34 ) ), 39 DIV MAX( - 26 ) AS col1
----
35
-1

skipif mysql # not compatible
query II rowsort label-7007
SELECT ALL SUM ( ALL + 34 ) + + COUNT ( DISTINCT + ( + 34 ) ), 39 / MAX ( - 26 ) AS col1
----
35
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7008
SELECT + COUNT( - + 35 ) DIV - + ( + 17 ) * + 36 * - 46 * + 62 DIV - COUNT( DISTINCT - 51 ) + 39
----
39

skipif mysql # not compatible
query I rowsort label-7008
SELECT + COUNT ( - + 35 ) / - + ( + 17 ) * + 36 * - 46 * + 62 / - COUNT ( DISTINCT - 51 ) + 39
----
39

query I rowsort
SELECT ALL 37 * 51
----
1887

onlyif mysql # aggregate syntax: 
query II rowsort label-7010
SELECT ALL - 62 - SUM( - 99 ), - 20 + - 21 AS col0
----
37
-41

skipif mysql # not compatible
query II rowsort label-7010
SELECT ALL - 62 - SUM ( - 99 ), - 20 + - 21 AS col0
----
37
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT 92 * + COALESCE ( - 39, + 66, + SUM( ALL + - 84 ) )
----
-3588

skipif mysql # not compatible
query I rowsort label-7011
SELECT 92 * + COALESCE ( - 39, + 66, + SUM ( ALL + - 84 ) )
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT - SUM( - - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-7012
SELECT - SUM ( - - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT - CASE - + CASE - 7 WHEN + 27 + - 47 THEN 31 / + 85 END WHEN + - COUNT( * ) THEN - 80 ELSE COUNT( * ) END * + + 75 + + 86 * 71 * - + 96 + - COUNT( * ) + 29 + COUNT( * ) * - 77 * + 52 * + 75 col0
----
-886523

skipif mysql # not compatible
query I rowsort label-7013
SELECT - CASE - + CASE - 7 WHEN + 27 + - 47 THEN 31 / + 85 END WHEN + - COUNT ( * ) THEN - 80 ELSE COUNT ( * ) END * + + 75 + + 86 * 71 * - + 96 + - COUNT ( * ) + 29 + COUNT ( * ) * - 77 * + 52 * + 75 col0
----
-886523

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT + 84 + + COALESCE ( 27, + 67, + 42 + 67 ) + + 80 + - + 98 + + 48 + - - 37 * + 69 - ( - - 27 ) DIV + 94
----
2694

skipif mysql # not compatible
query I rowsort label-7014
SELECT + 84 + + COALESCE ( 27, + 67, + 42 + 67 ) + + 80 + - + 98 + + 48 + - - 37 * + 69 - ( - - 27 ) / + 94
----
2694

query I rowsort
SELECT COALESCE ( - 29, + - 94 ) + + + 42 AS col2
----
13

query I rowsort
SELECT DISTINCT - 44 * + 42
----
-1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7017
SELECT - 1 * - ( + 45 ) * + 35 + + - CAST( - + 47 AS SIGNED ) + - 30 * + CASE + COUNT( * ) WHEN + - COUNT( * ) / 32 * + AVG ( + 92 ) + - 70 + 18 + - 94 + - 49 THEN COUNT( DISTINCT - 81 ) * + + COUNT( * ) + + 45 + + CAST( 72 AS SIGNED ) + + 32 + + + 20 * + 83 + 12 - + - 51 * - 56 / 94 * + NULLIF ( - 50, - 53 ) + CAST( NULL AS SIGNED ) WHEN - ( 96 ) THEN NULL WHEN ( 99 ) + COUNT( * ) THEN + 44 + + 60 END * + COUNT( * ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT - 1 * - ( + 45 ) * + 35 + + - CAST ( - + 47 AS INTEGER ) + - 30 * + CASE + COUNT ( * ) WHEN + - COUNT ( * ) / 32 * + AVG ( + 92 ) + - 70 + 18 + - 94 + - 49 THEN COUNT ( DISTINCT - 81 ) * + + COUNT ( * ) + + 45 + + CAST ( 72 AS INTEGER ) + + 32 + + + 20 * + 83 + 12 - + - 51 * - 56 / 94 * + NULLIF ( - 50, - 53 ) + CAST ( NULL AS INTEGER ) WHEN - ( 96 ) THEN NULL WHEN ( 99 ) + COUNT ( * ) THEN + 44 + + 60 END * + COUNT ( * ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7018
SELECT ALL - 20 AS col0, + CASE - + COUNT( * ) WHEN - + COUNT( * ) THEN - 47 END - - 61 - 80 + + COUNT( * )
----
-20
-65

skipif mysql # not compatible
query II rowsort label-7018
SELECT ALL - 20 AS col0, + CASE - + COUNT ( * ) WHEN - + COUNT ( * ) THEN - 47 END - - 61 - 80 + + COUNT ( * )
----
-20
-65

query I rowsort
SELECT 79 + - ( + - 96 ) * - + 19 AS col2
----
-1745

query I rowsort
SELECT DISTINCT + 89 * 68 * - + 56 AS col1
----
-338912

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

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT + ( + NULLIF ( + + COUNT ( * ), + 84 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT DISTINCT MAX( 8 ) + 77 * + 83 AS col1
----
6399

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT MAX ( 8 ) + 77 * + 83 AS col1
----
6399

onlyif mysql # aggregate syntax: 
query II rowsort label-7023
SELECT DISTINCT + ( - COUNT( * ) ) + - 79, + SUM( DISTINCT - 10 ) * - - 89 + - - 74 + - 6 + - 82 + + ( + + ( + 85 ) ) * + 66 - - 24 * 54 AS col1
----
-80
6002

skipif mysql # not compatible
query II rowsort label-7023
SELECT DISTINCT + ( - COUNT ( * ) ) + - 79, + SUM ( DISTINCT - 10 ) * - - 89 + - - 74 + - 6 + - 82 + + ( + + ( + 85 ) ) * + 66 - - 24 * 54 AS col1
----
-80
6002

query I rowsort
SELECT - - CASE 54 WHEN - 64 THEN - 78 END
----
NULL

query I rowsort
SELECT ALL + ( + 95 ) AS col2
----
95

query I rowsort
SELECT DISTINCT + 68 + + 30
----
98

query I rowsort
SELECT 28 * + + 48
----
1344

query II rowsort
SELECT ALL 18, - 83 col2
----
18
-83

query I rowsort
SELECT 52 + 5 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL 62 + - + 22 * MAX( DISTINCT - - 82 ) + - 96 AS col2
----
-1838

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL 62 + - + 22 * MAX ( DISTINCT - - 82 ) + - 96 AS col2
----
-1838

query I rowsort
SELECT ALL ( + - 49 ) * 75
----
-3675

query II rowsort
SELECT 14 AS col1, 85 col1
----
14
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT 35 * MAX( 78 ) AS col0
----
2730

skipif mysql # not compatible
query I rowsort label-7033
SELECT 35 * MAX ( 78 ) AS col0
----
2730

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7034
SELECT 77 + + 14 AS col0, COUNT( * ) DIV + + MAX( + 29 ) + - 89
----
91
-89

skipif mysql # not compatible
query II rowsort label-7034
SELECT 77 + + 14 AS col0, COUNT ( * ) / + + MAX ( + 29 ) + - 89
----
91
-89

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT 96 + + CAST( - 3 AS SIGNED ) * - 27 - - CASE + COUNT( * ) WHEN - 59 THEN + 29 * + COUNT( * ) WHEN + 72 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT 96 + + CAST ( - 3 AS INTEGER ) * - 27 - - CASE + COUNT ( * ) WHEN - 59 THEN + 29 * + COUNT ( * ) WHEN + 72 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 77 * - 62 AS col2
----
-4774

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( - 28, - + 27, - 70 ) * - 81 AS col2
----
-2268

onlyif mysql # aggregate syntax: 
query II rowsort label-7040
SELECT DISTINCT - 75 * - COUNT( * ) AS col1, + 94 * + 38 AS col2
----
75
3572

skipif mysql # not compatible
query II rowsort label-7040
SELECT DISTINCT - 75 * - COUNT ( * ) AS col1, + 94 * + 38 AS col2
----
75
3572

query I rowsort
SELECT ALL - 57 * - - 56 AS col1
----
-3192

query I rowsort
SELECT ALL - NULLIF ( 24, - 3 ) AS col1
----
-24

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

skipif mysql # not compatible
query I rowsort label-7043
SELECT SUM ( + - ( 50 ) )
----
-50

query II rowsort
SELECT + 65 AS col2, 22
----
65
22

query II rowsort
SELECT + 16 AS col1, 43 + + 16
----
16
59

query II rowsort
SELECT + 17, 61 AS col2
----
17
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT - 8 * + 58 + - MAX( DISTINCT 50 )
----
-514

skipif mysql # not compatible
query I rowsort label-7047
SELECT - 8 * + 58 + - MAX ( DISTINCT 50 )
----
-514

query I rowsort
SELECT - 77 * + 47 AS col1
----
-3619

query I rowsort
SELECT 55 - 11
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT ALL - - MAX( + 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL - - MAX ( + 71 ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7051
SELECT ALL MIN( + CAST( NULL AS SIGNED ) ) * + SUM( - 57 ) * - 11 + - + 94 + ( 29 ) + COUNT( * ) AS col2, ( SUM( + 57 ) ) AS col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-7051
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) * + SUM ( - 57 ) * - 11 + - + 94 + ( 29 ) + COUNT ( * ) AS col2, ( SUM ( + 57 ) ) AS col1
----
NULL
57

query II rowsort
SELECT + 44 * + 48 AS col0, + 82
----
2112
82

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

query II rowsort
SELECT + 46, 39 * + COALESCE ( + 10, + - 9 ) AS col1
----
46
390

query I rowsort
SELECT ALL + 90 * - 96 - + 1 col2
----
-8641

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT - 82 * + COUNT( - 27 ) + NULLIF ( + - 31, + 53 * - 79 * - + 54 ) + - + 36 AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-7056
SELECT - 82 * + COUNT ( - 27 ) + NULLIF ( + - 31, + 53 * - 79 * - + 54 ) + - + 36 AS col0
----
-149

query I rowsort
SELECT + 93 + 7 AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7058
SELECT DISTINCT 63 + - NULLIF ( - - 74, + + ( - + 87 ) * - - COALESCE ( + 96, - 35, COUNT( * ) ) + - + 17 + - 26 * - 37 ) * 89 * - - 84 AS col2, + 11 * - COUNT( * ) + 19 + CASE COUNT( * ) WHEN - - ( - - 45 ) THEN NULL WHEN - ( CAST( - + 50 AS SIGNED ) ) THEN + + CASE 52 WHEN - 91 THEN 38 * - 20 * 1 ELSE NULL END * + - COUNT( * ) WHEN + ( + 83 ) * 64 THEN NULL ELSE SUM( ALL + 96 ) END AS col0
----
-553161
104

skipif mysql # not compatible
query II rowsort label-7058
SELECT DISTINCT 63 + - NULLIF ( - - 74, + + ( - + 87 ) * - - COALESCE ( + 96, - 35, COUNT ( * ) ) + - + 17 + - 26 * - 37 ) * 89 * - - 84 AS col2, + 11 * - COUNT ( * ) + 19 + CASE COUNT ( * ) WHEN - - ( - - 45 ) THEN NULL WHEN - ( CAST ( - + 50 AS INTEGER ) ) THEN + + CASE 52 WHEN - 91 THEN 38 * - 20 * 1 ELSE NULL END * + - COUNT ( * ) WHEN + ( + 83 ) * 64 THEN NULL ELSE SUM ( ALL + 96 ) END AS col0
----
-553161
104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT NULLIF ( + - CASE - ( + COUNT( * ) ) WHEN + 26 * 60 THEN NULL WHEN 16 THEN + 77 * 78 + + + CASE 74 WHEN 12 THEN - 16 END END, - 2 * - + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7060
SELECT NULLIF ( + - CASE - ( + COUNT ( * ) ) WHEN + 26 * 60 THEN NULL WHEN 16 THEN + 77 * 78 + + + CASE 74 WHEN 12 THEN - 16 END END, - 2 * - + 80 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7061
SELECT ALL 90 + 97, - CAST( - 6 AS SIGNED ) + 37 AS col2
----
187
43

skipif mysql # not compatible
query II rowsort label-7061
SELECT ALL 90 + 97, - CAST ( - 6 AS INTEGER ) + 37 AS col2
----
187
43

query I rowsort
SELECT DISTINCT + 38 + - 58 + 28 + - 48 + - 22
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT + NULLIF ( - CASE ( - - 14 ) WHEN - 81 THEN NULL WHEN - 98 * - 48 THEN NULL ELSE - 35 * 51 * - - 42 END, + MIN( 22 ) ) AS col0
----
74970

skipif mysql # not compatible
query I rowsort label-7063
SELECT + NULLIF ( - CASE ( - - 14 ) WHEN - 81 THEN NULL WHEN - 98 * - 48 THEN NULL ELSE - 35 * 51 * - - 42 END, + MIN ( 22 ) ) AS col0
----
74970

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT COUNT( * ) * 27 * + 35 + - 50 AS col1
----
895

skipif mysql # not compatible
query I rowsort label-7064
SELECT COUNT ( * ) * 27 * + 35 + - 50 AS col1
----
895

query I rowsort
SELECT ALL 47 + + 60 + + 23 AS col2
----
130

query II rowsort
SELECT DISTINCT + 1 AS col1, 97
----
1
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7067
SELECT 60 * + SUM( ALL CAST( NULL AS DECIMAL ) ) * + AVG ( ALL + CAST( + - 25 AS SIGNED ) ) - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT 60 * + SUM ( ALL CAST ( NULL AS REAL ) ) * + AVG ( ALL + CAST ( + - 25 AS INTEGER ) ) - - 23
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7068
SELECT - CASE 76 WHEN + 92 * 99 + + CAST( NULL AS SIGNED ) THEN NULL WHEN + CASE 19 WHEN + 60 / COUNT( * ) - 63 * + 27 THEN - ( 4 ) ELSE NULL END THEN + 25 ELSE + 52 + 5 END AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7068
SELECT - CASE 76 WHEN + 92 * 99 + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + CASE 19 WHEN + 60 / COUNT ( * ) - 63 * + 27 THEN - ( 4 ) ELSE NULL END THEN + 25 ELSE + 52 + 5 END AS col2
----
-57

query I rowsort
SELECT + 80 + 69
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7070
SELECT + 85 * 37 AS col2, + COUNT( * ) + + CAST( 67 AS SIGNED ) + - 97 - - 48 + + + 46 * - - 34 - 60 * - COUNT( * )
----
3145
1643

skipif mysql # not compatible
query II rowsort label-7070
SELECT + 85 * 37 AS col2, + COUNT ( * ) + + CAST ( 67 AS INTEGER ) + - 97 - - 48 + + + 46 * - - 34 - 60 * - COUNT ( * )
----
3145
1643

onlyif mysql # DIV for integer division: 
query II rowsort label-7071
SELECT - COALESCE ( - - 18, + + 3 DIV + + 3 - 79 ) AS col2, 26
----
-18
26

skipif mysql # not compatible
query II rowsort label-7071
SELECT - COALESCE ( - - 18, + + 3 / + + 3 - 79 ) AS col2, 26
----
-18
26

query I rowsort
SELECT - CASE - + 87 WHEN 55 THEN - - 55 END AS col0
----
NULL

query I rowsort
SELECT + 49 * 30 * + 28 * - - 74 AS col1
----
3045840

query I rowsort
SELECT ALL - 34 * - ( 4 )
----
136

query I rowsort
SELECT ALL 73 - + + 56 * - 46 * - 99
----
-254951

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ALL MIN( - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL MIN ( - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7077
SELECT DISTINCT COALESCE ( + COUNT( * ), COALESCE ( + 67, ( - 98 ) * - 55 ) ) AS col1, + 48 - - + 89
----
1
137

skipif mysql # not compatible
query II rowsort label-7077
SELECT DISTINCT COALESCE ( + COUNT ( * ), COALESCE ( + 67, ( - 98 ) * - 55 ) ) AS col1, + 48 - - + 89
----
1
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL + SUM( ALL + + ( + + COALESCE ( + 12, 26 ) ) ) - + + 69
----
-57

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL + SUM ( ALL + + ( + + COALESCE ( + 12, 26 ) ) ) - + + 69
----
-57

query II rowsort
SELECT DISTINCT 66 * - 7 * - - 49, 4 + 68 AS col2
----
-22638
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7080
SELECT + COUNT( * ) + - + 39 DIV + + 11 + - ( + + 82 )
----
-84

skipif mysql # not compatible
query I rowsort label-7080
SELECT + COUNT ( * ) + - + 39 / + + 11 + - ( + + 82 )
----
-84

query I rowsort
SELECT + 7 + - + 97
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-7082
SELECT ( MIN( ALL 24 ) ) AS col1, COUNT( 6 ) - + 30
----
24
-29

skipif mysql # not compatible
query II rowsort label-7082
SELECT ( MIN ( ALL 24 ) ) AS col1, COUNT ( 6 ) - + 30
----
24
-29

query I rowsort
SELECT DISTINCT - 55 * - - COALESCE ( + ( + + 91 ), 91 * + 30 ) col2
----
-5005

query II rowsort
SELECT DISTINCT + + ( - 74 ) AS col2, - 84 AS col0
----
-74
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7085
SELECT ALL - NULLIF ( 85, + CAST( NULL AS DECIMAL ) ) * 25
----
-2125

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL - NULLIF ( 85, + CAST ( NULL AS REAL ) ) * 25
----
-2125

query I rowsort
SELECT ALL - 5 * 43
----
-215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7087
SELECT - + 0 * ( - + SUM( NULLIF ( - ( + - 31 ), + CAST( NULL AS SIGNED ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7087
SELECT - + 0 * ( - + SUM ( NULLIF ( - ( + - 31 ), + CAST ( NULL AS INTEGER ) ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT DISTINCT - + 1 * + + 80 + COUNT( * ) - + + COUNT( * ) + - + NULLIF ( + + 65, + - CASE + 15 WHEN MAX( DISTINCT + 86 ) THEN NULL ELSE + ( - + 60 ) END ) * + 54
----
-3590

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT - + 1 * + + 80 + COUNT ( * ) - + + COUNT ( * ) + - + NULLIF ( + + 65, + - CASE + 15 WHEN MAX ( DISTINCT + 86 ) THEN NULL ELSE + ( - + 60 ) END ) * + 54
----
-3590

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT + MIN( ALL + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7089
SELECT + MIN ( ALL + 79 ) AS col0
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL + + 98 * - 17 + COUNT( * ) + + 47 + + 27
----
-1591

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL + + 98 * - 17 + COUNT ( * ) + + 47 + + 27
----
-1591

onlyif mysql # DIV for integer division: 
query I rowsort label-7092
SELECT - 62 DIV 92 + + + 83
----
83

skipif mysql # not compatible
query I rowsort label-7092
SELECT - 62 / 92 + + + 83
----
83

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

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

query I rowsort
SELECT - 10 + 37 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT 65 * COUNT( * ) + - 57 * MAX( 6 ) AS col2
----
-277

skipif mysql # not compatible
query I rowsort label-7095
SELECT 65 * COUNT ( * ) + - 57 * MAX ( 6 ) AS col2
----
-277

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7096
SELECT + 62 * + ( - CAST( NULL AS DECIMAL ) ), NULLIF ( - COUNT( * ), SUM( DISTINCT - - 10 ) / - + 56 + - + 9 ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7096
SELECT + 62 * + ( - CAST ( NULL AS REAL ) ), NULLIF ( - COUNT ( * ), SUM ( DISTINCT - - 10 ) / - + 56 + - + 9 ) AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT - CASE 62 WHEN 16 * + 88 * - 26 * SUM( NULLIF ( + - 69, 97 ) ) / + ( - 36 ) - + COALESCE ( - 2, + + 74, + - 50 ) + 57 THEN - 11 ELSE + 28 END, - 54 AS col1
----
-28
-54

skipif mysql # not compatible
query II rowsort label-7097
SELECT - CASE 62 WHEN 16 * + 88 * - 26 * SUM ( NULLIF ( + - 69, 97 ) ) / + ( - 36 ) - + COALESCE ( - 2, + + 74, + - 50 ) + 57 THEN - 11 ELSE + 28 END, - 54 AS col1
----
-28
-54

query I rowsort
SELECT + ( + 35 ) + - 55 + + 82 col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7099
SELECT ALL + 29 - - + CASE - COUNT( ALL 13 ) WHEN + CAST( + 28 AS SIGNED ) THEN NULL WHEN + + 59 THEN - + 35 END + + 31 * + MIN( + 48 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL + 29 - - + CASE - COUNT ( ALL 13 ) WHEN + CAST ( + 28 AS INTEGER ) THEN NULL WHEN + + 59 THEN - + 35 END + + 31 * + MIN ( + 48 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 75 * + 36
----
-2700

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT + COUNT( * ) + 90 - - 0 * + 92
----
91

skipif mysql # not compatible
query I rowsort label-7101
SELECT + COUNT ( * ) + 90 - - 0 * + 92
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT ALL SUM( + - 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL SUM ( + - 78 ) AS col2
----
-78

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

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

query I rowsort
SELECT + 37 + 71 AS col2
----
108

query I rowsort
SELECT + 96 * + + 66
----
6336

query I rowsort
SELECT - COALESCE ( + 64, + 37 )
----
-64

query I rowsort
SELECT + 13 + - - 22 col2
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7108
SELECT 63, + 36 * + COALESCE ( - - 29, 4 * - 67 + + 87 + + - 86 - + 20 * 88 + - COUNT( * ) ) AS col2
----
63
1044

skipif mysql # not compatible
query II rowsort label-7108
SELECT 63, + 36 * + COALESCE ( - - 29, 4 * - 67 + + 87 + + - 86 - + 20 * 88 + - COUNT ( * ) ) AS col2
----
63
1044

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT + CASE + - 46 WHEN + + 44 THEN 82 * + COUNT( * ) * - - 96 * - COUNT( * ) + 25 * 97 * COUNT( * ) + 86 ELSE - 10 END * 58 AS col1
----
-580

skipif mysql # not compatible
query I rowsort label-7110
SELECT + CASE + - 46 WHEN + + 44 THEN 82 * + COUNT ( * ) * - - 96 * - COUNT ( * ) + 25 * 97 * COUNT ( * ) + 86 ELSE - 10 END * 58 AS col1
----
-580

query II rowsort
SELECT 76 AS col2, + 17 * - 44 - + - 51
----
76
-697

query I rowsort
SELECT ALL 48 + 42 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7113
SELECT DISTINCT CASE - CAST( 11 AS SIGNED ) WHEN - - 16 THEN - + 0 + 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT CASE - CAST ( 11 AS INTEGER ) WHEN - - 16 THEN - + 0 + 20 END
----
NULL

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

query I rowsort
SELECT DISTINCT 95 + + 17 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT ALL - 65 + + COUNT( * ) + 64 * - - 11 AS col2
----
640

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL - 65 + + COUNT ( * ) + 64 * - - 11 AS col2
----
640

query II rowsort
SELECT 20 AS col1, - 53 col2
----
20
-53

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

query I rowsort
SELECT 64 * + - 39 AS col0
----
-2496

query II rowsort
SELECT 8 * + + 97 - - - 96, + 3 * 54 + + 42 AS col1
----
680
204

query I rowsort
SELECT - 97 * + 21 col0
----
-2037

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT DISTINCT 84 + + CASE + COALESCE ( - - CASE 67 WHEN - 98 - + - COUNT( * ) + 99 THEN + - COUNT( * ) WHEN - + 20 THEN NULL END, + 69, - + COUNT( * ) ) WHEN + 50 THEN + 71 END - - 16 * - 71 * - - 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT 84 + + CASE + COALESCE ( - - CASE 67 WHEN - 98 - + - COUNT ( * ) + 99 THEN + - COUNT ( * ) WHEN - + 20 THEN NULL END, + 69, - + COUNT ( * ) ) WHEN + 50 THEN + 71 END - - 16 * - 71 * - - 80 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL - + COUNT( * ) + - - 51 + + 84
----
134

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - + COUNT ( * ) + - - 51 + + 84
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT - 15 * COUNT( * ) - - 17
----
2

skipif mysql # not compatible
query I rowsort label-7124
SELECT - 15 * COUNT ( * ) - - 17
----
2

query I rowsort
SELECT DISTINCT - + 7 AS col1
----
-7

query II rowsort
SELECT ALL - 67 AS col0, + 9 AS col2
----
-67
9

query I rowsort
SELECT ALL + + 31 - - 53 + - 2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT 13 + + + 66 + + 28 DIV - 11 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7128
SELECT 13 + + + 66 + + 28 / - 11 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT 56 * + + COUNT( * ) * + 53
----
2968

skipif mysql # not compatible
query I rowsort label-7129
SELECT 56 * + + COUNT ( * ) * + 53
----
2968

query I rowsort
SELECT + 35 * 80 - - 84 + + 33
----
2917

query I rowsort
SELECT 3 - - 37 + - 87 AS col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7132
SELECT SUM( ALL 11 ) DIV 23 + + + 20 + 52
----
72

skipif mysql # not compatible
query I rowsort label-7132
SELECT SUM ( ALL 11 ) / 23 + + + 20 + 52
----
72

query II rowsort
SELECT 61 * - 62 AS col0, + 55 col1
----
-3782
55

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

query I rowsort
SELECT DISTINCT + 61 - 6 AS col2
----
55

query I rowsort
SELECT 80 + - ( 55 ) AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7137
SELECT MIN( ALL + 91 ) * CAST( 39 AS SIGNED ) * + 20 * - 72
----
-5110560

skipif mysql # not compatible
query I rowsort label-7137
SELECT MIN ( ALL + 91 ) * CAST ( 39 AS INTEGER ) * + 20 * - 72
----
-5110560

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT 34 * 40 - + NULLIF ( ( + NULLIF ( - 12, - 84 ) ), COUNT( * ) ) AS col0
----
1372

skipif mysql # not compatible
query I rowsort label-7138
SELECT 34 * 40 - + NULLIF ( ( + NULLIF ( - 12, - 84 ) ), COUNT ( * ) ) AS col0
----
1372

query I rowsort
SELECT 76 * 43 * 95 AS col0
----
310460

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

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

query I rowsort
SELECT 86 * - 2 * + + 51 AS col2
----
-8772

onlyif mysql # aggregate syntax: 
query II rowsort label-7142
SELECT DISTINCT COUNT( * ) * - 84 AS col0, + 76
----
-84
76

skipif mysql # not compatible
query II rowsort label-7142
SELECT DISTINCT COUNT ( * ) * - 84 AS col0, + 76
----
-84
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7143
SELECT ALL 72 + - 90 * + 47 * + - 37 + + ( - + MAX( + 82 ) ) DIV + 80 AS col2
----
156581

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL 72 + - 90 * + 47 * + - 37 + + ( - + MAX ( + 82 ) ) / + 80 AS col2
----
156581

query I rowsort
SELECT 2 - - + 15 + - 23 + 72 + 47 * 11 AS col1
----
583

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT COUNT( * ) - + 86 + + 8 * - SUM( ALL - 92 ) col1
----
651

skipif mysql # not compatible
query I rowsort label-7145
SELECT COUNT ( * ) - + 86 + + 8 * - SUM ( ALL - 92 ) col1
----
651

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

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

query II rowsort
SELECT 30 - + 13, - 6 * + 57 AS col0
----
17
-342

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7148
SELECT ( + + 77 ) AS col2, - NULLIF ( 25, + COUNT( + NULLIF ( 94, 36 ) ) * + 21 ) DIV + 34 col2
----
77
0

skipif mysql # not compatible
query II rowsort label-7148
SELECT ( + + 77 ) AS col2, - NULLIF ( 25, + COUNT ( + NULLIF ( 94, 36 ) ) * + 21 ) / + 34 col2
----
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT 33 + + - COALESCE ( - 83, COUNT( * ) - + - 17, - 64 )
----
116

skipif mysql # not compatible
query I rowsort label-7149
SELECT 33 + + - COALESCE ( - 83, COUNT ( * ) - + - 17, - 64 )
----
116

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

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

query I rowsort
SELECT 79 + + + 29 AS col1
----
108

query I rowsort
SELECT 23 * - ( - 77 ) * - - 11 AS col2
----
19481

onlyif mysql # aggregate syntax: 
query II rowsort label-7153
SELECT COUNT( * ) * - + 7, - 68 AS col0
----
-7
-68

skipif mysql # not compatible
query II rowsort label-7153
SELECT COUNT ( * ) * - + 7, - 68 AS col0
----
-7
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT ALL + 53 + + 6 * + COUNT( * ) * + + 43 * 45 AS col1
----
11663

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL + 53 + + 6 * + COUNT ( * ) * + + 43 * 45 AS col1
----
11663

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT COUNT( * ) + + + ( 8 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-7155
SELECT COUNT ( * ) + + + ( 8 ) AS col1
----
9

query I rowsort
SELECT DISTINCT ( - 77 ) * - 65 + - 75 * - - 25 AS col2
----
3130

onlyif mysql # aggregate syntax: 
query II rowsort label-7157
SELECT COUNT( * ) * - 55 + + ( - 11 ), - CASE + 11 WHEN + 30 / - 39 THEN NULL WHEN + MIN( DISTINCT - ( + + 92 ) ) THEN 59 WHEN ( - 83 ) + - 27 + + 25 * + 22 - 65 THEN NULL ELSE NULL END * 21 AS col0
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-7157
SELECT COUNT ( * ) * - 55 + + ( - 11 ), - CASE + 11 WHEN + 30 / - 39 THEN NULL WHEN + MIN ( DISTINCT - ( + + 92 ) ) THEN 59 WHEN ( - 83 ) + - 27 + + 25 * + 22 - 65 THEN NULL ELSE NULL END * 21 AS col0
----
-66
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7158
SELECT 81 DIV - - 85 + + 90 + - 56 * + 95 AS col0, 7 + - 58
----
-5230
-51

skipif mysql # not compatible
query II rowsort label-7158
SELECT 81 / - - 85 + + 90 + - 56 * + 95 AS col0, 7 + - 58
----
-5230
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7159
SELECT + + 97 DIV COUNT( * ) * + 1 + - - 29 AS col1, 44 * + ( + 47 ) * + 84 AS col1
----
126
173712

skipif mysql # not compatible
query II rowsort label-7159
SELECT + + 97 / COUNT ( * ) * + 1 + - - 29 AS col1, 44 * + ( + 47 ) * + 84 AS col1
----
126
173712

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7161
SELECT ALL - 32 AS col0, - 6 + CAST( 98 AS SIGNED ) AS col0
----
-32
92

skipif mysql # not compatible
query II rowsort label-7161
SELECT ALL - 32 AS col0, - 6 + CAST ( 98 AS INTEGER ) AS col0
----
-32
92

query II rowsort
SELECT DISTINCT - 3 AS col1, 66 AS col1
----
-3
66

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

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

query I rowsort
SELECT 12 + + - 4 + + 2
----
10

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

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

query I rowsort
SELECT 86 * + 35
----
3010

query I rowsort
SELECT DISTINCT 8 * 92 AS col0
----
736

query I rowsort
SELECT ALL - NULLIF ( - 96, - + 58 ) + - - 1 AS col0
----
97

query I rowsort
SELECT 2 + + 68
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7170
SELECT DISTINCT - CASE + - 24 WHEN 75 + + 76 + + 8 - + COUNT( * ) * + COUNT( * ) * + + 11 * - 61 * + 17 THEN - - 53 + 12 WHEN + 21 / + 93 THEN NULL ELSE NULL END / 63 * 63 / + 2 + + 45, 73 + - 2 col2
----
NULL
71

skipif mysql # not compatible
query II rowsort label-7170
SELECT DISTINCT - CASE + - 24 WHEN 75 + + 76 + + 8 - + COUNT ( * ) * + COUNT ( * ) * + + 11 * - 61 * + 17 THEN - - 53 + 12 WHEN + 21 / + 93 THEN NULL ELSE NULL END / 63 * 63 / + 2 + + 45, 73 + - 2 col2
----
NULL
71

query I rowsort
SELECT - 30 + - 31 col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL + 40 + - 17 * - SUM( 72 )
----
1264

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL + 40 + - 17 * - SUM ( 72 )
----
1264

query I rowsort
SELECT - 18 * 85 col1
----
-1530

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

query I rowsort
SELECT + - 38 + - + 5 + - 34
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL - 74 * ( - + 67 ) * - + 78 * + 53 - - 56 + - - COUNT( * )
----
-20496315

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - 74 * ( - + 67 ) * - + 78 * + 53 - - 56 + - - COUNT ( * )
----
-20496315

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT DISTINCT - 46 * - 63 * - + 40 + - 34 + NULLIF ( 34, COALESCE ( - 83, - ( + + 34 ) ) DIV - 33 + + 59 ) DIV - + 73 col1
----
-115954

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT - 46 * - 63 * - + 40 + - 34 + NULLIF ( 34, COALESCE ( - 83, - ( + + 34 ) ) / - 33 + + 59 ) / - + 73 col1
----
-115954

query I rowsort
SELECT ALL 18 + 75
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7180
SELECT ALL 33 AS col1, - COUNT( * ) * - 40 * - 8 AS col1
----
33
-320

skipif mysql # not compatible
query II rowsort label-7180
SELECT ALL 33 AS col1, - COUNT ( * ) * - 40 * - 8 AS col1
----
33
-320

query I rowsort
SELECT - + 16 - 38
----
-54

query I rowsort
SELECT + + 11 * - 52
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT COUNT( * ) * 4 - 48
----
-44

skipif mysql # not compatible
query I rowsort label-7183
SELECT COUNT ( * ) * 4 - 48
----
-44

query I rowsort
SELECT - 90 * - + 72 AS col1
----
6480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7185
SELECT + COUNT( * ), - CASE + 13 WHEN - 34 * - NULLIF ( + 52, COALESCE ( + 88, - COUNT( * ), + + 90 * + 94 + COUNT( * ) ) ) * + 79 * + 61 * - CASE 76 WHEN COUNT( * ) THEN - 93 END THEN - 63 * CAST( NULL AS SIGNED ) + - 0 + - - 15 * - CASE 64 WHEN - 32 THEN COUNT( * ) / - 96 * - NULLIF ( - 68, + + 59 / + ( - 4 ) ) END - + + 35 WHEN + - 64 + ( 89 ) + COUNT( * ) * 69 THEN 89 - COUNT( * ) ELSE NULL END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7185
SELECT + COUNT ( * ), - CASE + 13 WHEN - 34 * - NULLIF ( + 52, COALESCE ( + 88, - COUNT ( * ), + + 90 * + 94 + COUNT ( * ) ) ) * + 79 * + 61 * - CASE 76 WHEN COUNT ( * ) THEN - 93 END THEN - 63 * CAST ( NULL AS INTEGER ) + - 0 + - - 15 * - CASE 64 WHEN - 32 THEN COUNT ( * ) / - 96 * - NULLIF ( - 68, + + 59 / + ( - 4 ) ) END - + + 35 WHEN + - 64 + ( 89 ) + COUNT ( * ) * 69 THEN 89 - COUNT ( * ) ELSE NULL END AS col0
----
1
NULL

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

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

query I rowsort
SELECT + 17 - 33
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7188
SELECT + 22 * + COALESCE ( + 6, + 48, 30 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT + 22 * + COALESCE ( + 6, + 48, 30 ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL + MAX( + 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL + MAX ( + 71 ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT + CASE - NULLIF ( - 9, + + ( + 54 ) ) WHEN - 81 * - - 91 * 61 THEN 42 - + NULLIF ( - + ( + - 16 ), + NULLIF ( - 12, + CAST( 93 AS SIGNED ) + + 21 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7190
SELECT + CASE - NULLIF ( - 9, + + ( + 54 ) ) WHEN - 81 * - - 91 * 61 THEN 42 - + NULLIF ( - + ( + - 16 ), + NULLIF ( - 12, + CAST ( 93 AS INTEGER ) + + 21 ) ) END AS col1
----
NULL

query III rowsort
SELECT + 3 * - + 62 AS col2, ( 20 ) AS col2, 66 AS col0
----
-186
20
66

query I rowsort
SELECT NULLIF ( + - ( ( - - 53 ) ), + + 23 + - 11 + - + 27 * + 79 )
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7193
SELECT + 20 DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7193
SELECT + 20 / 78 AS col1
----
0

query I rowsort
SELECT CASE + 88 WHEN + 70 THEN - 30 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7195
SELECT ALL + 41, - 27 * - + MIN( ALL + 26 ) AS col0
----
41
702

skipif mysql # not compatible
query II rowsort label-7195
SELECT ALL + 41, - 27 * - + MIN ( ALL + 26 ) AS col0
----
41
702

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

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

query I rowsort
SELECT - 73 - COALESCE ( + 19, 46 ) AS col1
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7198
SELECT + MIN( + - 43 ) DIV - 11 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7198
SELECT + MIN ( + - 43 ) / - 11 AS col1
----
3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7200
SELECT ALL COUNT( * ) * + 81 * 89 + + AVG ( 37 ) / ( - + 57 ) * + - 94 / + 45 + + + CAST( NULL AS SIGNED ) + + - 53, MIN( ALL 59 ) AS col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-7200
SELECT ALL COUNT ( * ) * + 81 * 89 + + AVG ( 37 ) / ( - + 57 ) * + - 94 / + 45 + + + CAST ( NULL AS INTEGER ) + + - 53, MIN ( ALL 59 ) AS col1
----
NULL
59

query I rowsort
SELECT + 13 + 50 + + 13 * + 70 AS col2
----
973

query I rowsort
SELECT ALL - 81 * + 99
----
-8019

query I rowsort
SELECT - 31 * 29 * - 40
----
35960

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

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

query I rowsort
SELECT + 42 - + 99 * + + 12
----
-1146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT MIN( ALL + - CAST( 75 AS SIGNED ) ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7206
SELECT MIN ( ALL + - CAST ( 75 AS INTEGER ) ) AS col0
----
-75

query I rowsort
SELECT + 77 * + 58 AS col1
----
4466

query I rowsort
SELECT + 95 + 31 + - + 46 + 73 * + 72 * ( - + 8 ) AS col1
----
-41968

query I rowsort
SELECT - 0 * + 28 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7210
SELECT 25 AS col1, CAST( - - 32 AS SIGNED ) AS col0
----
25
32

skipif mysql # not compatible
query II rowsort label-7210
SELECT 25 AS col1, CAST ( - - 32 AS INTEGER ) AS col0
----
25
32

onlyif mysql # DIV for integer division: 
query II rowsort label-7211
SELECT - + 16, 98 DIV 42 AS col2
----
-16
2

skipif mysql # not compatible
query II rowsort label-7211
SELECT - + 16, 98 / 42 AS col2
----
-16
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT ALL + 86 - + 15 * + - CAST( + 8 AS SIGNED ) + - + 93 * + + CAST( + 38 AS SIGNED )
----
-3328

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL + 86 - + 15 * + - CAST ( + 8 AS INTEGER ) + - + 93 * + + CAST ( + 38 AS INTEGER )
----
-3328

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT - 58 - - 72 + 42 * - 67 * + 3 + COUNT( * ) * 17 * - CASE - ( - - COUNT( DISTINCT + - 96 ) ) WHEN + + 98 THEN NULL WHEN + + COUNT( * ) - 11 THEN COUNT( * ) / + MIN( 54 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT - 58 - - 72 + 42 * - 67 * + 3 + COUNT ( * ) * 17 * - CASE - ( - - COUNT ( DISTINCT + - 96 ) ) WHEN + + 98 THEN NULL WHEN + + COUNT ( * ) - 11 THEN COUNT ( * ) / + MIN ( 54 ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL 33 * - 15
----
-495

onlyif mysql # aggregate syntax: 
query II rowsort label-7215
SELECT ALL COUNT( * ), 86 AS col2
----
1
86

skipif mysql # not compatible
query II rowsort label-7215
SELECT ALL COUNT ( * ), 86 AS col2
----
1
86

query I rowsort
SELECT + - 45 + + + 67 * - 65 * 17 * + - 51 + + 61 + 27
----
3775828

query II rowsort
SELECT ALL 95, ( 37 ) AS col1
----
95
37

query I rowsort
SELECT - 35 - + 82 + - 68
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7219
SELECT - 79 + 56, COALESCE ( + CAST( NULL AS SIGNED ), 1 ) AS col2
----
-23
1

skipif mysql # not compatible
query II rowsort label-7219
SELECT - 79 + 56, COALESCE ( + CAST ( NULL AS INTEGER ), 1 ) AS col2
----
-23
1

query I rowsort
SELECT ALL - + 12 * - 91
----
1092

query I rowsort
SELECT - 88 * - 55
----
4840

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL + 41 * + COUNT( * ) * ( - 42 ) + - 43 + + 11 * 12
----
-1633

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL + 41 * + COUNT ( * ) * ( - 42 ) + - 43 + + 11 * 12
----
-1633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7223
SELECT ALL + + ( - - CAST( 40 AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-7223
SELECT ALL + + ( - - CAST ( 40 AS INTEGER ) )
----
40

query I rowsort
SELECT - - 55 + - 73 col2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7225
SELECT ALL + NULLIF ( - + 14, - NULLIF ( - 85, - 77 + COUNT( * ) + - CASE - 40 WHEN 55 THEN - CASE + CAST( + CAST( 6 AS SIGNED ) AS SIGNED ) WHEN 78 / - - CASE 1 WHEN + 84 THEN - 56 * - - CAST( NULL AS SIGNED ) + - 48 ELSE NULL END + + 19 * + 57 / - 89 + + - 82 * 23 / 60 THEN - + SUM( 0 ) * - COUNT( * ) END WHEN - 92 * + COALESCE ( - + 67, + 99 + + 48, + - 52 ) * + COUNT( * ) * 79 * - 96 + 21 THEN 0 ELSE + 50 END ) )
----
-14

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL + NULLIF ( - + 14, - NULLIF ( - 85, - 77 + COUNT ( * ) + - CASE - 40 WHEN 55 THEN - CASE + CAST ( + CAST ( 6 AS INTEGER ) AS INTEGER ) WHEN 78 / - - CASE 1 WHEN + 84 THEN - 56 * - - CAST ( NULL AS INTEGER ) + - 48 ELSE NULL END + + 19 * + 57 / - 89 + + - 82 * 23 / 60 THEN - + SUM ( 0 ) * - COUNT ( * ) END WHEN - 92 * + COALESCE ( - + 67, + 99 + + 48, + - 52 ) * + COUNT ( * ) * 79 * - 96 + 21 THEN 0 ELSE + 50 END ) )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7226
SELECT CAST( - 72 AS SIGNED ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-7226
SELECT CAST ( - 72 AS INTEGER ) col1
----
-72

query II rowsort
SELECT + ( - 24 ) AS col1, 67 * + 73
----
-24
4891

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT DISTINCT + 36 / - 13 + 4 - 27 * - CASE - 72 WHEN - 58 + 94 THEN - + 62 + - SUM( 36 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT DISTINCT + 36 / - 13 + 4 - 27 * - CASE - 72 WHEN - 58 + 94 THEN - + 62 + - SUM ( 36 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7229
SELECT DISTINCT 17 DIV + CASE - 55 WHEN + + 44 - - 76 + - ( - 35 ) THEN NULL ELSE - 17 END + - - 65 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT 17 / + CASE - 55 WHEN + + 44 - - 76 + - ( - 35 ) THEN NULL ELSE - 17 END + - - 65 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7230
SELECT DISTINCT + COUNT( * ) + + ( - CAST( NULL AS SIGNED ) ) * - 87 * - 45, 99 + 87 AS col2
----
NULL
186

skipif mysql # not compatible
query II rowsort label-7230
SELECT DISTINCT + COUNT ( * ) + + ( - CAST ( NULL AS INTEGER ) ) * - 87 * - 45, 99 + 87 AS col2
----
NULL
186

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT COUNT( * ) + + + 37 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-7231
SELECT COUNT ( * ) + + + 37 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7232
SELECT DISTINCT SUM( 36 ) * + 48 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT SUM ( 36 ) * + 48 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 4 - + + 41 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT COALESCE ( - 26, + + 4, ( - COUNT( + - 85 ) ) ) * + - 23 AS col0
----
598

skipif mysql # not compatible
query I rowsort label-7234
SELECT COALESCE ( - 26, + + 4, ( - COUNT ( + - 85 ) ) ) * + - 23 AS col0
----
598

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

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

query I rowsort
SELECT - 47 * + 27
----
-1269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7237
SELECT + MAX( - 23 ) + + - 32 - 23 + - COALESCE ( - CAST( - ( + CASE - 47 WHEN 89 + - 84 THEN COUNT( * ) - + CAST( - COUNT( * ) AS DECIMAL ) WHEN - 71 * 53 THEN NULL END ) AS SIGNED ), - 55 + + 74 * - COUNT( * ) ) * - CAST( 92 AS DECIMAL ) + + ( - - SUM( 81 ) ) + - + COALESCE ( + 83, - + 86 ) + + + 96 * + 67 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT + MAX ( - 23 ) + + - 32 - 23 + - COALESCE ( - CAST ( - ( + CASE - 47 WHEN 89 + - 84 THEN COUNT ( * ) - + CAST ( - COUNT ( * ) AS REAL ) WHEN - 71 * 53 THEN NULL END ) AS INTEGER ), - 55 + + 74 * - COUNT ( * ) ) * - CAST ( 92 AS REAL ) + + ( - - SUM ( 81 ) ) + - + COALESCE ( + 83, - + 86 ) + + + 96 * + 67 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7238
SELECT 8 + + 70 + - CAST( 21 AS SIGNED ) + + - CAST( NULL AS SIGNED ) + 51 + + 79 / + + 52 * 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7238
SELECT 8 + + 70 + - CAST ( 21 AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + 51 + + 79 / + + 52 * 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT DISTINCT + 22 - ( - - ( + MAX( + 74 ) ) )
----
-52

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT + 22 - ( - - ( + MAX ( + 74 ) ) )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7240
SELECT CAST( - 89 AS SIGNED ) * - - 96 + + 16 * + 50 + - 82 AS col1
----
-7826

skipif mysql # not compatible
query I rowsort label-7240
SELECT CAST ( - 89 AS INTEGER ) * - - 96 + + 16 * + 50 + - 82 AS col1
----
-7826

query I rowsort
SELECT + 97 * - 29
----
-2813

query I rowsort
SELECT - - NULLIF ( + 61, 54 ) AS col0
----
61

query I rowsort
SELECT DISTINCT + 72 * 58
----
4176

query I rowsort
SELECT - 63 * + 56 - 53
----
-3581

query I rowsort
SELECT ALL + 28 * + 64 AS col2
----
1792

query I rowsort
SELECT DISTINCT 51 * 89 AS col0
----
4539

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT DISTINCT + CASE + COALESCE ( + COALESCE ( + - 51, MIN( + + 44 ) + + 24 - - + 94, - - 2 ), COUNT( * ), COUNT( * ) * - + COUNT( * ) + + 75 * - - COALESCE ( - 63, 73 * + + NULLIF ( 37, 55 + - ( - COUNT( * ) ) * + COALESCE ( 70, - ( + 27 ), - COUNT( * ) + + ( + 49 ) ) + - 13 ) + 54 - - 9, + + 53 * - + COUNT( * ) + + 8 + 17 / - + 35 ) * + 1 * ( COUNT( * ) ) + 25 ) WHEN - 24 * + COUNT( * ) + 51 THEN NULL WHEN - 12 + 19 THEN 7 * 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT + CASE + COALESCE ( + COALESCE ( + - 51, MIN ( + + 44 ) + + 24 - - + 94, - - 2 ), COUNT ( * ), COUNT ( * ) * - + COUNT ( * ) + + 75 * - - COALESCE ( - 63, 73 * + + NULLIF ( 37, 55 + - ( - COUNT ( * ) ) * + COALESCE ( 70, - ( + 27 ), - COUNT ( * ) + + ( + 49 ) ) + - 13 ) + 54 - - 9, + + 53 * - + COUNT ( * ) + + 8 + 17 / - + 35 ) * + 1 * ( COUNT ( * ) ) + 25 ) WHEN - 24 * + COUNT ( * ) + 51 THEN NULL WHEN - 12 + 19 THEN 7 * 80 END
----
NULL

query I rowsort
SELECT 36 - 29 * 58 + + - 76 - 99
----
-1821

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT ( - 20 ) DIV - - 96 * 49
----
0

skipif mysql # not compatible
query I rowsort label-7249
SELECT ( - 20 ) / - - 96 * 49
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7250
SELECT 76 DIV - ( - - SUM( ALL + 30 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-7250
SELECT 76 / - ( - - SUM ( ALL + 30 ) )
----
-2

query II rowsort
SELECT + 22 col1, + 88 * - - 53 - + 1
----
22
4663

query I rowsort
SELECT 44 * + 94 + + 45 AS col1
----
4181

query I rowsort
SELECT 95 * - + 65
----
-6175

onlyif mysql # DIV for integer division: 
query II rowsort label-7254
SELECT ALL + 80 DIV - 90 * + + 32 * - 58 AS col1, 39
----
0
39

skipif mysql # not compatible
query II rowsort label-7254
SELECT ALL + 80 / - 90 * + + 32 * - 58 AS col1, 39
----
0
39

query II rowsort
SELECT ALL - 26 + + ( 87 ) AS col2, + 98 AS col2
----
61
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL - MIN( DISTINCT + + 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL - MIN ( DISTINCT + + 38 ) AS col1
----
-38

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

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

query I rowsort
SELECT - 76 * - 38 - - - CASE WHEN + 69 <= 12 THEN - 0 ELSE NULL END / + 12 + - 20
----
NULL

query I rowsort
SELECT 24 * - 8 AS col1
----
-192

query I rowsort
SELECT 95 * - 86
----
-8170

query II rowsort
SELECT 26 AS col2, 93 * 16
----
26
1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7262
SELECT ALL 42 - + + 40 * + + 67 * 28 DIV - COUNT( * )
----
75082

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL 42 - + + 40 * + + 67 * 28 / - COUNT ( * )
----
75082

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7263
SELECT DISTINCT ( - - 67 ) * + COALESCE ( + 12, - - COUNT( * ), - CASE + 34 WHEN + AVG ( DISTINCT + - 3 ) + NULLIF ( + + 25, + - 84 ) THEN 60 DIV - + 98 END + + 82 ) * COUNT( * ) AS col0
----
804

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT ( - - 67 ) * + COALESCE ( + 12, - - COUNT ( * ), - CASE + 34 WHEN + AVG ( DISTINCT + - 3 ) + NULLIF ( + + 25, + - 84 ) THEN 60 / - + 98 END + + 82 ) * COUNT ( * ) AS col0
----
804

query II rowsort
SELECT ALL + 95 * + 62 * - 36 AS col0, + 66
----
-212040
66

query I rowsort
SELECT ( - 54 ) + - - 79
----
25

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

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

query I rowsort
SELECT DISTINCT + 67 * - + NULLIF ( 92, + + 68 + + 97 ) AS col2
----
-6164

query I rowsort
SELECT 4 * - 97 + + + 28
----
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-7269
SELECT - 11 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-7269
SELECT - 11 / 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7270
SELECT - CASE - 41 WHEN COALESCE ( - + COUNT( * ), - ( - + COUNT( 92 ) ) ) THEN - 33 END * - 70 * + COUNT( ALL + 6 ) col1, CAST( - ( 77 ) AS SIGNED ) + 68 - + - 87
----
NULL
78

skipif mysql # not compatible
query II rowsort label-7270
SELECT - CASE - 41 WHEN COALESCE ( - + COUNT ( * ), - ( - + COUNT ( 92 ) ) ) THEN - 33 END * - 70 * + COUNT ( ALL + 6 ) col1, CAST ( - ( 77 ) AS INTEGER ) + 68 - + - 87
----
NULL
78

query I rowsort
SELECT 2 + + 58
----
60

query I rowsort
SELECT ALL + + 41 * + CASE 13 WHEN 45 * + - 57 * + 43 THEN - 34 END
----
NULL

query II rowsort
SELECT 79 - + 29 * - 60, 25 * + 31 col0
----
1819
775

query I rowsort
SELECT ALL - 19 + - + 4 AS col0
----
-23

query I rowsort
SELECT 71 + + 42 + + + 1 + 5 col1
----
119

query I rowsort
SELECT - 37 + + 64 AS col1
----
27

query I rowsort
SELECT ALL 80 + - + 67 * + - 3 col0
----
281

query I rowsort
SELECT 51 + - - 47 AS col2
----
98

query I rowsort
SELECT 15 - - - 82 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL COUNT( ALL 99 ) + - 73 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL COUNT ( ALL 99 ) + - 73 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT + COALESCE ( + COUNT( * ), + - 8 )
----
1

skipif mysql # not compatible
query I rowsort label-7281
SELECT + COALESCE ( + COUNT ( * ), + - 8 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7282
SELECT ALL 26 * + - 65 AS col1, + CAST( + 67 AS SIGNED ) * - 67
----
-1690
-4489

skipif mysql # not compatible
query II rowsort label-7282
SELECT ALL 26 * + - 65 AS col1, + CAST ( + 67 AS INTEGER ) * - 67
----
-1690
-4489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7283
SELECT DISTINCT COUNT( * ) * 60 + - CAST( NULL AS SIGNED ) + MIN( - 70 ) * - AVG ( ALL - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT COUNT ( * ) * 60 + - CAST ( NULL AS INTEGER ) + MIN ( - 70 ) * - AVG ( ALL - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL + CASE + - 55 WHEN - 99 THEN 37 - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL + CASE + - 55 WHEN - 99 THEN 37 - + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT 50 / - - CASE 99 WHEN - 48 THEN + + COUNT( * ) WHEN 81 THEN NULL END * + 99 * 15 * - 29 - - 15 + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT 50 / - - CASE 99 WHEN - 48 THEN + + COUNT ( * ) WHEN 81 THEN NULL END * + 99 * 15 * - 29 - - 15 + + 61
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7289
SELECT - 72 * + - CAST( NULL AS SIGNED ) AS col0, + 80 + + 61 * + 36 AS col1
----
NULL
2276

skipif mysql # not compatible
query II rowsort label-7289
SELECT - 72 * + - CAST ( NULL AS INTEGER ) AS col0, + 80 + + 61 * + 36 AS col1
----
NULL
2276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7290
SELECT ALL + 50 * - SUM( - 30 ) * CAST( - 83 AS SIGNED ) * + 87 * + CAST( - COUNT( * ) AS SIGNED ) + 40
----
10831540

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + 50 * - SUM ( - 30 ) * CAST ( - 83 AS INTEGER ) * + 87 * + CAST ( - COUNT ( * ) AS INTEGER ) + 40
----
10831540

query II rowsort
SELECT - 65 + + 56, + 50 + - - 70 AS col0
----
-9
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT DISTINCT + SUM( ALL - ( + 79 ) ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT + SUM ( ALL - ( + 79 ) ) AS col2
----
-79

query I rowsort
SELECT ALL - 23 * - NULLIF ( 71, - 15 )
----
1633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7294
SELECT 50 * - 77 + - MAX( 93 ), + CAST( + - 74 AS SIGNED ) AS col1
----
-3943
-74

skipif mysql # not compatible
query II rowsort label-7294
SELECT 50 * - 77 + - MAX ( 93 ), + CAST ( + - 74 AS INTEGER ) AS col1
----
-3943
-74

query I rowsort
SELECT ALL + 60 * 78
----
4680

query I rowsort
SELECT - ( 59 ) + + 58
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7297
SELECT ALL + - 81 * - + 98 - COALESCE ( - 12, - CAST( NULL AS SIGNED ) + - COUNT( * ) + 22 ) col0
----
7950

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + - 81 * - + 98 - COALESCE ( - 12, - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 22 ) col0
----
7950

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7298
SELECT - + CAST( NULL AS DECIMAL ) + + 24 + + + 20 + - - 35 * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT - + CAST ( NULL AS REAL ) + + 24 + + + 20 + - - 35 * + 2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT - + 83 * + 86 * - + COUNT( * ) AS col1
----
7138

skipif mysql # not compatible
query I rowsort label-7300
SELECT - + 83 * + 86 * - + COUNT ( * ) AS col1
----
7138

query I rowsort
SELECT + - 78 + - 43 AS col1
----
-121

query I rowsort
SELECT ALL - + 1 + 49
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7303
SELECT - COUNT( * ) + + CASE - + ( COUNT( * ) ) WHEN COUNT( * ) + + - 10 * 77 + - CAST( + 59 AS SIGNED ) + + 55 - - ( 44 ) THEN + COUNT( * ) END / 28 AS col0, + 32 * 60
----
NULL
1920

skipif mysql # not compatible
query II rowsort label-7303
SELECT - COUNT ( * ) + + CASE - + ( COUNT ( * ) ) WHEN COUNT ( * ) + + - 10 * 77 + - CAST ( + 59 AS INTEGER ) + + 55 - - ( 44 ) THEN + COUNT ( * ) END / 28 AS col0, + 32 * 60
----
NULL
1920

query I rowsort
SELECT ALL 85 + - 79
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7305
SELECT - 54 + + + COUNT( * ) + 58 / - 10 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT - 54 + + + COUNT ( * ) + 58 / - 10 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7306
SELECT DISTINCT - 20 + - - COUNT( ALL + 37 ) * CAST( NULL AS SIGNED ) * + 95 * + 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT - 20 + - - COUNT ( ALL + 37 ) * CAST ( NULL AS INTEGER ) * + 95 * + 18 AS col1
----
NULL

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

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

query II rowsort
SELECT + - 76 + + 60, 29 AS col2
----
-16
29

query I rowsort
SELECT + + 1 + + + 51 - 39
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL COUNT( 63 ) + + - COUNT( DISTINCT + + 29 ) - 86 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL COUNT ( 63 ) + + - COUNT ( DISTINCT + + 29 ) - 86 AS col2
----
-86

query I rowsort
SELECT DISTINCT - - 96 * + 49 * - 72 AS col2
----
-338688

query I rowsort
SELECT ALL + 27 + + + 11
----
38

query I rowsort
SELECT DISTINCT - 71 + - - 81 + - - 17
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7314
SELECT ALL 32 + - + CAST( + 36 AS SIGNED ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL 32 + - + CAST ( + 36 AS INTEGER ) AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7315
SELECT + 14 * + 44 * - 25 AS col2, - CAST( 34 AS SIGNED )
----
-15400
-34

skipif mysql # not compatible
query II rowsort label-7315
SELECT + 14 * + 44 * - 25 AS col2, - CAST ( 34 AS INTEGER )
----
-15400
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7316
SELECT DISTINCT 25 AS col0, - 80 + - 80 + 49 DIV - - COUNT( * )
----
25
-111

skipif mysql # not compatible
query II rowsort label-7316
SELECT DISTINCT 25 AS col0, - 80 + - 80 + 49 / - - COUNT ( * )
----
25
-111

onlyif mysql # DIV for integer division: 
query II rowsort label-7317
SELECT 45, + NULLIF ( + - 37, - 18 ) * - + 38 DIV 2 * - 9 AS col1
----
45
-6327

skipif mysql # not compatible
query II rowsort label-7317
SELECT 45, + NULLIF ( + - 37, - 18 ) * - + 38 / 2 * - 9 AS col1
----
45
-6327

onlyif mysql # aggregate syntax: 
query II rowsort label-7318
SELECT ALL + 69 AS col1, + 69 + - - ( 34 ) * - ( - 25 ) * - SUM( - 21 ) * + COUNT( * )
----
69
17919

skipif mysql # not compatible
query II rowsort label-7318
SELECT ALL + 69 AS col1, + 69 + - - ( 34 ) * - ( - 25 ) * - SUM ( - 21 ) * + COUNT ( * )
----
69
17919

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

skipif mysql # not compatible
query I rowsort label-7319
SELECT + COUNT ( DISTINCT 88 ) * - 91 AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7320
SELECT + CASE - + 13 WHEN 75 * + + 90 THEN - - 28 WHEN - + COALESCE ( - + 53, - ( 57 ) - 55 + + AVG ( ALL - - 57 ), + COUNT( * ) - 68 + NULLIF ( 70, - 56 + + CAST( + CAST( COALESCE ( + 82, 93 + + - 97 + - 48 - + 39 - - 74 * - 11 + - - ( - 31 ) + 39 * + - COALESCE ( - 32, - 36 ) * - 52 * + - 59 + - + NULLIF ( 20, 43 ) + + 48 + + ( 28 ) * - 22 * + 84 * + 71 ) AS SIGNED ) AS SIGNED ) ) / - NULLIF ( - 58, - 91 + - COUNT( * ) ) / + 79 ) * ( 93 + - COUNT( * ) ) THEN + 85 + 98 WHEN 14 / - 90 THEN COUNT( * ) WHEN 50 + 60 THEN - CAST( NULL AS SIGNED ) * + MIN( - 15 / 25 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT + CASE - + 13 WHEN 75 * + + 90 THEN - - 28 WHEN - + COALESCE ( - + 53, - ( 57 ) - 55 + + AVG ( ALL - - 57 ), + COUNT ( * ) - 68 + NULLIF ( 70, - 56 + + CAST ( + CAST ( COALESCE ( + 82, 93 + + - 97 + - 48 - + 39 - - 74 * - 11 + - - ( - 31 ) + 39 * + - COALESCE ( - 32, - 36 ) * - 52 * + - 59 + - + NULLIF ( 20, 43 ) + + 48 + + ( 28 ) * - 22 * + 84 * + 71 ) AS INTEGER ) AS INTEGER ) ) / - NULLIF ( - 58, - 91 + - COUNT ( * ) ) / + 79 ) * ( 93 + - COUNT ( * ) ) THEN + 85 + 98 WHEN 14 / - 90 THEN COUNT ( * ) WHEN 50 + 60 THEN - CAST ( NULL AS INTEGER ) * + MIN ( - 15 / 25 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7321
SELECT 63 DIV - 16 + - 10, + 82 + NULLIF ( - 9, 98 + + 13 + NULLIF ( 8, - 88 + + ( - + 44 ) ) ) + - 93 AS col1
----
-13
-20

skipif mysql # not compatible
query II rowsort label-7321
SELECT 63 / - 16 + - 10, + 82 + NULLIF ( - 9, 98 + + 13 + NULLIF ( 8, - 88 + + ( - + 44 ) ) ) + - 93 AS col1
----
-13
-20

query I rowsort
SELECT ALL COALESCE ( + - 53, 14 ) * 62 AS col0
----
-3286

onlyif mysql # DIV for integer division: 
query I rowsort label-7323
SELECT DISTINCT + 84 DIV + 78 - 98
----
-97

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT + 84 / + 78 - 98
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL + COALESCE ( + 57, - - 19, MIN( ALL - ( + - 96 ) ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL + COALESCE ( + 57, - - 19, MIN ( ALL - ( + - 96 ) ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT 89 * 2 * - COUNT( * )
----
-178

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT 89 * 2 * - COUNT ( * )
----
-178

query I rowsort
SELECT 64 * - 62 - ( + + 43 ) * + - 4 * 76 + - 53
----
9051

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT - 18 * + MIN( ALL - 13 )
----
234

skipif mysql # not compatible
query I rowsort label-7327
SELECT - 18 * + MIN ( ALL - 13 )
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT 29 * - + 55 * + 56 + + ( 34 ) + COALESCE ( 20, - MIN( 21 ) ) - + - SUM( - 30 ) * - 68 * - MAX( 50 ) + 23 + - - 48
----
-191195

skipif mysql # not compatible
query I rowsort label-7328
SELECT 29 * - + 55 * + 56 + + ( 34 ) + COALESCE ( 20, - MIN ( 21 ) ) - + - SUM ( - 30 ) * - 68 * - MAX ( 50 ) + 23 + - - 48
----
-191195

query I rowsort
SELECT + 3 * + 41
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT + + COUNT( * ) * - + 50 - - ( - 26 )
----
-76

skipif mysql # not compatible
query I rowsort label-7330
SELECT + + COUNT ( * ) * - + 50 - - ( - 26 )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-7331
SELECT DISTINCT + 44 * + 5 + + 21 AS col2, + 79 + + - COUNT( * ) * + 20
----
241
59

skipif mysql # not compatible
query II rowsort label-7331
SELECT DISTINCT + 44 * + 5 + + 21 AS col2, + 79 + + - COUNT ( * ) * + 20
----
241
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7332
SELECT - + 46 * - + 78 * + + NULLIF ( + CASE - - 7 WHEN AVG ( ALL - - 34 ) + - + 35 - + + COALESCE ( 49, + COUNT( DISTINCT - + CAST( - 87 AS SIGNED ) ) * - 82 - + 78 ) + + ( ( 40 ) ) * 84 THEN NULL WHEN + 95 - + COUNT( * ) THEN - 9 * 78 WHEN + CAST( NULL AS SIGNED ) + - + ( + 9 ) + - - COUNT( * ) / - + 52 * - 2 + - 32 THEN NULL ELSE + 37 END, - 72 * CASE - 30 WHEN - - 42 THEN COUNT( DISTINCT - 52 ) + + - 79 / + COUNT( * ) END - + + 42 + 10 )
----
132756

skipif mysql # not compatible
query I rowsort label-7332
SELECT - + 46 * - + 78 * + + NULLIF ( + CASE - - 7 WHEN AVG ( ALL - - 34 ) + - + 35 - + + COALESCE ( 49, + COUNT ( DISTINCT - + CAST ( - 87 AS INTEGER ) ) * - 82 - + 78 ) + + ( ( 40 ) ) * 84 THEN NULL WHEN + 95 - + COUNT ( * ) THEN - 9 * 78 WHEN + CAST ( NULL AS INTEGER ) + - + ( + 9 ) + - - COUNT ( * ) / - + 52 * - 2 + - 32 THEN NULL ELSE + 37 END, - 72 * CASE - 30 WHEN - - 42 THEN COUNT ( DISTINCT - 52 ) + + - 79 / + COUNT ( * ) END - + + 42 + 10 )
----
132756

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT DISTINCT 49 * - 84 + - COUNT( * ) * - 64 AS col2
----
-4052

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT 49 * - 84 + - COUNT ( * ) * - 64 AS col2
----
-4052

query II rowsort
SELECT ALL + 21, 12 AS col0
----
21
12

query I rowsort
SELECT DISTINCT - + 1 * + 81 + + 40
----
-41

query I rowsort
SELECT DISTINCT + + 36 * + 22
----
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7337
SELECT ALL - ( + + 77 ) * 14 + - COUNT( * ) + - - 30, CASE - 56 WHEN + + ( - - 69 ) * - 31 THEN NULL ELSE - 83 + 27 + 72 * + 40 / + 54 * - - 77 END * + + CASE + 82 WHEN 64 * - ( + - 35 ) THEN 60 WHEN + 43 THEN + 4 * 80 / 68 END + - - ( - 42 ) * COUNT( * ) + CAST( - - 32 AS SIGNED ) + + COALESCE ( - + COUNT( ALL - 30 ), 70, - 2, + - 55 ) + 54 / 63 * - 2 + - MAX( + 95 + + 50 * 78 ) * COUNT( * ) AS col0
----
-1049
NULL

skipif mysql # not compatible
query II rowsort label-7337
SELECT ALL - ( + + 77 ) * 14 + - COUNT ( * ) + - - 30, CASE - 56 WHEN + + ( - - 69 ) * - 31 THEN NULL ELSE - 83 + 27 + 72 * + 40 / + 54 * - - 77 END * + + CASE + 82 WHEN 64 * - ( + - 35 ) THEN 60 WHEN + 43 THEN + 4 * 80 / 68 END + - - ( - 42 ) * COUNT ( * ) + CAST ( - - 32 AS INTEGER ) + + COALESCE ( - + COUNT ( ALL - 30 ), 70, - 2, + - 55 ) + 54 / 63 * - 2 + - MAX ( + 95 + + 50 * 78 ) * COUNT ( * ) AS col0
----
-1049
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT 86 * - - 68 * - - 71 * + COUNT( * ) * + 24 + + - 7
----
9964985

skipif mysql # not compatible
query I rowsort label-7338
SELECT 86 * - - 68 * - - 71 * + COUNT ( * ) * + 24 + + - 7
----
9964985

query I rowsort
SELECT - + 11 + - 31 + + 72 * + 38
----
2694

query I rowsort
SELECT - 32 + - 0
----
-32

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

skipif mysql # not compatible
query I rowsort label-7341
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + 98 ) AS col2
----
NULL

query I rowsort
SELECT ALL ( - 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT - COALESCE ( + 80, + + COUNT( * ) ) + 83 + - 17 + COUNT( * ) * 54 * 42 col2
----
2254

skipif mysql # not compatible
query I rowsort label-7343
SELECT - COALESCE ( + 80, + + COUNT ( * ) ) + 83 + - 17 + COUNT ( * ) * 54 * 42 col2
----
2254

onlyif mysql # DIV for integer division: 
query II rowsort label-7344
SELECT ALL + 24, + 50 + + 49 DIV - 54 - 88 col1
----
24
-38

skipif mysql # not compatible
query II rowsort label-7344
SELECT ALL + 24, + 50 + + 49 / - 54 - 88 col1
----
24
-38

query I rowsort
SELECT ALL + ( + + 62 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7346
SELECT + 68 + 27 * + COALESCE ( - COUNT( * ), - 91, - - CAST( NULL AS SIGNED ) * ( + 51 ) + - 60 - + 29 ) - + 7
----
34

skipif mysql # not compatible
query I rowsort label-7346
SELECT + 68 + 27 * + COALESCE ( - COUNT ( * ), - 91, - - CAST ( NULL AS INTEGER ) * ( + 51 ) + - 60 - + 29 ) - + 7
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT ALL + 21 - + MAX( ALL + 14 )
----
7

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL + 21 - + MAX ( ALL + 14 )
----
7

query I rowsort
SELECT 15 + + 91
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT ALL 26 * + COALESCE ( - + 90, COUNT( * ) ) AS col1
----
-2340

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL 26 * + COALESCE ( - + 90, COUNT ( * ) ) AS col1
----
-2340

query I rowsort
SELECT 21 * + 42
----
882

query I rowsort
SELECT DISTINCT - 49 * 49 * + 50
----
-120050

query II rowsort
SELECT ALL 71 col2, 7 * + + 56 AS col2
----
71
392

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

query I rowsort
SELECT 34 * + 77
----
2618

onlyif mysql # DIV for integer division: 
query I rowsort label-7355
SELECT 5 + - - 34 DIV + 71 col2
----
5

skipif mysql # not compatible
query I rowsort label-7355
SELECT 5 + - - 34 / + 71 col2
----
5

query I rowsort
SELECT 40 - 53 * 82
----
-4306

query I rowsort
SELECT 11 * + 23 AS col0
----
253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7358
SELECT ( - 76 ) + CAST( + - 34 AS SIGNED )
----
-110

skipif mysql # not compatible
query I rowsort label-7358
SELECT ( - 76 ) + CAST ( + - 34 AS INTEGER )
----
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-7359
SELECT 41 AS col0, + ( 7 ) * - + COUNT( * ) + - + 6 * - + 71 * 48 * + 57 + - CASE + COUNT( * ) WHEN - - 39 THEN + + 33 ELSE NULL END
----
41
NULL

skipif mysql # not compatible
query II rowsort label-7359
SELECT 41 AS col0, + ( 7 ) * - + COUNT ( * ) + - + 6 * - + 71 * 48 * + 57 + - CASE + COUNT ( * ) WHEN - - 39 THEN + + 33 ELSE NULL END
----
41
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7360
SELECT DISTINCT + ( 65 ) * - 83 * - MIN( - CAST( - + 29 AS SIGNED ) ), MAX( 9 ) AS col0
----
156455
9

skipif mysql # not compatible
query II rowsort label-7360
SELECT DISTINCT + ( 65 ) * - 83 * - MIN ( - CAST ( - + 29 AS INTEGER ) ), MAX ( 9 ) AS col0
----
156455
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7361
SELECT - 50 DIV + NULLIF ( - 22, - ( - 21 ) ) + ( 98 )
----
100

skipif mysql # not compatible
query I rowsort label-7361
SELECT - 50 / + NULLIF ( - 22, - ( - 21 ) ) + ( 98 )
----
100

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

query II rowsort
SELECT ALL - 94 AS col0, 16
----
-94
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7364
SELECT 87 * ( + + COUNT( * ) ) + + - 54 AS col0, + SUM( + - 75 ) * - COUNT( * ) + - 80 * - + 30 + ( COUNT( * ) ) - + COUNT( * ) + + + 66 + + + 82
----
33
2623

skipif mysql # not compatible
query II rowsort label-7364
SELECT 87 * ( + + COUNT ( * ) ) + + - 54 AS col0, + SUM ( + - 75 ) * - COUNT ( * ) + - 80 * - + 30 + ( COUNT ( * ) ) - + COUNT ( * ) + + + 66 + + + 82
----
33
2623

query II rowsort
SELECT 52 AS col0, ( + 66 ) AS col1
----
52
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT COUNT( * ) + ( - 99 )
----
-98

skipif mysql # not compatible
query I rowsort label-7366
SELECT COUNT ( * ) + ( - 99 )
----
-98

query II rowsort
SELECT + + 51 AS col0, 41 * 16
----
51
656

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT 67 + + 47 * + COALESCE ( - 96, + - 91 * 21 + - + COUNT( * ), - - ( + 61 ) ) AS col0
----
-4445

skipif mysql # not compatible
query I rowsort label-7368
SELECT 67 + + 47 * + COALESCE ( - 96, + - 91 * 21 + - + COUNT ( * ), - - ( + 61 ) ) AS col0
----
-4445

query II rowsort
SELECT + 53 AS col0, ( + 61 )
----
53
61

query I rowsort
SELECT DISTINCT + 45 * - - 37 AS col0
----
1665

query II rowsort
SELECT ALL - + 84 AS col2, 34 AS col1
----
-84
34

query I rowsort
SELECT + 17 * - + 38 + + 58
----
-588

query I rowsort
SELECT ALL + 95 + - 48 + + - 2
----
45

query II rowsort
SELECT + + 80 AS col0, - 63 - - - 33 + 23 + + 64 AS col1
----
80
-9

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7377
SELECT 56 DIV + 10 AS col2, COALESCE ( + 81, - 18 * - ( 79 ) ) * + 60
----
5
4860

skipif mysql # not compatible
query II rowsort label-7377
SELECT 56 / + 10 AS col2, COALESCE ( + 81, - 18 * - ( 79 ) ) * + 60
----
5
4860

query II rowsort
SELECT - 73 + - 37, 89 * - 18 AS col1
----
-110
-1602

query I rowsort
SELECT DISTINCT 42 + + 22 col2
----
64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7381
SELECT ALL - 79 * 77 col2, + COUNT( * ) * 94
----
-6083
94

skipif mysql # not compatible
query II rowsort label-7381
SELECT ALL - 79 * 77 col2, + COUNT ( * ) * 94
----
-6083
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7382
SELECT + COUNT( * ) DIV - SUM( - - 90 ) * 16 + + + CAST( - AVG ( + 27 ) AS SIGNED ) AS col2, - 49 * - COUNT( * ) + + 30 + - + 45 * - 31 AS col0
----
-27
1474

skipif mysql # not compatible
query II rowsort label-7382
SELECT + COUNT ( * ) / - SUM ( - - 90 ) * 16 + + + CAST ( - AVG ( + 27 ) AS INTEGER ) AS col2, - 49 * - COUNT ( * ) + + 30 + - + 45 * - 31 AS col0
----
-27
1474

onlyif mysql # DIV for integer division: 
query I rowsort label-7383
SELECT DISTINCT + 68 DIV 14 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7383
SELECT DISTINCT + 68 / 14 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT ALL + 19 * + 89 * CASE CAST( + + 24 AS SIGNED ) WHEN - 90 THEN NULL WHEN - ( 89 ) * + 21 - + - 53 THEN + ( - 84 ) * ( - 6 ) * 96 + - 92 END + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + 19 * + 89 * CASE CAST ( + + 24 AS INTEGER ) WHEN - 90 THEN NULL WHEN - ( 89 ) * + 21 - + - 53 THEN + ( - 84 ) * ( - 6 ) * 96 + - 92 END + + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT ALL - ( - 61 ) * - - COUNT( * ) * + NULLIF ( - 97, + - 49 )
----
-5917

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - ( - 61 ) * - - COUNT ( * ) * + NULLIF ( - 97, + - 49 )
----
-5917

query I rowsort
SELECT DISTINCT - 54 * 60 AS col2
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT 40 + + 65 - - COUNT( * ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-7387
SELECT 40 + + 65 - - COUNT ( * ) AS col0
----
106

query I rowsort
SELECT 50 + - 39 * + - 80 AS col1
----
3170

query II rowsort
SELECT 21 * + + 35 AS col0, + 90
----
735
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT - COUNT( * ) + + 54
----
53

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT - COUNT ( * ) + + 54
----
53

query I rowsort
SELECT 59 * - - 50
----
2950

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7392
SELECT 30 - CAST( NULL AS SIGNED ) * + 92 AS col1, + 53 + - 46 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-7392
SELECT 30 - CAST ( NULL AS INTEGER ) * + 92 AS col1, + 53 + - 46 AS col2
----
NULL
7

query I rowsort
SELECT ALL + 92 * 22 * 25 AS col1
----
50600

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ALL 11 * - 29 + - COUNT( * ) * 9
----
-328

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL 11 * - 29 + - COUNT ( * ) * 9
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT COUNT( * ) * 7 + - + 62
----
-55

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT COUNT ( * ) * 7 + - + 62
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7396
SELECT ALL 51 DIV + 67 - 36 + + COUNT( ALL 78 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL 51 / + 67 - 36 + + COUNT ( ALL 78 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL + 71 * + COUNT( * ) + - 42
----
29

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL + 71 * + COUNT ( * ) + - 42
----
29

query I rowsort
SELECT ALL ( + + 35 ) * + 37 * + 72 + + 69 col1
----
93309

query II rowsort
SELECT - 74 * + 24 AS col0, + 77
----
-1776
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT 94 + - + 84 DIV 68 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7400
SELECT 94 + - + 84 / 68 AS col1
----
93

query I rowsort
SELECT + CASE + 3 WHEN - 54 THEN NULL ELSE 19 END
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT SUM( + + ( + 95 ) ) * - + 75 + 8
----
-7117

skipif mysql # not compatible
query I rowsort label-7402
SELECT SUM ( + + ( + 95 ) ) * - + 75 + 8
----
-7117

query I rowsort
SELECT ALL 31 * 23 * + 82 AS col0
----
58466

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7405
SELECT ALL - 50 - + + 96 + COUNT( * ) * + 79 DIV + + 87
----
-146

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL - 50 - + + 96 + COUNT ( * ) * + 79 / + + 87
----
-146

query II rowsort
SELECT ALL - 39 * - NULLIF ( + 64, + 10 * + 52 ) AS col2, - COALESCE ( + ( - 36 ), + 76, 82, - 81 ) AS col2
----
2496
36

query I rowsort
SELECT + + 70 + + 58 * - + 2 col1
----
-46

query I rowsort
SELECT DISTINCT + 6 * + - 31
----
-186

query I rowsort
SELECT + 90 + + 43
----
133

query I rowsort
SELECT + + 62 - + 80 col0
----
-18

query II rowsort
SELECT DISTINCT 61 AS col2, - 47 AS col0
----
61
-47

query I rowsort
SELECT + 79 + - 59 AS col0
----
20

query II rowsort
SELECT - 15, - 74 + + 31 AS col1
----
-15
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7414
SELECT ALL CASE + COUNT( * ) WHEN 68 THEN COALESCE ( - 51, + - CAST( NULL AS SIGNED ) - - COUNT( * ) - + - 26 ) / - ( 86 ) ELSE NULL END / + MIN( ( 37 ) ) AS col0, + MIN( ALL - 93 ) AS col0
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-7414
SELECT ALL CASE + COUNT ( * ) WHEN 68 THEN COALESCE ( - 51, + - CAST ( NULL AS INTEGER ) - - COUNT ( * ) - + - 26 ) / - ( 86 ) ELSE NULL END / + MIN ( ( 37 ) ) AS col0, + MIN ( ALL - 93 ) AS col0
----
NULL
-93

query I rowsort
SELECT + 56 + 42 * + 10 + - 95
----
381

query II rowsort
SELECT 10 AS col0, - 34 AS col2
----
10
-34

query I rowsort
SELECT + 32 + - 64
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7418
SELECT + 49 + - + NULLIF ( - ( - - COALESCE ( - + COUNT( ALL 78 ), - 34 - 1 ) ), + 90 * 38 + - COUNT( * ) DIV 75 + + 33 + + 54 * - - 20 ) DIV - + 68 * + 32
----
49

skipif mysql # not compatible
query I rowsort label-7418
SELECT + 49 + - + NULLIF ( - ( - - COALESCE ( - + COUNT ( ALL 78 ), - 34 - 1 ) ), + 90 * 38 + - COUNT ( * ) / 75 + + 33 + + 54 * - - 20 ) / - + 68 * + 32
----
49

query II rowsort
SELECT ALL 27 AS col0, + 14 * + CASE - + 36 WHEN - 94 / - - 81 + + ( - - 74 ) THEN 99 * 6 + + - 25 + + - 39 * - + 11 + 27 END col2
----
27
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7420
SELECT ALL NULLIF ( + + COUNT( * ), 11 ) DIV + + ( - 25 )
----
0

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL NULLIF ( + + COUNT ( * ), 11 ) / + + ( - 25 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT DISTINCT 72 + - CAST( + NULLIF ( 34, - 15 + + ( 79 ) ) AS SIGNED ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT 72 + - CAST ( + NULLIF ( 34, - 15 + + ( 79 ) ) AS INTEGER ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT - 2 + - SUM( + 28 ) + - MAX( ALL - 28 ) * - 42 + 89 - - 57 AS col2
----
-1060

skipif mysql # not compatible
query I rowsort label-7422
SELECT - 2 + - SUM ( + 28 ) + - MAX ( ALL - 28 ) * - 42 + 89 - - 57 AS col2
----
-1060

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT + 72 DIV 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7423
SELECT + 72 / 85 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7424
SELECT - CASE + CASE - 29 WHEN 70 * - 10 * - 3 * - 39 / 96 + + 35 - - - 80 + + + 29 + + + NULLIF ( + CAST( NULL AS SIGNED ), + 7 ) THEN NULL WHEN - + 63 + + - 92 THEN - 5 + + 74 END WHEN + 83 THEN - 99 END + + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT - CASE + CASE - 29 WHEN 70 * - 10 * - 3 * - 39 / 96 + + 35 - - - 80 + + + 29 + + + NULLIF ( + CAST ( NULL AS INTEGER ), + 7 ) THEN NULL WHEN - + 63 + + - 92 THEN - 5 + + 74 END WHEN + 83 THEN - 99 END + + 2 AS col1
----
NULL

query I rowsort
SELECT ALL - 5 + + 58
----
53

query II rowsort
SELECT + 66 + + 31 * - 47 AS col1, 26 col2
----
-1391
26

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

query I rowsort
SELECT ALL - 33 + 40 * + - 64 + + 50 AS col2
----
-2543

query I rowsort
SELECT ALL + 70 + - + 47 + - + 21 * - 36 AS col1
----
779

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

skipif mysql # not compatible
query I rowsort label-7430
SELECT - COUNT ( * ) + - 83 AS col2
----
-84

query I rowsort
SELECT ALL + - ( 57 )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-7432
SELECT DISTINCT + COUNT( * ) * + 92 * - - 63, + MAX( + + 34 ) AS col2
----
5796
34

skipif mysql # not compatible
query II rowsort label-7432
SELECT DISTINCT + COUNT ( * ) * + 92 * - - 63, + MAX ( + + 34 ) AS col2
----
5796
34

query I rowsort
SELECT + 49 * + - 95 AS col0
----
-4655

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT + + SUM( + 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7434
SELECT + + SUM ( + 87 ) AS col0
----
87

query I rowsort
SELECT + - NULLIF ( - - 0, - + 62 ) AS col1
----
0

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

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

query II rowsort
SELECT ALL + + 29 col2, - 4 col0
----
29
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7438
SELECT - + 74 DIV - 4 col0
----
18

skipif mysql # not compatible
query I rowsort label-7438
SELECT - + 74 / - 4 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT - - MIN( - 33 ) * - - 61 * + - 27 + + 54
----
54405

skipif mysql # not compatible
query I rowsort label-7439
SELECT - - MIN ( - 33 ) * - - 61 * + - 27 + + 54
----
54405

onlyif mysql # DIV for integer division: 
query I rowsort label-7440
SELECT ALL + + 12 DIV + + 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL + + 12 / + + 29 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT - NULLIF ( - COUNT( * ), - - 9 )
----
1

skipif mysql # not compatible
query I rowsort label-7441
SELECT - NULLIF ( - COUNT ( * ), - - 9 )
----
1

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

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

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

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

query II rowsort
SELECT + 7, - 56 AS col1
----
7
-56

query I rowsort
SELECT DISTINCT NULLIF ( - 36, - - NULLIF ( - 21, + CASE + 74 WHEN + 19 THEN + 15 END ) * + + 99 ) * - - 10
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT ALL ( + 3 ) * - NULLIF ( - - 27, - COUNT( * ) )
----
-81

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL ( + 3 ) * - NULLIF ( - - 27, - COUNT ( * ) )
----
-81

query II rowsort
SELECT + 32 * + 93 col0, 24 col0
----
2976
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT - NULLIF ( - 87, - 83 * COALESCE ( - 11, + NULLIF ( + 11, + 66 * - COUNT( * ) ) / NULLIF ( - + 46, - + 39 ) * + - 7 * 33 ) * + - 30 + - - 96 )
----
87

skipif mysql # not compatible
query I rowsort label-7449
SELECT - NULLIF ( - 87, - 83 * COALESCE ( - 11, + NULLIF ( + 11, + 66 * - COUNT ( * ) ) / NULLIF ( - + 46, - + 39 ) * + - 7 * 33 ) * + - 30 + - - 96 )
----
87

query I rowsort
SELECT DISTINCT + 58 * - + 98 + ( + NULLIF ( - 8, + + 55 - - 53 ) )
----
-5692

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL ( + NULLIF ( - ( - 58 ), - 3 ) ) + + + COUNT( * ) * + 56
----
114

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL ( + NULLIF ( - ( - 58 ), - 3 ) ) + + + COUNT ( * ) * + 56
----
114

query II rowsort
SELECT - ( 14 ) col1, 78
----
-14
78

query I rowsort
SELECT ALL 60 + + 64 * + 99 AS col1
----
6396

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT + MAX( ALL - 87 ) * - - 32 AS col2
----
-2784

skipif mysql # not compatible
query I rowsort label-7455
SELECT + MAX ( ALL - 87 ) * - - 32 AS col2
----
-2784

query I rowsort
SELECT + ( ( - 48 ) ) * 59 + + 30
----
-2802

query I rowsort
SELECT ALL 54 + + 33 AS col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7458
SELECT DISTINCT 13 DIV 89 col2, ( + COALESCE ( + 63, 23, - 14 + 16 * + - 26 * + ( - - 14 ) * + 16, + - SUM( DISTINCT - - ( 91 ) ) ) )
----
0
63

skipif mysql # not compatible
query II rowsort label-7458
SELECT DISTINCT 13 / 89 col2, ( + COALESCE ( + 63, 23, - 14 + 16 * + - 26 * + ( - - 14 ) * + 16, + - SUM ( DISTINCT - - ( 91 ) ) ) )
----
0
63

query I rowsort
SELECT ALL - 29 * + - ( + 48 ) AS col0
----
1392

query I rowsort
SELECT DISTINCT 59 + + 83 + + 52 * - - 88
----
4718

query I rowsort
SELECT ALL 18 + 50 + + 4
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL MAX( 4 ) - + + 83 + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL MAX ( 4 ) - + + 83 + COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT + + COUNT( * ) * - 97 * ( 94 ) AS col1
----
-9118

skipif mysql # not compatible
query I rowsort label-7463
SELECT + + COUNT ( * ) * - 97 * ( 94 ) AS col1
----
-9118

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT - + 38 * SUM( - 68 ) * 43 * - 33
----
-3666696

skipif mysql # not compatible
query I rowsort label-7464
SELECT - + 38 * SUM ( - 68 ) * 43 * - 33
----
-3666696

query I rowsort
SELECT ALL + 33 * + 18 * + + 42 * - 49
----
-1222452

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7466
SELECT + MIN( - 17 ) DIV + 50 + - 67 + NULLIF ( 11, - - 0 ) AS col0, - ( + - 17 )
----
-56
17

skipif mysql # not compatible
query II rowsort label-7466
SELECT + MIN ( - 17 ) / + 50 + - 67 + NULLIF ( 11, - - 0 ) AS col0, - ( + - 17 )
----
-56
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT 52 + CASE + MAX( - 39 ) WHEN - - 54 + 38 THEN + 64 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT 52 + CASE + MAX ( - 39 ) WHEN - - 54 + 38 THEN + 64 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - NULLIF ( ( + 39 ), + + 99 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL + - 52 - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + - 52 - COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7470
SELECT 54 * + 87 * + COUNT( * ) * + NULLIF ( 30, + MAX( + - 18 ) ) + + 36 DIV - 38 * - 93
----
140940

skipif mysql # not compatible
query I rowsort label-7470
SELECT 54 * + 87 * + COUNT ( * ) * + NULLIF ( 30, + MAX ( + - 18 ) ) + + 36 / - 38 * - 93
----
140940

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT DISTINCT - + CASE 30 WHEN - - COUNT( * ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT DISTINCT - + CASE 30 WHEN - - COUNT ( * ) THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7472
SELECT ALL - SUM( - - 13 ), - 58 * + - 79 col2
----
-13
4582

skipif mysql # not compatible
query II rowsort label-7472
SELECT ALL - SUM ( - - 13 ), - 58 * + - 79 col2
----
-13
4582

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7474
SELECT 70 DIV + 24 + + COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-7474
SELECT 70 / + 24 + + COUNT ( * ) col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7475
SELECT - 85 * + + ( + SUM( ALL - 76 ) ) * + 18 AS col1, + COUNT( * ) AS col2
----
116280
1

skipif mysql # not compatible
query II rowsort label-7475
SELECT - 85 * + + ( + SUM ( ALL - 76 ) ) * + 18 AS col1, + COUNT ( * ) AS col2
----
116280
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7476
SELECT - + CAST( NULL AS DECIMAL ) * - - 32 + + - 62 * + 75 - - 39 + + - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT - + CAST ( NULL AS REAL ) * - - 32 + + - 62 * + 75 - - 39 + + - 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT SUM( 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7477
SELECT SUM ( 90 ) AS col0
----
90

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

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT - SUM ( DISTINCT 79 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7479
SELECT ALL 20 + 40 + CASE - CAST( NULL AS SIGNED ) WHEN - + 13 THEN - + 49 * + COALESCE ( 31, 49 + + - COUNT( + 88 ) ) * - 19 - 55 END * + 58 * - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL 20 + 40 + CASE - CAST ( NULL AS INTEGER ) WHEN - + 13 THEN - + 49 * + COALESCE ( 31, 49 + + - COUNT ( + 88 ) ) * - 19 - 55 END * + 58 * - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 32 + - 62
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT - 59 DIV 52
----
-1

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT - 59 / 52
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT 30 + - 72 * + + NULLIF ( + 89, 43 * - + ( + 76 ) + MAX( DISTINCT + 0 ) ) AS col0
----
-6378

skipif mysql # not compatible
query I rowsort label-7483
SELECT 30 + - 72 * + + NULLIF ( + 89, 43 * - + ( + 76 ) + MAX ( DISTINCT + 0 ) ) AS col0
----
-6378

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT 39 + - COUNT( * ) + ( - 46 )
----
-8

skipif mysql # not compatible
query I rowsort label-7484
SELECT 39 + - COUNT ( * ) + ( - 46 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT COUNT( * ) + 35 + 92 - - + ( COUNT( * ) ) + + 69 * + 44 AS col1
----
3165

skipif mysql # not compatible
query I rowsort label-7485
SELECT COUNT ( * ) + 35 + 92 - - + ( COUNT ( * ) ) + + 69 * + 44 AS col1
----
3165

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT ALL 54 + + - 60 + - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL 54 + + - 60 + - COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT ( - COUNT( - ( 84 ) ) ) + - - 41 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-7487
SELECT ( - COUNT ( - ( 84 ) ) ) + - - 41 AS col1
----
40

query I rowsort
SELECT DISTINCT 53 * - - 80 * + - 55 col0
----
-233200

query I rowsort
SELECT 93 + - 8 - + 0 * - - 42
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7490
SELECT 0 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-7490
SELECT 0 / - 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT DISTINCT + NULLIF ( + ( - COUNT( * ) ), - 18 * 72 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT + NULLIF ( + ( - COUNT ( * ) ), - 18 * 72 ) AS col1
----
-1

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

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

query I rowsort
SELECT DISTINCT + 96 * - - 28
----
2688

query I rowsort
SELECT ALL 24 * - - 38
----
912

query I rowsort
SELECT DISTINCT 82 * + 57 AS col2
----
4674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7496
SELECT + COUNT( DISTINCT + - NULLIF ( - 37, + ( - + CAST( NULL AS SIGNED ) ) / - + 63 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7496
SELECT + COUNT ( DISTINCT + - NULLIF ( - 37, + ( - + CAST ( NULL AS INTEGER ) ) / - + 63 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7497
SELECT 75 * - 2 - 39 + 39 DIV COUNT( * ) * 76
----
2775

skipif mysql # not compatible
query I rowsort label-7497
SELECT 75 * - 2 - 39 + 39 / COUNT ( * ) * 76
----
2775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7498
SELECT - - 13 DIV - 25 + - SUM( + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-7498
SELECT - - 13 / - 25 + - SUM ( + 33 )
----
-33

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

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

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

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL + 19 + + + COUNT ( * ) AS col1
----
20

query I rowsort
SELECT 49 + + 22
----
71

query I rowsort
SELECT ALL - 73 + - 69 * - + 29 AS col0
----
1928

query I rowsort
SELECT 36 * + 19 + + 92
----
776

query I rowsort
SELECT ALL 32 + - 27
----
5

query I rowsort
SELECT DISTINCT - 64 * 91 AS col0
----
-5824

onlyif mysql # aggregate syntax: 
query II rowsort label-7506
SELECT + COUNT( * ), + 71 + + SUM( + 27 ) col2
----
1
98

skipif mysql # not compatible
query II rowsort label-7506
SELECT + COUNT ( * ), + 71 + + SUM ( + 27 ) col2
----
1
98

query II rowsort
SELECT 20, - 53 * + 69 - + ( COALESCE ( - 67, - 29 ) ) * + 71 AS col1
----
20
1100

query I rowsort
SELECT 65 + 66 AS col2
----
131

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

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

query I rowsort
SELECT ALL - 46 * - 90
----
4140

query I rowsort
SELECT ALL 49 * - 74 AS col2
----
-3626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT 55 * - AVG ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT 55 * - AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL 86 AS col1, 48 col0
----
86
48

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7516
SELECT ALL - 2 DIV + 39 * 7
----
0

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL - 2 / + 39 * 7
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7517
SELECT - 97 AS col2, - 86 * 91 + + + 88 + 85 + - COUNT( * ) * 34 * + + 47
----
-97
-9251

skipif mysql # not compatible
query II rowsort label-7517
SELECT - 97 AS col2, - 86 * 91 + + + 88 + 85 + - COUNT ( * ) * 34 * + + 47
----
-97
-9251

query I rowsort
SELECT 58 * + 5 AS col0
----
290

query I rowsort
SELECT 93 * - + 49 * + + 38 AS col2
----
-173166

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7520
SELECT ALL + 11 DIV - CAST( - - 7 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL + 11 / - CAST ( - - 7 AS INTEGER )
----
-1

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

skipif mysql # not compatible
query I rowsort label-7521
SELECT 0 / - + ( + - 92 ) AS col1
----
0

query II rowsort
SELECT - 6, 40 * + 84 * 11 AS col2
----
-6
36960

onlyif mysql # aggregate syntax: 
query II rowsort label-7523
SELECT ALL - 2 AS col0, - 75 / 62 * - 76 * - + 60 * + CASE - 72 WHEN - 83 * 49 * + 78 + - COUNT( * ) - + 48 + - + 63 / + NULLIF ( CASE - 55 WHEN 51 + - + 90 THEN - COUNT( * ) + 2 WHEN + 33 * - 11 - + - 64 + 96 THEN + + 62 ELSE 19 + - 46 END, + 20 ) THEN NULL WHEN - + 54 - COUNT( * ) THEN + 71 END
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-7523
SELECT ALL - 2 AS col0, - 75 / 62 * - 76 * - + 60 * + CASE - 72 WHEN - 83 * 49 * + 78 + - COUNT ( * ) - + 48 + - + 63 / + NULLIF ( CASE - 55 WHEN 51 + - + 90 THEN - COUNT ( * ) + 2 WHEN + 33 * - 11 - + - 64 + 96 THEN + + 62 ELSE 19 + - 46 END, + 20 ) THEN NULL WHEN - + 54 - COUNT ( * ) THEN + 71 END
----
-2
NULL

query I rowsort
SELECT - - 11 * + 17
----
187

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

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

query II rowsort
SELECT ALL 18 AS col2, 58 AS col2
----
18
58

query I rowsort
SELECT ALL - + 68 * - 61
----
4148

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7529
SELECT - - CAST( - + NULLIF ( + CASE + 60 WHEN - 87 * + 30 THEN + COALESCE ( - + COUNT( * ), + + 52 ) * + 75 WHEN - 41 THEN NULL WHEN + - ( - - 43 ) * + 44 THEN NULL ELSE NULL END, 2 * + ( 39 ) + - - COUNT( * ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7529
SELECT - - CAST ( - + NULLIF ( + CASE + 60 WHEN - 87 * + 30 THEN + COALESCE ( - + COUNT ( * ), + + 52 ) * + 75 WHEN - 41 THEN NULL WHEN + - ( - - 43 ) * + 44 THEN NULL ELSE NULL END, 2 * + ( 39 ) + - - COUNT ( * ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7530
SELECT DISTINCT - 23 * - ( + 20 ) + - 50 AS col0, COALESCE ( + 81, - 87, MIN( - 16 ) ) + - - 75 DIV + 89 + + NULLIF ( 8, + - 17 * 31 ) * + - 13
----
410
-23

skipif mysql # not compatible
query II rowsort label-7530
SELECT DISTINCT - 23 * - ( + 20 ) + - 50 AS col0, COALESCE ( + 81, - 87, MIN ( - 16 ) ) + - - 75 / + 89 + + NULLIF ( 8, + - 17 * 31 ) * + - 13
----
410
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT DISTINCT + MIN( + 93 ) + - 18 * 13 * ( - + 61 ) AS col0
----
14367

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT + MIN ( + 93 ) + - 18 * 13 * ( - + 61 ) AS col0
----
14367

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7532
SELECT + COALESCE ( - COUNT( * ), + NULLIF ( + 84, - 74 ), 36 * + 31 * + 96 ) DIV + 34
----
0

skipif mysql # not compatible
query I rowsort label-7532
SELECT + COALESCE ( - COUNT ( * ), + NULLIF ( + 84, - 74 ), 36 * + 31 * + 96 ) / + 34
----
0

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

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

query I rowsort
SELECT ALL 75 + - - 39
----
114

query I rowsort
SELECT - 45 + 78 col0
----
33

query I rowsort
SELECT NULLIF ( 79, - 63 ) AS col1
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT ALL + 88 * + 44 * - + 18 * - COUNT( * ) + - 50 AS col1
----
69646

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL + 88 * + 44 * - + 18 * - COUNT ( * ) + - 50 AS col1
----
69646

onlyif mysql # aggregate syntax: 
query II rowsort label-7539
SELECT 71, 51 * - 94 + - MAX( ALL + 0 ) * + 56 col0
----
71
-4794

skipif mysql # not compatible
query II rowsort label-7539
SELECT 71, 51 * - 94 + - MAX ( ALL + 0 ) * + 56 col0
----
71
-4794

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL - COUNT( * ) * + + 21 - 6 + - ( + 41 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL - COUNT ( * ) * + + 21 - 6 + - ( + 41 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL - 87 * - 88 + COUNT( * ) + - - 98 + 40 + - - 29 * - 62
----
5997

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL - 87 * - 88 + COUNT ( * ) + - - 98 + 40 + - - 29 * - 62
----
5997

onlyif mysql # DIV for integer division: 
query I rowsort label-7542
SELECT + 3 DIV + 52 + - + 21 * 1 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7542
SELECT + 3 / + 52 + - + 21 * 1 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL + COALESCE ( COUNT( * ), - 14 )
----
1

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL + COALESCE ( COUNT ( * ), - 14 )
----
1

query I rowsort
SELECT + 73 * 76 AS col0
----
5548

query II rowsort
SELECT + ( 80 ), 15 AS col2
----
80
15

query I rowsort
SELECT ALL ( 39 ) * - - 71 AS col1
----
2769

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7548
SELECT CASE ( - + NULLIF ( + 67, - - 27 ) ) WHEN - 30 THEN NULL WHEN 61 + + - 82 + - - ( COUNT( * ) ) * - 93 * 26 + - SUM( ALL 35 ) * + 78 * 22 / - + CAST( NULL AS SIGNED ) THEN - + 86 + - - 57 ELSE 72 END
----
72

skipif mysql # not compatible
query I rowsort label-7548
SELECT CASE ( - + NULLIF ( + 67, - - 27 ) ) WHEN - 30 THEN NULL WHEN 61 + + - 82 + - - ( COUNT ( * ) ) * - 93 * 26 + - SUM ( ALL 35 ) * + 78 * 22 / - + CAST ( NULL AS INTEGER ) THEN - + 86 + - - 57 ELSE 72 END
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT - 73 * ( - MAX( ALL + + 20 ) ) AS col0
----
1460

skipif mysql # not compatible
query I rowsort label-7549
SELECT - 73 * ( - MAX ( ALL + + 20 ) ) AS col0
----
1460

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT DISTINCT CASE 4 WHEN 53 * + 42 THEN + 75 WHEN + - 77 THEN ( + - 41 ) * + ( MAX( - COALESCE ( + - 12, - 38 ) ) ) END * - - 67 + 7 - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT CASE 4 WHEN 53 * + 42 THEN + 75 WHEN + - 77 THEN ( + - 41 ) * + ( MAX ( - COALESCE ( + - 12, - 38 ) ) ) END * - - 67 + 7 - - 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7551
SELECT 6 * 91 - - COUNT( * ) + 66 + + 98 + + 70 DIV COALESCE ( 57, + ( - 46 ) + - - 21 )
----
712

skipif mysql # not compatible
query I rowsort label-7551
SELECT 6 * 91 - - COUNT ( * ) + 66 + + 98 + + 70 / COALESCE ( 57, + ( - 46 ) + - - 21 )
----
712

query II rowsort
SELECT DISTINCT + ( - 3 ) AS col1, + 65 - + NULLIF ( 5, + 11 ) * + 75 AS col2
----
-3
-310

query I rowsort
SELECT + 83 * - 99 * + 23
----
-188991

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT ALL MAX( DISTINCT + NULLIF ( + 22, ( 4 ) * - 9 ) )
----
22

skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL MAX ( DISTINCT + NULLIF ( + 22, ( 4 ) * - 9 ) )
----
22

query I rowsort
SELECT + ( - 84 ) + - 43
----
-127

query I rowsort
SELECT - 83 - 13 + + 14
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL MAX( DISTINCT + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL MAX ( DISTINCT + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT + SUM( DISTINCT - - 2 ) + 37 * 56
----
2074

skipif mysql # not compatible
query I rowsort label-7558
SELECT + SUM ( DISTINCT - - 2 ) + 37 * 56
----
2074

query I rowsort
SELECT - 59 - - 68 + + + 18 AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7560
SELECT + CASE WHEN - 18 > + + 35 THEN + SUM( + 67 ) ELSE - 21 + - ( + + 57 ) + 10 DIV 56 + + COUNT( * ) + - 20 + + 78 END * - 2 - - + 36
----
74

skipif mysql # not compatible
query I rowsort label-7560
SELECT + CASE WHEN - 18 > + + 35 THEN + SUM ( + 67 ) ELSE - 21 + - ( + + 57 ) + 10 / 56 + + COUNT ( * ) + - 20 + + 78 END * - 2 - - + 36
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT DISTINCT COUNT( * ) * - 86 - - 25
----
-61

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT COUNT ( * ) * - 86 - - 25
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7562
SELECT - + COUNT( * ) * + - CAST( + COUNT( * ) AS SIGNED ) * - ( - ( + 28 ) ) + + 98 * 16 col0
----
1596

skipif mysql # not compatible
query I rowsort label-7562
SELECT - + COUNT ( * ) * + - CAST ( + COUNT ( * ) AS INTEGER ) * - ( - ( + 28 ) ) + + 98 * 16 col0
----
1596

query I rowsort
SELECT - 49 + - - 74 * 70 * 43 col2
----
222691

query I rowsort
SELECT ALL - 27 * - + 72 * + 88
----
171072

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT - 63 + + + COALESCE ( SUM( + 74 ), 28 + MAX( DISTINCT - + 67 ), + ( 96 ) )
----
11

skipif mysql # not compatible
query I rowsort label-7565
SELECT - 63 + + + COALESCE ( SUM ( + 74 ), 28 + MAX ( DISTINCT - + 67 ), + ( 96 ) )
----
11

query II rowsort
SELECT DISTINCT + ( - 96 ) AS col0, - 83
----
-96
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL + 35 + - + COUNT( DISTINCT + 61 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL + 35 + - + COUNT ( DISTINCT + 61 ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7568
SELECT - 90 + - COUNT( * ) + 57 + - + CASE + CAST( - 23 AS DECIMAL ) WHEN - - 56 THEN - - 32 * + 39 * 85 + + 93 + + 84 ELSE - + COUNT( * ) END * 70 - + - 84 * + - ( + - 71 ) + - NULLIF ( + 5, - MAX( DISTINCT 65 ) + + 32 ) * - - 67
----
5665

skipif mysql # not compatible
query I rowsort label-7568
SELECT - 90 + - COUNT ( * ) + 57 + - + CASE + CAST ( - 23 AS REAL ) WHEN - - 56 THEN - - 32 * + 39 * 85 + + 93 + + 84 ELSE - + COUNT ( * ) END * 70 - + - 84 * + - ( + - 71 ) + - NULLIF ( + 5, - MAX ( DISTINCT 65 ) + + 32 ) * - - 67
----
5665

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT ALL - + MAX( ALL 97 ) + - 46
----
-143

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - + MAX ( ALL 97 ) + - 46
----
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7570
SELECT DISTINCT + - 3 + - 38 DIV - + 61 + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT + - 3 + - 38 / - + 61 + COUNT ( * )
----
-2

query II rowsort
SELECT - - 38 * + 56 AS col0, 81
----
2128
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7572
SELECT - - SUM( ALL + + 34 ) DIV 12
----
2

skipif mysql # not compatible
query I rowsort label-7572
SELECT - - SUM ( ALL + + 34 ) / 12
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7573
SELECT ALL + CASE - - 10 WHEN + 8 THEN NULL WHEN + + CASE + 3 WHEN - 53 THEN + MAX( 76 ) * CAST( NULL AS SIGNED ) WHEN + 52 + + - 66 * + 92 * - 59 * 71 THEN NULL WHEN - - 93 THEN 81 + + + 71 END THEN + + CASE - - 16 WHEN - - COUNT( * ) THEN - + CAST( - COUNT( * ) AS SIGNED ) * + - 2 * - + COUNT( * ) END ELSE NULL END * - - 36 * - 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL + CASE - - 10 WHEN + 8 THEN NULL WHEN + + CASE + 3 WHEN - 53 THEN + MAX ( 76 ) * CAST ( NULL AS INTEGER ) WHEN + 52 + + - 66 * + 92 * - 59 * 71 THEN NULL WHEN - - 93 THEN 81 + + + 71 END THEN + + CASE - - 16 WHEN - - COUNT ( * ) THEN - + CAST ( - COUNT ( * ) AS INTEGER ) * + - 2 * - + COUNT ( * ) END ELSE NULL END * - - 36 * - 50 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ALL - + 74 + - MIN( - 20 ) * 37
----
666

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL - + 74 + - MIN ( - 20 ) * 37
----
666

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7575
SELECT ALL - 19 + - COUNT( * ) + - 28 + + CAST( NULL AS DECIMAL ) - - - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL - 19 + - COUNT ( * ) + - 28 + + CAST ( NULL AS REAL ) - - - 46
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7576
SELECT NULLIF ( + COUNT ( * ), 24 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7577
SELECT ALL + + 9 DIV - - 35 * - 24 + + 38
----
38

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + + 9 / - - 35 * - 24 + + 38
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7578
SELECT + + MIN( DISTINCT + - 98 ) AS col1, + 66 + + 57 AS col2
----
-98
123

skipif mysql # not compatible
query II rowsort label-7578
SELECT + + MIN ( DISTINCT + - 98 ) AS col1, + 66 + + 57 AS col2
----
-98
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7579
SELECT 73 * - + 38 + + 2 * - 29 - + 79 DIV - CASE - CASE + 29 WHEN 19 * - CASE - + COUNT( * ) WHEN + + 17 * - 99 * - AVG ( DISTINCT - 16 ) THEN NULL WHEN - 63 + - 67 THEN CASE + + 89 WHEN - 39 DIV + COALESCE ( + 36, + 86, 92 ) - - ( - 55 ) + + ( - ( - + 33 ) ) + + - NULLIF ( + ( - 0 ), 40 ) THEN - 77 ELSE NULL END * - 19 WHEN + COUNT( * ) DIV - COUNT( * ) THEN - 93 ELSE NULL END THEN NULL WHEN - 41 THEN NULL WHEN 56 * + 48 THEN + + MIN( DISTINCT 17 ) ELSE NULL END WHEN - 58 THEN NULL ELSE - 16 END
----
-2836

skipif mysql # not compatible
query I rowsort label-7579
SELECT 73 * - + 38 + + 2 * - 29 - + 79 / - CASE - CASE + 29 WHEN 19 * - CASE - + COUNT ( * ) WHEN + + 17 * - 99 * - AVG ( DISTINCT - 16 ) THEN NULL WHEN - 63 + - 67 THEN CASE + + 89 WHEN - 39 / + COALESCE ( + 36, + 86, 92 ) - - ( - 55 ) + + ( - ( - + 33 ) ) + + - NULLIF ( + ( - 0 ), 40 ) THEN - 77 ELSE NULL END * - 19 WHEN + COUNT ( * ) / - COUNT ( * ) THEN - 93 ELSE NULL END THEN NULL WHEN - 41 THEN NULL WHEN 56 * + 48 THEN + + MIN ( DISTINCT 17 ) ELSE NULL END WHEN - 58 THEN NULL ELSE - 16 END
----
-2836

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT - 50 * + MAX( DISTINCT NULLIF ( + 86, + 92 ) )
----
-4300

skipif mysql # not compatible
query I rowsort label-7580
SELECT - 50 * + MAX ( DISTINCT NULLIF ( + 86, + 92 ) )
----
-4300

query I rowsort
SELECT + CASE + + 10 WHEN 81 + 72 THEN NULL ELSE - - ( - 98 ) + + + 59 END * + 3 * - 48 + + 61 AS col0
----
5677

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

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL 31 / COUNT ( * )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT DISTINCT 47 DIV 31 * + 71 - 5 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT 47 / 31 * + 71 - 5 AS col2
----
66

query I rowsort
SELECT DISTINCT 49 * - 5
----
-245

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

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT + 29 / - + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7586
SELECT DISTINCT 65 * - COUNT( * ) * + 99 - + 31 DIV + - 83 + 0, - 82 AS col0
----
-6435
-82

skipif mysql # not compatible
query II rowsort label-7586
SELECT DISTINCT 65 * - COUNT ( * ) * + 99 - + 31 / + - 83 + 0, - 82 AS col0
----
-6435
-82

query I rowsort
SELECT ALL 95 * 28
----
2660

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7588
SELECT - 60 * 2 * - + CAST( NULL AS DECIMAL ) * ( - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT - 60 * 2 * - + CAST ( NULL AS REAL ) * ( - 49 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT + COALESCE ( + + 37, + + CASE - COUNT( * ) WHEN - 13 THEN NULL ELSE 72 * + 66 + 74 * - + 68 END, + - 39, 60 * ( + - 77 ) + + + 8 )
----
37

skipif mysql # not compatible
query I rowsort label-7589
SELECT + COALESCE ( + + 37, + + CASE - COUNT ( * ) WHEN - 13 THEN NULL ELSE 72 * + 66 + 74 * - + 68 END, + - 39, 60 * ( + - 77 ) + + + 8 )
----
37

query I rowsort
SELECT DISTINCT 89 * 96 AS col1
----
8544

query I rowsort
SELECT ( + 90 ) * 16
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT MAX( DISTINCT + 9 ) * - + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-7592
SELECT MAX ( DISTINCT + 9 ) * - + COUNT ( * )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7593
SELECT ALL 52 AS col0, - 79 * - 37 * + CAST( - 61 AS SIGNED ) AS col1
----
52
-178303

skipif mysql # not compatible
query II rowsort label-7593
SELECT ALL 52 AS col0, - 79 * - 37 * + CAST ( - 61 AS INTEGER ) AS col1
----
52
-178303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7594
SELECT DISTINCT 53 * CAST( 74 AS SIGNED ) * + 39
----
152958

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT 53 * CAST ( 74 AS INTEGER ) * + 39
----
152958

query II rowsort
SELECT ALL 18 + ( 49 ) AS col0, 57 * - ( + 98 ) col2
----
67
-5586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7596
SELECT DISTINCT + COALESCE ( 82, 36 * + - 62 DIV - - 21, - 12 + + CASE - 51 WHEN + 94 THEN - - 64 * - COUNT( * ) * - + 43 - + 70 + - - COUNT( * ) * 40 * + COUNT( * ) + - 55 + - 72 END )
----
82

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT + COALESCE ( 82, 36 * + - 62 / - - 21, - 12 + + CASE - 51 WHEN + 94 THEN - - 64 * - COUNT ( * ) * - + 43 - + 70 + - - COUNT ( * ) * 40 * + COUNT ( * ) + - 55 + - 72 END )
----
82

query II rowsort
SELECT DISTINCT + 97 + - ( 31 ) AS col2, + 46 AS col0
----
66
46

query I rowsort
SELECT ALL + 64 + - NULLIF ( - 53, 73 )
----
117

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

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

query I rowsort
SELECT 13 * + ( - - 1 ) * - 15 col0
----
-195

query I rowsort
SELECT 1 - + 60 AS col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7602
SELECT ALL - - 38 + + 68 + + COUNT( * ) * - + 14 DIV COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL - - 38 + + 68 + + COUNT ( * ) * - + 14 / COUNT ( * ) AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7603
SELECT 93 DIV - 43 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7603
SELECT 93 / - 43 AS col2
----
-2

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

skipif mysql # not compatible
query I rowsort label-7604
SELECT 24 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL - - COALESCE ( - - 12, + + 58 ) + - COUNT( * ) * - COUNT( * ) col0
----
13

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL - - COALESCE ( - - 12, + + 58 ) + - COUNT ( * ) * - COUNT ( * ) col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7606
SELECT NULLIF ( 94, + 79 ) * + 2 * + + CASE - COUNT( * ) WHEN + + 67 + - - CAST( NULL AS SIGNED ) THEN MIN( + 70 ) ELSE NULL END * CAST( + + 12 AS SIGNED ) / + + 99 + - 55 + + 99 * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT NULLIF ( 94, + 79 ) * + 2 * + + CASE - COUNT ( * ) WHEN + + 67 + - - CAST ( NULL AS INTEGER ) THEN MIN ( + 70 ) ELSE NULL END * CAST ( + + 12 AS INTEGER ) / + + 99 + - 55 + + 99 * - 98
----
NULL

query I rowsort
SELECT ALL - 88 - 18
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7608
SELECT + CAST( NULL AS SIGNED ) + CAST( 42 AS SIGNED ), 67 * - COUNT( * ) + - - CASE - 65 WHEN - - 17 THEN NULL WHEN + 75 THEN NULL WHEN + 56 THEN + + 56 END, + 69 AS col2
----
NULL
NULL
69

skipif mysql # not compatible
query III rowsort label-7608
SELECT + CAST ( NULL AS INTEGER ) + CAST ( 42 AS INTEGER ), 67 * - COUNT ( * ) + - - CASE - 65 WHEN - - 17 THEN NULL WHEN + 75 THEN NULL WHEN + 56 THEN + + 56 END, + 69 AS col2
----
NULL
NULL
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7609
SELECT ALL - ( + - 44 ) DIV - + 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL - ( + - 44 ) / - + 57 col1
----
0

query I rowsort
SELECT 39 * + - 38
----
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT + 93 * 31 - - 88 + COUNT( * ) col0
----
2972

skipif mysql # not compatible
query I rowsort label-7611
SELECT + 93 * 31 - - 88 + COUNT ( * ) col0
----
2972

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7613
SELECT + CAST( NULL AS SIGNED ) * + 17 * + 29 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT + CAST ( NULL AS INTEGER ) * + 17 * + 29 + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7614
SELECT ALL COUNT( * ) * - CASE + 62 WHEN + + 33 * - 54 THEN NULL WHEN + 39 THEN - 9 END AS col1, CAST( NULL AS SIGNED ) * + - 67 * 46 - + 76 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7614
SELECT ALL COUNT ( * ) * - CASE + 62 WHEN + + 33 * - 54 THEN NULL WHEN + 39 THEN - 9 END AS col1, CAST ( NULL AS INTEGER ) * + - 67 * 46 - + 76 AS col1
----
NULL
NULL

query I rowsort
SELECT ALL + 42 * - - 54 AS col1
----
2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7616
SELECT CASE - + 8 WHEN COALESCE ( + 89, - 97 ) * - - 20 + - COUNT( * ) + + 70 - + 48 + + - 50 * 74 - - 9 * + 90 - + 48 * + 97 THEN 93 WHEN - COUNT( * ) * + + SUM( ALL - ( - CASE + + 94 WHEN 23 THEN - + 52 ELSE - 58 END ) ) THEN NULL END * - 2 AS col0, - NULLIF ( + - 13, + CAST( NULL AS SIGNED ) )
----
NULL
13

skipif mysql # not compatible
query II rowsort label-7616
SELECT CASE - + 8 WHEN COALESCE ( + 89, - 97 ) * - - 20 + - COUNT ( * ) + + 70 - + 48 + + - 50 * 74 - - 9 * + 90 - + 48 * + 97 THEN 93 WHEN - COUNT ( * ) * + + SUM ( ALL - ( - CASE + + 94 WHEN 23 THEN - + 52 ELSE - 58 END ) ) THEN NULL END * - 2 AS col0, - NULLIF ( + - 13, + CAST ( NULL AS INTEGER ) )
----
NULL
13

query I rowsort
SELECT ALL + 25 * - + 70 * - - 26 AS col1
----
-45500

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT + 54 * + 66 - + + 16 + - 32 + - + 64 * + - CASE + 79 WHEN + COUNT( * ) THEN + 3 WHEN - - 53 + + - 7 / COUNT( DISTINCT + 31 ) + 21 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT + 54 * + 66 - + + 16 + - 32 + - + 64 * + - CASE + 79 WHEN + COUNT ( * ) THEN + 3 WHEN - - 53 + + - 7 / COUNT ( DISTINCT + 31 ) + 21 THEN NULL END
----
NULL

query II rowsort
SELECT ALL - 53 + + 34 + - + 75 + + 21, ( - COALESCE ( 35, 72 ) ) AS col2
----
-73
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT + 60 * - 18 - + - ( COUNT( * ) ) * - COALESCE ( 58, - CASE + - 55 WHEN - - COUNT( * ) + + + ( 34 ) * COUNT( * ) * 34 THEN + 77 ELSE 28 END + - ( + 18 ) + - + 64 ) AS col1
----
-1138

skipif mysql # not compatible
query I rowsort label-7620
SELECT + 60 * - 18 - + - ( COUNT ( * ) ) * - COALESCE ( 58, - CASE + - 55 WHEN - - COUNT ( * ) + + + ( 34 ) * COUNT ( * ) * 34 THEN + 77 ELSE 28 END + - ( + 18 ) + - + 64 ) AS col1
----
-1138

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

query II rowsort
SELECT 9 + + - 71 AS col0, - 30 + + 40
----
-62
10

query I rowsort
SELECT ALL - 80 + + - 62 * - 50
----
3020

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7626
SELECT + CAST( - 28 AS SIGNED ) * 52 + + 99
----
-1357

skipif mysql # not compatible
query I rowsort label-7626
SELECT + CAST ( - 28 AS INTEGER ) * 52 + + 99
----
-1357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT ALL 37 * - 70 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL 37 * - 70 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT 59 - + + SUM( + 86 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7629
SELECT 59 - + + SUM ( + 86 ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-7630
SELECT - COALESCE ( + 16, - - 46 ) + + + COUNT( * ) AS col2, + 58
----
-15
58

skipif mysql # not compatible
query II rowsort label-7630
SELECT - COALESCE ( + 16, - - 46 ) + + + COUNT ( * ) AS col2, + 58
----
-15
58

query I rowsort
SELECT ALL 64 + + - 32 * 86
----
-2688

query I rowsort
SELECT - COALESCE ( - 30, 95, - + 26 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7633
SELECT COUNT( * ) + + 88 + + 59 * - 54 AS col0, - COUNT( * ) - - + 65
----
-3097
64

skipif mysql # not compatible
query II rowsort label-7633
SELECT COUNT ( * ) + + 88 + + 59 * - 54 AS col0, - COUNT ( * ) - - + 65
----
-3097
64

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

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

query II rowsort
SELECT + 61 + + + 52 + + - ( - 71 ) + + 16 * 33 * - - 12 * + 94 * 40, - 43 AS col0
----
23823544
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT ALL - 92 - - + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL - 92 - - + COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL + COUNT( * ) - - + 35 + - 64 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL + COUNT ( * ) - - + 35 + - 64 AS col1
----
-28

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

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

query I rowsort
SELECT - ( + 15 ) * + 99
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT - 50 * - ( - 4 ) * - 67 + COUNT( * ) + - 31 + - - 38
----
13408

skipif mysql # not compatible
query I rowsort label-7640
SELECT - 50 * - ( - 4 ) * - 67 + COUNT ( * ) + - 31 + - - 38
----
13408

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT - MIN( - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-7641
SELECT - MIN ( - 60 )
----
60

query I rowsort
SELECT DISTINCT 85 * 37 AS col2
----
3145

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

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

query II rowsort
SELECT ALL - 39, + 11 col2
----
-39
11

query I rowsort
SELECT DISTINCT 20 * + 98 AS col0
----
1960

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

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

query II rowsort
SELECT ALL - 23 col1, + 99 col1
----
-23
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7648
SELECT + COALESCE ( + MIN( + + CAST( NULL AS SIGNED ) ), + 88 DIV - 78 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7648
SELECT + COALESCE ( + MIN ( + + CAST ( NULL AS INTEGER ) ), + 88 / - 78 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT - 66 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-7649
SELECT - 66 / 85
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7650
SELECT - MIN( 73 ) * + - COUNT( * ) + - + COALESCE ( - 76, - 34 * - 23, 7 * + + 52 + - 86 + 79 + - 94 + 51 DIV + COUNT( * ) * - 30 * - 72 * COUNT( * ), - + 87 ) + + 99 + 64 * 13 AS col0
----
1080

skipif mysql # not compatible
query I rowsort label-7650
SELECT - MIN ( 73 ) * + - COUNT ( * ) + - + COALESCE ( - 76, - 34 * - 23, 7 * + + 52 + - 86 + 79 + - 94 + 51 / + COUNT ( * ) * - 30 * - 72 * COUNT ( * ), - + 87 ) + + 99 + 64 * 13 AS col0
----
1080

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL - COUNT( * ) * 68 + 66
----
-2

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL - COUNT ( * ) * 68 + 66
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT DISTINCT + MIN( - + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT + MIN ( - + 4 )
----
-4

query II rowsort
SELECT + 46, ( 0 ) AS col2
----
46
0

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

skipif mysql # not compatible
query I rowsort label-7656
SELECT 85 * - COUNT ( * ) + + COUNT ( * ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT ALL - SUM( + 99 ) * COALESCE ( + + 99, + - 36, - 88 ) AS col1
----
-9801

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL - SUM ( + 99 ) * COALESCE ( + + 99, + - 36, - 88 ) AS col1
----
-9801

query I rowsort
SELECT - 76 * 36 AS col2
----
-2736

query I rowsort
SELECT - 88 * 50 * - ( + + 38 ) AS col0
----
167200

query I rowsort
SELECT DISTINCT - 76 * - 6
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL - COUNT( * ) + - 86 col1
----
-87

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL - COUNT ( * ) + - 86 col1
----
-87

query I rowsort
SELECT - 58 * 15
----
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT DISTINCT - COUNT( - 13 ) * - 67 col0
----
67

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT - COUNT ( - 13 ) * - 67 col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT DISTINCT + COUNT( * ) - COALESCE ( 95, 47 )
----
-94

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT + COUNT ( * ) - COALESCE ( 95, 47 )
----
-94

query I rowsort
SELECT ALL 22 * 94 AS col0
----
2068

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

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT - COUNT ( * ) / - 63 AS col0
----
0

query I rowsort
SELECT - 57 * + 89 AS col2
----
-5073

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7668
SELECT - 74 - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT - 74 - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + 80 * - 68
----
-5440

query I rowsort
SELECT + ( + 57 ) * - 44 AS col0
----
-2508

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7672
SELECT + 44 DIV + 34 col1
----
1

skipif mysql # not compatible
query I rowsort label-7672
SELECT + 44 / + 34 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT ALL + COALESCE ( 2, + 17 DIV 48 ) * 47 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL + COALESCE ( 2, + 17 / 48 ) * 47 AS col0
----
94

query I rowsort
SELECT + 20 * + 47
----
940

query I rowsort
SELECT DISTINCT 44 * 30
----
1320

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT ALL MAX( NULLIF ( - 49, + 7 * 48 ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL MAX ( NULLIF ( - 49, + 7 * 48 ) ) AS col0
----
-49

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

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

query I rowsort
SELECT ALL 31 + ( 77 )
----
108

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

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

query I rowsort
SELECT - 60 + - 70
----
-130

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7682
SELECT ALL 84 DIV 93 + - COALESCE ( CASE - 36 WHEN 79 THEN + 10 * - 69 WHEN + ( - 4 ) + COALESCE ( - 95, - 54 ) * 68 THEN + 99 + - 29 DIV + 49 ELSE MIN( ALL 17 ) * 31 END - CAST( NULL AS SIGNED ), 74 * - COUNT( ALL + 79 ) + COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL 84 / 93 + - COALESCE ( CASE - 36 WHEN 79 THEN + 10 * - 69 WHEN + ( - 4 ) + COALESCE ( - 95, - 54 ) * 68 THEN + 99 + - 29 / + 49 ELSE MIN ( ALL 17 ) * 31 END - CAST ( NULL AS INTEGER ), 74 * - COUNT ( ALL + 79 ) + COUNT ( * ) )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7683
SELECT ALL - 9 DIV 86 + + 43
----
43

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL - 9 / 86 + + 43
----
43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7685
SELECT DISTINCT 27 DIV 1 + 25 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-7685
SELECT DISTINCT 27 / 1 + 25 AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7686
SELECT ALL 65 * - CAST( 38 AS SIGNED )
----
-2470

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL 65 * - CAST ( 38 AS INTEGER )
----
-2470

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7688
SELECT CAST( NULL AS SIGNED ) / + MAX( + ( + ( 13 ) ) ) + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT CAST ( NULL AS INTEGER ) / + MAX ( + ( + ( 13 ) ) ) + 7 AS col0
----
NULL

query I rowsort
SELECT - 40 * 61 AS col0
----
-2440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT ALL + CAST( NULL AS SIGNED ) * - 35 - + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + CAST ( NULL AS INTEGER ) * - 35 - + 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7691
SELECT 5 * + 86 - + MAX( ALL 18 + + 69 ) DIV 9
----
421

skipif mysql # not compatible
query I rowsort label-7691
SELECT 5 * + 86 - + MAX ( ALL 18 + + 69 ) / 9
----
421

query I rowsort
SELECT - - 47 * 23 AS col2
----
1081

query I rowsort
SELECT - 29 + - 95
----
-124

query I rowsort
SELECT + 69 * 88 AS col1
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT - + 31 * + 36 + - CASE 98 WHEN 75 + 88 * + CASE - 97 * COUNT( * ) WHEN 80 * 84 THEN 25 ELSE NULL END THEN NULL ELSE - 79 END AS col2
----
-1037

skipif mysql # not compatible
query I rowsort label-7695
SELECT - + 31 * + 36 + - CASE 98 WHEN 75 + 88 * + CASE - 97 * COUNT ( * ) WHEN 80 * 84 THEN 25 ELSE NULL END THEN NULL ELSE - 79 END AS col2
----
-1037

query I rowsort
SELECT - 56 * 12
----
-672

query I rowsort
SELECT ALL - 0 * 4 AS col1
----
0

query I rowsort
SELECT - + 95 + + 10 AS col2
----
-85

query I rowsort
SELECT - ( 20 ) * + 27 - - 55 * 33
----
1275

query I rowsort
SELECT ALL NULLIF ( 7, + 70 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT - + 45 * - CAST( NULLIF ( - 43, 51 * + 72 ) + 95 AS SIGNED )
----
2340

skipif mysql # not compatible
query I rowsort label-7701
SELECT - + 45 * - CAST ( NULLIF ( - 43, 51 * + 72 ) + 95 AS INTEGER )
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT - 32 + NULLIF ( - 60, - COUNT( * ) )
----
-92

skipif mysql # not compatible
query I rowsort label-7702
SELECT - 32 + NULLIF ( - 60, - COUNT ( * ) )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT DISTINCT 71 DIV 38
----
1

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT 71 / 38
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT - 45 + COALESCE ( - 36, + 54 * COALESCE ( + 58, + ( SUM( ALL - 11 ) ), - 50 ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7704
SELECT - 45 + COALESCE ( - 36, + 54 * COALESCE ( + 58, + ( SUM ( ALL - 11 ) ), - 50 ) ) AS col2
----
-81

query I rowsort
SELECT + CASE - - 58 WHEN - 24 + + 79 THEN 58 * + 95 ELSE NULL END / 23 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 83 + - - 88 AS col0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL + 65 + 62 + COALESCE ( COUNT( * ), ( 45 ) * + 93 ) * - 84 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL + 65 + 62 + COALESCE ( COUNT ( * ), ( 45 ) * + 93 ) * - 84 AS col2
----
43

query I rowsort
SELECT 68 * 93
----
6324

onlyif mysql # DIV for integer division: 
query I rowsort label-7709
SELECT NULLIF ( - 6, 34 - ( + 3 ) ) + 43 DIV 12 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7709
SELECT NULLIF ( - 6, 34 - ( + 3 ) ) + 43 / 12 AS col1
----
-3

query I rowsort
SELECT 74 + - 39
----
35

query I rowsort
SELECT ALL 25 * + + 94 AS col0
----
2350

query I rowsort
SELECT ALL + 66 + 24 AS col2
----
90

query I rowsort
SELECT CASE - + 32 WHEN + 1 THEN NULL WHEN - 45 THEN + 47 - - 58 / 51 END * + ( 34 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7714
SELECT CASE 63 WHEN NULLIF ( - 68, 65 - + CAST( + 46 AS DECIMAL ) ) * CASE - SUM( DISTINCT - ( + 47 ) ) * + 59 WHEN - 99 THEN NULL WHEN 8 THEN + 97 END THEN + CAST( - 18 AS SIGNED ) WHEN - COUNT( * ) * COUNT( * ) THEN NULL END + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7714
SELECT CASE 63 WHEN NULLIF ( - 68, 65 - + CAST ( + 46 AS REAL ) ) * CASE - SUM ( DISTINCT - ( + 47 ) ) * + 59 WHEN - 99 THEN NULL WHEN 8 THEN + 97 END THEN + CAST ( - 18 AS INTEGER ) WHEN - COUNT ( * ) * COUNT ( * ) THEN NULL END + 63 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 48 + 50 * + 41
----
2098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT + CAST( ( 37 ) AS SIGNED ) * - 15 + + 36 AS col1
----
-519

skipif mysql # not compatible
query I rowsort label-7716
SELECT + CAST ( ( 37 ) AS INTEGER ) * - 15 + + 36 AS col1
----
-519

query I rowsort
SELECT 92 * 71 AS col2
----
6532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT ( 54 ) DIV 1 + + COUNT( DISTINCT + 65 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7718
SELECT ( 54 ) / 1 + + COUNT ( DISTINCT + 65 ) AS col1
----
55

query I rowsort
SELECT ALL 53 - - 39
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT - CAST( + 33 AS SIGNED ) + 2
----
-31

skipif mysql # not compatible
query I rowsort label-7720
SELECT - CAST ( + 33 AS INTEGER ) + 2
----
-31

query I rowsort
SELECT DISTINCT - 23 * + 32 AS col0
----
-736

query I rowsort
SELECT ALL - - 30 col1
----
30

query I rowsort
SELECT ALL - ( - - 80 ) - ( 1 ) AS col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7724
SELECT ALL 74 * - CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL 74 * - CAST ( NULL AS REAL ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT - - ( + 31 ) * 53 + - MAX( - 55 ) * 3
----
1808

skipif mysql # not compatible
query I rowsort label-7725
SELECT - - ( + 31 ) * 53 + - MAX ( - 55 ) * 3
----
1808

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT + 53 DIV + - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7726
SELECT + 53 / + - 93 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT CASE - COALESCE ( + 41, 80 * + SUM( DISTINCT + 36 ), + 7 ) WHEN - 39 THEN + 89 / + 40 + 34 ELSE NULL END * 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT CASE - COALESCE ( + 41, 80 * + SUM ( DISTINCT + 36 ), + 7 ) WHEN - 39 THEN + 89 / + 40 + 34 ELSE NULL END * 47 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT + 54 * - - MAX( + 11 ) AS col2
----
594

skipif mysql # not compatible
query I rowsort label-7730
SELECT + 54 * - - MAX ( + 11 ) AS col2
----
594

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT 62 DIV - 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7731
SELECT 62 / - 55 AS col1
----
-1

query I rowsort
SELECT - 21 * ( 76 )
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT ALL - + NULLIF ( - 62, COUNT( * ) * + 95 ) + - 12 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - + NULLIF ( - 62, COUNT ( * ) * + 95 ) + - 12 AS col0
----
50

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

query I rowsort
SELECT DISTINCT - + 82 + + 79 AS col0
----
-3

query I rowsort
SELECT ALL + 97 + - 90
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT CASE + 2 WHEN - 94 * 76 THEN - COUNT( * ) * 53 + + 26 WHEN - 17 * 43 THEN NULL END - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT CASE + 2 WHEN - 94 * 76 THEN - COUNT ( * ) * 53 + + 26 WHEN - 17 * 43 THEN NULL END - 7
----
NULL

query I rowsort
SELECT 68 - - 26 * 21
----
614

query II rowsort
SELECT - 14 AS col0, ( 35 ) - - 40 AS col1
----
-14
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT DISTINCT 61 + + 14 + + 56 DIV - 74 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7740
SELECT DISTINCT 61 + + 14 + + 56 / - 74 AS col2
----
75

query I rowsort
SELECT ALL + 61 + + ( - - ( + 0 ) )
----
61

query I rowsort
SELECT ALL + NULLIF ( - 65, + - 25 ) + 45
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT 3 - 81 DIV 70 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7743
SELECT 3 - 81 / 70 AS col1
----
2

query II rowsort
SELECT ALL 78, - 81 AS col1
----
78
-81

query II rowsort
SELECT 37 AS col2, ( + 38 )
----
37
38

query I rowsort
SELECT 12 - 33 - 10 AS col2
----
-31

query I rowsort
SELECT 93 + 87 * - 18 AS col1
----
-1473

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT COALESCE ( CASE 39 WHEN 18 THEN - ( + 28 ) + - 51 ELSE NULL END, 55 + MAX( DISTINCT + 97 ), - NULLIF ( - 28, - 88 ) + 98 ) * COUNT( * )
----
152

skipif mysql # not compatible
query I rowsort label-7748
SELECT COALESCE ( CASE 39 WHEN 18 THEN - ( + 28 ) + - 51 ELSE NULL END, 55 + MAX ( DISTINCT + 97 ), - NULLIF ( - 28, - 88 ) + 98 ) * COUNT ( * )
----
152

query I rowsort
SELECT 2 + - 1
----
1

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

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

query I rowsort
SELECT 18 * + 86 col1
----
1548

query I rowsort
SELECT DISTINCT - 17 * + 97 AS col0
----
-1649

query I rowsort
SELECT ALL - CASE + 40 WHEN - 90 THEN NULL ELSE 95 * + 57 - 40 END col1
----
-5375

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

skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 86
----
NULL

query II rowsort
SELECT ALL - 72 AS col1, - NULLIF ( - 42, - 96 ) + 19 * - 8 AS col1
----
-72
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT CASE + + COUNT( * ) WHEN - - NULLIF ( MIN( 31 ), + COUNT( * ) / + 15 ) THEN + 87 WHEN - 91 * - 56 + + 43 THEN NULL ELSE NULL END * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT CASE + + COUNT ( * ) WHEN - - NULLIF ( MIN ( 31 ), + COUNT ( * ) / + 15 ) THEN + 87 WHEN - 91 * - 56 + + 43 THEN NULL ELSE NULL END * - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT + 11 * COUNT( * ) * + 7 * 87
----
6699

skipif mysql # not compatible
query I rowsort label-7757
SELECT + 11 * COUNT ( * ) * + 7 * 87
----
6699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT - 51 + - CASE + 89 WHEN COALESCE ( ( 53 ), + 17 * 72 ) * 17 THEN - 57 - 57 WHEN 21 THEN 71 + ( - CAST( NULLIF ( + 71, 91 ) AS SIGNED ) + 57 ) ELSE - ( 21 ) END
----
-30

skipif mysql # not compatible
query I rowsort label-7758
SELECT - 51 + - CASE + 89 WHEN COALESCE ( ( 53 ), + 17 * 72 ) * 17 THEN - 57 - 57 WHEN 21 THEN 71 + ( - CAST ( NULLIF ( + 71, 91 ) AS INTEGER ) + 57 ) ELSE - ( 21 ) END
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT 38 + + 59 * - COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7759
SELECT 38 + + 59 * - COUNT ( * ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT - COUNT( + + ( 53 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7760
SELECT - COUNT ( + + ( 53 ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - + NULLIF ( - 3, COALESCE ( + 33, - 76 ) * - 50 ) * COUNT( DISTINCT - 6 + - 73 ) + - 50 col2
----
-47

skipif mysql # not compatible
query I rowsort label-7761
SELECT - + NULLIF ( - 3, COALESCE ( + 33, - 76 ) * - 50 ) * COUNT ( DISTINCT - 6 + - 73 ) + - 50 col2
----
-47

query II rowsort
SELECT ALL - 28, - 63 * 56 * + 42 AS col0
----
-28
-148176

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT DISTINCT + 51 * - SUM( ALL - 17 ) AS col1
----
867

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT + 51 * - SUM ( ALL - 17 ) AS col1
----
867

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7764
SELECT ALL 31 + + + CAST( NULL AS DECIMAL ) * + + 25 + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL 31 + + + CAST ( NULL AS REAL ) * + + 25 + 28 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7765
SELECT + 51 * + CAST( MIN( DISTINCT - 88 ) AS SIGNED ) - 65
----
-4553

skipif mysql # not compatible
query I rowsort label-7765
SELECT + 51 * + CAST ( MIN ( DISTINCT - 88 ) AS INTEGER ) - 65
----
-4553

onlyif mysql # aggregate syntax: 
query II rowsort label-7766
SELECT + 13 AS col2, + 68 + MIN( - 14 ) * 92 AS col1
----
13
-1220

skipif mysql # not compatible
query II rowsort label-7766
SELECT + 13 AS col2, + 68 + MIN ( - 14 ) * 92 AS col1
----
13
-1220

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL - COUNT( * ) + + + ( - 17 ) * CASE - 17 - + 84 WHEN + COUNT( * ) THEN 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL - COUNT ( * ) + + + ( - 17 ) * CASE - 17 - + 84 WHEN + COUNT ( * ) THEN 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT COUNT( * ) + - SUM( - 38 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7768
SELECT COUNT ( * ) + - SUM ( - 38 ) AS col0
----
39

query I rowsort
SELECT ALL - + ( + 2 ) col2
----
-2

query I rowsort
SELECT 26 * - - 89 - - 69 + - 51 * + 33
----
700

query I rowsort
SELECT ALL + 57 + ( + - 16 ) + + 64 * - 96
----
-6103

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT + COUNT( DISTINCT + 85 ) * + - 60 + 96 * 17 + COUNT( * ) * - 47
----
1525

skipif mysql # not compatible
query I rowsort label-7772
SELECT + COUNT ( DISTINCT + 85 ) * + - 60 + 96 * 17 + COUNT ( * ) * - 47
----
1525

query II rowsort
SELECT - + 30 AS col1, - ( + 39 ) AS col1
----
-30
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-7774
SELECT + COUNT( * ) + + 25 AS col2, + 59
----
26
59

skipif mysql # not compatible
query II rowsort label-7774
SELECT + COUNT ( * ) + + 25 AS col2, + 59
----
26
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT - 22 * + 99 * - + ( COUNT( * ) ) - 18
----
2160

skipif mysql # not compatible
query I rowsort label-7775
SELECT - 22 * + 99 * - + ( COUNT ( * ) ) - 18
----
2160

query I rowsort
SELECT + 14 + + + 64
----
78

query I rowsort
SELECT ALL 20 + - 59 - - 49 * + 58 * 11 AS col1
----
31223

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT + 32 * + - COALESCE ( + 99, - 85, - COUNT( * ) )
----
-3168

skipif mysql # not compatible
query I rowsort label-7778
SELECT + 32 * + - COALESCE ( + 99, - 85, - COUNT ( * ) )
----
-3168

query II rowsort
SELECT ALL + 66 + - 60, - 65 AS col0
----
6
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT + ( + 67 ) + - 43 + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-7780
SELECT + ( + 67 ) + - 43 + COUNT ( * )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7781
SELECT ALL - COALESCE ( 73, + 50 ) + - 7 DIV - ( 74 * + 14 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - COALESCE ( 73, + 50 ) + - 7 / - ( 74 * + 14 ) AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7782
SELECT - 84 + + 2 + + + 25 * 75 - CAST( 21 + - 58 AS SIGNED ) * + COUNT( * ) * 3 AS col2
----
1904

skipif mysql # not compatible
query I rowsort label-7782
SELECT - 84 + + 2 + + + 25 * 75 - CAST ( 21 + - 58 AS INTEGER ) * + COUNT ( * ) * 3 AS col2
----
1904

query I rowsort
SELECT - 60 + - - ( - 74 ) + - + 46
----
-180

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT - 36 + COUNT( * ) - + 34 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7785
SELECT - 36 + COUNT ( * ) - + 34 AS col2
----
-69

query I rowsort
SELECT - COALESCE ( 67, - - 21, 83 ) col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT + MIN( - - 70 ) + 67 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-7787
SELECT + MIN ( - - 70 ) + 67 AS col1
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7788
SELECT - COUNT( * ) + + 80 - + - CAST( + + 85 AS SIGNED ) AS col0
----
164

skipif mysql # not compatible
query I rowsort label-7788
SELECT - COUNT ( * ) + + 80 - + - CAST ( + + 85 AS INTEGER ) AS col0
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL + 31 * COALESCE ( + 14, + COUNT( DISTINCT - 56 ) ) * 41
----
17794

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL + 31 * COALESCE ( + 14, + COUNT ( DISTINCT - 56 ) ) * 41
----
17794

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7790
SELECT - 42 + 91 - + - CAST( NULL AS DECIMAL ) * 95 * + 20 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7790
SELECT - 42 + 91 - + - CAST ( NULL AS REAL ) * 95 * + 20 col1
----
NULL

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

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

query I rowsort
SELECT - 94 * + 58 AS col1
----
-5452

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL SUM( + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL SUM ( + 74 ) AS col0
----
74

query I rowsort
SELECT - 12 + - - 78 - - 64 * + ( 0 ) * 13
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT DISTINCT - 86 DIV + COALESCE ( + 84, - 71 * - 90 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT - 86 / + COALESCE ( + 84, - 71 * - 90 ) col1
----
-1

query I rowsort
SELECT - 82 + + + 67
----
-15

query I rowsort
SELECT + 99 * + - 87 + + - 67
----
-8680

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT DISTINCT - - MIN( - 24 ) * + + 13 - - COUNT( * ) AS col2
----
-311

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT - - MIN ( - 24 ) * + + 13 - - COUNT ( * ) AS col2
----
-311

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT + - 4 * + 35 + + COUNT( * ) + + - CASE - 41 WHEN 2 * 37 THEN NULL WHEN 25 THEN NULL ELSE - COUNT( * ) END AS col1
----
-138

skipif mysql # not compatible
query I rowsort label-7799
SELECT + - 4 * + 35 + + COUNT ( * ) + + - CASE - 41 WHEN 2 * 37 THEN NULL WHEN 25 THEN NULL ELSE - COUNT ( * ) END AS col1
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT ALL - - 32 * CASE - 22 WHEN 22 THEN CAST( NULL AS SIGNED ) + - 18 WHEN - 38 + NULLIF ( 38, 15 ) THEN - 81 * ( 9 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL - - 32 * CASE - 22 WHEN 22 THEN CAST ( NULL AS INTEGER ) + - 18 WHEN - 38 + NULLIF ( 38, 15 ) THEN - 81 * ( 9 ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL - 97 * - 91 * + ( - 28 ) * - 65 + COUNT( * ) + MIN( 50 ) * + 13 AS col2
----
16065791

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL - 97 * - 91 * + ( - 28 ) * - 65 + COUNT ( * ) + MIN ( 50 ) * + 13 AS col2
----
16065791

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

skipif mysql # not compatible
query I rowsort label-7802
SELECT - - CAST ( NULL AS INTEGER ) * - - 46 * + + 76
----
NULL

query I rowsort
SELECT - + 16 + 17 AS col2
----
1

query I rowsort
SELECT DISTINCT + + 3 * + 2
----
6

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

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

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

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

query I rowsort
SELECT ALL + 3 * + NULLIF ( 57, - 2 ) + - 52 col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT DISTINCT 78 * + 77 + + 48 * - MAX( 9 )
----
5574

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT 78 * + 77 + + 48 * - MAX ( 9 )
----
5574

query II rowsort
SELECT - 78 * 32 AS col0, 44
----
-2496
44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT DISTINCT 2 * + 42 + - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT 2 * + 42 + - COUNT ( * ) AS col1
----
83

query I rowsort
SELECT ALL - 99 * - 24 - + 53 + + COALESCE ( + + 4, + 64, + ( 3 ) ) * 15 AS col0
----
2383

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT + 8 * + COUNT( 70 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7813
SELECT + 8 * + COUNT ( 70 ) AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT ALL - 61 DIV - + 35
----
1

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL - 61 / - + 35
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT - ( ( - + ( + CASE COUNT( ALL - 15 ) WHEN + COUNT( * ) THEN NULL WHEN ( - 3 ) THEN NULL ELSE - 73 / 30 END ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT - ( ( - + ( + CASE COUNT ( ALL - 15 ) WHEN + COUNT ( * ) THEN NULL WHEN ( - 3 ) THEN NULL ELSE - 73 / 30 END ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ALL 11 * + COUNT( + 13 ) * 86 * 10 + + 3 - 0 AS col2
----
9463

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL 11 * + COUNT ( + 13 ) * 86 * 10 + + 3 - 0 AS col2
----
9463

query I rowsort
SELECT - 72 * - - 56 * - - 92 AS col1
----
-370944

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT + 78 * - + 17 * 47 * - COUNT( * ) col0
----
62322

skipif mysql # not compatible
query I rowsort label-7820
SELECT + 78 * - + 17 * 47 * - COUNT ( * ) col0
----
62322

query I rowsort
SELECT + 25 + 82
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7822
SELECT - 30 DIV COUNT( - 40 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7822
SELECT - 30 / COUNT ( - 40 ) AS col1
----
-30

query I rowsort
SELECT + 42 * + - 72
----
-3024

query I rowsort
SELECT + 1 + - - ( 2 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7825
SELECT ALL - CAST( + + 73 AS SIGNED ) * + COALESCE ( + 99, + 14 ) * CASE + 57 WHEN SUM( 60 ) THEN + COALESCE ( 35, - 26, 4 ) + + COUNT( * ) * + 19 END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL - CAST ( + + 73 AS INTEGER ) * + COALESCE ( + 99, + 14 ) * CASE + 57 WHEN SUM ( 60 ) THEN + COALESCE ( 35, - 26, 4 ) + + COUNT ( * ) * + 19 END - COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT 94 AS col2, - 32 AS col0
----
94
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT + SUM( ALL + 30 ) - + 65 * + 56
----
-3610

skipif mysql # not compatible
query I rowsort label-7827
SELECT + SUM ( ALL + 30 ) - + 65 * + 56
----
-3610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT + 82 * - ( 29 ) * CAST( + + 19 AS SIGNED ) AS col0
----
-45182

skipif mysql # not compatible
query I rowsort label-7828
SELECT + 82 * - ( 29 ) * CAST ( + + 19 AS INTEGER ) AS col0
----
-45182

query II rowsort
SELECT - 99, 94 + - 24 AS col1
----
-99
70

query I rowsort
SELECT - 47 + - 57 AS col0
----
-104

query I rowsort
SELECT - - 42 col0
----
42

query I rowsort
SELECT + 24 + - NULLIF ( + - 3, + ( + + 79 ) + 60 ) + - 49
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7833
SELECT DISTINCT - CAST( - MIN( ALL - 45 ) AS SIGNED ) + - - 33 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT - CAST ( - MIN ( ALL - 45 ) AS INTEGER ) + - - 33 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7834
SELECT ALL 68 DIV + + 27 * + COUNT( * ) + 68 AS col0
----
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT ALL + MIN( ALL - 33 ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL + MIN ( ALL - 33 ) col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7836
SELECT DISTINCT - 92 / - CAST( NULL AS SIGNED ) + 24 + + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT - 92 / - CAST ( NULL AS INTEGER ) + 24 + + 48 AS col2
----
NULL

query II rowsort
SELECT + 22 * + 62 + - 87, 86 + + 43 AS col2
----
1277
129

onlyif mysql # DIV for integer division: 
query I rowsort label-7838
SELECT 91 DIV + - 10
----
-9

skipif mysql # not compatible
query I rowsort label-7838
SELECT 91 / + - 10
----
-9

query I rowsort
SELECT ALL - 90 + - 1 * + 23 + 89 * - - 2
----
65

query I rowsort
SELECT + 49 + - 70
----
-21

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7842
SELECT DISTINCT - + 88 col0, CAST( 51 AS SIGNED ) + - 63 + - 39 * 81 * 4 AS col0
----
-88
-12648

skipif mysql # not compatible
query II rowsort label-7842
SELECT DISTINCT - + 88 col0, CAST ( 51 AS INTEGER ) + - 63 + - 39 * 81 * 4 AS col0
----
-88
-12648

query I rowsort
SELECT ALL - 41 * + 94 * - 14 col1
----
53956

query I rowsort
SELECT 70 + 12 AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7845
SELECT + 32 DIV 14
----
2

skipif mysql # not compatible
query I rowsort label-7845
SELECT + 32 / 14
----
2

query I rowsort
SELECT ALL + 49 - - 68 + 64 + + - 3 + + 18
----
196

query II rowsort
SELECT 35, 56 AS col2
----
35
56

query II rowsort
SELECT ALL - 75 * + - 88, 33 AS col1
----
6600
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT DISTINCT + 21 * - COUNT( - 7 ) * - - 34 * + ( - - 92 ) * 37 + + ( 95 )
----
-2430361

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT + 21 * - COUNT ( - 7 ) * - - 34 * + ( - - 92 ) * 37 + + ( 95 )
----
-2430361

query II rowsort
SELECT 77 * + 16 AS col1, 11 - - 97 col1
----
1232
108

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7852
SELECT ALL - COALESCE ( - 15, + 84 + CAST( + + 58 AS SIGNED ) DIV + MAX( 24 ) * 27 ) col0
----
15

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - COALESCE ( - 15, + 84 + CAST ( + + 58 AS INTEGER ) / + MAX ( 24 ) * 27 ) col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT 76 * 66 + + 36 + + CASE - MIN( - 56 ) WHEN 63 + CASE WHEN 8 - 26 < ( NULL ) THEN COUNT( * ) * + COUNT( * ) END THEN + 21 WHEN + 24 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT 76 * 66 + + 36 + + CASE - MIN ( - 56 ) WHEN 63 + CASE WHEN 8 - 26 < ( NULL ) THEN COUNT ( * ) * + COUNT ( * ) END THEN + 21 WHEN + 24 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7854
SELECT 93 + - + 96 AS col0, + COALESCE ( 22, + 18 + 23 * 47 ) + - CAST( 9 AS SIGNED ) * - 69
----
-3
643

skipif mysql # not compatible
query II rowsort label-7854
SELECT 93 + - + 96 AS col0, + COALESCE ( 22, + 18 + 23 * 47 ) + - CAST ( 9 AS INTEGER ) * - 69
----
-3
643

query I rowsort
SELECT 28 * + 74 AS col1
----
2072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7856
SELECT ALL 13 * COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL 13 * COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 18 * 68 AS col0
----
1224

query II rowsort
SELECT ALL 87 AS col1, + 54 AS col2
----
87
54

query II rowsort
SELECT DISTINCT 89 AS col1, + 91
----
89
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT 8 DIV + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7860
SELECT 8 / + 34 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7862
SELECT ( + 50 ) + + - 11 - 28 + + CAST( - + 67 AS SIGNED ) DIV COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7862
SELECT ( + 50 ) + + - 11 - 28 + + CAST ( - + 67 AS INTEGER ) / COUNT ( * ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7863
SELECT DISTINCT COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7864
SELECT 50 AS col1, NULLIF ( - COUNT( ALL + + 29 ), + - 31 ) + - CASE 41 WHEN COUNT( * ) * 40 THEN 95 WHEN 35 THEN NULL ELSE NULL END AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-7864
SELECT 50 AS col1, NULLIF ( - COUNT ( ALL + + 29 ), + - 31 ) + - CASE 41 WHEN COUNT ( * ) * 40 THEN 95 WHEN 35 THEN NULL ELSE NULL END AS col0
----
50
NULL

query I rowsort
SELECT DISTINCT - 88 + 11 + 97 * - + 91 * + + 85 + 42
----
-750330

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

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

query I rowsort
SELECT DISTINCT 70 + ( + 57 )
----
127

query I rowsort
SELECT ALL - ( - 51 ) + 70
----
121

query II rowsort
SELECT - 31, + 32 AS col0
----
-31
32

query II rowsort
SELECT ALL 42 AS col1, 61
----
42
61

query I rowsort
SELECT DISTINCT - 52 + - 86 * 26
----
-2288

query I rowsort
SELECT DISTINCT - 94 + - + 73 AS col2
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT + MAX( DISTINCT - CASE 11 WHEN + 46 THEN NULL WHEN - 88 / 71 THEN NULL WHEN 31 * + 95 THEN 92 * 23 ELSE NULL END ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT + MAX ( DISTINCT - CASE 11 WHEN + 46 THEN NULL WHEN - 88 / 71 THEN NULL WHEN 31 * + 95 THEN 92 * 23 ELSE NULL END ) + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL 54 + + - 76 + - - 61 * 58 * + 85 + + + COUNT( * ) AS col2
----
300709

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL 54 + + - 76 + - - 61 * 58 * + 85 + + + COUNT ( * ) AS col2
----
300709

onlyif mysql # DIV for integer division: 
query I rowsort label-7875
SELECT + 38 - + 17 DIV + + 70
----
38

skipif mysql # not compatible
query I rowsort label-7875
SELECT + 38 - + 17 / + + 70
----
38

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

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

query II rowsort
SELECT + ( - 87 ) AS col0, + 12 * - 82 AS col1
----
-87
-984

query I rowsort
SELECT ALL - 0 * - + 12 - + + 41 AS col2
----
-41

query I rowsort
SELECT ALL - + ( - + 92 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7880
SELECT - MIN( 75 ) * NULLIF ( + 53, 34 + COUNT( * ) ) DIV + MAX( DISTINCT + 60 - ( 56 ) * + 32 ) + 14 * 62
----
870

skipif mysql # not compatible
query I rowsort label-7880
SELECT - MIN ( 75 ) * NULLIF ( + 53, 34 + COUNT ( * ) ) / + MAX ( DISTINCT + 60 - ( 56 ) * + 32 ) + 14 * 62
----
870

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

query I rowsort
SELECT 22 * 15
----
330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT DISTINCT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) / - - 71 + - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT DISTINCT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) / - - 71 + - + 76
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7884
SELECT 12 * 87 DIV + 62 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-7884
SELECT 12 * 87 / + 62 AS col1
----
16

query I rowsort
SELECT ALL + 72 * + 8
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT DISTINCT - ( 24 ) * - 97 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT - ( 24 ) * - 97 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT ALL + 45 + + 78 AS col0, - COUNT( * ) * - + 16 col0
----
123
16

skipif mysql # not compatible
query II rowsort label-7887
SELECT ALL + 45 + + 78 AS col0, - COUNT ( * ) * - + 16 col0
----
123
16

query II rowsort
SELECT 37 * - 79 AS col1, ( + 60 ) - - 17 - - 25
----
-2923
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7889
SELECT COUNT( * ) DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-7889
SELECT COUNT ( * ) / - 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT DISTINCT COUNT( 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT COUNT ( 53 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL - ( + + COUNT( * ) ) + - CASE - 30 WHEN + 98 * - + 32 THEN - 42 * - 69 WHEN - 38 * - 43 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL - ( + + COUNT ( * ) ) + - CASE - 30 WHEN + 98 * - + 32 THEN - 42 * - 69 WHEN - 38 * - 43 THEN NULL END
----
NULL

query I rowsort
SELECT 27 + + 10 - + 26
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT ALL - 82 + + 96 DIV - 13 + - 45 AS col0
----
-134

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL - 82 + + 96 / - 13 + - 45 AS col0
----
-134

query I rowsort
SELECT 37 + - + 69 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT + COUNT( * ) + + + 38 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-7895
SELECT + COUNT ( * ) + + + 38 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT DISTINCT + CASE 98 WHEN + NULLIF ( - 32, 65 * - - 95 / + - ( + 83 ) / SUM( 30 ) ) THEN + 9 + ( + 79 ) WHEN 75 THEN NULL ELSE NULL END * + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT + CASE 98 WHEN + NULLIF ( - 32, 65 * - - 95 / + - ( + 83 ) / SUM ( 30 ) ) THEN + 9 + ( + 79 ) WHEN 75 THEN NULL ELSE NULL END * + 69 AS col1
----
NULL

query I rowsort
SELECT 51 - - 52 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT ALL + COUNT( * ) * + 30 * - 94
----
-2820

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL + COUNT ( * ) * + 30 * - 94
----
-2820

query I rowsort
SELECT DISTINCT + - 96 + + 10 * - 29 col2
----
-386

query I rowsort
SELECT ALL - ( - 79 ) AS col2
----
79

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

query I rowsort
SELECT ALL 48 * - - 29 AS col1
----
1392

query I rowsort
SELECT - - 10 + 68
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT + NULLIF ( - COUNT( * ), + COUNT( * ) / - 78 + + - 71 ) * - 29
----
29

skipif mysql # not compatible
query I rowsort label-7904
SELECT + NULLIF ( - COUNT ( * ), + COUNT ( * ) / - 78 + + - 71 ) * - 29
----
29

query I rowsort
SELECT ALL - 58 * + 38
----
-2204

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT MAX( DISTINCT - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7906
SELECT MAX ( DISTINCT - 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7907
SELECT ALL - 47 DIV + 67 * + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL - 47 / + 67 * + - COUNT ( * ) AS col0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT + 33 DIV - 80 * + + 16 + + 21 * - 53 + 81 - 36 * - 7
----
-780

skipif mysql # not compatible
query I rowsort label-7909
SELECT + 33 / - 80 * + + 16 + + 21 * - 53 + 81 - 36 * - 7
----
-780

onlyif mysql # DIV for integer division: 
query I rowsort label-7910
SELECT + 32 DIV 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7910
SELECT + 32 / 63 AS col1
----
0

query I rowsort
SELECT + 49 + + - 77 + - 80 - + 52 + 40 * + 29 * + 70 * COALESCE ( - 69, + 69 ) AS col1
----
-5602960

query I rowsort
SELECT 3 * 26 - + + 25
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - 18 * 53 + - 87 * - MIN( DISTINCT + 92 )
----
7050

skipif mysql # not compatible
query I rowsort label-7913
SELECT - 18 * 53 + - 87 * - MIN ( DISTINCT + 92 )
----
7050

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

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

query II rowsort
SELECT + NULLIF ( - 20, + 78 ) col2, - 3
----
-20
-3

query I rowsort
SELECT ALL + 13 * + 43 * + - 70 + - - 94
----
-39036

query I rowsort
SELECT DISTINCT - 30 * + 98 + - 32 + + 90 - + 51 AS col0
----
-2933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7918
SELECT ALL + AVG ( DISTINCT 93 ) * 74 / + 57 * - CASE + 12 WHEN - - ( - + COUNT( * ) ) THEN 56 ELSE NULL END * - 91 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL + AVG ( DISTINCT 93 ) * 74 / + 57 * - CASE + 12 WHEN - - ( - + COUNT ( * ) ) THEN 56 ELSE NULL END * - 91 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 25, COALESCE ( + 67, - 34 + + 6 ) + - 60 )
----
25

query I rowsort
SELECT + 42 * + + 54 AS col0
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + CASE + + COUNT( * ) WHEN NULLIF ( + 70, - 85 ) * + 34 * + - 95 + - - 50 * - 89 + + 35 * + 75 THEN CASE 80 WHEN + 59 THEN + ( - 62 ) - 69 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT + CASE + + COUNT ( * ) WHEN NULLIF ( + 70, - 85 ) * + 34 * + - 95 + - - 50 * - 89 + + 35 * + 75 THEN CASE 80 WHEN + 59 THEN + ( - 62 ) - 69 END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT DISTINCT + CASE - 92 WHEN + - COALESCE ( - + 52, + 90 ) THEN NULL ELSE - COUNT( * ) + 29 END AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT + CASE - 92 WHEN + - COALESCE ( - + 52, + 90 ) THEN NULL ELSE - COUNT ( * ) + 29 END AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL - 97 * 84 * 64 + + SUM( ALL 74 ) * + 98 * 29
----
-311164

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - 97 * 84 * 64 + + SUM ( ALL 74 ) * + 98 * 29
----
-311164

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT + 36 + 74 + - COUNT( * ) + + 38 * + + 51 AS col0
----
2047

skipif mysql # not compatible
query I rowsort label-7924
SELECT + 36 + 74 + - COUNT ( * ) + + 38 * + + 51 AS col0
----
2047

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

skipif mysql # not compatible
query I rowsort label-7925
SELECT + COUNT ( * ) * 15 / - + 70 * - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7926
SELECT ALL + 41 * + SUM( ALL - + 83 ) AS col2, 25 + ( - - 32 ) AS col2
----
-3403
57

skipif mysql # not compatible
query II rowsort label-7926
SELECT ALL + 41 * + SUM ( ALL - + 83 ) AS col2, 25 + ( - - 32 ) AS col2
----
-3403
57

query I rowsort
SELECT DISTINCT + + 61 * 21 AS col2
----
1281

query I rowsort
SELECT DISTINCT + - 44 + - - 82
----
38

query II rowsort
SELECT - + 51, 17 * + - 18 * + 73 AS col0
----
-51
-22338

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

query I rowsort
SELECT ALL + - 94 + + 88
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7932
SELECT - 92 * - COUNT( * ) - + 44 * + - 64 + - 44 + 11 DIV - 61 col1
----
2864

skipif mysql # not compatible
query I rowsort label-7932
SELECT - 92 * - COUNT ( * ) - + 44 * + - 64 + - 44 + 11 / - 61 col1
----
2864

query I rowsort
SELECT - 62 * 54 AS col1
----
-3348

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7934
SELECT - 2 + + COUNT( * ) DIV - + NULLIF ( 45, 4 ) + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7934
SELECT - 2 + + COUNT ( * ) / - + NULLIF ( 45, 4 ) + + COUNT ( * ) AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT - ( + MIN( ALL + 83 ) ) * + MAX( + - 93 ) * - 48 * + 40
----
-14820480

skipif mysql # not compatible
query I rowsort label-7936
SELECT - ( + MIN ( ALL + 83 ) ) * + MAX ( + - 93 ) * - 48 * + 40
----
-14820480

query I rowsort
SELECT - 15 + 30 col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT + COUNT( * ) - - 68
----
69

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT + COUNT ( * ) - - 68
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7939
SELECT ALL 61 AS col2, CAST( NULL AS SIGNED ) + - 98
----
61
NULL

skipif mysql # not compatible
query II rowsort label-7939
SELECT ALL 61 AS col2, CAST ( NULL AS INTEGER ) + - 98
----
61
NULL

query II rowsort
SELECT 71, 34 col1
----
71
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT ALL + 18 * CASE + 24 WHEN + 90 + - ( + - 47 ) THEN 99 END * + 55 * + MIN( - 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL + 18 * CASE + 24 WHEN + 90 + - ( + - 47 ) THEN 99 END * + 55 * + MIN ( - 4 ) AS col2
----
NULL

query II rowsort
SELECT + 57 AS col2, - COALESCE ( 11, - 10 - + - 64, 5 )
----
57
-11

query II rowsort
SELECT + 73 AS col0, - 31 AS col0
----
73
-31

query I rowsort
SELECT - 36 - + - 6
----
-30

query I rowsort
SELECT - 26 * 54
----
-1404

query I rowsort
SELECT DISTINCT - 99 * - - 59
----
-5841

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7947
SELECT CAST( 19 AS SIGNED ) AS col0, + 48 * + 61 + - CAST( NULL AS SIGNED ) col2
----
19
NULL

skipif mysql # not compatible
query II rowsort label-7947
SELECT CAST ( 19 AS INTEGER ) AS col0, + 48 * + 61 + - CAST ( NULL AS INTEGER ) col2
----
19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT + NULLIF ( + 64, + COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-7948
SELECT + NULLIF ( + 64, + COUNT ( * ) )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7949
SELECT ALL + MIN( + 81 ) DIV + 63 + - + MIN( + + 13 ) + + COALESCE ( 52, + MIN( ALL + 39 ) * COUNT( * ), CAST( - 27 AS SIGNED ) ) * SUM( - 56 ) + - 32 AS col0
----
-2956

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL + MIN ( + 81 ) / + 63 + - + MIN ( + + 13 ) + + COALESCE ( 52, + MIN ( ALL + 39 ) * COUNT ( * ), CAST ( - 27 AS INTEGER ) ) * SUM ( - 56 ) + - 32 AS col0
----
-2956

query II rowsort
SELECT - 66 * + 87 AS col2, + 96
----
-5742
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT ALL 36 DIV + + 15 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL 36 / + + 15 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7952
SELECT DISTINCT + 86 DIV 95 * - 44 + - 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT + 86 / 95 * - 44 + - 18 AS col2
----
-18

query I rowsort
SELECT + 60 - - NULLIF ( + 70, + - 49 ) + - 13 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT ALL - 53 * + 76 + - - NULLIF ( + COUNT( * ), - 19 )
----
-4027

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL - 53 * + 76 + - - NULLIF ( + COUNT ( * ), - 19 )
----
-4027

query II rowsort
SELECT + 36 * 5 AS col1, 70
----
180
70

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

query I rowsort
SELECT DISTINCT + 9 * - - 64 + - 58 AS col1
----
518

query II rowsort
SELECT + ( + 76 ) AS col2, 17
----
76
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7959
SELECT CASE + - CAST( + 58 AS SIGNED ) WHEN - + COUNT( * ) * - NULLIF ( - 25, + 41 ) THEN + + 94 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT CASE + - CAST ( + 58 AS INTEGER ) WHEN - + COUNT ( * ) * - NULLIF ( - 25, + 41 ) THEN + + 94 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT ALL + CASE + 67 WHEN + SUM( ALL - - 68 ) THEN + 86 + - - COUNT( * ) WHEN - - 34 * 99 + 25 * 3 THEN 61 + + CAST( NULL AS SIGNED ) * 72 WHEN + 24 THEN - 41 ELSE + 65 + - 57 * 27 END * 98 + 91 * ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL + CASE + 67 WHEN + SUM ( ALL - - 68 ) THEN + 86 + - - COUNT ( * ) WHEN - - 34 * 99 + 25 * 3 THEN 61 + + CAST ( NULL AS INTEGER ) * 72 WHEN + 24 THEN - 41 ELSE + 65 + - 57 * 27 END * 98 + 91 * ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7961
SELECT + NULLIF ( COUNT( * ), - + 57 ) * - 95, + 72 * + 42 + + - 64 + + 64 AS col1
----
-95
3024

skipif mysql # not compatible
query II rowsort label-7961
SELECT + NULLIF ( COUNT ( * ), - + 57 ) * - 95, + 72 * + 42 + + - 64 + + 64 AS col1
----
-95
3024

query I rowsort
SELECT DISTINCT + NULLIF ( - 51, + 72 ) AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7963
SELECT - COUNT( * ) * ( + 92 ) + + - CAST( - 61 AS SIGNED ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7963
SELECT - COUNT ( * ) * ( + 92 ) + + - CAST ( - 61 AS INTEGER ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT 57 * + + ( + - 94 ) + - 72 + - 83 * + 29 * 54 * COALESCE ( - 34, - 86, CAST( CASE 98 WHEN - 55 * 76 + + COUNT( * ) THEN - 93 END AS SIGNED ) * - 74 ) - MAX( DISTINCT + 32 ) AS col1
----
4413790

skipif mysql # not compatible
query I rowsort label-7964
SELECT 57 * + + ( + - 94 ) + - 72 + - 83 * + 29 * 54 * COALESCE ( - 34, - 86, CAST ( CASE 98 WHEN - 55 * 76 + + COUNT ( * ) THEN - 93 END AS INTEGER ) * - 74 ) - MAX ( DISTINCT + 32 ) AS col1
----
4413790

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT - COUNT( * ) * - NULLIF ( + - 11, - - 71 * - ( - + ( 10 ) ) ) * - 33 + - 88 AS col2
----
275

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT - COUNT ( * ) * - NULLIF ( + - 11, - - 71 * - ( - + ( 10 ) ) ) * - 33 + - 88 AS col2
----
275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7967
SELECT NULLIF ( + 92, + COALESCE ( 9, ( + COUNT( * ) ) + + 22 + COUNT( * ), - ( 15 ) ) ) DIV 43 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7967
SELECT NULLIF ( + 92, + COALESCE ( 9, ( + COUNT ( * ) ) + + 22 + COUNT ( * ), - ( 15 ) ) ) / 43 AS col0
----
2

query I rowsort
SELECT ALL - - ( 76 ) * + 63 AS col1
----
4788

query I rowsort
SELECT DISTINCT 5 * - 73 AS col0
----
-365

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7971
SELECT COALESCE ( 69, 0 ) + + 47 - - 36, + 59 + + COUNT( * ) + 87 DIV + + 10 AS col1
----
152
68

skipif mysql # not compatible
query II rowsort label-7971
SELECT COALESCE ( 69, 0 ) + + 47 - - 36, + 59 + + COUNT ( * ) + 87 / + + 10 AS col1
----
152
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT 16 DIV - + 2
----
-8

skipif mysql # not compatible
query I rowsort label-7972
SELECT 16 / - + 2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT SUM( + + 12 ) * - + 92
----
-1104

skipif mysql # not compatible
query I rowsort label-7973
SELECT SUM ( + + 12 ) * - + 92
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT 6 * + 11 + + - 24 * + - MIN( - + 5 ) * - 99
----
11946

skipif mysql # not compatible
query I rowsort label-7974
SELECT 6 * + 11 + + - 24 * + - MIN ( - + 5 ) * - 99
----
11946

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT DISTINCT 94 * - COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT 94 * - COUNT ( * ) AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT ALL - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + - + 62 + + COALESCE ( + + 66, 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 62 + + COALESCE ( + + 66, 45 )
----
NULL

query I rowsort
SELECT 12 * - 19 * - NULLIF ( + - 1, 9 + + 39 + 51 )
----
-228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7979
SELECT ALL - 12 + + - CASE MAX( DISTINCT - 72 ) WHEN 17 THEN + 34 WHEN 78 THEN NULL ELSE + ( - 22 ) - + 45 END + 4 DIV - 32 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL - 12 + + - CASE MAX ( DISTINCT - 72 ) WHEN 17 THEN + 34 WHEN 78 THEN NULL ELSE + ( - 22 ) - + 45 END + 4 / - 32 AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7980
SELECT DISTINCT + SUM( ALL - - 50 ) + + 38 col1, - COUNT( * ) col1
----
88
-1

skipif mysql # not compatible
query II rowsort label-7980
SELECT DISTINCT + SUM ( ALL - - 50 ) + + 38 col1, - COUNT ( * ) col1
----
88
-1

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7983
SELECT ALL + NULLIF ( - 85, CAST( NULL AS DECIMAL ) ) + - 54
----
-139

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL + NULLIF ( - 85, CAST ( NULL AS REAL ) ) + - 54
----
-139

query I rowsort
SELECT 27 + - - 24 + - - 17 + - 79
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-7985
SELECT ALL + 14 + - - 7 DIV NULLIF ( - + 21, + 66 ) + + 40 + - 47
----
7

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL + 14 + - - 7 / NULLIF ( - + 21, + 66 ) + + 40 + - 47
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT SUM( NULLIF ( + 86, - - 62 ) ) * - 37 * + 61 + - 34 + 80
----
-194056

skipif mysql # not compatible
query I rowsort label-7986
SELECT SUM ( NULLIF ( + 86, - - 62 ) ) * - 37 * + 61 + - 34 + 80
----
-194056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7987
SELECT ALL - CAST( 8 AS SIGNED ) * - 67 * - 44
----
-23584

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - CAST ( 8 AS INTEGER ) * - 67 * - 44
----
-23584

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT CASE - 26 WHEN 53 THEN NULL WHEN ( + + 36 ) * 84 * - 3 THEN NULL WHEN 58 * - NULLIF ( + + COUNT( ALL ( 29 ) ), + 99 ) * + 77 + - 76 THEN - 59 / - AVG ( 53 / - ( 81 ) ) ELSE NULL END + + COUNT( * ) * 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT CASE - 26 WHEN 53 THEN NULL WHEN ( + + 36 ) * 84 * - 3 THEN NULL WHEN 58 * - NULLIF ( + + COUNT ( ALL ( 29 ) ), + 99 ) * + 77 + - 76 THEN - 59 / - AVG ( 53 / - ( 81 ) ) ELSE NULL END + + COUNT ( * ) * 5 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT MIN( ALL - 38 ) + 9 + + 57 col0
----
28

skipif mysql # not compatible
query I rowsort label-7989
SELECT MIN ( ALL - 38 ) + 9 + + 57 col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT 43 * + + 38 * CASE - + 99 WHEN 24 * - SUM( - NULLIF ( 44, + 40 ) ) + + 42 + 64 THEN 67 * COUNT( - 88 ) WHEN + 77 * + COUNT( * ) + + 42 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT 43 * + + 38 * CASE - + 99 WHEN 24 * - SUM ( - NULLIF ( 44, + 40 ) ) + + 42 + 64 THEN 67 * COUNT ( - 88 ) WHEN + 77 * + COUNT ( * ) + + 42 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT SUM( - - ( + 61 ) ) * + 54 * COUNT( * ) * + 69 / - CASE + - 8 WHEN - 2 * + 40 * - 69 THEN COUNT( * ) WHEN + 26 THEN + 93 END * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7991
SELECT SUM ( - - ( + 61 ) ) * + 54 * COUNT ( * ) * + 69 / - CASE + - 8 WHEN - 2 * + 40 * - 69 THEN COUNT ( * ) WHEN + 26 THEN + 93 END * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT + COUNT( * ) * - - SUM( + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-7992
SELECT + COUNT ( * ) * - - SUM ( + 46 )
----
46

query I rowsort
SELECT + - 92 * + 38 + - - 68
----
-3428

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT - COUNT( DISTINCT + 11 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7994
SELECT - COUNT ( DISTINCT + 11 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT + COUNT( * ) * 54 + - 33
----
21

skipif mysql # not compatible
query I rowsort label-7995
SELECT + COUNT ( * ) * 54 + - 33
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT ALL COALESCE ( 15, - + COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL COALESCE ( 15, - + COUNT ( * ) )
----
15

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7998
SELECT ALL + 8 AS col1, 53 DIV - - COUNT( * ) + - + 64
----
8
-11

skipif mysql # not compatible
query II rowsort label-7998
SELECT ALL + 8 AS col1, 53 / - - COUNT ( * ) + - + 64
----
8
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL ( CASE COUNT( * ) WHEN ( + 97 ) THEN NULL WHEN + 73 THEN + 38 ELSE - 26 END ) * - COUNT( * ) * - + 90 * + 46 AS col0
----
-107640

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL ( CASE COUNT ( * ) WHEN ( + 97 ) THEN NULL WHEN + 73 THEN + 38 ELSE - 26 END ) * - COUNT ( * ) * - + 90 * + 46 AS col0
----
-107640

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT CASE 68 WHEN 74 THEN - 87 WHEN 10 + COUNT( * ) THEN NULL END * + AVG ( DISTINCT + 64 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT CASE 68 WHEN 74 THEN - 87 WHEN 10 + COUNT ( * ) THEN NULL END * + AVG ( DISTINCT + 64 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8001
SELECT CASE + 20 WHEN + 26 THEN - 68 ELSE + 39 * 51 DIV + 66 + + ( + 10 ) END
----
40

skipif mysql # not compatible
query I rowsort label-8001
SELECT CASE + 20 WHEN + 26 THEN - 68 ELSE + 39 * 51 / + 66 + + ( + 10 ) END
----
40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8003
SELECT - MAX( DISTINCT ( + - 45 ) ) col0, ( - 89 )
----
45
-89

skipif mysql # not compatible
query II rowsort label-8003
SELECT - MAX ( DISTINCT ( + - 45 ) ) col0, ( - 89 )
----
45
-89

query I rowsort
SELECT - 13 + + + 46
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8005
SELECT ALL COUNT( 63 ) + - - ( + + 24 ) + 24, + COUNT( 27 ) + + CASE + 45 WHEN + 27 * + 24 + - 84 THEN NULL ELSE - COUNT( * ) * 17 END DIV 24 AS col1
----
49
1

skipif mysql # not compatible
query II rowsort label-8005
SELECT ALL COUNT ( 63 ) + - - ( + + 24 ) + 24, + COUNT ( 27 ) + + CASE + 45 WHEN + 27 * + 24 + - 84 THEN NULL ELSE - COUNT ( * ) * 17 END / 24 AS col1
----
49
1

query I rowsort
SELECT ALL + ( - - 82 ) + - + 96
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8007
SELECT DISTINCT + 77 + + - 86 - + 49 - - - 21 * + - 14 - - CAST( 44 AS SIGNED ) + - 1 + 53 + - - 40 * + COUNT( * ) * + CASE - NULLIF ( 57, + COUNT( * ) * COUNT( * ) ) WHEN + 31 + + 63 THEN 55 END / - 35 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT + 77 + + - 86 - + 49 - - - 21 * + - 14 - - CAST ( 44 AS INTEGER ) + - 1 + 53 + - - 40 * + COUNT ( * ) * + CASE - NULLIF ( 57, + COUNT ( * ) * COUNT ( * ) ) WHEN + 31 + + 63 THEN 55 END / - 35 col2
----
NULL

query I rowsort
SELECT ALL - 19 + - + 14 AS col0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT DISTINCT + 8 DIV 8
----
1

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + 8 / 8
----
1

query I rowsort
SELECT 28 + - ( + ( 28 ) ) * + 62 AS col2
----
-1708

query I rowsort
SELECT 31 * + + 9 AS col1
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT ALL MIN( + - 22 ) * - - 91
----
-2002

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL MIN ( + - 22 ) * - - 91
----
-2002

query I rowsort
SELECT 47 + - + 74 AS col1
----
-27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT ( - - 82 ) DIV + 78 + + - 0
----
1

skipif mysql # not compatible
query I rowsort label-8015
SELECT ( - - 82 ) / + 78 + + - 0
----
1

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

skipif mysql # not compatible
query I rowsort label-8016
SELECT NULLIF ( + ( + + COUNT ( * ) ), + - ( 23 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL 30 * - COUNT( * ) - - 49 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL 30 * - COUNT ( * ) - - 49 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL + NULLIF ( - 4, MAX( ALL 51 ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL + NULLIF ( - 4, MAX ( ALL 51 ) ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT COUNT( 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8019
SELECT COUNT ( 85 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8020
SELECT COUNT( * ) AS col1, MIN( - 28 ) + + + COUNT( DISTINCT + 91 ) AS col2
----
1
-27

skipif mysql # not compatible
query II rowsort label-8020
SELECT COUNT ( * ) AS col1, MIN ( - 28 ) + + + COUNT ( DISTINCT + 91 ) AS col2
----
1
-27

query I rowsort
SELECT - 29 * - 8 col0
----
232

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

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

query I rowsort
SELECT ALL - 19 * + - 93 AS col0
----
1767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT - 47 - CAST( NULL AS SIGNED ) / + 19 * - 70 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT - 47 - CAST ( NULL AS INTEGER ) / + 19 * - 70 * 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT - MIN( DISTINCT + + 70 ) * + 64 AS col2
----
-4480

skipif mysql # not compatible
query I rowsort label-8025
SELECT - MIN ( DISTINCT + + 70 ) * + 64 AS col2
----
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT COUNT( ALL NULLIF ( - + 58, + 11 + + 11 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8026
SELECT COUNT ( ALL NULLIF ( - + 58, + 11 + + 11 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8027
SELECT - 45 AS col2, - 61 * - 85 + 10 + - - 52 + + + 70 * + + CAST( 81 AS SIGNED ) * - 33 + + 28
----
-45
-181835

skipif mysql # not compatible
query II rowsort label-8027
SELECT - 45 AS col2, - 61 * - 85 + 10 + - - 52 + + + 70 * + + CAST ( 81 AS INTEGER ) * - 33 + + 28
----
-45
-181835

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8028
SELECT ALL + 38 AS col0, - 65 * COUNT( * ) * - 35 DIV + COUNT( * )
----
38
2275

skipif mysql # not compatible
query II rowsort label-8028
SELECT ALL + 38 AS col0, - 65 * COUNT ( * ) * - 35 / + COUNT ( * )
----
38
2275

query II rowsort
SELECT DISTINCT + - 38, 29 + 65 AS col0
----
-38
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL + - 95 * + COUNT( * ) - + + 57
----
-152

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL + - 95 * + COUNT ( * ) - + + 57
----
-152

query II rowsort
SELECT DISTINCT + + 47 AS col0, - 75
----
47
-75

query II rowsort
SELECT + 34, + 74 AS col0
----
34
74

query II rowsort
SELECT ALL + 31, 39 + 89 AS col1
----
31
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8034
SELECT ALL + COUNT( * ) AS col2, + CASE COALESCE ( - 77, + 68 ) WHEN - COUNT( * ) + - + 81 + - 82 THEN + - 18 WHEN 18 / - 62 - ( 43 + + 83 ) THEN NULL WHEN + 52 THEN NULL END / CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8034
SELECT ALL + COUNT ( * ) AS col2, + CASE COALESCE ( - 77, + 68 ) WHEN - COUNT ( * ) + - + 81 + - 82 THEN + - 18 WHEN 18 / - 62 - ( 43 + + 83 ) THEN NULL WHEN + 52 THEN NULL END / CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT + 8 - 45
----
-37

query I rowsort
SELECT - 52 + + - 0 + - - NULLIF ( - 33, 98 )
----
-85

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

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

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

query II rowsort
SELECT + - 36 * 9, 74 AS col0
----
-324
74

query I rowsort
SELECT ALL - 30 + - 46
----
-76

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT - 84 DIV 58
----
-1

skipif mysql # not compatible
query I rowsort label-8042
SELECT - 84 / 58
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT - + MAX( DISTINCT ( - + 28 ) ) + - + ( + + ( 1 ) )
----
27

skipif mysql # not compatible
query I rowsort label-8043
SELECT - + MAX ( DISTINCT ( - + 28 ) ) + - + ( + + ( 1 ) )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8044
SELECT ALL 28 * + CAST( - 54 AS SIGNED )
----
-1512

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL 28 * + CAST ( - 54 AS INTEGER )
----
-1512

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

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

query I rowsort
SELECT ALL - 28 + + 70 * - 1 * - - 55
----
-3878

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL + - NULLIF ( COUNT( * ), - + COUNT( - 80 ) / - - 44 / - MIN( + - COALESCE ( + 35, - 58 ) ) + - - 40 ) + 43
----
42

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL + - NULLIF ( COUNT ( * ), - + COUNT ( - 80 ) / - - 44 / - MIN ( + - COALESCE ( + 35, - 58 ) ) + - - 40 ) + 43
----
42

query I rowsort
SELECT ALL + 48 + 37
----
85

query I rowsort
SELECT ALL 55 + - 64
----
-9

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

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

query I rowsort
SELECT DISTINCT 99 + - 62 col2
----
37

query I rowsort
SELECT + 38 + + 32 col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8053
SELECT DISTINCT COUNT( * ) * - - 96 AS col2, CASE - - 9 WHEN - 14 THEN + 99 * MIN( - + 86 ) + - 16 WHEN 16 * + - COALESCE ( + + CASE COUNT( * ) WHEN CASE + 26 WHEN 56 THEN + 26 ELSE NULL END / COUNT( * ) THEN NULL WHEN ( 14 ) * 15 - - 57 THEN NULL ELSE + 94 END, 45 ) + - AVG ( ALL + 35 ) * - 93 THEN 87 WHEN - COUNT( * ) THEN NULL END AS col1
----
96
NULL

skipif mysql # not compatible
query II rowsort label-8053
SELECT DISTINCT COUNT ( * ) * - - 96 AS col2, CASE - - 9 WHEN - 14 THEN + 99 * MIN ( - + 86 ) + - 16 WHEN 16 * + - COALESCE ( + + CASE COUNT ( * ) WHEN CASE + 26 WHEN 56 THEN + 26 ELSE NULL END / COUNT ( * ) THEN NULL WHEN ( 14 ) * 15 - - 57 THEN NULL ELSE + 94 END, 45 ) + - AVG ( ALL + 35 ) * - 93 THEN 87 WHEN - COUNT ( * ) THEN NULL END AS col1
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ALL 79 + + NULLIF ( + 25, - - COUNT( * ) )
----
104

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL 79 + + NULLIF ( + 25, - - COUNT ( * ) )
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8055
SELECT - ( + + COUNT( * ) ), + ( + + 50 ) DIV + COUNT( * ) + - 86 AS col0
----
-1
-36

skipif mysql # not compatible
query II rowsort label-8055
SELECT - ( + + COUNT ( * ) ), + ( + + 50 ) / + COUNT ( * ) + - 86 AS col0
----
-1
-36

query I rowsort
SELECT + 61 - + - 54 AS col1
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8057
SELECT ALL 7 DIV - MIN( ALL - 51 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL 7 / - MIN ( ALL - 51 ) AS col0
----
0

query I rowsort
SELECT - CASE - - ( 72 ) WHEN + - 4 + + 42 THEN 97 * ( + + 3 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 78 - + 35 AS col2
----
43

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8061
SELECT 14 DIV + 52 - 11 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8061
SELECT 14 / + 52 - 11 AS col2
----
-11

query I rowsort
SELECT + CASE + 70 WHEN - + 84 THEN - - 56 WHEN + 51 THEN - 93 + 77 + ( - 85 ) ELSE NULL END * - 64 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8063
SELECT + CASE CAST( NULL AS SIGNED ) WHEN + + 20 THEN + 9 WHEN + + 82 / + ( + 88 ) THEN NULL END - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN + + 20 THEN + 9 WHEN + + 82 / + ( + 88 ) THEN NULL END - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT 23 / + + CAST( NULL AS SIGNED ) + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT 23 / + + CAST ( NULL AS INTEGER ) + - 11 AS col1
----
NULL

query II rowsort
SELECT ( + - 43 ), 84 - 95 * - + 66 col0
----
-43
6354

onlyif mysql # aggregate syntax: 
query II rowsort label-8066
SELECT COUNT( * ) * 85 + 18 + 50 * - - COUNT( * ), + COALESCE ( + 53, - 86 ) col0
----
153
53

skipif mysql # not compatible
query II rowsort label-8066
SELECT COUNT ( * ) * 85 + 18 + 50 * - - COUNT ( * ), + COALESCE ( + 53, - 86 ) col0
----
153
53

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

skipif mysql # not compatible
query I rowsort label-8067
SELECT - CAST ( NULL AS INTEGER ) * - 95 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT + 13 DIV - ( - ( 60 ) ) + 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-8068
SELECT + 13 / - ( - ( 60 ) ) + 75 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8069
SELECT - CAST( + ( + 33 ) AS SIGNED ) DIV NULLIF ( - 45, - - 28 ) - - 60 col2, + 78 AS col2
----
60
78

skipif mysql # not compatible
query II rowsort label-8069
SELECT - CAST ( + ( + 33 ) AS INTEGER ) / NULLIF ( - 45, - - 28 ) - - 60 col2, + 78 AS col2
----
60
78

query I rowsort
SELECT DISTINCT + COALESCE ( 10, + 39 )
----
10

query I rowsort
SELECT + 23 + - COALESCE ( + + 35, + - 70 ) AS col2
----
-12

query I rowsort
SELECT + 25 * - 81 * + + 77 * + - 1 + - 68
----
155857

query I rowsort
SELECT DISTINCT 31 * 19 * - 48 + + 98 * + 55 * + NULLIF ( - - 96, + ( + 83 ) * + 14 + - 24 + + + 35 * - 45 + + 27 * + 10 ) AS col0
----
489168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8074
SELECT + CAST( 33 AS DECIMAL ) * - AVG ( + 61 ) + + + 19 - + MAX( CAST( NULL AS SIGNED ) ) AS col2, 36 + - 89 AS col0
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-8074
SELECT + CAST ( 33 AS REAL ) * - AVG ( + 61 ) + + + 19 - + MAX ( CAST ( NULL AS INTEGER ) ) AS col2, 36 + - 89 AS col0
----
NULL
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT COUNT( * ) * + NULLIF ( + CASE - 91 WHEN - + 5 THEN - ( COUNT( * ) ) ELSE + 55 END, + 38 ) + - 16
----
39

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT COUNT ( * ) * + NULLIF ( + CASE - 91 WHEN - + 5 THEN - ( COUNT ( * ) ) ELSE + 55 END, + 38 ) + - 16
----
39

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

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

query I rowsort
SELECT - - 40 + + 28 * 59 * - 54
----
-89168

query I rowsort
SELECT ALL + 12 * + - 56 + ( 35 )
----
-637

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8080
SELECT - 73 * + - 36 AS col1, + NULLIF ( + - 26, - 59 * 5 ) * + 75 + - - 37 * + COUNT( * )
----
2628
-1913

skipif mysql # not compatible
query II rowsort label-8080
SELECT - 73 * + - 36 AS col1, + NULLIF ( + - 26, - 59 * 5 ) * + 75 + - - 37 * + COUNT ( * )
----
2628
-1913

query I rowsort
SELECT DISTINCT + 41 * + ( - 86 ) AS col1
----
-3526

query I rowsort
SELECT ALL + 11 * + 72 * + + 63 + - + 54 + - 14
----
49828

query I rowsort
SELECT - + 13 * + + 37 * + 96
----
-46176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8084
SELECT ALL + CAST( - ( - 16 ) AS SIGNED ) col1
----
16

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + CAST ( - ( - 16 ) AS INTEGER ) col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8085
SELECT DISTINCT - + 3 * COUNT( * ) - SUM( ALL + 58 ) DIV + 91 + - COUNT( - 45 ) * + 87 + - + ( - 83 ) * + 42 col0
----
3396

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT - + 3 * COUNT ( * ) - SUM ( ALL + 58 ) / + 91 + - COUNT ( - 45 ) * + 87 + - + ( - 83 ) * + 42 col0
----
3396

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT MIN( DISTINCT 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8086
SELECT MIN ( DISTINCT 40 ) AS col1
----
40

query I rowsort
SELECT DISTINCT - + 63 + 62 AS col1
----
-1

query I rowsort
SELECT ALL + + 0 + 61 + - 4 * - 13 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT - 75 * + - NULLIF ( - - ( 41 ), - + 36 * 15 + - 32 + + CASE - + COUNT( * ) WHEN 9 THEN + + 64 END + ( AVG ( - 83 ) ) * + MIN( COALESCE ( - 13, - 63 - + 30, 36 ) ) ) AS col0
----
3075

skipif mysql # not compatible
query I rowsort label-8089
SELECT - 75 * + - NULLIF ( - - ( 41 ), - + 36 * 15 + - 32 + + CASE - + COUNT ( * ) WHEN 9 THEN + + 64 END + ( AVG ( - 83 ) ) * + MIN ( COALESCE ( - 13, - 63 - + 30, 36 ) ) ) AS col0
----
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT - MAX( - 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8090
SELECT - MAX ( - 63 ) AS col0
----
63

query I rowsort
SELECT - ( - 33 ) AS col0
----
33

query II rowsort
SELECT ALL 55 AS col1, - 99
----
55
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8093
SELECT - 96 DIV - 12 col2
----
8

skipif mysql # not compatible
query I rowsort label-8093
SELECT - 96 / - 12 col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8094
SELECT ALL - 27 DIV 85 DIV + 93 * - 20
----
0

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL - 27 / 85 / + 93 * - 20
----
0

query I rowsort
SELECT - 13 * + - 67 AS col0
----
871

query II rowsort
SELECT 52 AS col2, 41
----
52
41

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8098
SELECT ALL 65 * CAST( 12 AS SIGNED ) AS col1, 47 * + + 51
----
780
2397

skipif mysql # not compatible
query II rowsort label-8098
SELECT ALL 65 * CAST ( 12 AS INTEGER ) AS col1, 47 * + + 51
----
780
2397

query II rowsort
SELECT - 33 AS col1, + 21
----
-33
21

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8100
SELECT + 88 AS col1, 99 * + - CAST( NULL AS DECIMAL ) * 74
----
88
NULL

skipif mysql # not compatible
query II rowsort label-8100
SELECT + 88 AS col1, 99 * + - CAST ( NULL AS REAL ) * 74
----
88
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT ALL - CAST( + + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL - CAST ( + + 22 AS INTEGER )
----
-22

query I rowsort
SELECT ALL 82 + 54 * + 69 * + - 51 - - 13 AS col2
----
-189931

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

query I rowsort
SELECT ALL - 55 + + 31 AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT DISTINCT 42 + - - 4 DIV - - 59 col2
----
42

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT 42 + - - 4 / - - 59 col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT ( + ( - 93 ) ) DIV - 82 col0
----
1

skipif mysql # not compatible
query I rowsort label-8106
SELECT ( + ( - 93 ) ) / - 82 col0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8108
SELECT ALL - 3 + + COALESCE ( + 30, + NULLIF ( - 60, CAST( NULL AS SIGNED ) + + 5 * + - 9 - + - 40 ), + + 70 * + MAX( DISTINCT + 20 ), - 91 + - ( + 91 ) * + 91 )
----
27

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL - 3 + + COALESCE ( + 30, + NULLIF ( - 60, CAST ( NULL AS INTEGER ) + + 5 * + - 9 - + - 40 ), + + 70 * + MAX ( DISTINCT + 20 ), - 91 + - ( + 91 ) * + 91 )
----
27

query II rowsort
SELECT DISTINCT 31 * 50 - 32, 29 AS col1
----
1518
29

query I rowsort
SELECT 29 * - - 82 + + 26 * + 34
----
3262

query I rowsort
SELECT ALL - 53 + - - 47 col1
----
-6

query I rowsort
SELECT CASE 62 WHEN - - 66 THEN NULL WHEN + 71 + + + 87 + + 13 THEN + COALESCE ( + + 12, 76 ) ELSE + 68 END
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT ALL - - NULLIF ( + + COUNT( * ), + - 89 / + + 4 + 79 + - 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL - - NULLIF ( + + COUNT ( * ), + - 89 / + + 4 + 79 + - 39 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8114
SELECT ALL - SUM( + - 94 ) - 48 AS col2, 74 AS col0
----
46
74

skipif mysql # not compatible
query II rowsort label-8114
SELECT ALL - SUM ( + - 94 ) - 48 AS col2, 74 AS col0
----
46
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8115
SELECT 31 col2, + CASE + COUNT( * ) WHEN + 98 THEN 13 WHEN 90 THEN NULL END - - - 71 - + + 52 AS col2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-8115
SELECT 31 col2, + CASE + COUNT ( * ) WHEN + 98 THEN 13 WHEN 90 THEN NULL END - - - 71 - + + 52 AS col2
----
31
NULL

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

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

query I rowsort
SELECT + 43 * 6
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL + COUNT( * ) * - 95 * - 10
----
950

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL + COUNT ( * ) * - 95 * - 10
----
950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8119
SELECT DISTINCT 43 / + 37 * CASE - 43 WHEN - 35 + - 44 THEN + 74 + - - 66 - - + ( 9 ) ELSE NULL END / + - 79 * 23 * NULLIF ( + - COUNT( * ), CASE 10 WHEN COALESCE ( CAST( NULL AS SIGNED ), 98 * + ( - 70 * - 31 ) + + 4, 14 + + ( 73 ) ) THEN 40 WHEN 1 THEN NULL WHEN + 22 THEN NULL ELSE NULL END ) * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT 43 / + 37 * CASE - 43 WHEN - 35 + - 44 THEN + 74 + - - 66 - - + ( 9 ) ELSE NULL END / + - 79 * 23 * NULLIF ( + - COUNT ( * ), CASE 10 WHEN COALESCE ( CAST ( NULL AS INTEGER ), 98 * + ( - 70 * - 31 ) + + 4, 14 + + ( 73 ) ) THEN 40 WHEN 1 THEN NULL WHEN + 22 THEN NULL ELSE NULL END ) * 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8120
SELECT DISTINCT 61 * - CASE + + COUNT( * ) WHEN - 79 THEN - 46 WHEN + - 59 * + 58 THEN ( - - 37 ) + + - CAST( NULL AS SIGNED ) WHEN 9 THEN + 85 * + + 93 - 63 - 47 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT 61 * - CASE + + COUNT ( * ) WHEN - 79 THEN - 46 WHEN + - 59 * + 58 THEN ( - - 37 ) + + - CAST ( NULL AS INTEGER ) WHEN 9 THEN + 85 * + + 93 - 63 - 47 END AS col2
----
NULL

query I rowsort
SELECT 40 + + 22 * 93
----
2086

onlyif mysql # aggregate syntax: 
query II rowsort label-8122
SELECT 46 * + COALESCE ( - NULLIF ( 2, + - 26 - - MAX( DISTINCT - 55 ) * + - 53 + + + 69 + ( + 53 ) ), + 58 ) AS col1, - 17 AS col0
----
-92
-17

skipif mysql # not compatible
query II rowsort label-8122
SELECT 46 * + COALESCE ( - NULLIF ( 2, + - 26 - - MAX ( DISTINCT - 55 ) * + - 53 + + + 69 + ( + 53 ) ), + 58 ) AS col1, - 17 AS col0
----
-92
-17

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

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL - CAST ( NULL AS REAL ) * + + 99
----
NULL

query I rowsort
SELECT 66 + - - 47 col2
----
113

query I rowsort
SELECT 36 * + + 39 AS col1
----
1404

onlyif mysql # DIV for integer division: 
query I rowsort label-8126
SELECT DISTINCT - 78 DIV - - 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT - 78 / - - 51 AS col2
----
-1

query I rowsort
SELECT 52 - 76 - - 32 + + 39 * + - 74 * + - 86
----
248204

onlyif mysql # DIV for integer division: 
query I rowsort label-8128
SELECT ALL - 60 DIV + ( - - 81 )
----
0

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - 60 / + ( - - 81 )
----
0

query I rowsort
SELECT 62 + - + 55
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8130
SELECT DISTINCT - 79 DIV 57 DIV - - 44
----
0

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT - 79 / 57 / - - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL COUNT( * ) + + + 4
----
5

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL COUNT ( * ) + + + 4
----
5

query I rowsort
SELECT ALL 70 * - 89 col0
----
-6230

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL - 61 + - - 81 + + - 42 * - 57 + - COALESCE ( 26, - MIN( - 76 ) * + - ( + + 68 ) + 58 + + 30 * - 39 - 28 * + 18 + - 90 * 46 )
----
2388

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL - 61 + - - 81 + + - 42 * - 57 + - COALESCE ( 26, - MIN ( - 76 ) * + - ( + + 68 ) + 58 + + 30 * - 39 - 28 * + 18 + - 90 * 46 )
----
2388

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ( NULLIF ( MAX( ALL - 17 ), + 19 ) ) - 22 + ( - 15 ) * 88
----
-1359

skipif mysql # not compatible
query I rowsort label-8135
SELECT ( NULLIF ( MAX ( ALL - 17 ), + 19 ) ) - 22 + ( - 15 ) * 88
----
-1359

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8136
SELECT + - ( - SUM( ALL + + 51 ) ) * + 68 + 57 + - - 82 DIV - 55 + + + 15 + 16 AS col1, ( + 72 )
----
3555
72

skipif mysql # not compatible
query II rowsort label-8136
SELECT + - ( - SUM ( ALL + + 51 ) ) * + 68 + 57 + - - 82 / - 55 + + + 15 + 16 AS col1, ( + 72 )
----
3555
72

query I rowsort
SELECT DISTINCT - ( - - 34 ) AS col0
----
-34

query I rowsort
SELECT 6 + - + 52
----
-46

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

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

query I rowsort
SELECT ALL + + 96 + - 99
----
-3

query II rowsort
SELECT ALL 94 + - 87, + 51 AS col2
----
7
51

query I rowsort
SELECT ALL - + ( + ( 54 ) ) col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT DISTINCT + 24 - 36 - - + COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT + 24 - 36 - - + COUNT ( * ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT DISTINCT - 49 - + 82 - - COUNT( * ) * 1 AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT - 49 - + 82 - - COUNT ( * ) * 1 AS col0
----
-130

query I rowsort
SELECT + 30 * - 60
----
-1800

query I rowsort
SELECT - ( 9 ) + + 61
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT - COUNT( * ) * - - 97 + 72 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT - COUNT ( * ) * - - 97 + 72 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL + NULLIF ( - + CASE + COUNT( * ) WHEN - 97 THEN 73 WHEN - + 97 THEN NULL ELSE NULL END, 12 ) * - + 18 * + 16 / 43 - - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL + NULLIF ( - + CASE + COUNT ( * ) WHEN - 97 THEN 73 WHEN - + 97 THEN NULL ELSE NULL END, 12 ) * - + 18 * + 16 / 43 - - 59 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8149
SELECT + 57 DIV 67 * - - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8149
SELECT + 57 / 67 * - - 93 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8150
SELECT 19 * NULLIF ( - 73, - - CAST( NULL AS SIGNED ) ) * + - 74 * + 89 + 38
----
9134820

skipif mysql # not compatible
query I rowsort label-8150
SELECT 19 * NULLIF ( - 73, - - CAST ( NULL AS INTEGER ) ) * + - 74 * + 89 + 38
----
9134820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8151
SELECT ALL CAST( NULL AS SIGNED ) * - MIN( DISTINCT 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL CAST ( NULL AS INTEGER ) * - MIN ( DISTINCT 95 )
----
NULL

query I rowsort
SELECT ALL + 64 - - 8
----
72

query I rowsort
SELECT + 66 * - 79
----
-5214

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

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

query I rowsort
SELECT - 84 + - 99
----
-183

query I rowsort
SELECT - NULLIF ( - 61, - - ( + 65 ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT + COUNT( * ) - 89 - + ( - 92 )
----
4

skipif mysql # not compatible
query I rowsort label-8157
SELECT + COUNT ( * ) - 89 - + ( - 92 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT + COALESCE ( + ( + 28 ), - MAX( ALL 51 ) ) + + 20
----
48

skipif mysql # not compatible
query I rowsort label-8158
SELECT + COALESCE ( + ( + 28 ), - MAX ( ALL 51 ) ) + + 20
----
48

query I rowsort
SELECT - 83 - - 8 col2
----
-75

query I rowsort
SELECT ALL 89 * 50 * - 71 AS col0
----
-315950

query I rowsort
SELECT - 0 * - 32
----
0

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

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL 6 + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8163
SELECT ALL CASE + + 14 WHEN + + 22 THEN 8 WHEN - - 86 - + - CAST( NULL AS SIGNED ) + 62 + + 30 THEN NULL ELSE + 46 END AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL CASE + + 14 WHEN + + 22 THEN 8 WHEN - - 86 - + - CAST ( NULL AS INTEGER ) + 62 + + 30 THEN NULL ELSE + 46 END AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT DISTINCT - 47 + - COUNT( * ) * - 90
----
43

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT - 47 + - COUNT ( * ) * - 90
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8165
SELECT DISTINCT - 74 + 25 DIV + - ( + COUNT( * ) ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT - 74 + 25 / + - ( + COUNT ( * ) ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT DISTINCT MAX( - + 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT MAX ( - + 59 ) AS col0
----
-59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT - COUNT( ALL - - 40 ) + 99 * + + 90 AS col2
----
8909

skipif mysql # not compatible
query I rowsort label-8168
SELECT - COUNT ( ALL - - 40 ) + 99 * + + 90 AS col2
----
8909

query I rowsort
SELECT ALL - 57 + - 86 * - ( 40 )
----
3383

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

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

query I rowsort
SELECT + NULLIF ( - 44, + 88 )
----
-44

query I rowsort
SELECT ALL + - 61 + - 22 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT - 82 + SUM( ALL + + 29 )
----
-53

skipif mysql # not compatible
query I rowsort label-8173
SELECT - 82 + SUM ( ALL + + 29 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT - - 67 * + - COUNT( * ) + 86 + 74
----
93

skipif mysql # not compatible
query I rowsort label-8174
SELECT - - 67 * + - COUNT ( * ) + 86 + 74
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8175
SELECT ALL + 3 DIV + - 73 * 76 + + - 59
----
-59

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + 3 / + - 73 * 76 + + - 59
----
-59

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

query II rowsort
SELECT ALL 69 * + 38 + 2 AS col0, - 9
----
2624
-9

query I rowsort
SELECT DISTINCT - 70 * + + 62 - 43 * + 9
----
-4727

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL + + COALESCE ( - - 12, + COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + + COALESCE ( - - 12, + COUNT ( * ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT + MIN( ( 72 ) )
----
72

skipif mysql # not compatible
query I rowsort label-8180
SELECT + MIN ( ( 72 ) )
----
72

query I rowsort
SELECT ALL + 27 * - 88 * + 86 + 66 - NULLIF ( 76, 4 ) AS col0
----
-204346

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

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

query I rowsort
SELECT - + 40 * + + 7 + - ( + 63 )
----
-343

query I rowsort
SELECT + + ( 15 ) * - 84 AS col2
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT - - CASE - 37 WHEN COUNT( * ) + + ( - 86 ) + + 21 THEN NULL WHEN + - 71 / 57 THEN NULL WHEN 30 / ( 51 ) / - + 56 + + COUNT( * ) / - + 92 + + COUNT( * ) - 39 THEN - 7 END * - 77 - ( + 41 + - 91 * + MAX( 59 / 41 - 87 ) ) * 28 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT - - CASE - 37 WHEN COUNT ( * ) + + ( - 86 ) + + 21 THEN NULL WHEN + - 71 / 57 THEN NULL WHEN 30 / ( 51 ) / - + 56 + + COUNT ( * ) / - + 92 + + COUNT ( * ) - 39 THEN - 7 END * - 77 - ( + 41 + - 91 * + MAX ( 59 / 41 - 87 ) ) * 28 col1
----
NULL

query I rowsort
SELECT + 64 * + 5 * + - 18 + + 18 - ( + + 19 ) * 80 AS col1
----
-7262

query I rowsort
SELECT DISTINCT 4 * 14 + - 35 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT SUM( + 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8188
SELECT SUM ( + 19 ) AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8189
SELECT + COALESCE ( + COUNT( * ), 63 DIV CAST( - - 96 AS SIGNED ) + + 85 ) DIV - - SUM( DISTINCT - 50 ) * 24 + 2 + 33 + - + 85 * 3
----
-220

skipif mysql # not compatible
query I rowsort label-8189
SELECT + COALESCE ( + COUNT ( * ), 63 / CAST ( - - 96 AS INTEGER ) + + 85 ) / - - SUM ( DISTINCT - 50 ) * 24 + 2 + 33 + - + 85 * 3
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL 10 * - COUNT( * ) + + + 87
----
77

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL 10 * - COUNT ( * ) + + + 87
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT + 7 + + MIN( ALL 89 ) * + SUM( + 3 )
----
274

skipif mysql # not compatible
query I rowsort label-8191
SELECT + 7 + + MIN ( ALL 89 ) * + SUM ( + 3 )
----
274

query I rowsort
SELECT DISTINCT ( + 90 ) + 62 AS col1
----
152

query I rowsort
SELECT + 97 * 10 + 71 AS col2
----
1041

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8194
SELECT + COALESCE ( 79, - 17 ) DIV CAST( + 46 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8194
SELECT + COALESCE ( 79, - 17 ) / CAST ( + 46 AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8195
SELECT ALL 6 + + 36 + + MIN( + 71 ) / + CASE - - 18 WHEN - CAST( 81 AS SIGNED ) + 16 THEN NULL ELSE CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL 6 + + 36 + + MIN ( + 71 ) / + CASE - - 18 WHEN - CAST ( 81 AS INTEGER ) + 16 THEN NULL ELSE CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT ALL 65 + + 64 AS col2
----
129

query II rowsort
SELECT 83, 14 col2
----
83
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL - CASE - + 71 WHEN + 75 THEN - 3 * 21 + + 60 WHEN - 43 THEN ( + 35 ) ELSE NULL END + - 61 + + COUNT( * ) * 53 + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - CASE - + 71 WHEN + 75 THEN - 3 * 21 + + 60 WHEN - 43 THEN ( + 35 ) ELSE NULL END + - 61 + + COUNT ( * ) * 53 + - 4
----
NULL

query II rowsort
SELECT 97 col1, 99 * 48 AS col2
----
97
4752

query I rowsort
SELECT - 29 + 56 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8201
SELECT ALL COUNT( * ), - CAST( CASE - 9 WHEN + 37 / - - 27 + - 9 + - 32 + - 70 + ( - 95 ) / + 57 / 15 THEN + 71 WHEN 75 THEN NULL END AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8201
SELECT ALL COUNT ( * ), - CAST ( CASE - 9 WHEN + 37 / - - 27 + - 9 + - 32 + - 70 + ( - 95 ) / + 57 / 15 THEN + 71 WHEN 75 THEN NULL END AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8202
SELECT - ( COALESCE ( - COALESCE ( - 62, + - 79, - 17 + - 21 * + - 66 DIV - 66 + - NULLIF ( + + COUNT( * ), - + 20 ) ), + 72, + + 43 + + COUNT( * ) + 25 * + 12 * + CAST( + 94 AS SIGNED ) ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8202
SELECT - ( COALESCE ( - COALESCE ( - 62, + - 79, - 17 + - 21 * + - 66 / - 66 + - NULLIF ( + + COUNT ( * ), - + 20 ) ), + 72, + + 43 + + COUNT ( * ) + 25 * + 12 * + CAST ( + 94 AS INTEGER ) ) ) AS col2
----
-62

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( 90, + 89 - 22 )
----
-90

query I rowsort
SELECT - ( - + 11 ) * 75 + - + NULLIF ( 49, + - 45 )
----
776

query I rowsort
SELECT - - 30 - 25 AS col2
----
5

query II rowsort
SELECT ALL + + 20 AS col1, - 29
----
20
-29

query I rowsort
SELECT ALL + NULLIF ( - 30, - + 45 ) AS col1
----
-30

query I rowsort
SELECT - ( + - 72 ) * + + 44 - 93 + + 5 + - 88 + + 27 col0
----
3019

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT - COUNT( * ) + - COALESCE ( + - 54, - 77, + 71 - 44 ) * - 30
----
-1621

skipif mysql # not compatible
query I rowsort label-8210
SELECT - COUNT ( * ) + - COALESCE ( + - 54, - 77, + 71 - 44 ) * - 30
----
-1621

query II rowsort
SELECT ALL + 25 AS col2, 45 AS col0
----
25
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8212
SELECT DISTINCT + + 4 AS col2, 90 * ( COALESCE ( - - 43, 30 * COUNT( * ) + - 58 ) )
----
4
3870

skipif mysql # not compatible
query II rowsort label-8212
SELECT DISTINCT + + 4 AS col2, 90 * ( COALESCE ( - - 43, 30 * COUNT ( * ) + - 58 ) )
----
4
3870

query I rowsort
SELECT ALL + + 41 * + + 8 + + 33 AS col2
----
361

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT + + 25 / + 40 + - 16 / 48 / + + ( SUM( DISTINCT + 59 ) ) * + CASE + 14 WHEN + ( - + 61 ) * + SUM( + 31 ) * - COUNT( * ) THEN NULL WHEN - 8 THEN - + 87 + 19 END + + 73 * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT + + 25 / + 40 + - 16 / 48 / + + ( SUM ( DISTINCT + 59 ) ) * + CASE + 14 WHEN + ( - + 61 ) * + SUM ( + 31 ) * - COUNT ( * ) THEN NULL WHEN - 8 THEN - + 87 + 19 END + + 73 * + 5
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8216
SELECT 76 / + - AVG ( DISTINCT - NULLIF ( - - 56, 79 + - 68 ) ) + - + CAST( NULL AS SIGNED ) + - - 12 * + 10 AS col0, ( - CAST( NULL AS SIGNED ) ) + ( - ( + 17 ) ) - - 26 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8216
SELECT 76 / + - AVG ( DISTINCT - NULLIF ( - - 56, 79 + - 68 ) ) + - + CAST ( NULL AS INTEGER ) + - - 12 * + 10 AS col0, ( - CAST ( NULL AS INTEGER ) ) + ( - ( + 17 ) ) - - 26 AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT + 93 * + 60 + - 67 DIV - 32
----
5582

skipif mysql # not compatible
query I rowsort label-8217
SELECT + 93 * + 60 + - 67 / - 32
----
5582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8218
SELECT DISTINCT + SUM( ALL - - 70 ) + - - CAST( - + ( 87 ) AS SIGNED ) - + 8 * 17, + 64 AS col1
----
-153
64

skipif mysql # not compatible
query II rowsort label-8218
SELECT DISTINCT + SUM ( ALL - - 70 ) + - - CAST ( - + ( 87 ) AS INTEGER ) - + 8 * 17, + 64 AS col1
----
-153
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8219
SELECT NULLIF ( CAST( NULL AS DECIMAL ), + 54 ) * - 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT NULLIF ( CAST ( NULL AS REAL ), + 54 ) * - 23 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL MAX( 3 ) + + 20 + - 11 * 93 * 43 + + 96 col0
----
-43870

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL MAX ( 3 ) + + 20 + - 11 * 93 * 43 + + 96 col0
----
-43870

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT 87 + + MAX( ALL + 44 ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-8221
SELECT 87 + + MAX ( ALL + 44 ) AS col0
----
131

query I rowsort
SELECT ALL + 30 * - 97 AS col0
----
-2910

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT DISTINCT 82 - - - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT 82 - - - COUNT ( * )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT ALL + 64 DIV - 42 + - 85
----
-86

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL + 64 / - 42 + - 85
----
-86

query I rowsort
SELECT 80 + + 99 + - 78 + - + 17 AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8227
SELECT + CAST( NULL AS SIGNED ) * - 82 * 64 * 18 + - COUNT( * ) + + 84 + + - 71 + 98 * + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT + CAST ( NULL AS INTEGER ) * - 82 * 64 * 18 + - COUNT ( * ) + + 84 + + - 71 + 98 * + 51 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8229
SELECT - 1 * 54 DIV - NULLIF ( - + NULLIF ( 27, - 14 * - COALESCE ( + 38, MIN( + 30 ) ) + 0 DIV + 80 * - 25 + + + MIN( 39 ) DIV + 44 + 52 + 97 DIV 72 + 88 ), 34 + - 29 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8229
SELECT - 1 * 54 / - NULLIF ( - + NULLIF ( 27, - 14 * - COALESCE ( + 38, MIN ( + 30 ) ) + 0 / + 80 * - 25 + + + MIN ( 39 ) / + 44 + 52 + 97 / 72 + 88 ), 34 + - 29 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT 19 * - CASE + COUNT( * ) WHEN - COUNT( * ) * + + 65 - + 56 - + 65 / 34 THEN + 85 + + 55 WHEN 42 + - COUNT( * ) - - 80 / + 51 THEN NULL ELSE - + COUNT( * ) END * - 69
----
-1311

skipif mysql # not compatible
query I rowsort label-8230
SELECT 19 * - CASE + COUNT ( * ) WHEN - COUNT ( * ) * + + 65 - + 56 - + 65 / 34 THEN + 85 + + 55 WHEN 42 + - COUNT ( * ) - - 80 / + 51 THEN NULL ELSE - + COUNT ( * ) END * - 69
----
-1311

query II rowsort
SELECT 50 + + - 63 AS col2, - 90 AS col0
----
-13
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT ALL + MAX( DISTINCT + + 39 ) * - MIN( ALL - - 45 )
----
-1755

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL + MAX ( DISTINCT + + 39 ) * - MIN ( ALL - - 45 )
----
-1755

query I rowsort
SELECT 98 * 77
----
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL + + NULLIF ( - 26, + 87 * + + 42 ) * COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + + NULLIF ( - 26, + 87 * + + 42 ) * COUNT ( * )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT DISTINCT ( - ( 8 ) ) * 70 DIV + 44 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT ( - ( 8 ) ) * 70 / + 44 AS col1
----
-12

query I rowsort
SELECT 21 * - + 2 AS col0
----
-42

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8238
SELECT NULLIF ( 34, - + 10 ) - 0 + + - SUM( 15 ) * + - COUNT( * ) DIV - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-8238
SELECT NULLIF ( 34, - + 10 ) - 0 + + - SUM ( 15 ) * + - COUNT ( * ) / - COUNT ( * )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT 85 DIV + + 26
----
3

skipif mysql # not compatible
query I rowsort label-8239
SELECT 85 / + + 26
----
3

query I rowsort
SELECT 5 * 61 - + 78
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT ALL - 33 DIV - ( - ( - - 57 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL - 33 / - ( - ( - - 57 ) ) AS col1
----
0

query I rowsort
SELECT ALL + 78 + - 67 + 2
----
13

query I rowsort
SELECT ALL 89 + + - 15 AS col2
----
74

query II rowsort
SELECT + 60 AS col2, 36 * 4 * + 86
----
60
12384

query II rowsort
SELECT ALL - 42 + ( + + 55 ) + + 85 AS col2, 68 * - 13
----
98
-884

query I rowsort
SELECT 81 * + - 71 AS col2
----
-5751

onlyif mysql # DIV for integer division: 
query I rowsort label-8247
SELECT ALL - 33 DIV - ( - COALESCE ( - 92, 73 + - + 22, - 70 - + 31 ) ) * + 58 * 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL - 33 / - ( - COALESCE ( - 92, 73 + - + 22, - 70 - + 31 ) ) * + 58 * 49 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL + 43 + 68 + - - ( + 49 ) + + 7 * + + COUNT( * ) + + - 22 AS col2
----
145

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL + 43 + 68 + - - ( + 49 ) + + 7 * + + COUNT ( * ) + + - 22 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT 91 - + 86 + - - COUNT( * ) + - 64
----
-58

skipif mysql # not compatible
query I rowsort label-8249
SELECT 91 - + 86 + - - COUNT ( * ) + - 64
----
-58

query II rowsort
SELECT + 71 AS col0, 96
----
71
96

query I rowsort
SELECT 65 + - + 76
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8252
SELECT 43 * - COALESCE ( + 60, 53 * - 80 DIV COUNT( ALL + + 38 ) * + + 76 - + ( - + 17 ) + + - 0 * - + 53 * MIN( - 76 ), + NULLIF ( + + 71, + - 0 ) ) - - 76 - 10 * - 24 AS col0
----
-2264

skipif mysql # not compatible
query I rowsort label-8252
SELECT 43 * - COALESCE ( + 60, 53 * - 80 / COUNT ( ALL + + 38 ) * + + 76 - + ( - + 17 ) + + - 0 * - + 53 * MIN ( - 76 ), + NULLIF ( + + 71, + - 0 ) ) - - 76 - 10 * - 24 AS col0
----
-2264

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT DISTINCT SUM( ALL - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT SUM ( ALL - 49 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8254
SELECT COUNT( * ) * + 43 DIV + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8254
SELECT COUNT ( * ) * + 43 / + 55 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8255
SELECT ALL 94 col0, COUNT( * ) + - 15 AS col2
----
94
-14

skipif mysql # not compatible
query II rowsort label-8255
SELECT ALL 94 col0, COUNT ( * ) + - 15 AS col2
----
94
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8256
SELECT ALL 45 AS col2, - 63 DIV + + 94 + + 17 - + CASE + COALESCE ( - COUNT( * ), 40 + 71 DIV - 42, + CASE - 7 WHEN + 59 THEN NULL WHEN - + 60 + - 65 DIV + 16 * 93 THEN NULL ELSE + - 52 + - 33 END ) WHEN - COUNT( ( - 82 ) ) THEN 40 END + 12 * + 58 AS col2
----
45
673

skipif mysql # not compatible
query II rowsort label-8256
SELECT ALL 45 AS col2, - 63 / + + 94 + + 17 - + CASE + COALESCE ( - COUNT ( * ), 40 + 71 / - 42, + CASE - 7 WHEN + 59 THEN NULL WHEN - + 60 + - 65 / + 16 * 93 THEN NULL ELSE + - 52 + - 33 END ) WHEN - COUNT ( ( - 82 ) ) THEN 40 END + 12 * + 58 AS col2
----
45
673

query I rowsort
SELECT 64 * 38
----
2432

query II rowsort
SELECT ALL 29 AS col1, ( + 23 ) + + - 28 * - - 90 - - 19
----
29
-2478

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT + 81 + + 86 + - 25 * - 7 + - 37 + ( - 35 ) + - + CASE - 46 WHEN + - 55 THEN NULL ELSE NULLIF ( 15, + 94 ) + - 41 END + + 21 * + - 41 + CASE 48 WHEN - 23 THEN NULL WHEN 33 THEN NULL ELSE COUNT( * ) + 17 END AS col2
----
-547

skipif mysql # not compatible
query I rowsort label-8259
SELECT + 81 + + 86 + - 25 * - 7 + - 37 + ( - 35 ) + - + CASE - 46 WHEN + - 55 THEN NULL ELSE NULLIF ( 15, + 94 ) + - 41 END + + 21 * + - 41 + CASE 48 WHEN - 23 THEN NULL WHEN 33 THEN NULL ELSE COUNT ( * ) + 17 END AS col2
----
-547

onlyif mysql # DIV for integer division: 
query I rowsort label-8260
SELECT + - 78 + ( + + 90 ) DIV + 13 - - 18
----
-54

skipif mysql # not compatible
query I rowsort label-8260
SELECT + - 78 + ( + + 90 ) / + 13 - - 18
----
-54

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

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

query I rowsort
SELECT ALL - + 8 * + 9 AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8263
SELECT + + 3 + + MIN( - 48 ) DIV 16 + ( + 1 ) + + 74 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8263
SELECT + + 3 + + MIN ( - 48 ) / 16 + ( + 1 ) + + 74 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8264
SELECT ALL 61 + ( CAST( + 25 AS SIGNED ) ) + + + 39 DIV - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL 61 + ( CAST ( + 25 AS INTEGER ) ) + + + 39 / - COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT + 30 - + - COUNT( * ) * + - 7 - - - 30 - - SUM( - 66 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8265
SELECT + 30 - + - COUNT ( * ) * + - 7 - - - 30 - - SUM ( - 66 ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL COUNT( * ) + 43 + - 91
----
-47

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL COUNT ( * ) + 43 + - 91
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT + COUNT( * ) - - - COUNT( * ) - + 43 * - COUNT( * ) + + 38 * 11 AS col2
----
461

skipif mysql # not compatible
query I rowsort label-8267
SELECT + COUNT ( * ) - - - COUNT ( * ) - + 43 * - COUNT ( * ) + + 38 * 11 AS col2
----
461

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8268
SELECT - 88 DIV 12 + - MIN( + 74 ) - + 73 - MAX( DISTINCT + + 42 )
----
-196

skipif mysql # not compatible
query I rowsort label-8268
SELECT - 88 / 12 + - MIN ( + 74 ) - + 73 - MAX ( DISTINCT + + 42 )
----
-196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8269
SELECT ALL 82 * + 53 * - - COALESCE ( 16, - 45 + + COALESCE ( + - 4, + + 36 ) * - CAST( 27 AS SIGNED ) * + + 72 + 65 ) * - 83 * - 90 + + + COUNT( * )
----
519433921

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL 82 * + 53 * - - COALESCE ( 16, - 45 + + COALESCE ( + - 4, + + 36 ) * - CAST ( 27 AS INTEGER ) * + + 72 + 65 ) * - 83 * - 90 + + + COUNT ( * )
----
519433921

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT + - COUNT( + + 17 )
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT + COALESCE ( 26, 83 ) * + 35 + 66 + - 75 * - + COUNT( ALL - + 9 ) + - 34 AS col1
----
1017

skipif mysql # not compatible
query I rowsort label-8271
SELECT + COALESCE ( 26, 83 ) * + 35 + 66 + - 75 * - + COUNT ( ALL - + 9 ) + - 34 AS col1
----
1017

query I rowsort
SELECT + 8 + - 60 - 74 + - 26 * + 11 * + 10 * + + 44 + 16 AS col0
----
-125950

query I rowsort
SELECT ALL 78 * 51 * 46 AS col2
----
182988

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT + MIN( DISTINCT + 2 ) * - 12 * - 41 + - + 26 + - + 4 * + 57 * 23 AS col0
----
-4286

skipif mysql # not compatible
query I rowsort label-8274
SELECT + MIN ( DISTINCT + 2 ) * - 12 * - 41 + - + 26 + - + 4 * + 57 * 23 AS col0
----
-4286

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8275
SELECT ALL COALESCE ( + NULLIF ( - - 27, + 53 ), 7 * - + CASE 53 WHEN COUNT( * ) THEN NULL WHEN 59 THEN NULL WHEN + 40 DIV 62 * - 81 + - COUNT( * ) THEN 92 ELSE - 86 END * 9 - + 24 DIV 85 + - - 41 + 17 ) * 34 + - 67 AS col1
----
851

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL COALESCE ( + NULLIF ( - - 27, + 53 ), 7 * - + CASE 53 WHEN COUNT ( * ) THEN NULL WHEN 59 THEN NULL WHEN + 40 / 62 * - 81 + - COUNT ( * ) THEN 92 ELSE - 86 END * 9 - + 24 / 85 + - - 41 + 17 ) * 34 + - 67 AS col1
----
851

query I rowsort
SELECT ALL 42 * 9
----
378

query I rowsort
SELECT - 30 + + 65 + 33 AS col2
----
68

query I rowsort
SELECT ALL 53 * + 32 - + 46 - 6 AS col1
----
1644

query I rowsort
SELECT + 18 * + 96 AS col2
----
1728

query II rowsort
SELECT DISTINCT + ( - 0 ) AS col2, - 13 + + 32
----
0
19

query I rowsort
SELECT - 88 * 38
----
-3344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT DISTINCT - CAST( 94 AS SIGNED ) * 96
----
-9024

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT - CAST ( 94 AS INTEGER ) * 96
----
-9024

query I rowsort
SELECT ALL + NULLIF ( - 91, 57 * CASE - + 27 WHEN - ( - 99 ) + + - 32 THEN 7 - + - 66 END ) - - 38
----
-53

query I rowsort
SELECT - 64 * - 9
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT DISTINCT - 37 * MAX( ALL + + COALESCE ( - 50, 58 ) ) AS col2
----
1850

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT - 37 * MAX ( ALL + + COALESCE ( - 50, 58 ) ) AS col2
----
1850

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT DISTINCT - CASE - COUNT( * ) WHEN + + 46 + CASE - COUNT( 86 ) WHEN + 92 THEN 40 WHEN + 29 THEN + + 60 * - 89 ELSE NULLIF ( + 15, - 54 ) / - 56 END / + - 62 THEN + + 41 END * 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + + 46 + CASE - COUNT ( 86 ) WHEN + 92 THEN 40 WHEN + 29 THEN + + 60 * - 89 ELSE NULLIF ( + 15, - 54 ) / - 56 END / + - 62 THEN + + 41 END * 8 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL 45 + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8288
SELECT - + 15 + + + CAST( - SUM( 2 ) AS SIGNED ) + - 30 col2
----
-47

skipif mysql # not compatible
query I rowsort label-8288
SELECT - + 15 + + + CAST ( - SUM ( 2 ) AS INTEGER ) + - 30 col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8289
SELECT ALL - 52 + - CAST( 0 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL - 52 + - CAST ( 0 AS INTEGER )
----
-52

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8291
SELECT ALL - 2 DIV - MAX( DISTINCT - 52 ) * + - 39 + + - 76 - - 41 + - 49 * - COUNT( * ) + ( - 49 )
----
-35

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL - 2 / - MAX ( DISTINCT - 52 ) * + - 39 + + - 76 - - 41 + - 49 * - COUNT ( * ) + ( - 49 )
----
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL + ( + ( + + 68 ) ) + CASE - 6 WHEN + COUNT( * ) THEN + 70 ELSE NULL END * 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL + ( + ( + + 68 ) ) + CASE - 6 WHEN + COUNT ( * ) THEN + 70 ELSE NULL END * 17 AS col1
----
NULL

query II rowsort
SELECT ALL - 36 * + 3 AS col2, 1 AS col0
----
-108
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8295
SELECT - NULLIF ( - MAX( + - 24 ), 69 ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT - NULLIF ( - MAX ( + - 24 ), 69 ) / - 59
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT ALL 31 / + 18 * + + 61 * + 71 * - 83 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL 31 / + 18 * + + 61 * + 71 * - 83 + CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8299
SELECT ALL COUNT( * ) DIV - 76 - - 10 * 62
----
620

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL COUNT ( * ) / - 76 - - 10 * 62
----
620

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8301
SELECT - SUM( ALL + 28 ) * + + 71, MIN( + 76 ) * - COUNT( * ) + + - 21 - - 46 * CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) + + 21 + + 36 * + 25 AS col2
----
-1988
NULL

skipif mysql # not compatible
query II rowsort label-8301
SELECT - SUM ( ALL + 28 ) * + + 71, MIN ( + 76 ) * - COUNT ( * ) + + - 21 - - 46 * CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) + + 21 + + 36 * + 25 AS col2
----
-1988
NULL

query I rowsort
SELECT - 25 + - ( + - 17 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8303
SELECT - 42 * + CAST( MIN( DISTINCT + 40 ) AS SIGNED ) AS col1
----
-1680

skipif mysql # not compatible
query I rowsort label-8303
SELECT - 42 * + CAST ( MIN ( DISTINCT + 40 ) AS INTEGER ) AS col1
----
-1680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8304
SELECT + CAST( NULL AS SIGNED ) col2, + 10 AS col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-8304
SELECT + CAST ( NULL AS INTEGER ) col2, + 10 AS col0
----
NULL
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT + NULLIF ( + - ( + 39 ), 99 * - + 42 + + - COUNT( * ) * - 13 ) - - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8306
SELECT + NULLIF ( + - ( + 39 ), 99 * - + 42 + + - COUNT ( * ) * - 13 ) - - COUNT ( * ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ( - MAX( - 86 ) )
----
86

skipif mysql # not compatible
query I rowsort label-8307
SELECT ( - MAX ( - 86 ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ( - - MAX( - - 93 ) ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8308
SELECT ( - - MAX ( - - 93 ) ) AS col0
----
93

query II rowsort
SELECT ALL + 55 AS col1, + 51
----
55
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8310
SELECT + 71 + - 51 + + 46, 43 + - - 56 * + 44 * - CAST( NULL AS SIGNED ) AS col0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-8310
SELECT + 71 + - 51 + + 46, 43 + - - 56 * + 44 * - CAST ( NULL AS INTEGER ) AS col0
----
66
NULL

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

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

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

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

query I rowsort
SELECT + 47 + - 11 + + - 59 - + 44
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT ALL - CASE - + 15 WHEN 2 * - 21 + - 64 + + 39 - + 62 THEN NULL ELSE + SUM( ALL - 25 ) END * - 41 * 39
----
-39975

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL - CASE - + 15 WHEN 2 * - 21 + - 64 + + 39 - + 62 THEN NULL ELSE + SUM ( ALL - 25 ) END * - 41 * 39
----
-39975

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT + 64 * + 95 * + NULLIF ( + COUNT( * ), - 53 + - ( + - 90 ) * - ( - 7 ) ) AS col1
----
6080

skipif mysql # not compatible
query I rowsort label-8315
SELECT + 64 * + 95 * + NULLIF ( + COUNT ( * ), - 53 + - ( + - 90 ) * - ( - 7 ) ) AS col1
----
6080

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT ALL 70 * 39 * + 53 * - COUNT( * ) col1
----
-144690

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL 70 * 39 * + 53 * - COUNT ( * ) col1
----
-144690

query I rowsort
SELECT + 42 * 64 + 26
----
2714

query I rowsort
SELECT + ( + 48 ) col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT DISTINCT + SUM( + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT + SUM ( + 24 )
----
24

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8321
SELECT + 28 DIV ( + - 30 ) AS col2, - 19 - MIN( ALL + + 79 )
----
0
-98

skipif mysql # not compatible
query II rowsort label-8321
SELECT + 28 / ( + - 30 ) AS col2, - 19 - MIN ( ALL + + 79 )
----
0
-98

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT ALL - - COUNT( * ) * + - 95 * - 17 + - - 94 AS col0
----
1709

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL - - COUNT ( * ) * + - 95 * - 17 + - - 94 AS col0
----
1709

query I rowsort
SELECT DISTINCT + + 55 * + - 1 + + - 49 + + 72
----
-32

query I rowsort
SELECT ALL + 92 + 47 AS col2
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT ALL + ( - 88 ) DIV + + 24
----
-3

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL + ( - 88 ) / + + 24
----
-3

query I rowsort
SELECT + ( + 11 ) * - 29
----
-319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT 84 + + CAST( 18 AS SIGNED ) + - 19 * - - 10
----
-88

skipif mysql # not compatible
query I rowsort label-8329
SELECT 84 + + CAST ( 18 AS INTEGER ) + - 19 * - - 10
----
-88

query I rowsort
SELECT ALL + + 40 * - 82
----
-3280

query I rowsort
SELECT DISTINCT - - 78 * - + 59
----
-4602

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT 7 + + 58 + 37 * 60 * + ( - - NULLIF ( - - 19, + + 37 + AVG ( + 6 ) ) ) * - 76 + + COUNT( * ) col2
----
-3205614

skipif mysql # not compatible
query I rowsort label-8333
SELECT 7 + + 58 + 37 * 60 * + ( - - NULLIF ( - - 19, + + 37 + AVG ( + 6 ) ) ) * - 76 + + COUNT ( * ) col2
----
-3205614

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

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

query I rowsort
SELECT 53 + 78
----
131

query I rowsort
SELECT 81 + 80 * CASE + 65 WHEN + 45 THEN - ( 5 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 91 + - - 32 AS col2
----
123

query I rowsort
SELECT ALL + 11 - - - 5 col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8339
SELECT 71 * - 12, ( + 58 ) * - CAST( - MIN( 71 ) AS SIGNED ) AS col2
----
-852
4118

skipif mysql # not compatible
query II rowsort label-8339
SELECT 71 * - 12, ( + 58 ) * - CAST ( - MIN ( 71 ) AS INTEGER ) AS col2
----
-852
4118

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT 11 DIV 53 + + 47
----
47

skipif mysql # not compatible
query I rowsort label-8340
SELECT 11 / 53 + + 47
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT COUNT( * ) + - 78 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8341
SELECT COUNT ( * ) + - 78 AS col1
----
-77

query I rowsort
SELECT ALL + CASE 41 WHEN ( - + 13 ) THEN + + 79 * - ( 58 ) WHEN - 1 THEN + + 78 ELSE NULL END * - 4 col2
----
NULL

query I rowsort
SELECT 90 + 91 * 21 * 23 + - 75
----
43968

onlyif mysql # DIV for integer division: 
query I rowsort label-8344
SELECT ALL + 11 DIV 91 * + + 59
----
0

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL + 11 / 91 * + + 59
----
0

query I rowsort
SELECT 84 * - 24 + - 17 + + 64 - - - 86 * - 68 col2
----
3879

onlyif mysql # DIV for integer division: 
query II rowsort label-8346
SELECT ALL - 71 AS col2, - 2 DIV - - 40 AS col1
----
-71
0

skipif mysql # not compatible
query II rowsort label-8346
SELECT ALL - 71 AS col2, - 2 / - - 40 AS col1
----
-71
0

query II rowsort
SELECT 27, + 54 col1
----
27
54

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

skipif mysql # not compatible
query I rowsort label-8348
SELECT 25 + - + 2 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT 96 * + 63
----
6048

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8352
SELECT DISTINCT - 73 col2, - 70 * + - COUNT( * ) * + + 29
----
-73
2030

skipif mysql # not compatible
query II rowsort label-8352
SELECT DISTINCT - 73 col2, - 70 * + - COUNT ( * ) * + + 29
----
-73
2030

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL ( - - COUNT( * ) ) + - 68 * + - 53 + + 20
----
3625

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL ( - - COUNT ( * ) ) + - 68 * + - 53 + + 20
----
3625

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

query I rowsort
SELECT + 61 + 76 * - ( 92 )
----
-6931

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT 42 * - + 1 * + 91 - + 29 * - + COUNT( * ) * 29
----
-2981

skipif mysql # not compatible
query I rowsort label-8356
SELECT 42 * - + 1 * + 91 - + 29 * - + COUNT ( * ) * 29
----
-2981

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL - 96 * + - MAX( + 26 )
----
2496

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL - 96 * + - MAX ( + 26 )
----
2496

onlyif mysql # aggregate syntax: 
query II rowsort label-8358
SELECT ALL + 85 + 26 + + 29 * CASE + 8 WHEN - MIN( + + 84 ) THEN 4 * + 63 WHEN NULLIF ( - COUNT( * ), + - 19 ) THEN NULL END AS col2, + 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-8358
SELECT ALL + 85 + 26 + + 29 * CASE + 8 WHEN - MIN ( + + 84 ) THEN 4 * + 63 WHEN NULLIF ( - COUNT ( * ), + - 19 ) THEN NULL END AS col2, + 11
----
NULL
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8359
SELECT ALL 48 + + CAST( 18 AS SIGNED ) + + 21
----
87

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL 48 + + CAST ( 18 AS INTEGER ) + + 21
----
87

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

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT 23 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 4 + 29 * 46 + 50 col1
----
1380

onlyif mysql # DIV for integer division: 
query I rowsort label-8362
SELECT 50 + - 59 DIV + 2 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8362
SELECT 50 + - 59 / + 2 AS col0
----
21

query II rowsort
SELECT 5 AS col0, 9
----
5
9

query I rowsort
SELECT + - 29 * 24 * + - 12 + - 68
----
8284

query I rowsort
SELECT 42 + - 95 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL COUNT( ALL - 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL COUNT ( ALL - 33 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT - COUNT( + - ( - 6 ) ) * 87 * + 67 AS col1
----
-5829

skipif mysql # not compatible
query I rowsort label-8367
SELECT - COUNT ( + - ( - 6 ) ) * 87 * + 67 AS col1
----
-5829

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - COALESCE ( + COUNT( * ), 29, - + 67 * - 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-8368
SELECT - COALESCE ( + COUNT ( * ), 29, - + 67 * - 98 )
----
-1

query I rowsort
SELECT 90 - 54
----
36

query II rowsort
SELECT + 66, 99 - - - 7 AS col0
----
66
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL - - 75 - - 84 * + COUNT( * ) + + 80
----
239

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL - - 75 - - 84 * + COUNT ( * ) + + 80
----
239

query II rowsort
SELECT ALL - 11 AS col0, + 28 AS col1
----
-11
28

query I rowsort
SELECT DISTINCT 78 - - - 98 AS col0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8374
SELECT DISTINCT + ( - 54 ) DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT + ( - 54 ) / - 88
----
0

query I rowsort
SELECT ALL 61 - - 2 - - 9 * - 15 AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8376
SELECT CAST( + + 93 AS SIGNED ) * 73 col2
----
6789

skipif mysql # not compatible
query I rowsort label-8376
SELECT CAST ( + + 93 AS INTEGER ) * 73 col2
----
6789

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

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

query I rowsort
SELECT ALL + 16 * 64
----
1024

onlyif mysql # aggregate syntax: 
query II rowsort label-8379
SELECT 16 * + 25 AS col2, + 44 + COUNT( - + 17 ) * - + 70 AS col2
----
400
-26

skipif mysql # not compatible
query II rowsort label-8379
SELECT 16 * + 25 AS col2, + 44 + COUNT ( - + 17 ) * - + 70 AS col2
----
400
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT DISTINCT + 98 * + CASE 29 WHEN + - 25 THEN NULL WHEN 63 THEN NULL WHEN + + 35 * - COUNT( * ) THEN + 15 * - + 74 + - COUNT( * ) * - 69 * + - COUNT( * ) - - 84 + - 42 * 95 * - - MAX( 41 ) + - COUNT( - 54 ) - ( - COUNT( * ) ) * + + 44 / + 61 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT + 98 * + CASE 29 WHEN + - 25 THEN NULL WHEN 63 THEN NULL WHEN + + 35 * - COUNT ( * ) THEN + 15 * - + 74 + - COUNT ( * ) * - 69 * + - COUNT ( * ) - - 84 + - 42 * 95 * - - MAX ( 41 ) + - COUNT ( - 54 ) - ( - COUNT ( * ) ) * + + 44 / + 61 END AS col2
----
NULL

query I rowsort
SELECT 6 * - + 41
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT DISTINCT - ( + COUNT( DISTINCT - 69 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT - ( + COUNT ( DISTINCT - 69 ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8383
SELECT + 97 DIV 45 + - 64 + - - 40 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8383
SELECT + 97 / 45 + - 64 + - - 40 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8384
SELECT ALL - CASE + COUNT( * ) WHEN 51 * + 34 THEN NULL WHEN + COUNT( ALL - + 54 ) * - - COUNT( * ) THEN 73 ELSE - - ( - 79 ) + + - 64 + + 75 END AS col1, 49 + - - 12 * - + 14 + - 11 * + 7 * + - 63 + 20
----
-73
4752

skipif mysql # not compatible
query II rowsort label-8384
SELECT ALL - CASE + COUNT ( * ) WHEN 51 * + 34 THEN NULL WHEN + COUNT ( ALL - + 54 ) * - - COUNT ( * ) THEN 73 ELSE - - ( - 79 ) + + - 64 + + 75 END AS col1, 49 + - - 12 * - + 14 + - 11 * + 7 * + - 63 + 20
----
-73
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT 99 + 5 + - COUNT( - 25 ) + ( - 12 ) col1
----
91

skipif mysql # not compatible
query I rowsort label-8385
SELECT 99 + 5 + - COUNT ( - 25 ) + ( - 12 ) col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT DISTINCT + ( + 43 ) DIV + - 96 * + - ( - - ( - 36 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT + ( + 43 ) / + - 96 * + - ( - - ( - 36 ) ) AS col2
----
0

query I rowsort
SELECT - 46 * - + 64 - 91
----
2853

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8388
SELECT COUNT( ALL - - 39 ) col2, 67 + ( - 63 ) + - 61 * 80 DIV + + 74 AS col2
----
1
-61

skipif mysql # not compatible
query II rowsort label-8388
SELECT COUNT ( ALL - - 39 ) col2, 67 + ( - 63 ) + - 61 * 80 / + + 74 AS col2
----
1
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8389
SELECT 54 * - CAST( - - 25 AS SIGNED ) + + - 42 AS col0
----
-1392

skipif mysql # not compatible
query I rowsort label-8389
SELECT 54 * - CAST ( - - 25 AS INTEGER ) + + - 42 AS col0
----
-1392

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT - 12 * + 67 + - 95 + - - COUNT( * )
----
-898

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT - 12 * + 67 + - 95 + - - COUNT ( * )
----
-898

onlyif mysql # DIV for integer division: 
query I rowsort label-8393
SELECT DISTINCT 15 * COALESCE ( - 10, - 28 DIV + + 65 + ( + + 49 ) ) + 91
----
-59

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT 15 * COALESCE ( - 10, - 28 / + + 65 + ( + + 49 ) ) + 91
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8394
SELECT 75 * - - CAST( NULL AS SIGNED ) + + 48 AS col0, - 78 * + 71
----
NULL
-5538

skipif mysql # not compatible
query II rowsort label-8394
SELECT 75 * - - CAST ( NULL AS INTEGER ) + + 48 AS col0, - 78 * + 71
----
NULL
-5538

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT MIN( 64 ) * 33 * + 54 + + - 84 - + 99 col1
----
113865

skipif mysql # not compatible
query I rowsort label-8395
SELECT MIN ( 64 ) * 33 * + 54 + + - 84 - + 99 col1
----
113865

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8396
SELECT + + ( 69 ) * + COUNT( * ) + 28 + 17 DIV + 96 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8396
SELECT + + ( 69 ) * + COUNT ( * ) + 28 + 17 / + 96 AS col0
----
97

query I rowsort
SELECT ALL 82 - + + 99
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT - MIN( DISTINCT + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-8398
SELECT - MIN ( DISTINCT + 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + + 10 * + 62 + - 96 + COUNT( 70 )
----
525

skipif mysql # not compatible
query I rowsort label-8399
SELECT + + 10 * + 62 + - 96 + COUNT ( 70 )
----
525

query I rowsort
SELECT ALL + CASE + - NULLIF ( + 3, + 18 * + 48 ) WHEN 52 * + - 89 THEN - 44 END
----
NULL

query I rowsort
SELECT - - ( 40 )
----
40

query I rowsort
SELECT + 2 * + 5 AS col0
----
10

query I rowsort
SELECT ALL + NULLIF ( + 94, + + 19 ) * + - ( + + 86 ) * 92 * - 3 AS col0
----
2231184

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT + COUNT( * ) + 49 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8404
SELECT + COUNT ( * ) + 49 AS col2
----
50

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8406
SELECT + 7 * SUM( ALL 8 ) col2, 19 col0
----
56
19

skipif mysql # not compatible
query II rowsort label-8406
SELECT + 7 * SUM ( ALL 8 ) col2, 19 col0
----
56
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT + CAST( NULL AS SIGNED ) + - - NULLIF ( 83, + + 51 ) / - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT + CAST ( NULL AS INTEGER ) + - - NULLIF ( 83, + + 51 ) / - 57
----
NULL

query I rowsort
SELECT + 72 + + - 25
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + 48 + 9 + + - 73 * + MAX( - COALESCE ( - 81, 86 ) ) AS col1
----
-5856

skipif mysql # not compatible
query I rowsort label-8410
SELECT + 48 + 9 + + - 73 * + MAX ( - COALESCE ( - 81, 86 ) ) AS col1
----
-5856

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL + CASE COUNT( * ) WHEN + SUM( DISTINCT - + 27 ) THEN + - 62 ELSE NULL END + - COUNT( * ) - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL + CASE COUNT ( * ) WHEN + SUM ( DISTINCT - + 27 ) THEN + - 62 ELSE NULL END + - COUNT ( * ) - + 2
----
NULL

query I rowsort
SELECT + 65 + + 3 AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8413
SELECT + 36 * - 55 * + - CAST( NULL AS SIGNED ) AS col0, + SUM( - 8 ) + + ( - + 66 )
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-8413
SELECT + 36 * - 55 * + - CAST ( NULL AS INTEGER ) AS col0, + SUM ( - 8 ) + + ( - + 66 )
----
NULL
-74

query I rowsort
SELECT - 41 + 65 AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8415
SELECT ALL 47 DIV + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL 47 / + 95 AS col1
----
0

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

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

query I rowsort
SELECT - 42 * + 8 + - 50 + + 90
----
-296

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8418
SELECT MIN( 64 ) DIV + - 27 + + + 4 * + 51 * + 41 AS col2, + 86 AS col0
----
8362
86

skipif mysql # not compatible
query II rowsort label-8418
SELECT MIN ( 64 ) / + - 27 + + + 4 * + 51 * + 41 AS col2, + 86 AS col0
----
8362
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8419
SELECT ALL - 25 DIV 62 + 30 * 91 * COUNT( * ) AS col1
----
2730

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL - 25 / 62 + 30 * 91 * COUNT ( * ) AS col1
----
2730

query I rowsort
SELECT + 5 * + + 96 AS col1
----
480

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

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

query I rowsort
SELECT + 82 + - ( - 87 )
----
169

query I rowsort
SELECT ALL + ( - 24 ) AS col2
----
-24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL + 48 * CASE + - 7 WHEN - COUNT( * ) * + 51 THEN - + 58 * + 75 END + - ( - COUNT( * ) ) * - 71 * + 56 * - 69 - 33 + + ( - MIN( + - 24 ) ) + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL + 48 * CASE + - 7 WHEN - COUNT ( * ) * + 51 THEN - + 58 * + 75 END + - ( - COUNT ( * ) ) * - 71 * + 56 * - 69 - 33 + + ( - MIN ( + - 24 ) ) + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT + 42, + SUM( + 95 ) * + - 39 AS col2
----
42
-3705

skipif mysql # not compatible
query II rowsort label-8426
SELECT + 42, + SUM ( + 95 ) * + - 39 AS col2
----
42
-3705

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT + - COUNT( DISTINCT + - 31 ) + - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8427
SELECT + - COUNT ( DISTINCT + - 31 ) + - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8428
SELECT + 60 AS col0, SUM( - + 4 ) + + - ( - SUM( DISTINCT 22 ) ) + NULLIF ( - - 87, + 3 ) + + - ( + + COUNT( * ) ) + 14 * - 94
----
60
-1212

skipif mysql # not compatible
query II rowsort label-8428
SELECT + 60 AS col0, SUM ( - + 4 ) + + - ( - SUM ( DISTINCT 22 ) ) + NULLIF ( - - 87, + 3 ) + + - ( + + COUNT ( * ) ) + 14 * - 94
----
60
-1212

query I rowsort
SELECT - 70 + + - 64 col1
----
-134

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT - - 13 * 73 + + + 85 * + COUNT( * ) * - 81 AS col1
----
-5936

skipif mysql # not compatible
query I rowsort label-8431
SELECT - - 13 * 73 + + + 85 * + COUNT ( * ) * - 81 AS col1
----
-5936

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - SUM( ALL - 92 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-8432
SELECT - SUM ( ALL - 92 ) col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT ALL - - 96 DIV - + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL - - 96 / - + 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL COUNT( * ) * 33 + COUNT( * ) + - 79 - - + 90 * 10 - 30
----
825

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL COUNT ( * ) * 33 + COUNT ( * ) + - 79 - - + 90 * 10 - 30
----
825

onlyif mysql # aggregate syntax: 
query II rowsort label-8435
SELECT + 94 AS col0, - SUM( DISTINCT - 7 ) + - 22 * - 64 * - - 79
----
94
111239

skipif mysql # not compatible
query II rowsort label-8435
SELECT + 94 AS col0, - SUM ( DISTINCT - 7 ) + - 22 * - 64 * - - 79
----
94
111239

onlyif mysql # DIV for integer division: 
query I rowsort label-8436
SELECT - - 63 DIV 38 + NULLIF ( - 33, - - 56 ) + 83 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8436
SELECT - - 63 / 38 + NULLIF ( - 33, - - 56 ) + 83 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT ALL - - NULLIF ( + 58, + 78 ) * + ( - COALESCE ( - - 26, + CAST( + 34 AS SIGNED ) * + 72 ) ) AS col0
----
-1508

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL - - NULLIF ( + 58, + 78 ) * + ( - COALESCE ( - - 26, + CAST ( + 34 AS INTEGER ) * + 72 ) ) AS col0
----
-1508

query I rowsort
SELECT ALL - - 4 * - 78
----
-312

query II rowsort
SELECT DISTINCT + + 7, - 96 AS col0
----
7
-96

query I rowsort
SELECT DISTINCT + + 91 * 2 * + + 15
----
2730

onlyif mysql # aggregate syntax: 
query II rowsort label-8441
SELECT - - 86 * + 94 * + COUNT( * ), + COUNT( * ) AS col2
----
8084
1

skipif mysql # not compatible
query II rowsort label-8441
SELECT - - 86 * + 94 * + COUNT ( * ), + COUNT ( * ) AS col2
----
8084
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8442
SELECT - - CAST( 22 AS SIGNED ) + - 41
----
-19

skipif mysql # not compatible
query I rowsort label-8442
SELECT - - CAST ( 22 AS INTEGER ) + - 41
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT - CASE - 93 WHEN - CAST( - 47 AS SIGNED ) THEN 51 + - - 91 + - 65 + + + NULLIF ( + - ( - + 62 ), + CASE 36 WHEN + 77 + + - 32 THEN - 58 + + COUNT( * ) - - COALESCE ( + - 46, - 7 * + 84 / + ( - 91 ) ) + + 96 * 96 * ( NULLIF ( - 39, + 53 + MIN( + 26 + 9 ) ) + COALESCE ( 58, 61 * 2 - + 10 ) * - ( + COUNT( * ) - + 12 ) ) END + 16 ) + - 83 WHEN - 21 THEN + AVG ( ALL + 78 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT - CASE - 93 WHEN - CAST ( - 47 AS INTEGER ) THEN 51 + - - 91 + - 65 + + + NULLIF ( + - ( - + 62 ), + CASE 36 WHEN + 77 + + - 32 THEN - 58 + + COUNT ( * ) - - COALESCE ( + - 46, - 7 * + 84 / + ( - 91 ) ) + + 96 * 96 * ( NULLIF ( - 39, + 53 + MIN ( + 26 + 9 ) ) + COALESCE ( 58, 61 * 2 - + 10 ) * - ( + COUNT ( * ) - + 12 ) ) END + 16 ) + - 83 WHEN - 21 THEN + AVG ( ALL + 78 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8444
SELECT + - 31 + NULLIF ( + + CAST( NULL AS SIGNED ), COUNT( * ) ) + 68 + - 76 col0, - 24 AS col1
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-8444
SELECT + - 31 + NULLIF ( + + CAST ( NULL AS INTEGER ), COUNT ( * ) ) + 68 + - 76 col0, - 24 AS col1
----
NULL
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT ALL - 26 DIV MAX( ALL - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - 26 / MAX ( ALL - 98 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT - 61 * ( - 6 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT - 61 * ( - 6 ) / + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8448
SELECT ALL ( - COUNT( ALL - - NULLIF ( - 95, + 27 * + + 13 * - 25 ) ) ) AS col1, CASE - - NULLIF ( 13, - 8 + + 6 * + ( 55 ) ) WHEN 18 THEN COUNT( * ) * + - COUNT( + 13 ) + 69 + - + MIN( - + CAST( NULL AS SIGNED ) ) * COUNT( * ) / - - 71 * - 42 * + CAST( NULL AS SIGNED ) WHEN 62 + + 32 / - 23 THEN COUNT( * ) + 54 END * + 89 + 3 * - 39
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8448
SELECT ALL ( - COUNT ( ALL - - NULLIF ( - 95, + 27 * + + 13 * - 25 ) ) ) AS col1, CASE - - NULLIF ( 13, - 8 + + 6 * + ( 55 ) ) WHEN 18 THEN COUNT ( * ) * + - COUNT ( + 13 ) + 69 + - + MIN ( - + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) / - - 71 * - 42 * + CAST ( NULL AS INTEGER ) WHEN 62 + + 32 / - 23 THEN COUNT ( * ) + 54 END * + 89 + 3 * - 39
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT ALL 60 + 85 + + 4 DIV 19 * - - 34 AS col0
----
145

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL 60 + 85 + + 4 / 19 * - - 34 AS col0
----
145

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

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

query I rowsort
SELECT - 12 * 11 * 35
----
-4620

query II rowsort
SELECT + 18 * + + 41, 47 AS col1
----
738
47

query I rowsort
SELECT ALL 24 + + 59 * + - 74
----
-4342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8454
SELECT ALL ( + 19 ) + + + CAST( NULL AS SIGNED ) * - - 93 * + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL ( + 19 ) + + + CAST ( NULL AS INTEGER ) * - - 93 * + - 32
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8455
SELECT ALL - COUNT( - 94 ) * + - 15 * + + CASE + 89 WHEN - ( + 35 ) THEN NULL WHEN - 40 THEN - 96 END, 21 AS col0
----
NULL
21

skipif mysql # not compatible
query II rowsort label-8455
SELECT ALL - COUNT ( - 94 ) * + - 15 * + + CASE + 89 WHEN - ( + 35 ) THEN NULL WHEN - 40 THEN - 96 END, 21 AS col0
----
NULL
21

query I rowsort
SELECT DISTINCT + 8 + - 36
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT ALL - MIN( ALL - 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL - MIN ( ALL - 50 ) AS col0
----
50

query I rowsort
SELECT DISTINCT 11 + - + 71
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8459
SELECT ALL - 91 - + - 72 col1, NULLIF ( COUNT( ALL + 61 ), - - 85 ) + 7 * 39 + - - 62
----
-19
336

skipif mysql # not compatible
query II rowsort label-8459
SELECT ALL - 91 - + - 72 col1, NULLIF ( COUNT ( ALL + 61 ), - - 85 ) + 7 * 39 + - - 62
----
-19
336

onlyif mysql # DIV for integer division: 
query II rowsort label-8460
SELECT DISTINCT 28 DIV - 9, - 90 DIV - 2 AS col0
----
-3
45

skipif mysql # not compatible
query II rowsort label-8460
SELECT DISTINCT 28 / - 9, - 90 / - 2 AS col0
----
-3
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + CASE WHEN - 8 IS NULL THEN 2 * - - 63 * + NULLIF ( + ( 8 ), + 35 - - 67 + - 1 ) END + + 18 - - + ( + - 49 ) * - + MIN( DISTINCT - 86 ) - + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8461
SELECT + CASE WHEN - 8 IS NULL THEN 2 * - - 63 * + NULLIF ( + ( 8 ), + 35 - - 67 + - 1 ) END + + 18 - - + ( + - 49 ) * - + MIN ( DISTINCT - 86 ) - + 75
----
NULL

query I rowsort
SELECT ALL + 48 - 74 * + 11
----
-766

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT + 7 / - CASE - 88 WHEN + 22 / 98 / + NULLIF ( ( - - 80 ), + 87 / + + COUNT( * ) * + - 98 ) + 37 + + 0 THEN + - 89 + - COUNT( * ) + - - ( - 4 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT + 7 / - CASE - 88 WHEN + 22 / 98 / + NULLIF ( ( - - 80 ), + 87 / + + COUNT ( * ) * + - 98 ) + 37 + + 0 THEN + - 89 + - COUNT ( * ) + - - ( - 4 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8464
SELECT 48 * - 69 + + - 80 / + CAST( NULL AS SIGNED ) + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT 48 * - 69 + + - 80 / + CAST ( NULL AS INTEGER ) + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT + COALESCE ( + - 32, - 29 + - 58 + 11 * - - MIN( ALL - + 46 ) + - 38 * NULLIF ( - - 35, 73 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-8465
SELECT + COALESCE ( + - 32, - 29 + - 58 + 11 * - - MIN ( ALL - + 46 ) + - 38 * NULLIF ( - - 35, 73 ) )
----
-32

query I rowsort
SELECT ALL - 73 * + 68 + 24 - 82 * - - 39 AS col2
----
-8138

query I rowsort
SELECT + 85 * - 69 * + 44 + - 67 * + 55 AS col2
----
-261745

query I rowsort
SELECT - ( + + ( + - 15 ) ) * - 33 col2
----
-495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8469
SELECT ALL - - COUNT( ALL + ( + 23 ) ) * 62 DIV - 48 + - 47 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL - - COUNT ( ALL + ( + 23 ) ) * 62 / - 48 + - 47 AS col2
----
-48

query I rowsort
SELECT DISTINCT - COALESCE ( + 83, - + ( + 45 ) + + 58 ) AS col1
----
-83

query I rowsort
SELECT ALL - - 73 col1
----
73

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

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

query I rowsort
SELECT - 47 + + 56
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8474
SELECT ALL NULLIF ( + + 0, + 21 ) * - 68 * - 77 * 26 * - AVG ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) + MIN( DISTINCT + 20 ) - 58 + 85 + + 77 + 86 * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL NULLIF ( + + 0, + 21 ) * - 68 * - 77 * 26 * - AVG ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + MIN ( DISTINCT + 20 ) - 58 + 85 + + 77 + 86 * COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT - ( + 68 ) * 21 + CASE 10 WHEN + 82 + - 4 - - - 85 + + ( - ( - 32 ) ) * 90 * ( COALESCE ( - 21, - + COUNT( * ) * + + COALESCE ( SUM( - CAST( NULL AS SIGNED ) ), + - NULLIF ( + 98, 10 + 57 ) ) * - + ( 2 ) + 51 * 3 ) ) THEN COUNT( * ) * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT - ( + 68 ) * 21 + CASE 10 WHEN + 82 + - 4 - - - 85 + + ( - ( - 32 ) ) * 90 * ( COALESCE ( - 21, - + COUNT ( * ) * + + COALESCE ( SUM ( - CAST ( NULL AS INTEGER ) ), + - NULLIF ( + 98, 10 + 57 ) ) * - + ( 2 ) + 51 * 3 ) ) THEN COUNT ( * ) * - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( + 55, + 45 * - 17 )
----
-55

query I rowsort
SELECT - 14 + + 91 AS col2
----
77

query I rowsort
SELECT 96 * - + 4
----
-384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8479
SELECT - CAST( NULL AS SIGNED ) * - 42 / - 98 + + + SUM( 52 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT - CAST ( NULL AS INTEGER ) * - 42 / - 98 + + + SUM ( 52 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL - SUM( ALL - 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - SUM ( ALL - 77 ) AS col1
----
77

query I rowsort
SELECT - 45 - - + 69 * 52
----
3543

query I rowsort
SELECT 76 * + 80
----
6080

query II rowsort
SELECT ALL 93 col0, + 70 AS col1
----
93
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT DISTINCT - 39 + - 97 DIV + 82
----
-40

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - 39 + - 97 / + 82
----
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-8485
SELECT ALL + ( + + 75 ) + + + 17 AS col1, 99 * - 37 - + 37 DIV - + 67 AS col2
----
92
-3663

skipif mysql # not compatible
query II rowsort label-8485
SELECT ALL + ( + + 75 ) + + + 17 AS col1, 99 * - 37 - + 37 / - + 67 AS col2
----
92
-3663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8486
SELECT ALL + COALESCE ( + 2, + + 36, - 83 ) + COUNT( DISTINCT CAST( + 98 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + COALESCE ( + 2, + + 36, - 83 ) + COUNT ( DISTINCT CAST ( + 98 AS INTEGER ) )
----
3

query I rowsort
SELECT 16 - + + 73 * - 53 - 24
----
3861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT ALL - 94 * - CASE - 49 WHEN + 85 + + + COALESCE ( + - 67, + 84 ) * - - CAST( NULL AS SIGNED ) * - CAST( + 59 AS SIGNED ) THEN + + 69 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - 94 * - CASE - 49 WHEN + 85 + + + COALESCE ( + - 67, + 84 ) * - - CAST ( NULL AS INTEGER ) * - CAST ( + 59 AS INTEGER ) THEN + + 69 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 90 + - + 61
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8490
SELECT COUNT( * ) DIV 88 DIV 24 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT COUNT ( * ) / 88 / 24 / - COUNT ( * )
----
0

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

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

query I rowsort
SELECT 6 + - 81 - 63 AS col2
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8493
SELECT - 15, CAST( NULL AS SIGNED ) AS col1
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-8493
SELECT - 15, CAST ( NULL AS INTEGER ) AS col1
----
-15
NULL

query I rowsort
SELECT 15 + COALESCE ( + 55, - - 17 )
----
70

query I rowsort
SELECT 18 * + 90
----
1620

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT ALL + ( 37 ) DIV - + 51
----
0

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL + ( 37 ) / - + 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT 25 + + 30 * + - 79 * + 91 + + MIN( + 75 ) + + 48 + 66 * + + COUNT( * ) AS col0
----
-215456

skipif mysql # not compatible
query I rowsort label-8497
SELECT 25 + + 30 * + - 79 * + 91 + + MIN ( + 75 ) + + 48 + 66 * + + COUNT ( * ) AS col0
----
-215456

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL + NULLIF ( + 72, + COALESCE ( - 74, - 86 ) ) + CASE - 34 WHEN - COUNT( ALL - - 58 ) THEN ( + - ( - 38 ) ) / + 91 WHEN 78 - + - 26 THEN + ( - + 66 ) * + 66 + COUNT( * ) ELSE NULL END / - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL + NULLIF ( + 72, + COALESCE ( - 74, - 86 ) ) + CASE - 34 WHEN - COUNT ( ALL - - 58 ) THEN ( + - ( - 38 ) ) / + 91 WHEN 78 - + - 26 THEN + ( - + 66 ) * + 66 + COUNT ( * ) ELSE NULL END / - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT 34 + - COUNT( * ) * 7 + - 54 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8499
SELECT 34 + - COUNT ( * ) * 7 + - 54 AS col1
----
-27

query I rowsort
SELECT ALL 70 - - 74
----
144

query I rowsort
SELECT 41 * + 26
----
1066

query II rowsort
SELECT DISTINCT 30 AS col2, + 48 AS col1
----
30
48

query I rowsort
SELECT ALL 46 - - - 93 * - + ( + 81 ) AS col2
----
7579

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL - 32 * + COUNT( * ) * + - ( 16 ) AS col0
----
512

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL - 32 * + COUNT ( * ) * + - ( 16 ) AS col0
----
512

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT COUNT( DISTINCT + NULLIF ( + 91, + 17 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT COUNT ( DISTINCT + NULLIF ( + 91, + 17 ) )
----
1

query I rowsort
SELECT 31 * - 6 col1
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + + MAX( + 39 ) * + - 58 + - + 85 + + 45
----
-2302

skipif mysql # not compatible
query I rowsort label-8507
SELECT + + MAX ( + 39 ) * + - 58 + - + 85 + + 45
----
-2302

query I rowsort
SELECT DISTINCT + 19 * + + 86
----
1634

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8509
SELECT DISTINCT - COUNT( * ) - + 47 DIV COUNT( * ) - + 70 - - + 1 DIV + 81, 20 AS col0
----
-118
20

skipif mysql # not compatible
query II rowsort label-8509
SELECT DISTINCT - COUNT ( * ) - + 47 / COUNT ( * ) - + 70 - - + 1 / + 81, 20 AS col0
----
-118
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT DISTINCT + + ( + - 90 ) * + 42 + - - COUNT( * ) + COUNT( * ) * - COUNT( * )
----
-3780

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT + + ( + - 90 ) * + 42 + - - COUNT ( * ) + COUNT ( * ) * - COUNT ( * )
----
-3780

query I rowsort
SELECT DISTINCT - - ( 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8512
SELECT COUNT( * ) DIV - 60 * + 2, - 92 AS col1
----
0
-92

skipif mysql # not compatible
query II rowsort label-8512
SELECT COUNT ( * ) / - 60 * + 2, - 92 AS col1
----
0
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL - + NULLIF ( - 70, + + MIN( + + 79 ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL - + NULLIF ( - 70, + + MIN ( + + 79 ) ) AS col0
----
70

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8515
SELECT DISTINCT - 92 DIV + - 41
----
2

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT - 92 / + - 41
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8516
SELECT 21 DIV - 79 + + 70 * COUNT( * ) * - + 29 col1
----
-2030

skipif mysql # not compatible
query I rowsort label-8516
SELECT 21 / - 79 + + 70 * COUNT ( * ) * - + 29 col1
----
-2030

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT DISTINCT - 42 * - 54 * - MAX( DISTINCT 74 ) * CASE 94 WHEN ( COALESCE ( + 36, 79 + + - COUNT( * ) ) ) + - 76 + - 65 * - COUNT( * ) THEN NULL WHEN + - 92 THEN - + 45 * - 99 ELSE - 22 + - 60 + ( 80 ) END * + 14 AS col1
----
4699296

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT - 42 * - 54 * - MAX ( DISTINCT 74 ) * CASE 94 WHEN ( COALESCE ( + 36, 79 + + - COUNT ( * ) ) ) + - 76 + - 65 * - COUNT ( * ) THEN NULL WHEN + - 92 THEN - + 45 * - 99 ELSE - 22 + - 60 + ( 80 ) END * + 14 AS col1
----
4699296

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT - 34 - + COUNT( * ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-8518
SELECT - 34 - + COUNT ( * ) col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8519
SELECT ALL - COALESCE ( - CAST( + - COALESCE ( 4, - MAX( ALL + + 33 ) * + COUNT( * ) + 76 * - - 77 + + ( ( - + 20 ) ) ) AS SIGNED ), - 73, + COUNT( * ) ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL - COALESCE ( - CAST ( + - COALESCE ( 4, - MAX ( ALL + + 33 ) * + COUNT ( * ) + 76 * - - 77 + + ( ( - + 20 ) ) ) AS INTEGER ), - 73, + COUNT ( * ) ) col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8520
SELECT + 53 * - 83 + - 58 + COUNT( ALL 31 ) AS col0, CAST( NULL AS SIGNED ) AS col2
----
-4456
NULL

skipif mysql # not compatible
query II rowsort label-8520
SELECT + 53 * - 83 + - 58 + COUNT ( ALL 31 ) AS col0, CAST ( NULL AS INTEGER ) AS col2
----
-4456
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT MIN( - + 54 ) * + 33 * + - MIN( + ( + - 82 ) ) AS col0
----
-146124

skipif mysql # not compatible
query I rowsort label-8521
SELECT MIN ( - + 54 ) * + 33 * + - MIN ( + ( + - 82 ) ) AS col0
----
-146124

query I rowsort
SELECT DISTINCT - + 49 + - + ( + - 79 ) col1
----
30

query I rowsort
SELECT ALL - CASE + 60 WHEN - 51 THEN NULL ELSE + 24 END
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8524
SELECT + CASE + COALESCE ( 29, + 12, 65 ) WHEN + + SUM( CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 0 * - 78 THEN + NULLIF ( - ( + 70 ), + 18 ) * + 88 END, 63 AS col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-8524
SELECT + CASE + COALESCE ( 29, + 12, 65 ) WHEN + + SUM ( CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 0 * - 78 THEN + NULLIF ( - ( + 70 ), + 18 ) * + 88 END, 63 AS col2
----
NULL
63

onlyif mysql # aggregate syntax: 
query II rowsort label-8525
SELECT 74, 64 + + NULLIF ( + 9, 81 ) + 90 * - MIN( DISTINCT + 12 ) col2
----
74
-1007

skipif mysql # not compatible
query II rowsort label-8525
SELECT 74, 64 + + NULLIF ( + 9, 81 ) + 90 * - MIN ( DISTINCT + 12 ) col2
----
74
-1007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8526
SELECT - COUNT( * ) * - MAX( ALL - 94 ) * 61 DIV - 16 + + ( - + COUNT( * ) ) * ( + MIN( - 37 ) ) + + 37 + + 30 AS col2
----
462

skipif mysql # not compatible
query I rowsort label-8526
SELECT - COUNT ( * ) * - MAX ( ALL - 94 ) * 61 / - 16 + + ( - + COUNT ( * ) ) * ( + MIN ( - 37 ) ) + + 37 + + 30 AS col2
----
462

query I rowsort
SELECT 35 + + 22
----
57

query II rowsort
SELECT 25 AS col1, - ( 54 ) AS col0
----
25
-54

query I rowsort
SELECT + 6 * + - 67 AS col1
----
-402

query I rowsort
SELECT DISTINCT + 17 * - 41 * - 61
----
42517

onlyif mysql # aggregate syntax: 
query III rowsort label-8531
SELECT ALL COUNT( * ) AS col1, 27 - ( 90 ) AS col1, - + 55 + - - ( + 48 ) AS col2
----
1
-63
-7

skipif mysql # not compatible
query III rowsort label-8531
SELECT ALL COUNT ( * ) AS col1, 27 - ( 90 ) AS col1, - + 55 + - - ( + 48 ) AS col2
----
1
-63
-7

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

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

query III rowsort
SELECT ALL 68 AS col1, + 69 AS col0, + 80 AS col0
----
68
69
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT ALL + 90 - - + 94 + - MIN( DISTINCT 59 ) DIV - 81 AS col1
----
184

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL + 90 - - + 94 + - MIN ( DISTINCT 59 ) / - 81 AS col1
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT - MIN( + 60 ) * + - 28 AS col0
----
1680

skipif mysql # not compatible
query I rowsort label-8535
SELECT - MIN ( + 60 ) * + - 28 AS col0
----
1680

query I rowsort
SELECT DISTINCT + ( + 78 ) * - + 65
----
-5070

onlyif mysql # aggregate syntax: 
query II rowsort label-8537
SELECT ALL COUNT( * ) AS col2, 46 * - 18 * - 72 * 47
----
1
2801952

skipif mysql # not compatible
query II rowsort label-8537
SELECT ALL COUNT ( * ) AS col2, 46 * - 18 * - 72 * 47
----
1
2801952

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

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT - ( 10 ) * + COUNT ( * ) / + - 59 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8539
SELECT 6, CASE + SUM( + ( 4 ) ) WHEN + COUNT( * ) / - 29 + - 48 * + 91 THEN - + 26 + + ( COALESCE ( 33, - 37 * - 29, - + 37 + - 7 ) ) ELSE NULL END AS col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-8539
SELECT 6, CASE + SUM ( + ( 4 ) ) WHEN + COUNT ( * ) / - 29 + - 48 * + 91 THEN - + 26 + + ( COALESCE ( 33, - 37 * - 29, - + 37 + - 7 ) ) ELSE NULL END AS col1
----
6
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - MAX( + + 22 ) * - 13 + - SUM( ( CASE WHEN NOT NULL > + 39 THEN + + 79 ELSE NULL END ) ) * - + 25 / - COUNT( * ) * - - 78 / + 18 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT - MAX ( + + 22 ) * - 13 + - SUM ( ( CASE WHEN NOT NULL > + 39 THEN + + 79 ELSE NULL END ) ) * - + 25 / - COUNT ( * ) * - - 78 / + 18 col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8541
SELECT - + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS REAL ) + - 92 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL + + 89 / - - 71 / COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8543
SELECT ALL + CAST( 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL + CAST ( 20 AS INTEGER )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8544
SELECT DISTINCT - COALESCE ( + CASE 95 WHEN + + 16 DIV + COUNT( ALL 17 ) + - 74 + - + COUNT( * ) + 16 THEN COUNT( * ) WHEN CAST( - - 87 AS SIGNED ) THEN NULL ELSE NULL END, - SUM( DISTINCT 8 ) DIV + 76 ) * + 17 + + + SUM( - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT - COALESCE ( + CASE 95 WHEN + + 16 / + COUNT ( ALL 17 ) + - 74 + - + COUNT ( * ) + 16 THEN COUNT ( * ) WHEN CAST ( - - 87 AS INTEGER ) THEN NULL ELSE NULL END, - SUM ( DISTINCT 8 ) / + 76 ) * + 17 + + + SUM ( - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT - - 1 * COUNT( * ) * - COUNT( * ) * - 59 * + 95
----
5605

skipif mysql # not compatible
query I rowsort label-8545
SELECT - - 1 * COUNT ( * ) * - COUNT ( * ) * - 59 * + 95
----
5605

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT - SUM( - 92 ) * - 10 col2
----
-920

skipif mysql # not compatible
query I rowsort label-8546
SELECT - SUM ( - 92 ) * - 10 col2
----
-920

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL + + MAX( 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL + + MAX ( 20 ) AS col1
----
20

query I rowsort
SELECT DISTINCT + - 30 * - + 52 + + + 86
----
1646

query II rowsort
SELECT 2 AS col2, 0 AS col0
----
2
0

query I rowsort
SELECT + 68 * 60 + + - 60
----
4020

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

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

query I rowsort
SELECT DISTINCT - 48 * 68 + CASE - + 9 WHEN - 72 THEN NULL WHEN - + 7 THEN NULL ELSE 51 END * + 34
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + 89 * - - SUM( - 67 )
----
-5963

skipif mysql # not compatible
query I rowsort label-8554
SELECT + 89 * - - SUM ( - 67 )
----
-5963

query I rowsort
SELECT ALL 1 * + 16
----
16

query I rowsort
SELECT + 7 - + ( + ( + CASE 97 WHEN + - 29 THEN - - ( + 29 ) + - 71 - - 50 * - - 68 + + + COALESCE ( + 98, + AVG ( - 79 ) ) + 30 * - 42 ELSE NULL END ) ) * + + 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8557
SELECT MIN( + 77 ) AS col0, - 4 + - + 22 - - 19
----
77
-7

skipif mysql # not compatible
query II rowsort label-8557
SELECT MIN ( + 77 ) AS col0, - 4 + - + 22 - - 19
----
77
-7

query I rowsort
SELECT DISTINCT + 33 * + 90 * - 79 - - 74
----
-234556

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT COUNT( * ) * 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT COUNT ( * ) * 60 AS col0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8560
SELECT ALL CASE - COUNT( * ) WHEN - 41 THEN NULL WHEN + + 76 * - - 8 THEN NULL WHEN + + 34 THEN NULL ELSE 11 END AS col1, COUNT( * ) + - 82 + - - 88 + - 5 + - - 26 + ( + - 28 ) * - COUNT( * ) * 74 * 46
----
11
95340

skipif mysql # not compatible
query II rowsort label-8560
SELECT ALL CASE - COUNT ( * ) WHEN - 41 THEN NULL WHEN + + 76 * - - 8 THEN NULL WHEN + + 34 THEN NULL ELSE 11 END AS col1, COUNT ( * ) + - 82 + - - 88 + - 5 + - - 26 + ( + - 28 ) * - COUNT ( * ) * 74 * 46
----
11
95340

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT SUM( - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-8561
SELECT SUM ( - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT + 23 + - - NULLIF ( COUNT( * ), 36 * - SUM( ALL - - 93 ) + + - 37 )
----
24

skipif mysql # not compatible
query I rowsort label-8562
SELECT + 23 + - - NULLIF ( COUNT ( * ), 36 * - SUM ( ALL - - 93 ) + + - 37 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL COUNT( ALL + 98 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL COUNT ( ALL + 98 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT + COUNT( * ) + - 38 * - COUNT( * ) * - 25 AS col1
----
-949

skipif mysql # not compatible
query I rowsort label-8564
SELECT + COUNT ( * ) + - 38 * - COUNT ( * ) * - 25 AS col1
----
-949

query I rowsort
SELECT ALL NULLIF ( + ( CASE + 94 WHEN - 9 THEN NULL WHEN + 61 + 54 THEN - ( + 29 ) ELSE 99 END ), 15 ) AS col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8566
SELECT + 93 + + MIN( DISTINCT 11 ) / + + CASE - 84 WHEN - COUNT( * ) THEN + + 59 * + 59 WHEN - ( + COUNT( * ) ) * - 31 - - AVG ( + ( - 60 ) ) / COUNT( + - 92 ) / + - 84 THEN NULL WHEN + - NULLIF ( + - CASE 15 WHEN - + 3 THEN - 56 / + - 11 END, - 11 ) THEN - + ( 76 ) * 44 * - 32 END * ( COUNT( DISTINCT ( ( - CAST( 55 AS SIGNED ) ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT + 93 + + MIN ( DISTINCT 11 ) / + + CASE - 84 WHEN - COUNT ( * ) THEN + + 59 * + 59 WHEN - ( + COUNT ( * ) ) * - 31 - - AVG ( + ( - 60 ) ) / COUNT ( + - 92 ) / + - 84 THEN NULL WHEN + - NULLIF ( + - CASE 15 WHEN - + 3 THEN - 56 / + - 11 END, - 11 ) THEN - + ( 76 ) * 44 * - 32 END * ( COUNT ( DISTINCT ( ( - CAST ( 55 AS INTEGER ) ) ) ) ) AS col0
----
NULL

query I rowsort
SELECT + + 80 + - ( - - 42 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8568
SELECT DISTINCT 65 DIV - COUNT( * ) AS col2, 47 * - + 23
----
-65
-1081

skipif mysql # not compatible
query II rowsort label-8568
SELECT DISTINCT 65 / - COUNT ( * ) AS col2, 47 * - + 23
----
-65
-1081

query I rowsort
SELECT DISTINCT + + 12 * + - 82 * + - 51 + - + NULLIF ( - 85, - 38 + 40 ) * + 18 * + 52
----
129744

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT - ( + 9 ) DIV + 4
----
-2

skipif mysql # not compatible
query I rowsort label-8570
SELECT - ( + 9 ) / + 4
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT + CAST( - 98 AS SIGNED ) * - - 6 - - 70
----
-518

skipif mysql # not compatible
query I rowsort label-8571
SELECT + CAST ( - 98 AS INTEGER ) * - - 6 - - 70
----
-518

onlyif mysql # DIV for integer division: 
query I rowsort label-8572
SELECT - 23 + - 34 + + 56 DIV 30
----
-56

skipif mysql # not compatible
query I rowsort label-8572
SELECT - 23 + - 34 + + 56 / 30
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT - COUNT( * ) + + 21 * - + 99 AS col0
----
-2080

skipif mysql # not compatible
query I rowsort label-8573
SELECT - COUNT ( * ) + + 21 * - + 99 AS col0
----
-2080

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT + ( - + 26 ) DIV + ( - 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8575
SELECT + ( - + 26 ) / + ( - 17 ) AS col1
----
1

query I rowsort
SELECT 64 * + 84 + - 63 AS col0
----
5313

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

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL - COUNT ( * ) / - - 41 + COUNT ( * ) * + - 5 AS col1
----
-5

query I rowsort
SELECT ALL + ( - 57 ) * + 33
----
-1881

onlyif mysql # DIV for integer division: 
query I rowsort label-8579
SELECT ALL + 67 DIV 15 + + 34 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + 67 / 15 + + 34 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT COALESCE ( - + 23, - COUNT( ALL - - 83 ) * + 7 - + - CAST( - 90 AS SIGNED ), - 72, COUNT( * ) * + COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-8580
SELECT COALESCE ( - + 23, - COUNT ( ALL - - 83 ) * + 7 - + - CAST ( - 90 AS INTEGER ), - 72, COUNT ( * ) * + COUNT ( * ) )
----
-23

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

skipif mysql # not compatible
query II rowsort label-8581
SELECT - + 29 * COUNT ( * ) col2, COUNT ( * )
----
-29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL - COALESCE ( 56, - ( - 55 ) ) * - NULLIF ( + 85, + + 64 + + 27 + + 99 + + - 16 + - 61 * - COUNT( * ) * + - 52 + + 29 * - + 78 )
----
4760

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL - COALESCE ( 56, - ( - 55 ) ) * - NULLIF ( + 85, + + 64 + + 27 + + 99 + + - 16 + - 61 * - COUNT ( * ) * + - 52 + + 29 * - + 78 )
----
4760

query I rowsort
SELECT + 86 * - 22 * - 74 + + ( 54 )
----
140062

query I rowsort
SELECT + 66 * - ( - + 90 ) col0
----
5940

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT DISTINCT - SUM( ALL 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT - SUM ( ALL 55 )
----
-55

query I rowsort
SELECT 26 * - 48 + - + 54 * + - 22 col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8587
SELECT DISTINCT - 90 - + - 87 + - + COUNT( * ) / + - 23 * - + CAST( NULL AS SIGNED ) + + 74, + 78 + + 42 col2
----
NULL
120

skipif mysql # not compatible
query II rowsort label-8587
SELECT DISTINCT - 90 - + - 87 + - + COUNT ( * ) / + - 23 * - + CAST ( NULL AS INTEGER ) + + 74, + 78 + + 42 col2
----
NULL
120

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

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

query II rowsort
SELECT 44 AS col0, - 32 * + 75 AS col2
----
44
-2400

onlyif mysql # aggregate syntax: 
query II rowsort label-8590
SELECT ALL - 99 AS col0, - COUNT( DISTINCT + + 21 )
----
-99
-1

skipif mysql # not compatible
query II rowsort label-8590
SELECT ALL - 99 AS col0, - COUNT ( DISTINCT + + 21 )
----
-99
-1

query I rowsort
SELECT ALL - CASE + 48 WHEN 98 / - 13 + + 58 + + 58 - - AVG ( + 78 ) THEN + 63 END
----
NULL

query I rowsort
SELECT DISTINCT - ( - 23 ) AS col2
----
23

query I rowsort
SELECT 18 + + 59 col0
----
77

query I rowsort
SELECT + 72 * - + ( + 65 ) + 16 * - 15
----
-4920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT 34 * 16 * CAST( + 12 AS SIGNED ) AS col1
----
6528

skipif mysql # not compatible
query I rowsort label-8595
SELECT 34 * 16 * CAST ( + 12 AS INTEGER ) AS col1
----
6528

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8597
SELECT 87 col1, 61 * ( - + CAST( NULL AS SIGNED ) ) + - COUNT( * ) + - 57 + 43 AS col1
----
87
NULL

skipif mysql # not compatible
query II rowsort label-8597
SELECT 87 col1, 61 * ( - + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + - 57 + 43 AS col1
----
87
NULL

query I rowsort
SELECT 59 * - + 47 * - - 7
----
-19411

query I rowsort
SELECT ALL 52 + + + 8
----
60

query II rowsort
SELECT - 24 col1, ( - 2 )
----
-24
-2

query II rowsort
SELECT - 30, 53 AS col2
----
-30
53

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

skipif mysql # not compatible
query II rowsort label-8602
SELECT - + COUNT ( * ) col1, 62 col1
----
-1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT MIN( ALL + 54 ) col2
----
54

skipif mysql # not compatible
query I rowsort label-8603
SELECT MIN ( ALL + 54 ) col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8604
SELECT CASE CASE - + 39 WHEN 93 THEN + - 79 / - 56 * - - CAST( NULL AS DECIMAL ) END WHEN - COUNT( * ) THEN NULL WHEN - ( - 61 ) - - - NULLIF ( - + 60, 69 ) / + COUNT( * ) + + 66 THEN NULL ELSE - + COUNT( ALL - - 93 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-8604
SELECT CASE CASE - + 39 WHEN 93 THEN + - 79 / - 56 * - - CAST ( NULL AS REAL ) END WHEN - COUNT ( * ) THEN NULL WHEN - ( - 61 ) - - - NULLIF ( - + 60, 69 ) / + COUNT ( * ) + + 66 THEN NULL ELSE - + COUNT ( ALL - - 93 ) END
----
-1

query I rowsort
SELECT 19 - + - 52 AS col1
----
71

query II rowsort
SELECT DISTINCT 59 AS col2, COALESCE ( 98, - 89, + 22 )
----
59
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT DISTINCT - COUNT( 69 ) * + 55 + - - 5 - + 1 + 54 * - COALESCE ( - - 76, - COUNT( * ) * + ( + - COUNT( * ) ), + - 61 + + - 54 ) * + MIN( ALL + 49 ) AS col1
----
-201147

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT - COUNT ( 69 ) * + 55 + - - 5 - + 1 + 54 * - COALESCE ( - - 76, - COUNT ( * ) * + ( + - COUNT ( * ) ), + - 61 + + - 54 ) * + MIN ( ALL + 49 ) AS col1
----
-201147

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT + 23 * - ( COUNT( DISTINCT - - 83 ) ) + + 47 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8608
SELECT + 23 * - ( COUNT ( DISTINCT - - 83 ) ) + + 47 AS col2
----
24

query I rowsort
SELECT DISTINCT - - 42 * + - 83 AS col2
----
-3486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT + CASE - + 31 WHEN - 4 / + COALESCE ( 2, - 65 ) * + + 11 + - 80 * + 82 + + 81 THEN + + CAST( NULL AS SIGNED ) * + - 1 + + - ( - ( - 36 ) ) END / - 50 + - + AVG ( ALL + - 97 ) * + COUNT( * ) - ( 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT + CASE - + 31 WHEN - 4 / + COALESCE ( 2, - 65 ) * + + 11 + - 80 * + 82 + + 81 THEN + + CAST ( NULL AS INTEGER ) * + - 1 + + - ( - ( - 36 ) ) END / - 50 + - + AVG ( ALL + - 97 ) * + COUNT ( * ) - ( 1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT - - CASE + 26 WHEN - 47 + + - 46 - 45 - - - 24 THEN + - COUNT( * ) * 79 ELSE NULL END * 35 - - 36 + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT - - CASE + 26 WHEN - 47 + + - 46 - 45 - - - 24 THEN + - COUNT ( * ) * 79 ELSE NULL END * 35 - - 36 + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8612
SELECT + 38 AS col1, - COALESCE ( 86, COUNT( * ) + + 30 + - CASE + 66 WHEN + SUM( 46 ) * COUNT( - + 60 ) THEN - 78 - + 31 END, + COUNT( DISTINCT - 50 ) + 91 * - 73 ) + + SUM( 40 ) - + 47 * - 21 AS col2
----
38
941

skipif mysql # not compatible
query II rowsort label-8612
SELECT + 38 AS col1, - COALESCE ( 86, COUNT ( * ) + + 30 + - CASE + 66 WHEN + SUM ( 46 ) * COUNT ( - + 60 ) THEN - 78 - + 31 END, + COUNT ( DISTINCT - 50 ) + 91 * - 73 ) + + SUM ( 40 ) - + 47 * - 21 AS col2
----
38
941

onlyif mysql # aggregate syntax: 
query II rowsort label-8613
SELECT + 99 AS col1, NULLIF ( SUM( DISTINCT 82 ), 51 / 18 * + 45 + - 12 )
----
99
82

skipif mysql # not compatible
query II rowsort label-8613
SELECT + 99 AS col1, NULLIF ( SUM ( DISTINCT 82 ), 51 / 18 * + 45 + - 12 )
----
99
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL - SUM( DISTINCT + - 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL - SUM ( DISTINCT + - 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8615
SELECT - COUNT( * ) DIV COUNT( * ) + CASE - - 24 WHEN 31 DIV + + 87 THEN NULL ELSE 16 DIV + 4 END * - COALESCE ( + 93, + 71 DIV + 37, - 1 * + 65 DIV - 30 - - 3 ) AS col2
----
-373

skipif mysql # not compatible
query I rowsort label-8615
SELECT - COUNT ( * ) / COUNT ( * ) + CASE - - 24 WHEN 31 / + + 87 THEN NULL ELSE 16 / + 4 END * - COALESCE ( + 93, + 71 / + 37, - 1 * + 65 / - 30 - - 3 ) AS col2
----
-373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8616
SELECT ALL - CAST( - + 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL - CAST ( - + 80 AS INTEGER )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8617
SELECT DISTINCT + 49 DIV + 90 * - ( + + 29 ) * - 45 + - + COUNT( * ) * - CAST( + COUNT( * ) AS SIGNED ) + + ( + - 32 ) * + - ( - - COALESCE ( 31, + - ( - - 3 ) - - 23, 9 + 56 * - - 66 ) ) AS col0, 81 AS col2
----
993
81

skipif mysql # not compatible
query II rowsort label-8617
SELECT DISTINCT + 49 / + 90 * - ( + + 29 ) * - 45 + - + COUNT ( * ) * - CAST ( + COUNT ( * ) AS INTEGER ) + + ( + - 32 ) * + - ( - - COALESCE ( 31, + - ( - - 3 ) - - 23, 9 + 56 * - - 66 ) ) AS col0, 81 AS col2
----
993
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8618
SELECT ALL - MAX( ALL + - 78 ) col0, COUNT( * )
----
78
1

skipif mysql # not compatible
query II rowsort label-8618
SELECT ALL - MAX ( ALL + - 78 ) col0, COUNT ( * )
----
78
1

query I rowsort
SELECT DISTINCT - 86 * ( + 9 ) AS col0
----
-774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8620
SELECT NULLIF ( + COUNT( * ), 91 ) + + + CAST( NULL AS SIGNED ) / + ( + + 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT NULLIF ( + COUNT ( * ), 91 ) + + + CAST ( NULL AS INTEGER ) / + ( + + 13 ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT + ( 45 ) * + NULLIF ( - 27, CAST( NULL AS SIGNED ) ) + - + 73
----
-1288

skipif mysql # not compatible
query I rowsort label-8622
SELECT + ( 45 ) * + NULLIF ( - 27, CAST ( NULL AS INTEGER ) ) + - + 73
----
-1288

onlyif mysql # aggregate syntax: 
query II rowsort label-8623
SELECT DISTINCT - 86 * COUNT( * ) AS col1, 5
----
-86
5

skipif mysql # not compatible
query II rowsort label-8623
SELECT DISTINCT - 86 * COUNT ( * ) AS col1, 5
----
-86
5

query I rowsort
SELECT DISTINCT - 87 + + 92 * - - 41
----
3685

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8625
SELECT DISTINCT + 14 + CAST( 17 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT + 14 + CAST ( 17 AS INTEGER )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8626
SELECT 49 + - COUNT( * ) AS col0, - 62 AS col1
----
48
-62

skipif mysql # not compatible
query II rowsort label-8626
SELECT 49 + - COUNT ( * ) AS col0, - 62 AS col1
----
48
-62

query I rowsort
SELECT + COALESCE ( 22, - + 53 ) AS col0
----
22

query I rowsort
SELECT + 5 + 87 col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT DISTINCT 84 DIV + 92 * NULLIF ( - + 80, 19 )
----
0

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT 84 / + 92 * NULLIF ( - + 80, 19 )
----
0

query I rowsort
SELECT 42 + - 25
----
17

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

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

query I rowsort
SELECT ALL - 26 * 42 AS col2
----
-1092

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8635
SELECT DISTINCT 73 - 89 AS col1, - 38 DIV + 32 col0
----
-16
-1

skipif mysql # not compatible
query II rowsort label-8635
SELECT DISTINCT 73 - 89 AS col1, - 38 / + 32 col0
----
-16
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8636
SELECT + COUNT( * ) + 34 AS col0, - 84 * + CAST( NULL AS SIGNED )
----
35
NULL

skipif mysql # not compatible
query II rowsort label-8636
SELECT + COUNT ( * ) + 34 AS col0, - 84 * + CAST ( NULL AS INTEGER )
----
35
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8637
SELECT ALL 91 * - + 63 AS col2, + ( - - 46 ) * - + 84 * - ( - + COALESCE ( + - ( - + 0 ), - CAST( - NULLIF ( 11, 19 + + 44 ) AS SIGNED ), 75 * 96 * COUNT( + - 78 ) * + + 83 DIV + - 30 * ( + 89 ) DIV + 43 + - 94 ) )
----
-5733
0

skipif mysql # not compatible
query II rowsort label-8637
SELECT ALL 91 * - + 63 AS col2, + ( - - 46 ) * - + 84 * - ( - + COALESCE ( + - ( - + 0 ), - CAST ( - NULLIF ( 11, 19 + + 44 ) AS INTEGER ), 75 * 96 * COUNT ( + - 78 ) * + + 83 / + - 30 * ( + 89 ) / + 43 + - 94 ) )
----
-5733
0

query I rowsort
SELECT + - 21 + 37 - - 38 AS col2
----
54

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

skipif mysql # not compatible
query I rowsort label-8639
SELECT DISTINCT + - COALESCE ( COUNT ( * ), 34 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT + MAX( - 88 ) * + + 87 - - ( - 77 )
----
-7733

skipif mysql # not compatible
query I rowsort label-8640
SELECT + MAX ( - 88 ) * + + 87 - - ( - 77 )
----
-7733

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

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

query I rowsort
SELECT + 60 * - 27 AS col0
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT + CASE - 56 WHEN - + COUNT( * ) THEN NULL WHEN + CASE + COUNT( * ) WHEN - - 95 * - - SUM( 88 ) / + 54 - - 69 + - - 73 - - 23 * - 60 * 33 THEN 53 - + NULLIF ( ( 18 ), - COUNT( * ) * - + 64 + + 90 / + MIN( ALL + - 42 ) + - SUM( 74 ) ) * 50 / + 22 END THEN + ( + 0 ) + + - COUNT( DISTINCT 32 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8643
SELECT + CASE - 56 WHEN - + COUNT ( * ) THEN NULL WHEN + CASE + COUNT ( * ) WHEN - - 95 * - - SUM ( 88 ) / + 54 - - 69 + - - 73 - - 23 * - 60 * 33 THEN 53 - + NULLIF ( ( 18 ), - COUNT ( * ) * - + 64 + + 90 / + MIN ( ALL + - 42 ) + - SUM ( 74 ) ) * 50 / + 22 END THEN + ( + 0 ) + + - COUNT ( DISTINCT 32 ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8644
SELECT DISTINCT COUNT( - 86 ) DIV 20 + 56 + + 65 col2
----
121

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT COUNT ( - 86 ) / 20 + 56 + + 65 col2
----
121

query I rowsort
SELECT + 7 - - 5 * - 81 AS col0
----
-398

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8646
SELECT ALL COALESCE ( - 92, + - 90, + ( + 55 ) ) * - 10 * - COALESCE ( - 42, 69 + COALESCE ( - 88, - - 88, 18 ) * + COUNT( * ) DIV - 17, - - 59 ) * + 81 col2
----
3129840

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL COALESCE ( - 92, + - 90, + ( + 55 ) ) * - 10 * - COALESCE ( - 42, 69 + COALESCE ( - 88, - - 88, 18 ) * + COUNT ( * ) / - 17, - - 59 ) * + 81 col2
----
3129840

onlyif mysql # DIV for integer division: 
query I rowsort label-8647
SELECT + 26 DIV + 94 + + 58 + + 49
----
107

skipif mysql # not compatible
query I rowsort label-8647
SELECT + 26 / + 94 + + 58 + + 49
----
107

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

skipif mysql # not compatible
query I rowsort label-8648
SELECT + NULLIF ( - COUNT ( * ), - 96 )
----
-1

query I rowsort
SELECT NULLIF ( 47, - 26 ) AS col1
----
47

query I rowsort
SELECT ALL 45 * 75 + - - 26 * + 90
----
5715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8651
SELECT + 53 - CASE - MAX( 25 ) WHEN + - 30 THEN NULL ELSE - 3 * - - 92 DIV 72 * - 2 END
----
47

skipif mysql # not compatible
query I rowsort label-8651
SELECT + 53 - CASE - MAX ( 25 ) WHEN + - 30 THEN NULL ELSE - 3 * - - 92 / 72 * - 2 END
----
47

query I rowsort
SELECT DISTINCT - 30 * - 70 + - 24 + 22 + ( 34 ) * + - 38
----
806

onlyif mysql # DIV for integer division: 
query I rowsort label-8653
SELECT - COALESCE ( + + 67, - ( + 67 ) ) DIV + 63 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8653
SELECT - COALESCE ( + + 67, - ( + 67 ) ) / + 63 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL 1 * 97 * COUNT( * ) + - 13 + - MAX( DISTINCT + - 26 ) - 77
----
33

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL 1 * 97 * COUNT ( * ) + - 13 + - MAX ( DISTINCT + - 26 ) - 77
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8655
SELECT DISTINCT + 28 DIV COUNT( - 95 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT + 28 / COUNT ( - 95 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - COUNT( * ) + - + 32
----
-33

skipif mysql # not compatible
query I rowsort label-8656
SELECT - COUNT ( * ) + - + 32
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8657
SELECT COUNT( * ) col1, 80 + + + 43 + COUNT( * ) + + + 65
----
1
189

skipif mysql # not compatible
query II rowsort label-8657
SELECT COUNT ( * ) col1, 80 + + + 43 + COUNT ( * ) + + + 65
----
1
189

query I rowsort
SELECT DISTINCT - 56 + + 25 + 13
----
-18

onlyif mysql # aggregate syntax: 
query III rowsort label-8659
SELECT - - 80, SUM( ALL 56 ) AS col0, 13 AS col0
----
80
56
13

skipif mysql # not compatible
query III rowsort label-8659
SELECT - - 80, SUM ( ALL 56 ) AS col0, 13 AS col0
----
80
56
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL - + MAX( DISTINCT + 80 ) + - 14 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL - + MAX ( DISTINCT + 80 ) + - 14 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT - + 41 * + - 4 * - COUNT( * )
----
-164

skipif mysql # not compatible
query I rowsort label-8662
SELECT - + 41 * + - 4 * - COUNT ( * )
----
-164

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

query I rowsort
SELECT ALL + 5 - + 81 col0
----
-76

query II rowsort
SELECT 12 col0, - 89 col2
----
12
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8666
SELECT + 5 DIV 44 DIV - - COUNT( * ) + - + 21 * - COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8666
SELECT + 5 / 44 / - - COUNT ( * ) + - + 21 * - COUNT ( * ) AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8667
SELECT ALL - CASE 20 WHEN - CAST( - 50 AS SIGNED ) THEN + 45 + CAST( NULL AS SIGNED ) WHEN + 40 * + MAX( ALL + + 58 ) * - - COALESCE ( 67, - + 63, - 21 + + AVG ( 40 ) ) * 5 + MAX( ALL 59 ) * + 33 + - 24 * - ( - CAST( NULL AS SIGNED ) ) THEN - 2 + + 18 * 42 * - ( 61 ) + - + 97 - - SUM( + - 36 ) WHEN - COUNT( * ) * COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL - CASE 20 WHEN - CAST ( - 50 AS INTEGER ) THEN + 45 + CAST ( NULL AS INTEGER ) WHEN + 40 * + MAX ( ALL + + 58 ) * - - COALESCE ( 67, - + 63, - 21 + + AVG ( 40 ) ) * 5 + MAX ( ALL 59 ) * + 33 + - 24 * - ( - CAST ( NULL AS INTEGER ) ) THEN - 2 + + 18 * 42 * - ( 61 ) + - + 97 - - SUM ( + - 36 ) WHEN - COUNT ( * ) * COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8668
SELECT ALL 2 DIV - + 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL 2 / - + 16 AS col1
----
0

query I rowsort
SELECT - + 64 - - 71 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT ALL - MIN( + 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL - MIN ( + 14 ) AS col0
----
-14

query I rowsort
SELECT - - CASE - 52 WHEN COALESCE ( + + 39, AVG ( - + 23 ) + 77 * 4 ) THEN - 99 END - - 36 * - 82 AS col0
----
NULL

query II rowsort
SELECT ALL - 38, + 91 col0
----
-38
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8673
SELECT - + COUNT( DISTINCT CAST( - 12 AS SIGNED ) ), - 78 * - ( - 67 ) * + 65 * COUNT( * ) + 3 DIV ( COUNT( * ) ) AS col0
----
-1
-339687

skipif mysql # not compatible
query II rowsort label-8673
SELECT - + COUNT ( DISTINCT CAST ( - 12 AS INTEGER ) ), - 78 * - ( - 67 ) * + 65 * COUNT ( * ) + 3 / ( COUNT ( * ) ) AS col0
----
-1
-339687

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8674
SELECT DISTINCT - 26 col2, + CAST( + - 12 AS SIGNED ) * - 15 AS col1
----
-26
180

skipif mysql # not compatible
query II rowsort label-8674
SELECT DISTINCT - 26 col2, + CAST ( + - 12 AS INTEGER ) * - 15 AS col1
----
-26
180

query I rowsort
SELECT ALL + - 16 * - 49 * - + 39
----
-30576

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT ALL COUNT( * ) * 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL COUNT ( * ) * 85 AS col0
----
85

onlyif mysql # DIV for integer division: 
query II rowsort label-8678
SELECT - 4 DIV + 95 + - + 53 * - 8 AS col2, 81
----
424
81

skipif mysql # not compatible
query II rowsort label-8678
SELECT - 4 / + 95 + - + 53 * - 8 AS col2, 81
----
424
81

query I rowsort
SELECT - 83 + - 47
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT + 22 DIV 45 - 9
----
-9

skipif mysql # not compatible
query I rowsort label-8680
SELECT + 22 / 45 - 9
----
-9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT ALL 41 DIV + + 46 + + 61 + + + 61
----
122

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL 41 / + + 46 + + 61 + + + 61
----
122

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8683
SELECT CAST( CASE 80 WHEN COUNT( * ) / ( COUNT( * ) ) THEN - 61 WHEN - 68 + + + 39 - + + 5 THEN + - CASE - 8 WHEN - 11 + - - 2 THEN + ( - + 70 ) END END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT CAST ( CASE 80 WHEN COUNT ( * ) / ( COUNT ( * ) ) THEN - 61 WHEN - 68 + + + 39 - + + 5 THEN + - CASE - 8 WHEN - 11 + - - 2 THEN + ( - + 70 ) END END AS REAL )
----
NULL

query II rowsort
SELECT ALL + 79 AS col0, NULLIF ( + 34, + 49 )
----
79
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT + 59 * - + 8 * + NULLIF ( + 26, + 8 ) + - + 45 + - 16 + COUNT( * ) + + ( - COUNT( * ) ) AS col0
----
-12333

skipif mysql # not compatible
query I rowsort label-8685
SELECT + 59 * - + 8 * + NULLIF ( + 26, + 8 ) + - + 45 + - 16 + COUNT ( * ) + + ( - COUNT ( * ) ) AS col0
----
-12333

onlyif mysql # DIV for integer division: 
query I rowsort label-8686
SELECT ALL + 3 DIV 56 + + + 8
----
8

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL + 3 / 56 + + + 8
----
8

query I rowsort
SELECT ALL - 19 * - 17 + - - 84 AS col0
----
407

query I rowsort
SELECT ALL 29 * 37
----
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT + COUNT( * ) + ( - + 20 ) + - ( + 21 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8689
SELECT + COUNT ( * ) + ( - + 20 ) + - ( + 21 ) AS col2
----
-40

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

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

query I rowsort
SELECT DISTINCT 64 * 72
----
4608

query I rowsort
SELECT ALL 65 * + 15 + + - 25
----
950

onlyif mysql # aggregate syntax: 
query II rowsort label-8693
SELECT + 86, + COUNT( * ) - 7 AS col1
----
86
-6

skipif mysql # not compatible
query II rowsort label-8693
SELECT + 86, + COUNT ( * ) - 7 AS col1
----
86
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT + 83 * 57 - - 57 + - CAST( + + 57 AS SIGNED ) * - NULLIF ( - 97, + ( 10 ) ) AS col1
----
-741

skipif mysql # not compatible
query I rowsort label-8694
SELECT + 83 * 57 - - 57 + - CAST ( + + 57 AS INTEGER ) * - NULLIF ( - 97, + ( 10 ) ) AS col1
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT + - COUNT( * ) + - 73 * + 63
----
-4600

skipif mysql # not compatible
query I rowsort label-8695
SELECT + - COUNT ( * ) + - 73 * + 63
----
-4600

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT ALL 50 DIV + - 59 col2
----
0

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL 50 / + - 59 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8697
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) - - 83 + + 60 * + COUNT( + 73 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - - 83 + + 60 * + COUNT ( + 73 ) col1
----
NULL

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

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

query II rowsort
SELECT 40 + - 97, 23 AS col1
----
-57
23

query II rowsort
SELECT 45 AS col0, 34 AS col0
----
45
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8701
SELECT + CAST( NULL AS SIGNED ) + + + 4 * NULLIF ( - 56, - 90 - + 98 * + CAST( - + 37 AS SIGNED ) ) + 68 * - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT + CAST ( NULL AS INTEGER ) + + + 4 * NULLIF ( - 56, - 90 - + 98 * + CAST ( - + 37 AS INTEGER ) ) + 68 * - 36 AS col2
----
NULL

query II rowsort
SELECT ALL - 33, 8 AS col0
----
-33
8

query II rowsort
SELECT DISTINCT 51, 33 * 38 AS col0
----
51
1254

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT + 83 + + 81 + + + 35 * 6 * - COUNT( * ) - 42
----
-88

skipif mysql # not compatible
query I rowsort label-8704
SELECT + 83 + + 81 + + + 35 * 6 * - COUNT ( * ) - 42
----
-88

query I rowsort
SELECT DISTINCT + 80 * + 10 + - 80 - 83 * 1
----
637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8706
SELECT 12 + + 78 + - - NULLIF ( + COUNT( * ), CAST( NULL AS SIGNED ) ) * + COALESCE ( + + 27, 99 + - 55, + + 71 ) DIV - 98
----
90

skipif mysql # not compatible
query I rowsort label-8706
SELECT 12 + + 78 + - - NULLIF ( + COUNT ( * ), CAST ( NULL AS INTEGER ) ) * + COALESCE ( + + 27, 99 + - 55, + + 71 ) / - 98
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8707
SELECT ALL - 18 + + CAST( NULL AS SIGNED ) - + CASE - 8 WHEN + 27 + CASE - ( - + 43 ) WHEN + 68 THEN NULL WHEN + + SUM( + - 16 ) THEN NULL WHEN - 9 THEN - COUNT( * ) / SUM( ALL 4 ) ELSE NULL END + - - 97 THEN + - 55 + - SUM( DISTINCT - 97 ) WHEN - COUNT( * ) + + 42 * - COUNT( * ) * - SUM( - + 50 ) THEN NULL END * MAX( + 15 ) * + CASE + 19 WHEN - COUNT( * ) THEN NULL WHEN - - 90 THEN - 74 ELSE NULL END + + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL - 18 + + CAST ( NULL AS INTEGER ) - + CASE - 8 WHEN + 27 + CASE - ( - + 43 ) WHEN + 68 THEN NULL WHEN + + SUM ( + - 16 ) THEN NULL WHEN - 9 THEN - COUNT ( * ) / SUM ( ALL 4 ) ELSE NULL END + - - 97 THEN + - 55 + - SUM ( DISTINCT - 97 ) WHEN - COUNT ( * ) + + 42 * - COUNT ( * ) * - SUM ( - + 50 ) THEN NULL END * MAX ( + 15 ) * + CASE + 19 WHEN - COUNT ( * ) THEN NULL WHEN - - 90 THEN - 74 ELSE NULL END + + 18 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT 28 * - 5 * - + 42 / CASE 1 WHEN - - 39 THEN NULL WHEN 12 THEN - 19 + - CAST( NULL AS SIGNED ) WHEN + - 94 THEN + - AVG ( - + CASE 68 WHEN - - 31 THEN NULL ELSE - 46 * - - ( - 97 ) END ) * 12 * + - 48 - + 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT 28 * - 5 * - + 42 / CASE 1 WHEN - - 39 THEN NULL WHEN 12 THEN - 19 + - CAST ( NULL AS INTEGER ) WHEN + - 94 THEN + - AVG ( - + CASE 68 WHEN - - 31 THEN NULL ELSE - 46 * - - ( - 97 ) END ) * 12 * + - 48 - + 82 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-8709
SELECT DISTINCT - 27 DIV MIN( ALL + NULLIF ( - 51, 22 * - - 39 * 62 ) ) AS col1, NULLIF ( ( CASE + 98 WHEN - ( + CAST( NULL AS DECIMAL ) ) DIV COUNT( * ) THEN + 34 * 16 * AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + + 6 DIV - MAX( DISTINCT + + 55 ) WHEN + + 65 + + 78 DIV 83 + + + 16 * + 27 THEN NULL ELSE NULL END ), + - 49 DIV + 31 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8709
SELECT DISTINCT - 27 / MIN ( ALL + NULLIF ( - 51, 22 * - - 39 * 62 ) ) AS col1, NULLIF ( ( CASE + 98 WHEN - ( + CAST ( NULL AS REAL ) ) / COUNT ( * ) THEN + 34 * 16 * AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 6 / - MAX ( DISTINCT + + 55 ) WHEN + + 65 + + 78 / 83 + + + 16 * + 27 THEN NULL ELSE NULL END ), + - 49 / + 31 )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT - SUM( ALL 21 ) + - MIN( - 69 ) col1
----
48

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT - SUM ( ALL 21 ) + - MIN ( - 69 ) col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8711
SELECT DISTINCT + 0 + 11 + + - NULLIF ( + + 43, - 13 ) - - CASE + COUNT( * ) WHEN - COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) + - 79 + + - 1 THEN 20 WHEN 90 - - - 7 * 46 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT + 0 + 11 + + - NULLIF ( + + 43, - 13 ) - - CASE + COUNT ( * ) WHEN - COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) + - 79 + + - 1 THEN 20 WHEN 90 - - - 7 * 46 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8712
SELECT 59 + - COUNT( * ) * + CASE + ( 90 ) WHEN + + COUNT( * ) THEN 11 - + 48 * + 71 WHEN - - ( 64 ) * + COUNT( * ) - + 8 THEN + 99 * 77 - - - 47 / + - 85 END AS col1, - 77
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-8712
SELECT 59 + - COUNT ( * ) * + CASE + ( 90 ) WHEN + + COUNT ( * ) THEN 11 - + 48 * + 71 WHEN - - ( 64 ) * + COUNT ( * ) - + 8 THEN + 99 * 77 - - - 47 / + - 85 END AS col1, - 77
----
NULL
-77

query II rowsort
SELECT DISTINCT - 28 * + 77 AS col2, - 68 AS col1
----
-2156
-68

query I rowsort
SELECT ALL 17 + + 42 + 95
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8715
SELECT 79 * 55 AS col1, ( - 88 ) * + - COUNT( * ) DIV COUNT( * )
----
4345
88

skipif mysql # not compatible
query II rowsort label-8715
SELECT 79 * 55 AS col1, ( - 88 ) * + - COUNT ( * ) / COUNT ( * )
----
4345
88

query I rowsort
SELECT ALL - 10 * + 57 AS col2
----
-570

query I rowsort
SELECT DISTINCT + 55 + - 29 AS col0
----
26

query I rowsort
SELECT + 30 * - + 90 - 57 AS col0
----
-2757

query I rowsort
SELECT 4 + + + 60 + 29 AS col0
----
93

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8721
SELECT DISTINCT + 38 - COUNT( * ) AS col0, - 92
----
37
-92

skipif mysql # not compatible
query II rowsort label-8721
SELECT DISTINCT + 38 - COUNT ( * ) AS col0, - 92
----
37
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8722
SELECT DISTINCT - 96 * + CAST( NULL AS SIGNED ) AS col2, ( + 47 )
----
NULL
47

skipif mysql # not compatible
query II rowsort label-8722
SELECT DISTINCT - 96 * + CAST ( NULL AS INTEGER ) AS col2, ( + 47 )
----
NULL
47

query I rowsort
SELECT ALL 77 - 93 + 48 * + + 74 AS col0
----
3536

query I rowsort
SELECT 86 * + 88 AS col1
----
7568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8725
SELECT ( - 6 ) + + + COUNT( * ) + 29 DIV + 6 + 53 - - 4 + CASE + 66 WHEN + + 79 THEN NULL WHEN 55 THEN NULL ELSE + - COUNT( * ) * + COUNT( * ) + - 60 END + + - 98 * + 22 * - COUNT( * ) - 5 * - + CAST( + - MIN( + 90 ) AS SIGNED )
----
1701

skipif mysql # not compatible
query I rowsort label-8725
SELECT ( - 6 ) + + + COUNT ( * ) + 29 / + 6 + 53 - - 4 + CASE + 66 WHEN + + 79 THEN NULL WHEN 55 THEN NULL ELSE + - COUNT ( * ) * + COUNT ( * ) + - 60 END + + - 98 * + 22 * - COUNT ( * ) - 5 * - + CAST ( + - MIN ( + 90 ) AS INTEGER )
----
1701

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT DISTINCT COUNT( * ) * + MAX( ALL - 35 ) * - 7 col2
----
245

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT COUNT ( * ) * + MAX ( ALL - 35 ) * - 7 col2
----
245

onlyif mysql # DIV for integer division: 
query I rowsort label-8727
SELECT 78 DIV - - 28
----
2

skipif mysql # not compatible
query I rowsort label-8727
SELECT 78 / - - 28
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8729
SELECT ALL - COUNT( * ) * 63 - + 7 AS col0, - COALESCE ( 13, 47 * COUNT( - 49 ) + - - 19 DIV + 53 * 74 + - 2 * - 5 DIV ( + 22 ), + - ( 41 ) ) + + 35 + - + 21 + 95 + COALESCE ( 3, - - 55 - - CAST( NULL AS SIGNED ) ) DIV + 95 * - + COUNT( * ) * + + 24 + ( - 66 ) + - 63 DIV 47 AS col2
----
-70
29

skipif mysql # not compatible
query II rowsort label-8729
SELECT ALL - COUNT ( * ) * 63 - + 7 AS col0, - COALESCE ( 13, 47 * COUNT ( - 49 ) + - - 19 / + 53 * 74 + - 2 * - 5 / ( + 22 ), + - ( 41 ) ) + + 35 + - + 21 + 95 + COALESCE ( 3, - - 55 - - CAST ( NULL AS INTEGER ) ) / + 95 * - + COUNT ( * ) * + + 24 + ( - 66 ) + - 63 / 47 AS col2
----
-70
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8730
SELECT ( - 75 ) DIV - + 51 + 86 * - 63 - + 12 * + - 9
----
-5309

skipif mysql # not compatible
query I rowsort label-8730
SELECT ( - 75 ) / - + 51 + 86 * - 63 - + 12 * + - 9
----
-5309

query I rowsort
SELECT 88 * - + 14 * 42
----
-51744

query I rowsort
SELECT DISTINCT - - 91 + - - 46 AS col0
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8733
SELECT MIN( + - 90 ) AS col0, + CAST( 23 AS SIGNED )
----
-90
23

skipif mysql # not compatible
query II rowsort label-8733
SELECT MIN ( + - 90 ) AS col0, + CAST ( 23 AS INTEGER )
----
-90
23

query I rowsort
SELECT NULLIF ( 84, - - 79 ) + + - 39 col1
----
45

query I rowsort
SELECT 73 * + + 77
----
5621

query I rowsort
SELECT ALL + 41 * 47
----
1927

query I rowsort
SELECT ALL - 86 + 59
----
-27

query I rowsort
SELECT 63 + + 42
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-8739
SELECT DISTINCT 56, - 39 * - SUM( - 77 ) + 78 + - + 83 AS col1
----
56
-3008

skipif mysql # not compatible
query II rowsort label-8739
SELECT DISTINCT 56, - 39 * - SUM ( - 77 ) + 78 + - + 83 AS col1
----
56
-3008

query I rowsort
SELECT ALL - 41 * + + 89 * - 78
----
284622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8741
SELECT - 51 DIV + + 72 * + 16 + 79 + + 9 + COUNT( * ) * - 34 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8741
SELECT - 51 / + + 72 * + 16 + 79 + + 9 + COUNT ( * ) * - 34 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT + MIN( - + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-8742
SELECT + MIN ( - + 42 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8743
SELECT 53 + COALESCE ( + 93, - - 83 * - 96 ) DIV - + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-8743
SELECT 53 + COALESCE ( + 93, - - 83 * - 96 ) / - + COUNT ( * )
----
-40

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8746
SELECT + ( + - 20 ) DIV - SUM( ALL - + 39 ) * - + CASE 2 WHEN 16 THEN NULL ELSE + NULLIF ( + 90, 36 ) END + - COUNT( * ) + + 70 - - 14 * - - 65 + 22 - 76
----
925

skipif mysql # not compatible
query I rowsort label-8746
SELECT + ( + - 20 ) / - SUM ( ALL - + 39 ) * - + CASE 2 WHEN 16 THEN NULL ELSE + NULLIF ( + 90, 36 ) END + - COUNT ( * ) + + 70 - - 14 * - - 65 + 22 - 76
----
925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8747
SELECT ALL AVG ( + 50 ) * + CASE NULLIF ( + 67, + + 77 + - COUNT( * ) * - 51 ) WHEN + - SUM( ALL - - CAST( - ( + 56 ) AS SIGNED ) ) THEN NULL WHEN - 28 THEN - - 30 END - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL AVG ( + 50 ) * + CASE NULLIF ( + 67, + + 77 + - COUNT ( * ) * - 51 ) WHEN + - SUM ( ALL - - CAST ( - ( + 56 ) AS INTEGER ) ) THEN NULL WHEN - 28 THEN - - 30 END - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT 51 * + 75 - + COUNT( * ) * + 3 + + - 74 + - - 39
----
3787

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT 51 * + 75 - + COUNT ( * ) * + 3 + + - 74 + - - 39
----
3787

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT ALL - MAX( ALL 0 ) * + + 4 + - 38
----
-38

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL - MAX ( ALL 0 ) * + + 4 + - 38
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT DISTINCT - CAST( ( - 27 ) AS SIGNED ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT - CAST ( ( - 27 ) AS INTEGER ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL - NULLIF ( + - 93, + MIN( DISTINCT + 11 ) )
----
93

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL - NULLIF ( + - 93, + MIN ( DISTINCT + 11 ) )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-8752
SELECT DISTINCT - 97 DIV + + 29
----
-3

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT - 97 / + + 29
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8753
SELECT ALL 66 * - 8 + - 66 AS col2, - SUM( DISTINCT - 31 )
----
-594
31

skipif mysql # not compatible
query II rowsort label-8753
SELECT ALL 66 * - 8 + - 66 AS col2, - SUM ( DISTINCT - 31 )
----
-594
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8754
SELECT 55 * 94 * 86 AS col0, + ( + + 23 ) * + + COUNT( * ) + + + 55 - - 73 AS col0
----
444620
151

skipif mysql # not compatible
query II rowsort label-8754
SELECT 55 * 94 * 86 AS col0, + ( + + 23 ) * + + COUNT ( * ) + + + 55 - - 73 AS col0
----
444620
151

query I rowsort
SELECT ALL - 98 * - + 78
----
7644

query II rowsort
SELECT 0 AS col0, 48 + - 48
----
0
0

query II rowsort
SELECT ALL + + 46 AS col1, 89
----
46
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT - 24 + 74 * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-8758
SELECT - 24 + 74 * COUNT ( * )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8759
SELECT DISTINCT - COALESCE ( 52, 83 + + - COUNT( * ), 3 * + CAST( 3 AS SIGNED ) * 17 - + 35 + 29 + + + 25 * + - 6 * + COUNT( * ) ) * + COUNT( DISTINCT - 24 ) + + 72 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT - COALESCE ( 52, 83 + + - COUNT ( * ), 3 * + CAST ( 3 AS INTEGER ) * 17 - + 35 + 29 + + + 25 * + - 6 * + COUNT ( * ) ) * + COUNT ( DISTINCT - 24 ) + + 72 AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT + COUNT( * ) + 23 + + 34 DIV + + 98 * + 29 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8760
SELECT + COUNT ( * ) + 23 + + 34 / + + 98 * + 29 AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8761
SELECT ALL + NULLIF ( 41, - 89 ), 33 + COUNT( * ) AS col0
----
41
34

skipif mysql # not compatible
query II rowsort label-8761
SELECT ALL + NULLIF ( 41, - 89 ), 33 + COUNT ( * ) AS col0
----
41
34

query I rowsort
SELECT DISTINCT + 55 + - - 66 AS col2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8763
SELECT ALL - CAST( - 78 AS SIGNED ) * + 18
----
1404

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL - CAST ( - 78 AS INTEGER ) * + 18
----
1404

onlyif mysql # aggregate syntax: 
query II rowsort label-8764
SELECT ALL + COUNT( * ) + - + 22 + - 13 * + COUNT( * ) AS col1, 46
----
-34
46

skipif mysql # not compatible
query II rowsort label-8764
SELECT ALL + COUNT ( * ) + - + 22 + - 13 * + COUNT ( * ) AS col1, 46
----
-34
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8765
SELECT - + 76 * - MAX( 5 ) - COALESCE ( - + 54, 94 ) + ( + 64 ) + + - ( - 78 ) + 1 * - - CAST( NULL AS SIGNED ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT - + 76 * - MAX ( 5 ) - COALESCE ( - + 54, 94 ) + ( + 64 ) + + - ( - 78 ) + 1 * - - CAST ( NULL AS INTEGER ) * 12
----
NULL

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

query I rowsort
SELECT + + 36 + - 70
----
-34

query I rowsort
SELECT + 1 + + 34 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT - 97 * 47 + - 14 * + 27 - + COUNT( * ) AS col2
----
-4938

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT - 97 * 47 + - 14 * + 27 - + COUNT ( * ) AS col2
----
-4938

query I rowsort
SELECT + 15 + + + 83 AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8771
SELECT + CASE + 70 WHEN - + 19 THEN + - 27 / CAST( NULL AS SIGNED ) * + 62 END + + 24 * - CASE + + 94 WHEN - 36 THEN - 89 WHEN - + COUNT( * ) THEN - - 32 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT + CASE + 70 WHEN - + 19 THEN + - 27 / CAST ( NULL AS INTEGER ) * + 62 END + + 24 * - CASE + + 94 WHEN - 36 THEN - 89 WHEN - + COUNT ( * ) THEN - - 32 END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT ALL CAST( - - 56 AS SIGNED ) + - 21 - + + 16 * - 0
----
35

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL CAST ( - - 56 AS INTEGER ) + - 21 - + + 16 * - 0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT DISTINCT COUNT( * ) * 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT COUNT ( * ) * 70 AS col0
----
70

query I rowsort
SELECT - ( 17 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT + 35 + + - NULLIF ( + + 56, + - 3 * - - COUNT( * ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-8775
SELECT + 35 + + - NULLIF ( + + 56, + - 3 * - - COUNT ( * ) ) AS col2
----
-21

query II rowsort
SELECT - COALESCE ( + ( - + 7 ), - 48 ) AS col0, 97 * - - 34 * ( + 61 )
----
7
201178

query I rowsort
SELECT - 76 + + 74 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT DISTINCT 78 DIV + 78 - - 4 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT 78 / + 78 - - 4 AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8779
SELECT + 72 DIV - + 33 + + - 11 * + 18
----
-200

skipif mysql # not compatible
query I rowsort label-8779
SELECT + 72 / - + 33 + + - 11 * + 18
----
-200

onlyif mysql # DIV for integer division: 
query I rowsort label-8780
SELECT - 58 + + 44 * 16 DIV + COALESCE ( 11, - - 97 + + 28 )
----
6

skipif mysql # not compatible
query I rowsort label-8780
SELECT - 58 + + 44 * 16 / + COALESCE ( 11, - - 97 + + 28 )
----
6

query I rowsort
SELECT ALL 64 * 56
----
3584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8782
SELECT CASE + + 72 WHEN - 20 / AVG ( - 17 ) + 53 THEN + 9 WHEN + COUNT( * ) * CASE - 96 WHEN CAST( - 4 AS SIGNED ) THEN NULL WHEN + 34 + - 85 / - - CAST( - - 38 AS DECIMAL ) THEN NULL ELSE - 85 * + + 83 - ( + CAST( 61 AS DECIMAL ) ) END * + 19 THEN - - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT CASE + + 72 WHEN - 20 / AVG ( - 17 ) + 53 THEN + 9 WHEN + COUNT ( * ) * CASE - 96 WHEN CAST ( - 4 AS INTEGER ) THEN NULL WHEN + 34 + - 85 / - - CAST ( - - 38 AS REAL ) THEN NULL ELSE - 85 * + + 83 - ( + CAST ( 61 AS REAL ) ) END * + 19 THEN - - 54 END
----
NULL

query I rowsort
SELECT ( - ( - 67 ) )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT - 0 DIV + 46 + + 50 - - 93 col1
----
143

skipif mysql # not compatible
query I rowsort label-8784
SELECT - 0 / + 46 + + 50 - - 93 col1
----
143

query I rowsort
SELECT - + 81 * - 10
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT DISTINCT + 80 * + COUNT( * ) + + 21 + + 40 * + 39 + - + COUNT( * ) * MAX( ALL + 55 )
----
1606

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT + 80 * + COUNT ( * ) + + 21 + + 40 * + 39 + - + COUNT ( * ) * MAX ( ALL + 55 )
----
1606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8787
SELECT ALL + 44 * AVG ( DISTINCT - 90 ) - + + 82 + - ( + 64 ) + - + SUM( ALL - 0 ) * - + 12 / - - 92 * + + 15 - 1 * + + CAST( NULL AS SIGNED ) * + SUM( ALL + 12 ) * + + 2 + + COUNT( * ) + + 23 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL + 44 * AVG ( DISTINCT - 90 ) - + + 82 + - ( + 64 ) + - + SUM ( ALL - 0 ) * - + 12 / - - 92 * + + 15 - 1 * + + CAST ( NULL AS INTEGER ) * + SUM ( ALL + 12 ) * + + 2 + + COUNT ( * ) + + 23 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8788
SELECT DISTINCT + 15 * + 6 + + - COALESCE ( - COUNT( * ), - 3, - ( + 52 ) * - 19 * + + CAST( + ( AVG ( + - 39 ) ) AS SIGNED ) DIV COUNT( * ) + + NULLIF ( + + 36, + 99 + + ( + 21 ) + + 8 ) * 15 - - - NULLIF ( - 85, 38 ) + 61 ) DIV - 1
----
89

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + 15 * + 6 + + - COALESCE ( - COUNT ( * ), - 3, - ( + 52 ) * - 19 * + + CAST ( + ( AVG ( + - 39 ) ) AS INTEGER ) / COUNT ( * ) + + NULLIF ( + + 36, + 99 + + ( + 21 ) + + 8 ) * 15 - - - NULLIF ( - 85, 38 ) + 61 ) / - 1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8789
SELECT DISTINCT + 1 * 26 * - 89 + - 59 DIV - + COALESCE ( + 78, + COUNT( 84 ) + + AVG ( ALL - + ( - - 75 ) ) * - CAST( + - 8 AS SIGNED ), 92 ) + + 77 DIV + 47 - - MIN( + ( + 68 ) ) AS col2, COUNT( * ) + - - 31
----
-2245
32

skipif mysql # not compatible
query II rowsort label-8789
SELECT DISTINCT + 1 * 26 * - 89 + - 59 / - + COALESCE ( + 78, + COUNT ( 84 ) + + AVG ( ALL - + ( - - 75 ) ) * - CAST ( + - 8 AS INTEGER ), 92 ) + + 77 / + 47 - - MIN ( + ( + 68 ) ) AS col2, COUNT ( * ) + - - 31
----
-2245
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT - + 87 + COUNT( * ) * - - 52 + 69
----
34

skipif mysql # not compatible
query I rowsort label-8790
SELECT - + 87 + COUNT ( * ) * - - 52 + 69
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-8791
SELECT - COALESCE ( 34, - 34, + 77 + 25, - 31 ) DIV 61 AS col2, + 88 AS col1
----
0
88

skipif mysql # not compatible
query II rowsort label-8791
SELECT - COALESCE ( 34, - 34, + 77 + 25, - 31 ) / 61 AS col2, + 88 AS col1
----
0
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8792
SELECT ALL - SUM( DISTINCT + 83 ) * + CAST( NULL AS SIGNED ) * - 71 + - - SUM( ALL 60 ) * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL - SUM ( DISTINCT + 83 ) * + CAST ( NULL AS INTEGER ) * - 71 + - - SUM ( ALL 60 ) * + 76
----
NULL

query I rowsort
SELECT ALL - 1 * - 42
----
42

query II rowsort
SELECT + 85 * + + 0 AS col2, 38 AS col1
----
0
38

query I rowsort
SELECT ALL 82 * 9 + 13 AS col1
----
751

query I rowsort
SELECT ALL - - 3 * + + 24
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT DISTINCT CAST( - 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT CAST ( - 89 AS INTEGER )
----
-89

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT - COALESCE ( + ( - - COALESCE ( COUNT( DISTINCT - 79 ), + + 5 ) ), - - 37 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8801
SELECT - COALESCE ( + ( - - COALESCE ( COUNT ( DISTINCT - 79 ), + + 5 ) ), - - 37 ) AS col1
----
-1

query I rowsort
SELECT - 18 + + 72
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8803
SELECT + COUNT( * ) * - CAST( NULLIF ( - COUNT( * ), + 85 * - 92 / 54 * + 15 ) AS SIGNED ) * + 34
----
34

skipif mysql # not compatible
query I rowsort label-8803
SELECT + COUNT ( * ) * - CAST ( NULLIF ( - COUNT ( * ), + 85 * - 92 / 54 * + 15 ) AS INTEGER ) * + 34
----
34

query I rowsort
SELECT - 94 + - - 82 AS col0
----
-12

query I rowsort
SELECT - COALESCE ( 65, + 37 ) AS col1
----
-65

query I rowsort
SELECT + 94 * + 93 AS col1
----
8742

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8807
SELECT DISTINCT 0 * + + ( - ( - + NULLIF ( + 12, - ( CASE COALESCE ( - MIN( DISTINCT + + 18 ), + + 94 + - 12 DIV - 31 * 48, COUNT( * ) + - 47 ) WHEN - AVG ( 93 ) THEN + - 60 - NULLIF ( - COUNT( * ), 18 * COUNT( * ) * + - 23 * - 20 + 60 + 1 * 60 ) + 24 + - + 60 * CAST( - - 99 AS DECIMAL ) WHEN + - COUNT( ALL - + 78 ) THEN + AVG ( DISTINCT + 26 ) * - 4 END ) ) ) ) DIV 32 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT 0 * + + ( - ( - + NULLIF ( + 12, - ( CASE COALESCE ( - MIN ( DISTINCT + + 18 ), + + 94 + - 12 / - 31 * 48, COUNT ( * ) + - 47 ) WHEN - AVG ( 93 ) THEN + - 60 - NULLIF ( - COUNT ( * ), 18 * COUNT ( * ) * + - 23 * - 20 + 60 + 1 * 60 ) + 24 + - + 60 * CAST ( - - 99 AS REAL ) WHEN + - COUNT ( ALL - + 78 ) THEN + AVG ( DISTINCT + 26 ) * - 4 END ) ) ) ) / 32 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8808
SELECT DISTINCT + 6 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + 6 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 97 * 98
----
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT + ( + + 18 ) + + - 25 + + COUNT( * ) + - + 85 col1
----
-91

skipif mysql # not compatible
query I rowsort label-8810
SELECT + ( + + 18 ) + + - 25 + + COUNT ( * ) + - + 85 col1
----
-91

query I rowsort
SELECT DISTINCT 64 * - - 19 AS col2
----
1216

onlyif mysql # aggregate syntax: 
query II rowsort label-8812
SELECT + 34 * - ( - + 15 ) AS col0, + MIN( DISTINCT + 40 )
----
510
40

skipif mysql # not compatible
query II rowsort label-8812
SELECT + 34 * - ( - + 15 ) AS col0, + MIN ( DISTINCT + 40 )
----
510
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8813
SELECT + 5 / + 89 + + - 22 + CAST( NULL AS SIGNED ) * + - 37 * ( CASE + 83 WHEN - - 71 THEN 56 - - + 94 ELSE - + 26 END ) * - COUNT( * ) + - - 63 / 44 * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8813
SELECT + 5 / + 89 + + - 22 + CAST ( NULL AS INTEGER ) * + - 37 * ( CASE + 83 WHEN - - 71 THEN 56 - - + 94 ELSE - + 26 END ) * - COUNT ( * ) + - - 63 / 44 * + 26
----
NULL

query I rowsort
SELECT 87 + 42 * + 58
----
2523

onlyif mysql # DIV for integer division: 
query I rowsort label-8815
SELECT 25 DIV NULLIF ( ( - 43 ), 87 + - - 52 ) - + - 79
----
79

skipif mysql # not compatible
query I rowsort label-8815
SELECT 25 / NULLIF ( ( - 43 ), 87 + - - 52 ) - + - 79
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8816
SELECT COUNT( * ) * SUM( ALL + 59 ) * + 23 * + - CAST( - 6 AS SIGNED ) * 15 * - CAST( + 24 AS SIGNED ) - 22 + + 2 col1
----
-2931140

skipif mysql # not compatible
query I rowsort label-8816
SELECT COUNT ( * ) * SUM ( ALL + 59 ) * + 23 * + - CAST ( - 6 AS INTEGER ) * 15 * - CAST ( + 24 AS INTEGER ) - 22 + + 2 col1
----
-2931140

query I rowsort
SELECT - 45 - 57 + - + 48 * + 80 * 70 + + + 41 AS col0
----
-268861

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL - 15 + - + MIN( 79 ) + 24
----
-70

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL - 15 + - + MIN ( 79 ) + 24
----
-70

query I rowsort
SELECT ALL - 57 + + 28 * 2 + - 65
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT ( - + 30 ) * + - 69 + - CAST( + 15 AS SIGNED ) * + 40
----
1470

skipif mysql # not compatible
query I rowsort label-8820
SELECT ( - + 30 ) * + - 69 + - CAST ( + 15 AS INTEGER ) * + 40
----
1470

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8821
SELECT DISTINCT 72 + - COALESCE ( + 34, 58 + + + 60 DIV + - CAST( NULL AS SIGNED ) ) * - 38 AS col2
----
1364

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT 72 + - COALESCE ( + 34, 58 + + + 60 / + - CAST ( NULL AS INTEGER ) ) * - 38 AS col2
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL MIN( - + 11 ) + COUNT( * ) * - 92
----
-103

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL MIN ( - + 11 ) + COUNT ( * ) * - 92
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-8823
SELECT DISTINCT - + CASE 87 WHEN - 25 * 80 THEN NULL ELSE COUNT( * ) END AS col0, 36
----
-1
36

skipif mysql # not compatible
query II rowsort label-8823
SELECT DISTINCT - + CASE 87 WHEN - 25 * 80 THEN NULL ELSE COUNT ( * ) END AS col0, 36
----
-1
36

query I rowsort
SELECT - 43 * - + 30
----
1290

onlyif mysql # aggregate syntax: 
query II rowsort label-8825
SELECT DISTINCT - 63 * 25 * + - COUNT( * ) AS col2, 93
----
1575
93

skipif mysql # not compatible
query II rowsort label-8825
SELECT DISTINCT - 63 * 25 * + - COUNT ( * ) AS col2, 93
----
1575
93

onlyif mysql # aggregate syntax: 
query II rowsort label-8826
SELECT - - 11 * - NULLIF ( - - MAX( - ( - 15 ) ), - 91 ) * + COUNT( * ) * 15 + + 79 - - - COUNT( * ) + + 50, - 8 - 61 - + - 84 * + ( - 85 ) AS col2
----
-2347
-7209

skipif mysql # not compatible
query II rowsort label-8826
SELECT - - 11 * - NULLIF ( - - MAX ( - ( - 15 ) ), - 91 ) * + COUNT ( * ) * 15 + + 79 - - - COUNT ( * ) + + 50, - 8 - 61 - + - 84 * + ( - 85 ) AS col2
----
-2347
-7209

onlyif mysql # aggregate syntax: 
query II rowsort label-8827
SELECT - - 39 * - - 1 * 56 + 18 + 93, COUNT( * ) + + 6 * 98 * 34 AS col2
----
2295
19993

skipif mysql # not compatible
query II rowsort label-8827
SELECT - - 39 * - - 1 * 56 + 18 + 93, COUNT ( * ) + + 6 * 98 * 34 AS col2
----
2295
19993

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

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

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

skipif mysql # not compatible
query I rowsort label-8829
SELECT CAST ( NULL AS INTEGER ) + - - SUM ( 97 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT + COUNT( * ) + - COUNT( * ) + + - 71 col0
----
-71

skipif mysql # not compatible
query I rowsort label-8830
SELECT + COUNT ( * ) + - COUNT ( * ) + + - 71 col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT DISTINCT + + 13 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT + + 13 / - 80
----
0

query II rowsort
SELECT ALL 36 AS col0, 89 AS col1
----
36
89

query I rowsort
SELECT DISTINCT + 0 - - 27 AS col1
----
27

query I rowsort
SELECT ALL + 82 * + 93 * - 15
----
-114390

query I rowsort
SELECT 88 + - + 57 + - 54
----
-23

query I rowsort
SELECT 59 * 17
----
1003

query I rowsort
SELECT 62 * - ( - - 32 )
----
-1984

onlyif mysql # DIV for integer division: 
query I rowsort label-8838
SELECT 98 + + 47 + - - 48 DIV - + 63
----
145

skipif mysql # not compatible
query I rowsort label-8838
SELECT 98 + + 47 + - - 48 / - + 63
----
145

query II rowsort
SELECT - 3 AS col2, 66 col2
----
-3
66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8841
SELECT 78 + 34 * - 45 + + 73 DIV + COUNT( * ) AS col1
----
-1379

skipif mysql # not compatible
query I rowsort label-8841
SELECT 78 + 34 * - 45 + + 73 / + COUNT ( * ) AS col1
----
-1379

query I rowsort
SELECT ALL + 20 * - 34
----
-680

query I rowsort
SELECT DISTINCT + 11 * 77
----
847

query II rowsort
SELECT DISTINCT 16, - 88 AS col1
----
16
-88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL + MAX( DISTINCT + ( - 52 ) ) + 2
----
-50

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL + MAX ( DISTINCT + ( - 52 ) ) + 2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT 87 * - ( + MIN( DISTINCT + 83 ) ) AS col1
----
-7221

skipif mysql # not compatible
query I rowsort label-8847
SELECT 87 * - ( + MIN ( DISTINCT + 83 ) ) AS col1
----
-7221

query I rowsort
SELECT ( - 41 ) * 83 col2
----
-3403

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8849
SELECT - 35, + COUNT( * ) DIV + 31 * - COUNT( * ) + - + COUNT( * ) + 46 * + 35 AS col0
----
-35
1609

skipif mysql # not compatible
query II rowsort label-8849
SELECT - 35, + COUNT ( * ) / + 31 * - COUNT ( * ) + - + COUNT ( * ) + 46 * + 35 AS col0
----
-35
1609

query I rowsort
SELECT ALL + 86 + - 55 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL + COUNT( - 43 ) * - - 30
----
30

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL + COUNT ( - 43 ) * - - 30
----
30

query I rowsort
SELECT DISTINCT + 59 + - 23 + + 43 * - 84 AS col2
----
-3576

query II rowsort
SELECT DISTINCT - + 83 AS col0, + 42 * + 76 AS col2
----
-83
3192

query I rowsort
SELECT 58 - 37 AS col1
----
21

query I rowsort
SELECT ALL - + NULLIF ( + 35, - 97 )
----
-35

query II rowsort
SELECT 68, 91 AS col2
----
68
91

query I rowsort
SELECT 47 * - 95 * - 68
----
303620

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ( + COUNT( ALL + 28 ) ) + SUM( DISTINCT + 53 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-8858
SELECT ( + COUNT ( ALL + 28 ) ) + SUM ( DISTINCT + 53 ) AS col2
----
54

query I rowsort
SELECT ALL + 43 + NULLIF ( + 57, - 55 ) + 7 * + 96 AS col0
----
772

onlyif mysql # aggregate syntax: 
query II rowsort label-8860
SELECT ALL - + 67 AS col1, 91 * 18 + + 91 + 18 * COUNT( * )
----
-67
1747

skipif mysql # not compatible
query II rowsort label-8860
SELECT ALL - + 67 AS col1, 91 * 18 + + 91 + 18 * COUNT ( * )
----
-67
1747

query I rowsort
SELECT - 7 * + 11
----
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT ALL + COUNT( * ) * + MIN( + + 72 ) * ( - + 87 ) AS col2
----
-6264

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL + COUNT ( * ) * + MIN ( + + 72 ) * ( - + 87 ) AS col2
----
-6264

query I rowsort
SELECT DISTINCT NULLIF ( + 43, + ( - 54 ) ) - 28
----
15

query I rowsort
SELECT 82 * - 74 * 64
----
-388352

query I rowsort
SELECT ALL 89 * + 8
----
712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8867
SELECT DISTINCT - MIN( 84 ) DIV 64 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT - MIN ( 84 ) / 64 AS col0
----
-1

query I rowsort
SELECT 97 * - 68 AS col2
----
-6596

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT ALL - 61 / CASE - ( + 23 ) WHEN + - 10 + - - COALESCE ( + 81, - COUNT( * ) ) THEN 64 WHEN + 0 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL - 61 / CASE - ( + 23 ) WHEN + - 10 + - - COALESCE ( + 81, - COUNT ( * ) ) THEN 64 WHEN + 0 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT DISTINCT - 52 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT - 52 / - 85
----
0

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

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

query I rowsort
SELECT - ( 69 ) * - 79 AS col1
----
5451

onlyif mysql # aggregate syntax: 
query II rowsort label-8873
SELECT - 81 + CASE COUNT( - + 30 ) WHEN - 75 THEN 58 ELSE NULL END + - 75 * + 82 * 30 * + + 44, - MAX( - 32 ) + 67 - + ( - COUNT( * ) ) AS col2
----
NULL
100

skipif mysql # not compatible
query II rowsort label-8873
SELECT - 81 + CASE COUNT ( - + 30 ) WHEN - 75 THEN 58 ELSE NULL END + - 75 * + 82 * 30 * + + 44, - MAX ( - 32 ) + 67 - + ( - COUNT ( * ) ) AS col2
----
NULL
100

query I rowsort
SELECT - 87 * + - 26
----
2262

onlyif mysql # DIV for integer division: 
query I rowsort label-8875
SELECT - 5 DIV - 6
----
0

skipif mysql # not compatible
query I rowsort label-8875
SELECT - 5 / - 6
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8876
SELECT ALL + MAX( 37 ) * - 52 AS col1, 48 col0
----
-1924
48

skipif mysql # not compatible
query II rowsort label-8876
SELECT ALL + MAX ( 37 ) * - 52 AS col1, 48 col0
----
-1924
48

query I rowsort
SELECT ALL - 35 + 53 AS col0
----
18

query I rowsort
SELECT - 51 + - 54 col2
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8879
SELECT DISTINCT - MAX( DISTINCT + + 37 ) + + 25 DIV + - 38
----
-37

skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT - MAX ( DISTINCT + + 37 ) + + 25 / + - 38
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL + COALESCE ( 70, + 83, + + 64, + + 80 + - 30 * 88 + - COUNT( * ) * + 51 ) + + 99
----
169

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL + COALESCE ( 70, + 83, + + 64, + + 80 + - 30 * 88 + - COUNT ( * ) * + 51 ) + + 99
----
169

query I rowsort
SELECT - COALESCE ( - 25, - - NULLIF ( - 40, 83 - - + 33 ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL - - MIN( + 66 ) + ( + 62 )
----
128

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL - - MIN ( + 66 ) + ( + 62 )
----
128

query I rowsort
SELECT + - 69 * - - 99 + 84 AS col2
----
-6747

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT - + COALESCE ( + 12, + 99 * CASE - + 85 WHEN - - 20 THEN + + CASE 62 WHEN - 74 / + + 87 * + 7 * - 98 * 71 THEN NULL WHEN + COALESCE ( - 34, + + 75, + - 95 * - COUNT( 12 ) + - - COALESCE ( + + 23, + 1 ) ) * - - MAX( 50 ) THEN - CASE - 28 WHEN - 2 / 66 * - - 80 THEN NULL WHEN - 63 THEN - 45 * - ( - 6 ) + 11 ELSE NULL END + - ( - - 49 ) + 99 * + 59 END ELSE NULL END ) + - 86
----
-98

skipif mysql # not compatible
query I rowsort label-8884
SELECT - + COALESCE ( + 12, + 99 * CASE - + 85 WHEN - - 20 THEN + + CASE 62 WHEN - 74 / + + 87 * + 7 * - 98 * 71 THEN NULL WHEN + COALESCE ( - 34, + + 75, + - 95 * - COUNT ( 12 ) + - - COALESCE ( + + 23, + 1 ) ) * - - MAX ( 50 ) THEN - CASE - 28 WHEN - 2 / 66 * - - 80 THEN NULL WHEN - 63 THEN - 45 * - ( - 6 ) + 11 ELSE NULL END + - ( - - 49 ) + 99 * + 59 END ELSE NULL END ) + - 86
----
-98

query I rowsort
SELECT + - 19 + + + 73 AS col2
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8886
SELECT ALL 88 * + + CAST( NULL AS DECIMAL ) - + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL 88 * + + CAST ( NULL AS REAL ) - + 91 AS col2
----
NULL

query I rowsort
SELECT - AVG ( DISTINCT + - 30 ) * CASE - 51 WHEN - - 71 * + + 10 * - 65 * - 32 * + 57 THEN 33 * - 93 + + 32 WHEN + 86 THEN - + COALESCE ( 39, 96 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8888
SELECT ALL - + 71 DIV COUNT( * ) + + 6 * + 72 AS col0
----
361

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - + 71 / COUNT ( * ) + + 6 * + 72 AS col0
----
361

query I rowsort
SELECT COALESCE ( - 34, 12, - 59 * + 75 + + 82 ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT - + SUM( 78 ) * + - 31 + + + 33 AS col1
----
2451

skipif mysql # not compatible
query I rowsort label-8890
SELECT - + SUM ( 78 ) * + - 31 + + + 33 AS col1
----
2451

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL + + CASE - 48 WHEN + - 11 * - 36 * - MIN( - ( - 18 ) ) - + COUNT( * ) + - 55 * + 79 THEN + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + + CASE - 48 WHEN + - 11 * - 36 * - MIN ( - ( - 18 ) ) - + COUNT ( * ) + - 55 * + 79 THEN + 21 END
----
NULL

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

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

query II rowsort
SELECT + - 42 * - 73 AS col2, 52 * - - 8 col0
----
3066
416

query I rowsort
SELECT - + 56 + + 83 - 22 * 83 + + + 40
----
-1759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8895
SELECT + COUNT( * ) DIV 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8895
SELECT + COUNT ( * ) / 22 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8896
SELECT ALL - 65 DIV 29
----
-2

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL - 65 / 29
----
-2

query I rowsort
SELECT + 94 * - ( + + 73 )
----
-6862

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + 5 * - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-8898
SELECT + 5 * - COUNT ( * )
----
-5

query I rowsort
SELECT - 88 + + + 86 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL COUNT( 78 ) + - CASE + 82 WHEN + + 88 * + 19 THEN + - 46 - + + 93 + - 38 * - 99 END + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL COUNT ( 78 ) + - CASE + 82 WHEN + + 88 * + 19 THEN + - 46 - + + 93 + - 38 * - 99 END + 63
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8901
SELECT + 58 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-8901
SELECT + 58 / 73
----
0

query I rowsort
SELECT - 64 + - 14 + - 59 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL - NULLIF ( 59, - SUM( + 91 ) ) + + 49 * + - ( - ( - + 85 ) ) AS col0
----
-4224

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL - NULLIF ( 59, - SUM ( + 91 ) ) + + 49 * + - ( - ( - + 85 ) ) AS col0
----
-4224

query I rowsort
SELECT - ( - 5 ) AS col2
----
5

query I rowsort
SELECT ALL 81 * - - 92
----
7452

query I rowsort
SELECT DISTINCT 99 + 5 - + ( + - 97 ) * 32 AS col1
----
3208

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT ALL - 3 DIV + 70 * + - 14 col2
----
0

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL - 3 / + 70 * + - 14 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT - 37 + - + COUNT( * ) * + 59
----
-96

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT - 37 + - + COUNT ( * ) * + 59
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8909
SELECT ALL + 78 + - 39 + + COUNT( * ), - COUNT( * ) AS col2
----
40
-1

skipif mysql # not compatible
query II rowsort label-8909
SELECT ALL + 78 + - 39 + + COUNT ( * ), - COUNT ( * ) AS col2
----
40
-1

query II rowsort
SELECT ALL 60, 46 AS col0
----
60
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT ALL - + 49 * - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL - + 49 * - COUNT ( * ) AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8912
SELECT + + COUNT( * ) DIV + ( 66 ) * + 4 + - - 9 * + 35 AS col0, - 36 DIV + 68 AS col1
----
315
0

skipif mysql # not compatible
query II rowsort label-8912
SELECT + + COUNT ( * ) / + ( 66 ) * + 4 + - - 9 * + 35 AS col0, - 36 / + 68 AS col1
----
315
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8913
SELECT - + 98 * - ( - 23 ) * + CASE CAST( NULL AS SIGNED ) WHEN + - 15 * + - COUNT( * ) THEN NULL WHEN 40 * + COALESCE ( + + 76, 89, 33 ) + + 84 + 55 - + CAST( NULL AS SIGNED ) * CASE + 62 WHEN - COUNT( * ) THEN + COUNT( * ) WHEN - COALESCE ( - CAST( NULL AS DECIMAL ), - 71 * ( 92 ), + + 52 * + COUNT( * ) ) - - 15 + 90 THEN NULL WHEN + NULLIF ( - ( + 27 ), + - 58 ) THEN + SUM( - CAST( NULL AS SIGNED ) ) + + 3 ELSE - 45 END THEN - 93 - + 80 ELSE MIN( 66 ) * 50 END AS col1
----
-7438200

skipif mysql # not compatible
query I rowsort label-8913
SELECT - + 98 * - ( - 23 ) * + CASE CAST ( NULL AS INTEGER ) WHEN + - 15 * + - COUNT ( * ) THEN NULL WHEN 40 * + COALESCE ( + + 76, 89, 33 ) + + 84 + 55 - + CAST ( NULL AS INTEGER ) * CASE + 62 WHEN - COUNT ( * ) THEN + COUNT ( * ) WHEN - COALESCE ( - CAST ( NULL AS REAL ), - 71 * ( 92 ), + + 52 * + COUNT ( * ) ) - - 15 + 90 THEN NULL WHEN + NULLIF ( - ( + 27 ), + - 58 ) THEN + SUM ( - CAST ( NULL AS INTEGER ) ) + + 3 ELSE - 45 END THEN - 93 - + 80 ELSE MIN ( 66 ) * 50 END AS col1
----
-7438200

query I rowsort
SELECT DISTINCT - 76 - 58 * - + 51 * + 26 col2
----
76832

query I rowsort
SELECT ALL + - 36 * + 40
----
-1440

onlyif mysql # aggregate syntax: 
query II rowsort label-8916
SELECT - + 72 AS col1, MIN( DISTINCT 11 ) + 67 * + COUNT( ALL - - 5 ) col0
----
-72
78

skipif mysql # not compatible
query II rowsort label-8916
SELECT - + 72 AS col1, MIN ( DISTINCT 11 ) + 67 * + COUNT ( ALL - - 5 ) col0
----
-72
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT - COUNT( * ) + - + 84
----
-85

skipif mysql # not compatible
query I rowsort label-8917
SELECT - COUNT ( * ) + - + 84
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT ALL + CAST( NULL AS SIGNED ) - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL + CAST ( NULL AS INTEGER ) - - 14
----
NULL

query I rowsort
SELECT DISTINCT + + ( - 49 ) col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT ALL + + COALESCE ( - 14, CAST( - 97 AS SIGNED ) ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL + + COALESCE ( - 14, CAST ( - 97 AS INTEGER ) ) col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT - - CAST( NULL AS SIGNED ) + + CASE + + CAST( + 52 AS SIGNED ) WHEN - - 66 * - 63 THEN ( - 21 ) END + + - 17 * 91 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT - - CAST ( NULL AS INTEGER ) + + CASE + + CAST ( + 52 AS INTEGER ) WHEN - - 66 * - 63 THEN ( - 21 ) END + + - 17 * 91 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 40 * + 13
----
-520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT - CAST( + 81 AS SIGNED ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-8923
SELECT - CAST ( + 81 AS INTEGER ) AS col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8924
SELECT ALL + - 86 AS col1, + COALESCE ( + - 70, + 13, - - 87 - - - ( + 9 ) + 83 - - + 47 * 25 ) DIV + 53 + + CAST( + + ( - ( - + 79 ) ) AS SIGNED )
----
-86
78

skipif mysql # not compatible
query II rowsort label-8924
SELECT ALL + - 86 AS col1, + COALESCE ( + - 70, + 13, - - 87 - - - ( + 9 ) + 83 - - + 47 * 25 ) / + 53 + + CAST ( + + ( - ( - + 79 ) ) AS INTEGER )
----
-86
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8925
SELECT DISTINCT + 46 AS col1, + 97 * - 51 * - NULLIF ( + ( - 1 ), - + ( - 55 ) - - + MAX( - 13 ) * + + 6 ) AS col2
----
46
-4947

skipif mysql # not compatible
query II rowsort label-8925
SELECT DISTINCT + 46 AS col1, + 97 * - 51 * - NULLIF ( + ( - 1 ), - + ( - 55 ) - - + MAX ( - 13 ) * + + 6 ) AS col2
----
46
-4947

query I rowsort
SELECT - 82 * 66
----
-5412

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT + SUM( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-8927
SELECT + SUM ( + 4 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8928
SELECT ALL + ( + 47 ) AS col0, 76 * + - 84 - - 70 + + - COALESCE ( + - COUNT( * ), 44 ) + - + COUNT( * ) - - - 46
----
47
-6360

skipif mysql # not compatible
query II rowsort label-8928
SELECT ALL + ( + 47 ) AS col0, 76 * + - 84 - - 70 + + - COALESCE ( + - COUNT ( * ), 44 ) + - + COUNT ( * ) - - - 46
----
47
-6360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8929
SELECT DISTINCT 15 DIV 10 + - 65 * + MAX( DISTINCT - + 25 ) * + 27 * - ( - 40 ) * + 33 + + 6 * 3 AS col2
----
57915019

skipif mysql # not compatible
query I rowsort label-8929
SELECT DISTINCT 15 / 10 + - 65 * + MAX ( DISTINCT - + 25 ) * + 27 * - ( - 40 ) * + 33 + + 6 * 3 AS col2
----
57915019

onlyif mysql # DIV for integer division: 
query II rowsort label-8930
SELECT ALL + ( + 30 ), - COALESCE ( - + 45, + - 18, - - AVG ( 6 ) DIV + ( 9 ) + 22 * 75 DIV - + 86 + - ( - + 82 ) + - 12 + - - 49 - - 22 * 21 + + 8 * + 73 ) AS col0
----
30
45

skipif mysql # not compatible
query II rowsort label-8930
SELECT ALL + ( + 30 ), - COALESCE ( - + 45, + - 18, - - AVG ( 6 ) / + ( 9 ) + 22 * 75 / - + 86 + - ( - + 82 ) + - 12 + - - 49 - - 22 * 21 + + 8 * + 73 ) AS col0
----
30
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8931
SELECT ALL 36 * + 79, 45 - - COUNT( ALL + 59 ) AS col1
----
2844
46

skipif mysql # not compatible
query II rowsort label-8931
SELECT ALL 36 * + 79, 45 - - COUNT ( ALL + 59 ) AS col1
----
2844
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT - COUNT( * ) * + - 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8932
SELECT - COUNT ( * ) * + - 61 AS col1
----
61

query I rowsort
SELECT ALL ( + 68 ) + + 27 AS col1
----
95

query I rowsort
SELECT ALL + 34 + 0 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT COUNT( * ) * - 82 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8935
SELECT COUNT ( * ) * - 82 AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT 87 * - CAST( - 67 AS SIGNED ) AS col2
----
5829

skipif mysql # not compatible
query I rowsort label-8936
SELECT 87 * - CAST ( - 67 AS INTEGER ) AS col2
----
5829

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT COUNT( * ) - - + 21 * + 80
----
1681

skipif mysql # not compatible
query I rowsort label-8937
SELECT COUNT ( * ) - - + 21 * + 80
----
1681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT DISTINCT 81 + NULLIF ( - CAST( + 83 AS SIGNED ), + 25 * + - ( - + ( - CASE + - 29 WHEN + 18 THEN - 6 * - 32 ELSE + 41 END ) ) * - - ( + 23 ) + + + NULLIF ( - ( + 83 ), 0 ) ) + ( + 86 ) + + ( + 27 ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT 81 + NULLIF ( - CAST ( + 83 AS INTEGER ), + 25 * + - ( - + ( - CASE + - 29 WHEN + 18 THEN - 6 * - 32 ELSE + 41 END ) ) * - - ( + 23 ) + + + NULLIF ( - ( + 83 ), 0 ) ) + ( + 86 ) + + ( + 27 ) AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT ALL 16 - - COUNT( - 61 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL 16 - - COUNT ( - 61 ) AS col1
----
17

query II rowsort
SELECT 38 * - 33, + 74 AS col0
----
-1254
74

query I rowsort
SELECT ALL 28 * + 80
----
2240

query I rowsort
SELECT - 84 - 89
----
-173

query I rowsort
SELECT - 28 + - - 55
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT + 37 * COUNT( * ) - + + 41 col2
----
-4

skipif mysql # not compatible
query I rowsort label-8944
SELECT + 37 * COUNT ( * ) - + + 41 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT 56 + 88 * - - 83 * - - COUNT( * ) + + - 10 AS col0
----
7350

skipif mysql # not compatible
query I rowsort label-8945
SELECT 56 + 88 * - - 83 * - - COUNT ( * ) + + - 10 AS col0
----
7350

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT ALL 25 * COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL 25 * COUNT ( * ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT 63 * + - ( + 4 ) * + - 99 * + + COUNT( * ) * + + 64 AS col0
----
1596672

skipif mysql # not compatible
query I rowsort label-8947
SELECT 63 * + - ( + 4 ) * + - 99 * + + COUNT ( * ) * + + 64 AS col0
----
1596672

query I rowsort
SELECT + ( + - 69 ) + - + 73 AS col1
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8949
SELECT 56 DIV - COUNT( * ) DIV + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-8949
SELECT 56 / - COUNT ( * ) / + COUNT ( * )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8950
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) DIV - 57 * + 45 * - 60 + - - 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) / - 57 * + 45 * - 60 + - - 2 AS col1
----
2

query I rowsort
SELECT - 44 + 88
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-8952
SELECT DISTINCT - + CASE - 8 WHEN + 25 * ( - 18 ) THEN NULLIF ( - 17, + 95 ) + MAX( CAST( NULL AS DECIMAL ) ) WHEN CAST( - 19 AS SIGNED ) THEN + ( + CAST( + 65 AS SIGNED ) ) END, 47 + 81 DIV + - 95 AS col2
----
NULL
47

skipif mysql # not compatible
query II rowsort label-8952
SELECT DISTINCT - + CASE - 8 WHEN + 25 * ( - 18 ) THEN NULLIF ( - 17, + 95 ) + MAX ( CAST ( NULL AS REAL ) ) WHEN CAST ( - 19 AS INTEGER ) THEN + ( + CAST ( + 65 AS INTEGER ) ) END, 47 + 81 / + - 95 AS col2
----
NULL
47

query I rowsort
SELECT ALL + + ( - - 34 ) * 44 col0
----
1496

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT COALESCE ( + - 63, 59 ) DIV - ( 74 )
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT COALESCE ( + - 63, 59 ) / - ( 74 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8955
SELECT + CAST( NULL AS SIGNED ) / + 27 + + COUNT( 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8955
SELECT + CAST ( NULL AS INTEGER ) / + 27 + + COUNT ( 41 ) AS col1
----
NULL

query II rowsort
SELECT ALL - + 16 + - - 67, - 80 * + 89 AS col2
----
51
-7120

query I rowsort
SELECT + 67 * - - ( + + 72 ) + + 97 col0
----
4921

query I rowsort
SELECT DISTINCT - COALESCE ( + 46, 26 + + + 45 ) AS col0
----
-46

query I rowsort
SELECT ALL + 2 + + 17 col1
----
19

query I rowsort
SELECT + 41 * 82 + + 18
----
3380

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT COUNT( * ) - + - 4
----
5

skipif mysql # not compatible
query I rowsort label-8961
SELECT COUNT ( * ) - + - 4
----
5

query I rowsort
SELECT 23 * + - 39 AS col2
----
-897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8963
SELECT ALL + COALESCE ( + ( - 89 ), - 24 ) + + 95 * + COUNT( * ) + - - CAST( NULL AS DECIMAL ) * + - ( 14 ) / 47 - + 52 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL + COALESCE ( + ( - 89 ), - 24 ) + + 95 * + COUNT ( * ) + - - CAST ( NULL AS REAL ) * + - ( 14 ) / 47 - + 52 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8964
SELECT 19, COUNT( * ) DIV + SUM( - 2 ) AS col1
----
19
0

skipif mysql # not compatible
query II rowsort label-8964
SELECT 19, COUNT ( * ) / + SUM ( - 2 ) AS col1
----
19
0

query II rowsort
SELECT 27 AS col2, - 65
----
27
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL + COUNT( * ) * - 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL + COUNT ( * ) * - 98 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL + 30 + + COUNT( * ) col0
----
31

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + 30 + + COUNT ( * ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT 22 + + 59 + + - 31 * - ( - COUNT( * ) ) * - 17 * + COUNT( * )
----
608

skipif mysql # not compatible
query I rowsort label-8968
SELECT 22 + + 59 + + - 31 * - ( - COUNT ( * ) ) * - 17 * + COUNT ( * )
----
608

query I rowsort
SELECT ALL 40 - - - 81
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT - 9 * CAST( - 94 AS SIGNED ) + 64 AS col2
----
910

skipif mysql # not compatible
query I rowsort label-8970
SELECT - 9 * CAST ( - 94 AS INTEGER ) + 64 AS col2
----
910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8971
SELECT 3 DIV 24 * + - MIN( ALL 4 ) * - - 79 + - COUNT( * ) * MIN( + NULLIF ( - 55, + 85 * 88 * - + 19 - 21 ) ) col2
----
55

skipif mysql # not compatible
query I rowsort label-8971
SELECT 3 / 24 * + - MIN ( ALL 4 ) * - - 79 + - COUNT ( * ) * MIN ( + NULLIF ( - 55, + 85 * 88 * - + 19 - 21 ) ) col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT COUNT( * ) * - 56 col0
----
-56

skipif mysql # not compatible
query I rowsort label-8972
SELECT COUNT ( * ) * - 56 col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-8973
SELECT ALL COUNT( * ) AS col0, - 73 + - + COUNT( * )
----
1
-74

skipif mysql # not compatible
query II rowsort label-8973
SELECT ALL COUNT ( * ) AS col0, - 73 + - + COUNT ( * )
----
1
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT DISTINCT COUNT( COALESCE ( + - 54, + 79 + + - 28 + + 17 + 88 / 92 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT COUNT ( COALESCE ( + - 54, + 79 + + - 28 + + 17 + 88 / 92 ) )
----
1

query II rowsort
SELECT - - 78, 41 AS col0
----
78
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8976
SELECT COUNT( * ) + + COUNT( * ) + + - COUNT( * ) DIV - - 30 - - CASE + 75 WHEN - - COUNT( * ) THEN NULL WHEN 84 * + - 30 THEN + - MAX( NULLIF ( - 63, 58 * 12 ) ) * 85 ELSE NULL END + + - 66 DIV + SUM( - 58 ) AS col0, 17 - - 39 DIV + + 91 + 64 AS col2
----
NULL
81

skipif mysql # not compatible
query II rowsort label-8976
SELECT COUNT ( * ) + + COUNT ( * ) + + - COUNT ( * ) / - - 30 - - CASE + 75 WHEN - - COUNT ( * ) THEN NULL WHEN 84 * + - 30 THEN + - MAX ( NULLIF ( - 63, 58 * 12 ) ) * 85 ELSE NULL END + + - 66 / + SUM ( - 58 ) AS col0, 17 - - 39 / + + 91 + 64 AS col2
----
NULL
81

onlyif mysql # aggregate syntax: 
query III rowsort label-8977
SELECT ALL + MIN( ALL + NULLIF ( - 85, + + 58 ) ) - - 98 AS col2, + 34, 97 + + + 0 AS col2
----
13
34
97

skipif mysql # not compatible
query III rowsort label-8977
SELECT ALL + MIN ( ALL + NULLIF ( - 85, + + 58 ) ) - - 98 AS col2, + 34, 97 + + + 0 AS col2
----
13
34
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT ( 96 ) DIV + 17
----
5

skipif mysql # not compatible
query I rowsort label-8978
SELECT ( 96 ) / + 17
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT ALL + COALESCE ( + 4, - + 50 + 6 * + 99 ) * - 79 + + 61 + - CAST( - + 42 AS SIGNED ) AS col1
----
-213

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL + COALESCE ( + 4, - + 50 + 6 * + 99 ) * - 79 + + 61 + - CAST ( - + 42 AS INTEGER ) AS col1
----
-213

query II rowsort
SELECT DISTINCT - 19 AS col1, + 23
----
-19
23

query I rowsort
SELECT ALL 1 * 29 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8982
SELECT 78 * - - NULLIF ( 2, + MIN( + COALESCE ( + 19, 43 + 11 + + - 96 * - 85 * - CAST( NULL AS SIGNED ) ) ) + - - 89 ) AS col0
----
156

skipif mysql # not compatible
query I rowsort label-8982
SELECT 78 * - - NULLIF ( 2, + MIN ( + COALESCE ( + 19, 43 + 11 + + - 96 * - 85 * - CAST ( NULL AS INTEGER ) ) ) + - - 89 ) AS col0
----
156

query I rowsort
SELECT 81 - + ( - + 37 )
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-8984
SELECT COUNT( * ) AS col2, - 55 * - 85 * COUNT( * ) AS col1
----
1
4675

skipif mysql # not compatible
query II rowsort label-8984
SELECT COUNT ( * ) AS col2, - 55 * - 85 * COUNT ( * ) AS col1
----
1
4675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT ALL + 74 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL + 74 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8986
SELECT ( + 77 ) * + + 73, + COUNT( - 57 ) * + - 25 + - 85 * + 45 + - 94 AS col2
----
5621
-3944

skipif mysql # not compatible
query II rowsort label-8986
SELECT ( + 77 ) * + + 73, + COUNT ( - 57 ) * + - 25 + - 85 * + 45 + - 94 AS col2
----
5621
-3944

query II rowsort
SELECT + 7 * + 19 + - + 36 AS col1, 1 * + + 65 AS col1
----
97
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8988
SELECT - + COUNT( * ) col0, 8 * + NULLIF ( - 17, + + 60 )
----
-1
-136

skipif mysql # not compatible
query II rowsort label-8988
SELECT - + COUNT ( * ) col0, 8 * + NULLIF ( - 17, + + 60 )
----
-1
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT + MIN( - 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8989
SELECT + MIN ( - 47 ) AS col0
----
-47

query I rowsort
SELECT - 73 + - 54 col1
----
-127

query I rowsort
SELECT DISTINCT 43 + + 65 * + 69 AS col0
----
4528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8992
SELECT DISTINCT + 3 * CAST( - + 8 AS SIGNED ) + 69 + MAX( - 6 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + 3 * CAST ( - + 8 AS INTEGER ) + 69 + MAX ( - 6 ) AS col2
----
39

query I rowsort
SELECT CASE WHEN 86 IS NOT NULL THEN 85 * - + 6 * + - 90 ELSE - + 5 + + 62 END
----
45900

query I rowsort
SELECT 97 * - 2 * - + 87 + + + 5 + 24 AS col2
----
16907

query I rowsort
SELECT DISTINCT 94 * - 92 * + 43 + + + 78 + + COALESCE ( + + 69, + 64 ) + + + 46 + - 77 - + 42 * - ( - 0 )
----
-371748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8996
SELECT - MIN( ALL + 25 ) DIV + 27 + - 95 + 97 * - - 32 * + - 0
----
-95

skipif mysql # not compatible
query I rowsort label-8996
SELECT - MIN ( ALL + 25 ) / + 27 + - 95 + 97 * - - 32 * + - 0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT NULLIF ( - 68, COUNT( * ) * + 45 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-8997
SELECT NULLIF ( - 68, COUNT ( * ) * + 45 ) AS col1
----
-68

query I rowsort
SELECT + CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE + 60 END AS col2
----
NULL

query I rowsort
SELECT ALL + 21 * - - 12 + 72 AS col0
----
324

query I rowsort
SELECT + 76 * - - 33
----
2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9001
SELECT DISTINCT + 39 AS col1, - ( COUNT( ALL + + 14 ) ) + - - ( + + 1 ) * - 24 * + 54 + + COUNT( * ), - NULLIF ( + NULLIF ( 96, + CAST( - 5 AS SIGNED ) - + 11 ), + COUNT( * ) * 45 ) AS col0
----
39
-1296
-96

skipif mysql # not compatible
query III rowsort label-9001
SELECT DISTINCT + 39 AS col1, - ( COUNT ( ALL + + 14 ) ) + - - ( + + 1 ) * - 24 * + 54 + + COUNT ( * ), - NULLIF ( + NULLIF ( 96, + CAST ( - 5 AS INTEGER ) - + 11 ), + COUNT ( * ) * 45 ) AS col0
----
39
-1296
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT - 52 DIV 9 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9002
SELECT - 52 / 9 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query III rowsort label-9003
SELECT DISTINCT + 84 AS col0, NULLIF ( - COUNT( DISTINCT - 11 ), + ( - 40 ) * AVG ( + 43 ) ) * - 36 - + 82 - - 55 * + NULLIF ( - 65, 11 ) AS col0, - MAX( 72 ) + + 21 AS col2
----
84
-3621
-51

skipif mysql # not compatible
query III rowsort label-9003
SELECT DISTINCT + 84 AS col0, NULLIF ( - COUNT ( DISTINCT - 11 ), + ( - 40 ) * AVG ( + 43 ) ) * - 36 - + 82 - - 55 * + NULLIF ( - 65, 11 ) AS col0, - MAX ( 72 ) + + 21 AS col2
----
84
-3621
-51

query II rowsort
SELECT DISTINCT + 55 col0, - 4 * - ( - 71 ) + - - 23 AS col1
----
55
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT DISTINCT + COUNT( * ) * + + 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9005
SELECT DISTINCT + COUNT ( * ) * + + 21 AS col1
----
21

query II rowsort
SELECT ALL + 67, 72 AS col0
----
67
72

query I rowsort
SELECT 35 * - + 72 - 28
----
-2548

onlyif mysql # aggregate syntax: 
query II rowsort label-9008
SELECT + 71, - COALESCE ( - - 87, + NULLIF ( - COUNT( * ), + 70 - - 33 ) ) AS col0
----
71
-87

skipif mysql # not compatible
query II rowsort label-9008
SELECT + 71, - COALESCE ( - - 87, + NULLIF ( - COUNT ( * ), + 70 - - 33 ) ) AS col0
----
71
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT SUM( + 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-9009
SELECT SUM ( + 25 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9010
SELECT + 74, ( + + COUNT( * ) ) AS col1
----
74
1

skipif mysql # not compatible
query II rowsort label-9010
SELECT + 74, ( + + COUNT ( * ) ) AS col1
----
74
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL + CASE 28 WHEN - + 84 * 48 THEN NULL WHEN - 30 - - - 56 THEN + - COUNT( * ) - + 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL + CASE 28 WHEN - + 84 * 48 THEN NULL WHEN - 30 - - - 56 THEN + - COUNT ( * ) - + 81 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT DISTINCT + SUM( 73 ) * + - 74 * - - ( - - ( + 44 ) )
----
-237688

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT + SUM ( 73 ) * + - 74 * - - ( - - ( + 44 ) )
----
-237688

query I rowsort
SELECT - 45 * 93
----
-4185

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ALL + + 29 * COUNT( * ) * - + ( ( 63 ) ) + 53 AS col1
----
-1774

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL + + 29 * COUNT ( * ) * - + ( ( 63 ) ) + 53 AS col1
----
-1774

query I rowsort
SELECT - 19 - + 13
----
-32

query II rowsort
SELECT ALL + 67 AS col0, 12 * + 8 + - 19 AS col1
----
67
77

query I rowsort
SELECT 50 * + ( - 19 ) + 49 * + 87 - 69 AS col1
----
3244

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL - SUM( - ( - 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL - SUM ( - ( - 89 ) )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9019
SELECT - - 59 DIV 31
----
1

skipif mysql # not compatible
query I rowsort label-9019
SELECT - - 59 / 31
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9020
SELECT DISTINCT + 53 * COUNT( * ) DIV 45 * - NULLIF ( 22, - + 37 + - 36 )
----
-22

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT + 53 * COUNT ( * ) / 45 * - NULLIF ( 22, - + 37 + - 36 )
----
-22

query II rowsort
SELECT - 74 col1, 81 col1
----
-74
81

query I rowsort
SELECT - - 15 + - 52 + + 5
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL - MIN( + 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL - MIN ( + 65 )
----
-65

query I rowsort
SELECT - - ( + ( - 20 ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL 79 + + SUM( DISTINCT - NULLIF ( 42, - 39 ) ) * + 55 + ( 63 ) * COUNT( * )
----
-2168

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL 79 + + SUM ( DISTINCT - NULLIF ( 42, - 39 ) ) * + 55 + ( 63 ) * COUNT ( * )
----
-2168

query I rowsort
SELECT ALL 93 + + 37 * 54 AS col2
----
2091

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT - ( - - 19 ) + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-9027
SELECT - ( - - 19 ) + COUNT ( * )
----
-18

query II rowsort
SELECT ALL 20 AS col1, + 3 AS col2
----
20
3

query II rowsort
SELECT - 31 AS col1, + 94 AS col1
----
-31
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT DISTINCT + 52 + + - COUNT( DISTINCT + 90 )
----
51

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT + 52 + + - COUNT ( DISTINCT + 90 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT - SUM( - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-9031
SELECT - SUM ( - 36 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9032
SELECT DISTINCT NULLIF ( 72, - CAST( + + 57 AS SIGNED ) / 25 * + 14 * 7 * - 77 * - 50 / + 46 ) + 7 + - 13 * 80 * 44 + 64 * + 96 col2
----
-39537

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT NULLIF ( 72, - CAST ( + + 57 AS INTEGER ) / 25 * + 14 * 7 * - 77 * - 50 / + 46 ) + 7 + - 13 * 80 * 44 + 64 * + 96 col2
----
-39537

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9033
SELECT - 83 / + 72 * - 25 + - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT - 83 / + 72 * - 25 + - ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT CAST( + - 54 AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9034
SELECT CAST ( + - 54 AS INTEGER ) AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9035
SELECT + CAST( - 15 AS SIGNED ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-9035
SELECT + CAST ( - 15 AS INTEGER ) col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9036
SELECT DISTINCT 89 DIV - - COUNT( * ) - + - ( - + 52 )
----
37

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT 89 / - - COUNT ( * ) - + - ( - + 52 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT CAST( 18 AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9037
SELECT CAST ( 18 AS INTEGER ) AS col1
----
18

query I rowsort
SELECT + 53 + 12 + ( 87 ) AS col1
----
152

query I rowsort
SELECT + 12 * 4 * 60
----
2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9040
SELECT + CAST( SUM( ALL 38 ) AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-9040
SELECT + CAST ( SUM ( ALL 38 ) AS INTEGER )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9041
SELECT - 1 * + + 58 * - 85 * + + COALESCE ( 57, + - 79, - 27 * - 32 + 90 + + 9 * + 7 DIV - + COUNT( * ) DIV + - 66 ) * 36 + + 23 - - 8 AS col0
----
10116391

skipif mysql # not compatible
query I rowsort label-9041
SELECT - 1 * + + 58 * - 85 * + + COALESCE ( 57, + - 79, - 27 * - 32 + 90 + + 9 * + 7 / - + COUNT ( * ) / + - 66 ) * 36 + + 23 - - 8 AS col0
----
10116391

onlyif mysql # aggregate syntax: 
query II rowsort label-9042
SELECT + 81 * 35 AS col1, + 73 * + + COUNT( * )
----
2835
73

skipif mysql # not compatible
query II rowsort label-9042
SELECT + 81 * 35 AS col1, + 73 * + + COUNT ( * )
----
2835
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT - 99 - - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-9043
SELECT - 99 - - COUNT ( * )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT + 87 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT + 87 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 40 * + 55
----
-2200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9046
SELECT + 63 + CAST( - 39 AS SIGNED ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9046
SELECT + 63 + CAST ( - 39 AS INTEGER ) AS col1
----
24

query I rowsort
SELECT + + 79 + + 14 + - + 79
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9048
SELECT + ( COUNT( * ) ) AS col1, + 25 + - COUNT( * )
----
1
24

skipif mysql # not compatible
query II rowsort label-9048
SELECT + ( COUNT ( * ) ) AS col1, + 25 + - COUNT ( * )
----
1
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9049
SELECT - + ( - COUNT( ALL + 85 ) ) AS col2, + 89
----
1
89

skipif mysql # not compatible
query II rowsort label-9049
SELECT - + ( - COUNT ( ALL + 85 ) ) AS col2, + 89
----
1
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9050
SELECT + - 69 * 73 / + - CAST( NULL AS DECIMAL ) + - + 58 + + - 52 * - 99 - - + 43 / + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT + - 69 * 73 / + - CAST ( NULL AS REAL ) + - + 58 + + - 52 * - 99 - - + 43 / + 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT + COUNT( ALL - 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9051
SELECT + COUNT ( ALL - 33 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT DISTINCT 85 * - CAST( + - COUNT( * ) AS SIGNED ) + 79 * 13 col2
----
1112

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT 85 * - CAST ( + - COUNT ( * ) AS INTEGER ) + 79 * 13 col2
----
1112

query II rowsort
SELECT - 46 * 17, - 10 col1
----
-782
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9054
SELECT ALL - - CAST( NULL AS SIGNED ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT - ( + NULLIF ( COUNT( * ), - 24 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9055
SELECT - ( + NULLIF ( COUNT ( * ), - 24 ) )
----
-1

query I rowsort
SELECT DISTINCT - - 93 + + 83 * + 64 AS col1
----
5405

query I rowsort
SELECT ALL + 22 + 20
----
42

query I rowsort
SELECT ALL - + 42 + + 54 AS col0
----
12

query II rowsort
SELECT DISTINCT 33 AS col2, 81 AS col1
----
33
81

query I rowsort
SELECT 97 * - - ( - ( - 80 ) ) AS col2
----
7760

query I rowsort
SELECT 32 * - - 78 AS col0
----
2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9062
SELECT DISTINCT SUM( DISTINCT 33 ) DIV - 98, 65 + - 62 AS col1
----
0
3

skipif mysql # not compatible
query II rowsort label-9062
SELECT DISTINCT SUM ( DISTINCT 33 ) / - 98, 65 + - 62 AS col1
----
0
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9063
SELECT COUNT( * ) + + 69 + + + COUNT( * ) * + COALESCE ( - 63, + + COALESCE ( - CAST( - + 66 AS SIGNED ), - - 29 - - 29 + 54 DIV + AVG ( + 60 ) * - 4 DIV + CASE 57 WHEN COUNT( * ) THEN NULL WHEN ( + CASE + 46 WHEN + AVG ( DISTINCT - 63 ) THEN - COUNT( - 55 ) ELSE + - 82 END ) THEN ( - - 53 ) * 47 - - 47 * - 31 ELSE NULL END - - 55 + 42 + 89, + MIN( ALL + - 86 ) * - 56 + + + 7 * - + ( - 73 ) + - - 92 + CAST( NULL AS SIGNED ) ) ) + - 87 * - 92
----
8011

skipif mysql # not compatible
query I rowsort label-9063
SELECT COUNT ( * ) + + 69 + + + COUNT ( * ) * + COALESCE ( - 63, + + COALESCE ( - CAST ( - + 66 AS INTEGER ), - - 29 - - 29 + 54 / + AVG ( + 60 ) * - 4 / + CASE 57 WHEN COUNT ( * ) THEN NULL WHEN ( + CASE + 46 WHEN + AVG ( DISTINCT - 63 ) THEN - COUNT ( - 55 ) ELSE + - 82 END ) THEN ( - - 53 ) * 47 - - 47 * - 31 ELSE NULL END - - 55 + 42 + 89, + MIN ( ALL + - 86 ) * - 56 + + + 7 * - + ( - 73 ) + - - 92 + CAST ( NULL AS INTEGER ) ) ) + - 87 * - 92
----
8011

query I rowsort
SELECT 16 - + 94
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT ALL COUNT( * ) * 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL COUNT ( * ) * 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT 22 * - MAX( ALL + 31 ) col0
----
-682

skipif mysql # not compatible
query I rowsort label-9066
SELECT 22 * - MAX ( ALL + 31 ) col0
----
-682

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9067
SELECT ALL + 71 DIV + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL + 71 / + COUNT ( * )
----
71

query II rowsort
SELECT ALL - ( 83 ) - + 86 AS col0, + 65
----
-169
65

query I rowsort
SELECT DISTINCT - CASE + - 23 WHEN - 2 THEN + 35 WHEN - + 83 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9070
SELECT DISTINCT - 74, CAST( + - 14 AS SIGNED ) AS col0
----
-74
-14

skipif mysql # not compatible
query II rowsort label-9070
SELECT DISTINCT - 74, CAST ( + - 14 AS INTEGER ) AS col0
----
-74
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9071
SELECT 22 * - - 83 * - + MAX( + 18 ) * - CASE + + 34 WHEN COUNT( * ) THEN NULL WHEN + - NULLIF ( 28, 75 / + + 91 ) THEN 67 ELSE NULL END + + - MAX( ALL + + 0 ) * + 33 - - 5 - - 86 + + 0 - 22 + - COALESCE ( - 40, - 67, - CAST( NULL AS SIGNED ) + + - CASE + COUNT( * ) WHEN - 26 THEN - 39 ELSE - SUM( 9 ) END / - - NULLIF ( + 12, ( - 37 ) * 45 ) ) * + - 48 * - - ( + + 80 ) * + NULLIF ( ( + COUNT( * ) ), 38 ) * - - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9071
SELECT 22 * - - 83 * - + MAX ( + 18 ) * - CASE + + 34 WHEN COUNT ( * ) THEN NULL WHEN + - NULLIF ( 28, 75 / + + 91 ) THEN 67 ELSE NULL END + + - MAX ( ALL + + 0 ) * + 33 - - 5 - - 86 + + 0 - 22 + - COALESCE ( - 40, - 67, - CAST ( NULL AS INTEGER ) + + - CASE + COUNT ( * ) WHEN - 26 THEN - 39 ELSE - SUM ( 9 ) END / - - NULLIF ( + 12, ( - 37 ) * 45 ) ) * + - 48 * - - ( + + 80 ) * + NULLIF ( ( + COUNT ( * ) ), 38 ) * - - 68 AS col1
----
NULL

query I rowsort
SELECT 57 + 34
----
91

query I rowsort
SELECT ALL 81 * + 2 AS col1
----
162

query I rowsort
SELECT DISTINCT - ( - 14 ) AS col2
----
14

query I rowsort
SELECT ALL - 81 * - - 89
----
-7209

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT DISTINCT + ( - COUNT( * ) ) + + - 20 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT + ( - COUNT ( * ) ) + + - 20 AS col2
----
-21

query I rowsort
SELECT DISTINCT 69 + + 92
----
161

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9078
SELECT DISTINCT - + 89 col0, 90 / + CAST( NULL AS DECIMAL ) + 25
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-9078
SELECT DISTINCT - + 89 col0, 90 / + CAST ( NULL AS REAL ) + 25
----
-89
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9079
SELECT + COALESCE ( + - 12, ( 29 ) * - + CAST( NULL AS SIGNED ) * 18, - + 69 + + COALESCE ( 67, + 1 ) * 31 * 92 ) DIV + + 33 + + - 89 + 2 + - 81 * + COUNT( DISTINCT - 22 ) AS col0
----
-168

skipif mysql # not compatible
query I rowsort label-9079
SELECT + COALESCE ( + - 12, ( 29 ) * - + CAST ( NULL AS INTEGER ) * 18, - + 69 + + COALESCE ( 67, + 1 ) * 31 * 92 ) / + + 33 + + - 89 + 2 + - 81 * + COUNT ( DISTINCT - 22 ) AS col0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT + MAX( ALL - - 7 ) * + - 93 - - COUNT( * )
----
-650

skipif mysql # not compatible
query I rowsort label-9080
SELECT + MAX ( ALL - - 7 ) * + - 93 - - COUNT ( * )
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL 11 + - NULLIF ( - - 80, + NULLIF ( + + COUNT( * ), - - 29 ) ) * - + 63
----
5051

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL 11 + - NULLIF ( - - 80, + NULLIF ( + + COUNT ( * ), - - 29 ) ) * - + 63
----
5051

query II rowsort
SELECT + - 76 AS col2, 39 * - + 85 AS col2
----
-76
-3315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9083
SELECT ALL 25 * + 82 - 37 * COALESCE ( + + 60, - COUNT( * ) DIV - 86 * + + 25 + - COUNT( * ) ) col1
----
-170

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL 25 * + 82 - 37 * COALESCE ( + + 60, - COUNT ( * ) / - 86 * + + 25 + - COUNT ( * ) ) col1
----
-170

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT - ( 15 ) DIV + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT - ( 15 ) / + 77 AS col2
----
0

query I rowsort
SELECT ALL + 87 + + + 16 col0
----
103

query I rowsort
SELECT + 4 * + 76
----
304

query I rowsort
SELECT DISTINCT 96 + 95 + + - 78 * + 93 * 68 + - 56 AS col0
----
-493137

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT + COUNT( * ) * + + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9088
SELECT + COUNT ( * ) * + + 62 AS col1
----
62

query I rowsort
SELECT ALL + 51 + + ( COALESCE ( 62, - - 63 ) ) * - 24 AS col0
----
-1437

query I rowsort
SELECT DISTINCT + NULLIF ( + NULLIF ( - 17, + 42 ), 23 * - - 22 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL SUM( + 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL SUM ( + 86 ) AS col2
----
86

query I rowsort
SELECT - 11 + - 5
----
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-9093
SELECT - - 2 col2, 61 DIV + 70
----
2
0

skipif mysql # not compatible
query II rowsort label-9093
SELECT - - 2 col2, 61 / + 70
----
2
0

query I rowsort
SELECT - 94 - + 73 AS col2
----
-167

query I rowsort
SELECT ALL + + 2 - 52 AS col2
----
-50

query I rowsort
SELECT ALL - 84 * - - 72 AS col0
----
-6048

query I rowsort
SELECT 7 + - 99 col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT 16 + + + 56 + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9098
SELECT 16 + + + 56 + COUNT ( * ) AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT DISTINCT - CAST( - CAST( + - 85 AS SIGNED ) AS SIGNED ) * - 98 * + + 99 AS col2
----
824670

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT - CAST ( - CAST ( + - 85 AS INTEGER ) AS INTEGER ) * - 98 * + + 99 AS col2
----
824670

query I rowsort
SELECT 26 + - - 78
----
104

query I rowsort
SELECT ALL - ( - + 19 ) * + + 47 + + + 94 AS col2
----
987

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT DISTINCT + 67 * + - ( - COUNT( ALL - + 30 ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT + 67 * + - ( - COUNT ( ALL - + 30 ) ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9103
SELECT 12 + - 85 DIV + CAST( + MIN( - + 74 ) AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9103
SELECT 12 + - 85 / + CAST ( + MIN ( - + 74 ) AS INTEGER ) AS col0
----
13

query I rowsort
SELECT 51 + - 37 * 83
----
-3020

query I rowsort
SELECT 57 * + - 13
----
-741

query I rowsort
SELECT 31 * - 61
----
-1891

query I rowsort
SELECT 38 - + 66
----
-28

query I rowsort
SELECT ALL 92 * - 92 + - + 52
----
-8516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9109
SELECT - COUNT( * ) * 51 + 24 DIV COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-9109
SELECT - COUNT ( * ) * 51 + 24 / COUNT ( * )
----
-27

query I rowsort
SELECT 57 * + 31 AS col1
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL - 69 * + COUNT( * ) + + 43 + + + CASE 96 WHEN + + 35 + - + SUM( 16 ) THEN + ( 14 ) WHEN 38 THEN 19 * - 12 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL - 69 * + COUNT ( * ) + + 43 + + + CASE 96 WHEN + + 35 + - + SUM ( 16 ) THEN + ( 14 ) WHEN 38 THEN 19 * - 12 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9112
SELECT + - 23 DIV + 94 - + 98 - - + 72 DIV - + 68 + + COUNT( * ) * 8
----
-91

skipif mysql # not compatible
query I rowsort label-9112
SELECT + - 23 / + 94 - + 98 - - + 72 / - + 68 + + COUNT ( * ) * 8
----
-91

query I rowsort
SELECT ALL - + 43 * + 34 AS col2
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT + COUNT( * ) - - ( + 94 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9114
SELECT + COUNT ( * ) - - ( + 94 ) AS col2
----
95

query II rowsort
SELECT + - ( - 20 ) AS col2, 74 + 6
----
20
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT + 1 + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9116
SELECT + 1 + + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9117
SELECT ALL - - NULLIF ( + 60, - - AVG ( + ( - 77 ) ) + + 61 + COALESCE ( CAST( NULL AS SIGNED ), - 52 + - + 80 + + + 51 * + 56 + + 93 / - - ( + - COUNT( 84 ) ) * + COUNT( DISTINCT ( - + 16 ) ) + COALESCE ( CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE - CASE 62 WHEN 10 THEN 7 END END, 59 + - COUNT( * ) * - - 83, 12 * 88 + - 12 ) ) / ( 52 ) * + 55 + - + CASE 45 WHEN - + 19 THEN NULL WHEN - + 95 THEN 55 / 34 + 84 * 18 WHEN + - 77 THEN - 2 ELSE NULL END + + 86 ) + - 20 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL - - NULLIF ( + 60, - - AVG ( + ( - 77 ) ) + + 61 + COALESCE ( CAST ( NULL AS INTEGER ), - 52 + - + 80 + + + 51 * + 56 + + 93 / - - ( + - COUNT ( 84 ) ) * + COUNT ( DISTINCT ( - + 16 ) ) + COALESCE ( CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE - CASE 62 WHEN 10 THEN 7 END END, 59 + - COUNT ( * ) * - - 83, 12 * 88 + - 12 ) ) / ( 52 ) * + 55 + - + CASE 45 WHEN - + 19 THEN NULL WHEN - + 95 THEN 55 / 34 + 84 * 18 WHEN + - 77 THEN - 2 ELSE NULL END + + 86 ) + - 20 AS col0
----
40

query I rowsort
SELECT + 59 * + + 40 + - 55 AS col2
----
2305

query I rowsort
SELECT ALL 98 - - - ( + 18 ) + + 89 * + 43 * - + 62 AS col2
----
-237194

query I rowsort
SELECT ALL 68 - + 75 AS col2
----
-7

query II rowsort
SELECT + 38 * - - 40 AS col2, + 12 col2
----
1520
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT - + CASE 30 WHEN - COALESCE ( + - 85, 64 * 55 * - 9 ) * - - 13 * + COUNT( * ) THEN 38 * + + 28 + + - 39 - + - 72 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT - + CASE 30 WHEN - COALESCE ( + - 85, 64 * 55 * - 9 ) * - - 13 * + COUNT ( * ) THEN 38 * + + 28 + + - 39 - + - 72 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9123
SELECT ALL 25 DIV 44 DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL 25 / 44 / - 42
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9124
SELECT + - 20 + + 2 + - 0 DIV 93 * + - 76
----
-18

skipif mysql # not compatible
query I rowsort label-9124
SELECT + - 20 + + 2 + - 0 / 93 * + - 76
----
-18

query I rowsort
SELECT + + 9 * + 60 AS col2
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT - CASE - ( - 8 ) WHEN + COUNT( * ) THEN SUM( DISTINCT + + 11 ) ELSE + 48 + + - 14 + - 34 END
----
0

skipif mysql # not compatible
query I rowsort label-9126
SELECT - CASE - ( - 8 ) WHEN + COUNT ( * ) THEN SUM ( DISTINCT + + 11 ) ELSE + 48 + + - 14 + - 34 END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9127
SELECT ALL + COUNT( DISTINCT 45 ) DIV + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + COUNT ( DISTINCT 45 ) / + 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT DISTINCT SUM( + 1 ) * - 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT SUM ( + 1 ) * - 40 AS col1
----
-40

query I rowsort
SELECT + 30 + + - ( 27 ) + + 34 + - 21
----
16

query I rowsort
SELECT + 89 * - - 60 col1
----
5340

onlyif mysql # DIV for integer division: 
query I rowsort label-9131
SELECT ALL + 17 DIV 82 DIV - - 90 DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL + 17 / 82 / - - 90 / + 85 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9132
SELECT + COUNT( * ) DIV - MIN( - ( + - 57 ) ) * 24 AS col0, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-9132
SELECT + COUNT ( * ) / - MIN ( - ( + - 57 ) ) * 24 AS col0, - COUNT ( * )
----
0
-1

query I rowsort
SELECT + 76 - 5
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9134
SELECT - 76 + - CAST( NULL AS SIGNED ) * 24 AS col0, ( - 88 )
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-9134
SELECT - 76 + - CAST ( NULL AS INTEGER ) * 24 AS col0, ( - 88 )
----
NULL
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT ALL COUNT( + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL COUNT ( + 61 )
----
1

query I rowsort
SELECT - ( + - 97 ) col2
----
97

query I rowsort
SELECT DISTINCT 11 + 91 AS col0
----
102

query I rowsort
SELECT DISTINCT + 36 * - 16
----
-576

query I rowsort
SELECT ALL - 81 + + 94 AS col1
----
13

query I rowsort
SELECT - 40 + - NULLIF ( - 19, + COALESCE ( - 17, - 92 ) ) + + 43 AS col2
----
22

query I rowsort
SELECT ALL 46 + + 96
----
142

query I rowsort
SELECT + ( + + 43 )
----
43

query I rowsort
SELECT + ( - NULLIF ( - 52, - 84 + + COALESCE ( 36, + 10 + - + NULLIF ( - 99, + 67 ) * - 59, + + 24 ) ) ) AS col2
----
52

query II rowsort
SELECT 9 * + - 2 + 8 + 39 + + 75, - 41 AS col2
----
104
-41

query I rowsort
SELECT ALL + 18 * - - 54
----
972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9146
SELECT + COUNT( ALL 55 ) DIV + + 18 DIV + COUNT( * ) - ( - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-9146
SELECT + COUNT ( ALL 55 ) / + + 18 / + COUNT ( * ) - ( - 13 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9147
SELECT + MIN( 34 ) DIV + - 89 + - + 24
----
-24

skipif mysql # not compatible
query I rowsort label-9147
SELECT + MIN ( 34 ) / + - 89 + - + 24
----
-24

query I rowsort
SELECT ALL + 4 * - 91 + + 32 * + 39 col2
----
884

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT ALL 90 * - 7 + + - ( - + 2 ) DIV + COALESCE ( - 49, - 62, - + 35 ) AS col0
----
-630

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL 90 * - 7 + + - ( - + 2 ) / + COALESCE ( - 49, - 62, - + 35 ) AS col0
----
-630

query I rowsort
SELECT ALL + + 7 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT + COALESCE ( - - COUNT( * ), - 54 + 36 + - COUNT( * ) * - ( 96 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9151
SELECT + COALESCE ( - - COUNT ( * ), - 54 + 36 + - COUNT ( * ) * - ( 96 ) ) col2
----
1

query II rowsort
SELECT ALL 46 * - - ( 24 ), 64 AS col1
----
1104
64

query II rowsort
SELECT + 21, 64 AS col1
----
21
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT ALL + CAST( + 1 AS SIGNED ) * - 19 - - 84 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL + CAST ( + 1 AS INTEGER ) * - 19 - - 84 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9155
SELECT ALL + - CASE - 24 WHEN CAST( NULL AS SIGNED ) + - 80 * - COUNT( * ) THEN NULL WHEN - + 15 * - - 69 * 46 + 51 * + + 62 + - 43 + ( + 29 ) THEN NULL ELSE + - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + - CASE - 24 WHEN CAST ( NULL AS INTEGER ) + - 80 * - COUNT ( * ) THEN NULL WHEN - + 15 * - - 69 * 46 + 51 * + + 62 + - 43 + ( + 29 ) THEN NULL ELSE + - COUNT ( * ) END
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT DISTINCT + CAST( - CASE 56 WHEN + 84 * - + 9 THEN 35 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT + CAST ( - CASE 56 WHEN + 84 * - + 9 THEN 35 END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 84 * 88 - + - 77
----
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT - - 99 * - COUNT( * ) * - + 34 col1
----
3366

skipif mysql # not compatible
query I rowsort label-9158
SELECT - - 99 * - COUNT ( * ) * - + 34 col1
----
3366

query I rowsort
SELECT - NULLIF ( - 15, 97 + + 34 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL + + 23 * + 31 + - 16 - + - 90 * - - MIN( DISTINCT + - 9 ) AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL + + 23 * + 31 + - 16 - + - 90 * - - MIN ( DISTINCT + - 9 ) AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - COUNT( * ) * - - 78 * + ( - NULLIF ( + 85, 49 * - 27 ) )
----
6630

skipif mysql # not compatible
query I rowsort label-9161
SELECT - COUNT ( * ) * - - 78 * + ( - NULLIF ( + 85, 49 * - 27 ) )
----
6630

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT - 39 * + - 87 * + - COUNT( * ) + + 14 - + 14 + 91 AS col0
----
-3302

skipif mysql # not compatible
query I rowsort label-9162
SELECT - 39 * + - 87 * + - COUNT ( * ) + + 14 - + 14 + 91 AS col0
----
-3302

query I rowsort
SELECT ALL + + 31 * 21 AS col2
----
651

query I rowsort
SELECT + 30 * - 56 AS col1
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT MAX( + 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9165
SELECT MAX ( + 32 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT MAX( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-9166
SELECT MAX ( - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + COUNT( + + 4 ) * - - 87
----
87

skipif mysql # not compatible
query I rowsort label-9167
SELECT + COUNT ( + + 4 ) * - - 87
----
87

query I rowsort
SELECT - 94 * 5 AS col0
----
-470

query I rowsort
SELECT - 53 + - 92 + + 94 - - - 4 * + 74
----
-347

query II rowsort
SELECT ALL 44 col2, 49
----
44
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL 58 + - MIN( + - ( + 40 ) ) + 83
----
181

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL 58 + - MIN ( + - ( + 40 ) ) + 83
----
181

onlyif mysql # aggregate syntax: 
query II rowsort label-9172
SELECT DISTINCT - COALESCE ( + ( 76 ), - 48 + - 84 - + - MAX( 28 ) * - + 15, + 73 * + 69 ) + - + 17 * - 52 + + COUNT( * ) + 50 AS col0, + 89 * - 42 * 40 AS col0
----
859
-149520

skipif mysql # not compatible
query II rowsort label-9172
SELECT DISTINCT - COALESCE ( + ( 76 ), - 48 + - 84 - + - MAX ( 28 ) * - + 15, + 73 * + 69 ) + - + 17 * - 52 + + COUNT ( * ) + 50 AS col0, + 89 * - 42 * 40 AS col0
----
859
-149520

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ALL 35 * + 98 * - COUNT( DISTINCT + - 42 )
----
-3430

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL 35 * + 98 * - COUNT ( DISTINCT + - 42 )
----
-3430

query I rowsort
SELECT + 40 * - 12
----
-480

query I rowsort
SELECT + 99 + - 49
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9176
SELECT DISTINCT 61 AS col0, - COUNT( * )
----
61
-1

skipif mysql # not compatible
query II rowsort label-9176
SELECT DISTINCT 61 AS col0, - COUNT ( * )
----
61
-1

query I rowsort
SELECT ALL 99 * + - ( 89 )
----
-8811

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT + 4 + + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9178
SELECT + 4 + + COUNT ( * ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + 63 * + - CASE + COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE - - COALESCE ( 33, + + ( - + 52 ), 38 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT + 63 * + - CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE - - COALESCE ( 33, + + ( - + 52 ), 38 ) END AS col2
----
NULL

query I rowsort
SELECT + 81 + - + 64 AS col2
----
17

query II rowsort
SELECT 1, 26 AS col0
----
1
26

query I rowsort
SELECT DISTINCT 92 + - 58 AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9183
SELECT ALL + COUNT( * ) AS col0, 96 col2
----
1
96

skipif mysql # not compatible
query II rowsort label-9183
SELECT ALL + COUNT ( * ) AS col0, 96 col2
----
1
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT + CAST( - - 55 AS SIGNED ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9184
SELECT + CAST ( - - 55 AS INTEGER ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9185
SELECT ALL + - CAST( + + COUNT( ALL + 71 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + - CAST ( + + COUNT ( ALL + 71 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9186
SELECT DISTINCT + ( - NULLIF ( + 24, + CAST( NULL AS SIGNED ) ) ) AS col0, + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2
----
-24
0

skipif mysql # not compatible
query II rowsort label-9186
SELECT DISTINCT + ( - NULLIF ( + 24, + CAST ( NULL AS INTEGER ) ) ) AS col0, + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2
----
-24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT 61 + + 95 * - 64 * - - 41 * - COUNT( * ) AS col1
----
249341

skipif mysql # not compatible
query I rowsort label-9187
SELECT 61 + + 95 * - 64 * - - 41 * - COUNT ( * ) AS col1
----
249341

query I rowsort
SELECT DISTINCT - 88 - 95 AS col0
----
-183

query I rowsort
SELECT ALL + + 76 * 26
----
1976

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9190
SELECT + 67 * - + 99 - 51 + - COUNT( ALL + 14 ) + - 54 AS col0, - 44 DIV + COUNT( * )
----
-6739
-44

skipif mysql # not compatible
query II rowsort label-9190
SELECT + 67 * - + 99 - 51 + - COUNT ( ALL + 14 ) + - 54 AS col0, - 44 / + COUNT ( * )
----
-6739
-44

query I rowsort
SELECT DISTINCT + + 50 * - + 16 AS col2
----
-800

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT DISTINCT 62 DIV - 33 + - + 38
----
-39

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT 62 / - 33 + - + 38
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9193
SELECT ALL - 33 - + COALESCE ( - - SUM( DISTINCT + 37 ), ( + - 10 ) * + - 48 + 95 + - + COUNT( * ) DIV - 63 + + 81 * - 10, + 45 * - 63 + - - 40, - 70 ) AS col0, 43 AS col1
----
-70
43

skipif mysql # not compatible
query II rowsort label-9193
SELECT ALL - 33 - + COALESCE ( - - SUM ( DISTINCT + 37 ), ( + - 10 ) * + - 48 + 95 + - + COUNT ( * ) / - 63 + + 81 * - 10, + 45 * - 63 + - - 40, - 70 ) AS col0, 43 AS col1
----
-70
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT + COUNT( * ) * - 80 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-9194
SELECT + COUNT ( * ) * - 80 AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9195
SELECT NULLIF ( - - 89, + CASE - 24 WHEN + 97 + + 2 * - + 97 THEN NULL WHEN + + COALESCE ( - + 57, - 91 ) * 85 * 49 + + CAST( NULL AS SIGNED ) + - MAX( ( - + 74 ) ) THEN - 72 + CAST( NULL AS SIGNED ) ELSE 81 END + - 27 + 29 ) * + 93
----
8277

skipif mysql # not compatible
query I rowsort label-9195
SELECT NULLIF ( - - 89, + CASE - 24 WHEN + 97 + + 2 * - + 97 THEN NULL WHEN + + COALESCE ( - + 57, - 91 ) * 85 * 49 + + CAST ( NULL AS INTEGER ) + - MAX ( ( - + 74 ) ) THEN - 72 + CAST ( NULL AS INTEGER ) ELSE 81 END + - 27 + 29 ) * + 93
----
8277

query I rowsort
SELECT + 50 + 29 * - - 6 AS col0
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT 53 DIV + - 76 - 61 - - - 58 * - 57 DIV 71 DIV - 84 DIV 3 + - 89 + 44 AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-9197
SELECT 53 / + - 76 - 61 - - - 58 * - 57 / 71 / - 84 / 3 + - 89 + 44 AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT MAX( - - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-9198
SELECT MAX ( - - 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT - COALESCE ( + + CASE 32 WHEN - + 94 THEN + + 4 WHEN - COUNT( * ) + - + 66 THEN NULL END, 72, + - ( + COUNT( * ) ) * + 15 ) + 52 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9199
SELECT - COALESCE ( + + CASE 32 WHEN - + 94 THEN + + 4 WHEN - COUNT ( * ) + - + 66 THEN NULL END, 72, + - ( + COUNT ( * ) ) * + 15 ) + 52 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT 79 * - - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-9200
SELECT 79 * - - COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT 92 * + - 48 + COUNT( DISTINCT ( + 68 ) ) AS col2
----
-4415

skipif mysql # not compatible
query I rowsort label-9201
SELECT 92 * + - 48 + COUNT ( DISTINCT ( + 68 ) ) AS col2
----
-4415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-9202
SELECT DISTINCT - MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col0, + COUNT( + CAST( + + 32 AS DECIMAL ) ) DIV CAST( 13 AS SIGNED ) + - + COUNT( * ) * + 5
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-9202
SELECT DISTINCT - MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0, + COUNT ( + CAST ( + + 32 AS REAL ) ) / CAST ( 13 AS INTEGER ) + - + COUNT ( * ) * + 5
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT DISTINCT - + ( - COUNT( 97 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT - + ( - COUNT ( 97 ) ) AS col0
----
1

query II rowsort
SELECT ALL - ( + - 61 ) AS col0, 22 * + 3 / + ( + - AVG ( ALL 19 ) ) * + CASE 43 WHEN - 4 THEN + NULLIF ( - 30, 5 ) END
----
61
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9205
SELECT ALL - 48 DIV 29 - 15 + 33
----
17

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL - 48 / 29 - 15 + 33
----
17

query I rowsort
SELECT + 13 + 84
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9207
SELECT + 22 DIV 71 + + ( + 39 ) DIV - MIN( + 36 ) + + COUNT( * ), - ( 16 ) + + + 82 + 40 AS col2
----
0
106

skipif mysql # not compatible
query II rowsort label-9207
SELECT + 22 / 71 + + ( + 39 ) / - MIN ( + 36 ) + + COUNT ( * ), - ( 16 ) + + + 82 + 40 AS col2
----
0
106

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT DISTINCT - + 66 DIV - 54 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - + 66 / - 54 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL - COALESCE ( + - CASE 75 WHEN 12 / + 76 THEN - 16 + 99 * COUNT( * ) * + 15 * - + 96 WHEN + - 5 THEN - - 96 + - 30 ELSE NULL END, + 90, 20 ) + - + 80 * 9 + + 62 * - COUNT( * ) * 26 * 85 * + 44 AS col1
----
-6029690

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL - COALESCE ( + - CASE 75 WHEN 12 / + 76 THEN - 16 + 99 * COUNT ( * ) * + 15 * - + 96 WHEN + - 5 THEN - - 96 + - 30 ELSE NULL END, + 90, 20 ) + - + 80 * 9 + + 62 * - COUNT ( * ) * 26 * 85 * + 44 AS col1
----
-6029690

query I rowsort
SELECT 13 + - CASE 73 WHEN + 35 + 24 THEN + - 1 + + + 72 + + 16 ELSE NULL END + + 46 / + 46
----
NULL

query II rowsort
SELECT DISTINCT - 8 + 43 AS col1, - 62 AS col2
----
35
-62

query I rowsort
SELECT 61 + 50 AS col1
----
111

query I rowsort
SELECT DISTINCT + 35 * - 12 AS col1
----
-420

query I rowsort
SELECT ALL 17 + - 99
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9215
SELECT ALL + 54 * + - COUNT( * ) AS col1, 22 AS col0
----
-54
22

skipif mysql # not compatible
query II rowsort label-9215
SELECT ALL + 54 * + - COUNT ( * ) AS col1, 22 AS col0
----
-54
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT 48 + - - 24 * - - 3 * - + COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-9216
SELECT 48 + - - 24 * - - 3 * - + COUNT ( * ) AS col0
----
-24

query I rowsort
SELECT DISTINCT 52 + + - 4 AS col2
----
48

query I rowsort
SELECT 31 * + - 31 AS col0
----
-961

onlyif mysql # DIV for integer division: 
query I rowsort label-9219
SELECT 37 DIV 33 * - 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9219
SELECT 37 / 33 * - 5 AS col1
----
-5

query I rowsort
SELECT 41 - - - 58
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9221
SELECT DISTINCT 93 - + + 99 + + 81 + + 91 - 62 * - 10 * - COUNT( * ) + - CAST( - ( ( + - 21 ) ) AS SIGNED ) DIV + ( + 40 ) - + ( + 45 ) AS col2, 66 * - ( + - 89 ) * 13 * 25 + - CAST( - 55 AS SIGNED ) + - ( - - 34 ) + + 78
----
-499
1909149

skipif mysql # not compatible
query II rowsort label-9221
SELECT DISTINCT 93 - + + 99 + + 81 + + 91 - 62 * - 10 * - COUNT ( * ) + - CAST ( - ( ( + - 21 ) ) AS INTEGER ) / + ( + 40 ) - + ( + 45 ) AS col2, 66 * - ( + - 89 ) * 13 * 25 + - CAST ( - 55 AS INTEGER ) + - ( - - 34 ) + + 78
----
-499
1909149

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT 92 + COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9222
SELECT 92 + COUNT ( * ) AS col1
----
93

query I rowsort
SELECT ALL + 64 - 64 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT + + 7 - MAX( ALL + 70 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT + + 7 - MAX ( ALL + 70 ) AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9225
SELECT ALL - 59 DIV 28 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL - 59 / 28 AS col2
----
-2

query I rowsort
SELECT ALL - + ( - - ( 81 ) ) col2
----
-81

query I rowsort
SELECT ALL ( + 99 ) * - 42
----
-4158

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT 25 DIV 11 * - 60 * 46
----
-5520

skipif mysql # not compatible
query I rowsort label-9228
SELECT 25 / 11 * - 60 * 46
----
-5520

onlyif mysql # aggregate syntax: 
query II rowsort label-9229
SELECT + 95 * + 30, + COUNT( * ) + COUNT( * ) * + 18 - 70 AS col1
----
2850
-51

skipif mysql # not compatible
query II rowsort label-9229
SELECT + 95 * + 30, + COUNT ( * ) + COUNT ( * ) * + 18 - 70 AS col1
----
2850
-51

query I rowsort
SELECT DISTINCT + 35 * - - 48 * - 33
----
-55440

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT 15 * + 88 * + COUNT( * ) AS col0
----
1320

skipif mysql # not compatible
query I rowsort label-9231
SELECT 15 * + 88 * + COUNT ( * ) AS col0
----
1320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9232
SELECT - 40 DIV MAX( 12 ) + + + 37 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9232
SELECT - 40 / MAX ( 12 ) + + + 37 AS col1
----
34

query I rowsort
SELECT - ( - - 66 ) + 16 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT + ( ( - COUNT( * ) ) ) AS col2, 37 AS col0
----
-1
37

skipif mysql # not compatible
query II rowsort label-9234
SELECT + ( ( - COUNT ( * ) ) ) AS col2, 37 AS col0
----
-1
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9235
SELECT ALL - + MIN( + - 52 ) AS col1, CAST( NULL AS SIGNED ) + - 61 + 37 AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-9235
SELECT ALL - + MIN ( + - 52 ) AS col1, CAST ( NULL AS INTEGER ) + - 61 + 37 AS col1
----
52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT DISTINCT - - 6 * COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT - - 6 * COUNT ( * ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL - COUNT( * ) * - - 46
----
-46

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - COUNT ( * ) * - - 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL COUNT( ALL + 4 ) + - + COUNT( * ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL COUNT ( ALL + 4 ) + - + COUNT ( * ) * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9239
SELECT - + 58 * + + 57 * - 82 * + + 38 / + - COUNT( * ) + COUNT( * ) * - + ( + 22 ) * 50 + + + 15 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9239
SELECT - + 58 * + + 57 * - 82 * + + 38 / + - COUNT ( * ) + COUNT ( * ) * - + ( + 22 ) * 50 + + + 15 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9240
SELECT ALL - ( CASE 35 WHEN - 16 THEN - + CAST( NULL AS SIGNED ) ELSE NULL END ) + + 84 + ( + - 44 ) * 59 / - 88 - + - 3, + MAX( 72 ) AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-9240
SELECT ALL - ( CASE 35 WHEN - 16 THEN - + CAST ( NULL AS INTEGER ) ELSE NULL END ) + + 84 + ( + - 44 ) * 59 / - 88 - + - 3, + MAX ( 72 ) AS col0
----
NULL
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT + MAX( + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9241
SELECT + MAX ( + 17 ) AS col0
----
17

query I rowsort
SELECT DISTINCT 94 + - 0 col2
----
94

query I rowsort
SELECT DISTINCT - ( - + 98 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9244
SELECT ALL - 95 + + 36 * - COALESCE ( + 64, 97 ) * + 92 * NULLIF ( COUNT( * ), - 82 ) * COUNT( * ) + + 71, 53 - - 20 AS col1
----
-211992
73

skipif mysql # not compatible
query II rowsort label-9244
SELECT ALL - 95 + + 36 * - COALESCE ( + 64, 97 ) * + 92 * NULLIF ( COUNT ( * ), - 82 ) * COUNT ( * ) + + 71, 53 - - 20 AS col1
----
-211992
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT 58 * + - 9 * - 86 - + + MAX( - 83 ) * + 35 col0
----
47797

skipif mysql # not compatible
query I rowsort label-9245
SELECT 58 * + - 9 * - 86 - + + MAX ( - 83 ) * + 35 col0
----
47797

query I rowsort
SELECT 51 + - + 55
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ALL MAX( + + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL MAX ( + + 61 )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9248
SELECT DISTINCT 0 AS col0, CASE + - 56 WHEN - + 66 THEN - - 87 WHEN - 27 THEN + 84 + - 93 - COUNT( * ) * + + 21 END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9248
SELECT DISTINCT 0 AS col0, CASE + - 56 WHEN - + 66 THEN - - 87 WHEN - 27 THEN + 84 + - 93 - COUNT ( * ) * + + 21 END AS col2
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9249
SELECT ALL + CAST( + + 37 AS SIGNED ) + CAST( NULL AS SIGNED ) + + + 34 / - 54 * - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL + CAST ( + + 37 AS INTEGER ) + CAST ( NULL AS INTEGER ) + + + 34 / - 54 * - 49 AS col1
----
NULL

query II rowsort
SELECT 41 + 61 * 3 AS col2, 44 + + 2 AS col0
----
224
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT - 8 AS col0, + ( + - 76 ) * - - 79 + + COUNT( * ) AS col1
----
-8
-6003

skipif mysql # not compatible
query II rowsort label-9251
SELECT - 8 AS col0, + ( + - 76 ) * - - 79 + + COUNT ( * ) AS col1
----
-8
-6003

query II rowsort
SELECT - 10, - 63 AS col0
----
-10
-63

query I rowsort
SELECT 50 + 17
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT 86 - - 39 + - - 22 + + + 9 * + NULLIF ( 86, - 17 ) * + SUM( + 87 )
----
67485

skipif mysql # not compatible
query I rowsort label-9254
SELECT 86 - - 39 + - - 22 + + + 9 * + NULLIF ( 86, - 17 ) * + SUM ( + 87 )
----
67485

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT ALL MAX( DISTINCT - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL MAX ( DISTINCT - 61 ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9256
SELECT 13 AS col0, CASE + - 50 WHEN - 28 - 18 + - 16 + - COUNT( * ) + - - ( - 87 ) * + 57 * 46 * - 24 - 99 * + COUNT( DISTINCT + 51 ) * + - 88 + + 86 * 77 THEN NULL WHEN 42 THEN + 29 ELSE NULL END + + - 40 + - CAST( 89 AS SIGNED ) * 28 + + - MIN( - 60 )
----
13
NULL

skipif mysql # not compatible
query II rowsort label-9256
SELECT 13 AS col0, CASE + - 50 WHEN - 28 - 18 + - 16 + - COUNT ( * ) + - - ( - 87 ) * + 57 * 46 * - 24 - 99 * + COUNT ( DISTINCT + 51 ) * + - 88 + + 86 * 77 THEN NULL WHEN 42 THEN + 29 ELSE NULL END + + - 40 + - CAST ( 89 AS INTEGER ) * 28 + + - MIN ( - 60 )
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT DISTINCT MAX( DISTINCT - - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT MAX ( DISTINCT - - 13 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9258
SELECT DISTINCT 68 col0, COUNT( * ) * - + 45 AS col2
----
68
-45

skipif mysql # not compatible
query II rowsort label-9258
SELECT DISTINCT 68 col0, COUNT ( * ) * - + 45 AS col2
----
68
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9259
SELECT ALL - 87 * - + CASE + COALESCE ( + - COALESCE ( 99, 5 ), COUNT( * ), - 45 ) WHEN + NULLIF ( CAST( NULL AS SIGNED ), + + 19 ) / COUNT( * ) THEN NULL ELSE - 86 END * - 9 * 43 + 72 + + - ( + 93 ), 64 AS col0
----
2895513
64

skipif mysql # not compatible
query II rowsort label-9259
SELECT ALL - 87 * - + CASE + COALESCE ( + - COALESCE ( 99, 5 ), COUNT ( * ), - 45 ) WHEN + NULLIF ( CAST ( NULL AS INTEGER ), + + 19 ) / COUNT ( * ) THEN NULL ELSE - 86 END * - 9 * 43 + 72 + + - ( + 93 ), 64 AS col0
----
2895513
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9260
SELECT - COALESCE ( 41, - COUNT( * ) ) + COALESCE ( 50, + ( + 43 ) + - + 31 DIV + 38 * 24 ) * + 0 * + COUNT( * ) + + ( - 8 )
----
-49

skipif mysql # not compatible
query I rowsort label-9260
SELECT - COALESCE ( 41, - COUNT ( * ) ) + COALESCE ( 50, + ( + 43 ) + - + 31 / + 38 * 24 ) * + 0 * + COUNT ( * ) + + ( - 8 )
----
-49

query I rowsort
SELECT DISTINCT - 5 * + 9 AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9262
SELECT - 86 + CASE - COALESCE ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - + ( + 11 ) / 7 + + ( 52 ) + CAST( - - 12 AS SIGNED ), + - 1 + - 79 ) WHEN - NULLIF ( + ( 68 ), 77 ) * - 15 - - + 92 + - 76 THEN - 37 END + 15 + COUNT( * ) * - - COUNT( * ) + + 21 * - 93 / + - 3 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT - 86 + CASE - COALESCE ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - + ( + 11 ) / 7 + + ( 52 ) + CAST ( - - 12 AS INTEGER ), + - 1 + - 79 ) WHEN - NULLIF ( + ( 68 ), 77 ) * - 15 - - + 92 + - 76 THEN - 37 END + 15 + COUNT ( * ) * - - COUNT ( * ) + + 21 * - 93 / + - 3 + 84
----
NULL

query I rowsort
SELECT COALESCE ( - + 4, + ( - - 41 ) ) AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9264
SELECT CASE CAST( - - CASE - 61 WHEN + 1 / - ( MAX( - 59 ) ) - - 94 THEN NULL WHEN + ( 34 ) THEN NULL ELSE + 5 END AS SIGNED ) WHEN + + 6 * + 75 + - 24 THEN + 2 * 51 / + 39 / - 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT CASE CAST ( - - CASE - 61 WHEN + 1 / - ( MAX ( - 59 ) ) - - 94 THEN NULL WHEN + ( 34 ) THEN NULL ELSE + 5 END AS INTEGER ) WHEN + + 6 * + 75 + - 24 THEN + 2 * 51 / + 39 / - 59 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9265
SELECT + MIN( + 16 ) DIV + COUNT( * ) col2, + 14 AS col2, - CASE WHEN NOT MAX( DISTINCT + 92 ) IS NULL THEN NULL ELSE COUNT( * ) END
----
16
14
NULL

skipif mysql # not compatible
query III rowsort label-9265
SELECT + MIN ( + 16 ) / + COUNT ( * ) col2, + 14 AS col2, - CASE WHEN NOT MAX ( DISTINCT + 92 ) IS NULL THEN NULL ELSE COUNT ( * ) END
----
16
14
NULL

query I rowsort
SELECT - + 42 + + - 42 - + - 60
----
-24

query I rowsort
SELECT ( - 67 ) AS col1
----
-67

query I rowsort
SELECT + 6 + ( - 1 ) + - + 96 AS col0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9269
SELECT DISTINCT 80 DIV COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT 80 / COUNT ( * ) AS col2
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT + 96 DIV 5 + + 32
----
51

skipif mysql # not compatible
query I rowsort label-9270
SELECT + 96 / 5 + + 32
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9271
SELECT DISTINCT + 91, 27 + - COUNT( * ) + - - 72 - + COUNT( * ) * + 24 / 17 + + 26 * CAST( NULL AS SIGNED ) * COALESCE ( - - 22, + 19, + + 15 + - ( 43 ) + + 98 ) + + 54 + - 22 * + + 85 AS col0
----
91
NULL

skipif mysql # not compatible
query II rowsort label-9271
SELECT DISTINCT + 91, 27 + - COUNT ( * ) + - - 72 - + COUNT ( * ) * + 24 / 17 + + 26 * CAST ( NULL AS INTEGER ) * COALESCE ( - - 22, + 19, + + 15 + - ( 43 ) + + 98 ) + + 54 + - 22 * + + 85 AS col0
----
91
NULL

query I rowsort
SELECT ALL - + 35 * + 98 + - - 32 + - 86 + - - 24 * 79 AS col2
----
-1588

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT DISTINCT - COUNT( * ) * + 17 + + 72 + + + 88 AS col2
----
143

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT - COUNT ( * ) * + 17 + + 72 + + + 88 AS col2
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9274
SELECT ALL + - COUNT( * ), - ( + 97 ) - + - CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9274
SELECT ALL + - COUNT ( * ), - ( + 97 ) - + - CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT ALL + - 15 * + - 80 * + 91 - - - 30 + + 23 - - COUNT( * ) - + 75 + + 0 * - CASE + + 42 WHEN - + 44 THEN MAX( DISTINCT - + 56 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL + - 15 * + - 80 * + 91 - - - 30 + + 23 - - COUNT ( * ) - + 75 + + 0 * - CASE + + 42 WHEN - + 44 THEN MAX ( DISTINCT - + 56 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 34 + 5
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT ( ( - CAST( + - 20 AS SIGNED ) ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9277
SELECT ( ( - CAST ( + - 20 AS INTEGER ) ) ) AS col1
----
20

query I rowsort
SELECT - 28 * 85 + - 84 - - + 13
----
-2451

query I rowsort
SELECT + - 60 + - + ( - 19 ) - + 12 AS col1
----
-53

query I rowsort
SELECT DISTINCT + 75 * - - 95 + + 36 AS col1
----
7161

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9281
SELECT ALL - 92 * - + ( - CAST( NULL AS DECIMAL ) ) * + + COUNT( * ) + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - 92 * - + ( - CAST ( NULL AS REAL ) ) * + + COUNT ( * ) + 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT 90 * - COUNT( * ) + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-9282
SELECT 90 * - COUNT ( * ) + - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT CASE - 93 WHEN + NULLIF ( + ( MIN( - + 21 ) ), 54 ) THEN NULL WHEN - + 58 + 62 THEN 35 * + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT CASE - 93 WHEN + NULLIF ( + ( MIN ( - + 21 ) ), 54 ) THEN NULL WHEN - + 58 + 62 THEN 35 * + 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT + COUNT( * ) + + - 27 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9284
SELECT + COUNT ( * ) + + - 27 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT 63 * - MIN( + 46 ) + - - 48
----
-2850

skipif mysql # not compatible
query I rowsort label-9285
SELECT 63 * - MIN ( + 46 ) + - - 48
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT MIN( ALL + 23 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-9286
SELECT MIN ( ALL + 23 ) col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT COUNT( - 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9287
SELECT COUNT ( - 35 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9288
SELECT + ( - COUNT( * ) ) AS col1, 14 * 28
----
-1
392

skipif mysql # not compatible
query II rowsort label-9288
SELECT + ( - COUNT ( * ) ) AS col1, 14 * 28
----
-1
392

onlyif mysql # aggregate syntax: 
query II rowsort label-9289
SELECT MIN( DISTINCT + + 56 ) AS col2, + 76 AS col2
----
56
76

skipif mysql # not compatible
query II rowsort label-9289
SELECT MIN ( DISTINCT + + 56 ) AS col2, + 76 AS col2
----
56
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9290
SELECT + 64 DIV - + 72 * + + COALESCE ( + 32, 94 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9290
SELECT + 64 / - + 72 * + + COALESCE ( + 32, 94 ) AS col0
----
0

query I rowsort
SELECT ALL 76 * + 27 col1
----
2052

query I rowsort
SELECT - COALESCE ( + 55, 37 ) AS col1
----
-55

query I rowsort
SELECT - 46 + + 79 * - - 64
----
5010

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9294
SELECT ALL + 64 - + 71 * 98 + - - 64 + - + 59 AS col2, + 14 - 79 + + + NULLIF ( + ( - - 81 ), - ( + 21 ) ) + - CAST( - - 7 AS SIGNED ) AS col2
----
-6889
9

skipif mysql # not compatible
query II rowsort label-9294
SELECT ALL + 64 - + 71 * 98 + - - 64 + - + 59 AS col2, + 14 - 79 + + + NULLIF ( + ( - - 81 ), - ( + 21 ) ) + - CAST ( - - 7 AS INTEGER ) AS col2
----
-6889
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9295
SELECT + COUNT( * ) * + 2 AS col2, 1
----
2
1

skipif mysql # not compatible
query II rowsort label-9295
SELECT + COUNT ( * ) * + 2 AS col2, 1
----
2
1

query I rowsort
SELECT ALL NULLIF ( - 23, 60 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9297
SELECT DISTINCT CASE - - 7 WHEN - CAST( + ( + 45 ) AS DECIMAL ) * - - COALESCE ( - - 70, + MAX( DISTINCT - 71 ) / + 8 * - 55 + - 66 * + COUNT( * ) + - 59 + - - 42 * - - 37 + + 2 ) * 57 + - CAST( - 21 AS SIGNED ) + + 22 * - 59 - + 81 * 24 THEN 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT CASE - - 7 WHEN - CAST ( + ( + 45 ) AS REAL ) * - - COALESCE ( - - 70, + MAX ( DISTINCT - 71 ) / + 8 * - 55 + - 66 * + COUNT ( * ) + - 59 + - - 42 * - - 37 + + 2 ) * 57 + - CAST ( - 21 AS INTEGER ) + + 22 * - 59 - + 81 * 24 THEN 33 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT ALL NULLIF ( - 97, + ( ( COUNT( * ) ) ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL NULLIF ( - 97, + ( ( COUNT ( * ) ) ) ) AS col2
----
-97

query I rowsort
SELECT - 28 + 65
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9300
SELECT ALL + NULLIF ( - + CAST( - ( - 80 ) AS SIGNED ), + - 2 ) DIV + 67
----
-1

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + NULLIF ( - + CAST ( - ( - 80 ) AS INTEGER ), + - 2 ) / + 67
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT - ( - + COUNT( * ) ) * + CASE + - COALESCE ( - 4, + + COUNT( * ), + - COUNT( * ) ) WHEN + 59 - ( + + 80 ) THEN + COUNT( * ) WHEN + 44 + - AVG ( ALL 74 ) * + - ( - + 35 ) + - + 10 + - 82 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT - ( - + COUNT ( * ) ) * + CASE + - COALESCE ( - 4, + + COUNT ( * ), + - COUNT ( * ) ) WHEN + 59 - ( + + 80 ) THEN + COUNT ( * ) WHEN + 44 + - AVG ( ALL 74 ) * + - ( - + 35 ) + - + 10 + - 82 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9302
SELECT DISTINCT + 10 DIV 76 * 54 DIV + 39 + 65 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT + 10 / 76 * 54 / + 39 + 65 AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9303
SELECT + 7 - + COUNT( * ) DIV 13 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9303
SELECT + 7 - + COUNT ( * ) / 13 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT COUNT( DISTINCT - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-9304
SELECT COUNT ( DISTINCT - 98 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT + - 71 DIV + 38 + 97 + - - 52 AS col2
----
148

skipif mysql # not compatible
query I rowsort label-9305
SELECT + - 71 / + 38 + 97 + - - 52 AS col2
----
148

query I rowsort
SELECT - + 96 * + - NULLIF ( - 37, 44 ) + - + 60 * + 8
----
-4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9307
SELECT ALL - + ( + 9 ) + 73 + - CAST( NULL AS SIGNED ) + + COUNT( ALL + + 17 ) * + - 65 * + CAST( + 66 AS SIGNED ) * + ( + MAX( ALL + + 91 ) ) AS col1, + 91 * - - 27 AS col0
----
NULL
2457

skipif mysql # not compatible
query II rowsort label-9307
SELECT ALL - + ( + 9 ) + 73 + - CAST ( NULL AS INTEGER ) + + COUNT ( ALL + + 17 ) * + - 65 * + CAST ( + 66 AS INTEGER ) * + ( + MAX ( ALL + + 91 ) ) AS col1, + 91 * - - 27 AS col0
----
NULL
2457

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9308
SELECT - ( + + CAST( + + ( + - 58 ) AS SIGNED ) ), 63 AS col0
----
58
63

skipif mysql # not compatible
query II rowsort label-9308
SELECT - ( + + CAST ( + + ( + - 58 ) AS INTEGER ) ), 63 AS col0
----
58
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN COUNT( * ) + - + CASE + 14 WHEN - 20 THEN - - 90 WHEN + + 16 / - 75 THEN NULL ELSE + - 2 / 71 END THEN NULL ELSE 36 - + 73 + 88 * 15 END - + 60
----
-1343

skipif mysql # not compatible
query I rowsort label-9309
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + - + CASE + 14 WHEN - 20 THEN - - 90 WHEN + + 16 / - 75 THEN NULL ELSE + - 2 / 71 END THEN NULL ELSE 36 - + 73 + 88 * 15 END - + 60
----
-1343

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL + + MAX( ALL 29 ) + - 69
----
-40

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL + + MAX ( ALL 29 ) + - 69
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT - 66 * 58 + - CAST( - ( COUNT( * ) ) AS SIGNED )
----
-3827

skipif mysql # not compatible
query I rowsort label-9311
SELECT - 66 * 58 + - CAST ( - ( COUNT ( * ) ) AS INTEGER )
----
-3827

query I rowsort
SELECT ALL + 25 + 4 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT + MIN( + - 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9313
SELECT + MIN ( + - 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT - - COUNT( ALL + 90 ) * - - 52
----
52

skipif mysql # not compatible
query I rowsort label-9314
SELECT - - COUNT ( ALL + 90 ) * - - 52
----
52

query II rowsort
SELECT - 80 * - 18 - 90 * - 75 + - + 74 AS col0, 7
----
8116
7

query I rowsort
SELECT ALL + + ( - 88 )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9317
SELECT + ( CAST( NULL AS SIGNED ) ) col0, - 36
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-9317
SELECT + ( CAST ( NULL AS INTEGER ) ) col0, - 36
----
NULL
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT ALL - - 8 DIV + + 71 + + 62
----
62

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL - - 8 / + + 71 + + 62
----
62

query I rowsort
SELECT - 68 * 25 + - 42 AS col0
----
-1742

onlyif mysql # aggregate syntax: 
query II rowsort label-9320
SELECT ALL + - ( - 79 ), + COUNT( * ) AS col0
----
79
1

skipif mysql # not compatible
query II rowsort label-9320
SELECT ALL + - ( - 79 ), + COUNT ( * ) AS col0
----
79
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9321
SELECT DISTINCT ( - 70 ) DIV - 77 - - 19 + - 7, 36 * - 62 AS col1
----
12
-2232

skipif mysql # not compatible
query II rowsort label-9321
SELECT DISTINCT ( - 70 ) / - 77 - - 19 + - 7, 36 * - 62 AS col1
----
12
-2232

query I rowsort
SELECT ALL 94 * - 60 AS col1
----
-5640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9323
SELECT ALL - CASE 90 WHEN + 42 * + 91 THEN + - CAST( NULL AS SIGNED ) WHEN - 49 + 43 * + COUNT( * ) THEN + 79 ELSE NULL END / 68 * + 29 * 70 * - + COUNT( * ) - + COALESCE ( + 17, - - 72 ) * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL - CASE 90 WHEN + 42 * + 91 THEN + - CAST ( NULL AS INTEGER ) WHEN - 49 + 43 * + COUNT ( * ) THEN + 79 ELSE NULL END / 68 * + 29 * 70 * - + COUNT ( * ) - + COALESCE ( + 17, - - 72 ) * + 24
----
NULL

query I rowsort
SELECT 95 * - NULLIF ( + 18, + 90 ) + - 12 * + 31 * - - 28
----
-12126

query I rowsort
SELECT ( - + 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + ( COUNT( * ) ) * - MIN( 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-9326
SELECT + ( COUNT ( * ) ) * - MIN ( 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT - 75 * + + 36 + 27 + + - 27 + + CAST( NULL AS SIGNED ) * 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT - 75 * + + 36 + 27 + + - 27 + + CAST ( NULL AS INTEGER ) * 57 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9328
SELECT + CAST( - + 34 AS SIGNED ) DIV + 37 col0
----
0

skipif mysql # not compatible
query I rowsort label-9328
SELECT + CAST ( - + 34 AS INTEGER ) / + 37 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT - 41 + - 13 * + - CAST( 28 AS SIGNED ) + - ( + 75 ) + 19 + 88 + 64 * + - 64 + - - 40 AS col0
----
-3701

skipif mysql # not compatible
query I rowsort label-9329
SELECT - 41 + - 13 * + - CAST ( 28 AS INTEGER ) + - ( + 75 ) + 19 + 88 + 64 * + - 64 + - - 40 AS col0
----
-3701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9330
SELECT + MIN( + 13 ) * + + 31, - CASE CAST( - 72 AS SIGNED ) WHEN SUM( + 33 ) THEN - - 55 * + - 25 ELSE NULL END col0
----
403
NULL

skipif mysql # not compatible
query II rowsort label-9330
SELECT + MIN ( + 13 ) * + + 31, - CASE CAST ( - 72 AS INTEGER ) WHEN SUM ( + 33 ) THEN - - 55 * + - 25 ELSE NULL END col0
----
403
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT 5 * + ( - + SUM( + 53 ) ) + + - CAST( 77 AS SIGNED ) - + 38 col1
----
-380

skipif mysql # not compatible
query I rowsort label-9331
SELECT 5 * + ( - + SUM ( + 53 ) ) + + - CAST ( 77 AS INTEGER ) - + 38 col1
----
-380

query I rowsort
SELECT ALL - ( + 20 ) col0
----
-20

query I rowsort
SELECT + 30 * + + 42 - + 15 + + 87 AS col0
----
1332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9334
SELECT 85 + - - COALESCE ( + 64, + NULLIF ( + 77, - COUNT( * ) - NULLIF ( - 83, - 57 * - 76 * - - COALESCE ( + 50, - - 18 ) * + 22 + + 44 - - 44 * + 85 + - 71 ) + + MAX( + 39 ) ) * + - 55 + - 69 + + + 78, ( - 25 ) * - CAST( NULL AS SIGNED ) ) + + 29 * - 96 * - + 91
----
253493

skipif mysql # not compatible
query I rowsort label-9334
SELECT 85 + - - COALESCE ( + 64, + NULLIF ( + 77, - COUNT ( * ) - NULLIF ( - 83, - 57 * - 76 * - - COALESCE ( + 50, - - 18 ) * + 22 + + 44 - - 44 * + 85 + - 71 ) + + MAX ( + 39 ) ) * + - 55 + - 69 + + + 78, ( - 25 ) * - CAST ( NULL AS INTEGER ) ) + + 29 * - 96 * - + 91
----
253493

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT SUM( 4 ) + - + 50
----
-46

skipif mysql # not compatible
query I rowsort label-9335
SELECT SUM ( 4 ) + - + 50
----
-46

query I rowsort
SELECT ( - - 99 ) * 69 - 90
----
6741

query I rowsort
SELECT ALL 86 * + 61 AS col0
----
5246

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT DISTINCT COUNT( * ) + + 75
----
76

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT COUNT ( * ) + + 75
----
76

query I rowsort
SELECT CASE + 66 WHEN 90 THEN - 59 END + - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT 20 - - COALESCE ( 43, 87 + COUNT( 67 ) ) col1
----
63

skipif mysql # not compatible
query I rowsort label-9340
SELECT 20 - - COALESCE ( 43, 87 + COUNT ( 67 ) ) col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL CASE + 40 WHEN COUNT( * ) * 47 THEN - 10 / + NULLIF ( - 35 * 45, COUNT( * ) * + 84 + + 3 ) ELSE NULL END + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL CASE + 40 WHEN COUNT ( * ) * 47 THEN - 10 / + NULLIF ( - 35 * 45, COUNT ( * ) * + 84 + + 3 ) ELSE NULL END + + 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT ALL 15 + + SUM( + 26 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL 15 + + SUM ( + 26 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT DISTINCT MIN( 67 ) + 29 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT MIN ( 67 ) + 29 AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9344
SELECT ALL NULLIF ( COUNT( * ), COUNT( * ) * 48 ) + - COALESCE ( + 95, + CAST( + COUNT( + 15 ) AS SIGNED ) ) * + 79 AS col0
----
-7504

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL NULLIF ( COUNT ( * ), COUNT ( * ) * 48 ) + - COALESCE ( + 95, + CAST ( + COUNT ( + 15 ) AS INTEGER ) ) * + 79 AS col0
----
-7504

query I rowsort
SELECT ALL 79 + ( ( + 40 ) ) * 85
----
3479

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT ALL 72 DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL 72 / + 47
----
1

query I rowsort
SELECT 51 * + 46
----
2346

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL + ( COUNT( * ) ) + 64
----
65

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL + ( COUNT ( * ) ) + 64
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL - MIN( 58 ) + 16
----
-42

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL - MIN ( 58 ) + 16
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT 32 + - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-9350
SELECT 32 + - COUNT ( * )
----
31

query I rowsort
SELECT 41 + + 58 AS col0
----
99

query I rowsort
SELECT DISTINCT - ( 44 ) AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9353
SELECT 99 * - ( + 30 ) + 68 * + COALESCE ( - 89 DIV - 50, 68 + CAST( NULL AS SIGNED ) * - 11, COUNT( * ) )
----
-2902

skipif mysql # not compatible
query I rowsort label-9353
SELECT 99 * - ( + 30 ) + 68 * + COALESCE ( - 89 / - 50, 68 + CAST ( NULL AS INTEGER ) * - 11, COUNT ( * ) )
----
-2902

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL - 63 - MAX( 43 )
----
-106

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - 63 - MAX ( 43 )
----
-106

query I rowsort
SELECT DISTINCT + ( 45 ) * - 53 AS col2
----
-2385

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT + 71 DIV - 86 + 3
----
3

skipif mysql # not compatible
query I rowsort label-9356
SELECT + 71 / - 86 + 3
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9357
SELECT CAST( NULL AS DECIMAL ) * + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9357
SELECT CAST ( NULL AS REAL ) * + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT COUNT( - 54 ) * ( - MIN( - 19 ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9358
SELECT COUNT ( - 54 ) * ( - MIN ( - 19 ) ) AS col0
----
19

query I rowsort
SELECT 76 + - 8 * - 61
----
564

query I rowsort
SELECT CASE - 25 WHEN 63 * ( - 70 * - 55 ) THEN 80 WHEN ( 30 ) THEN NULL END + 62 / 33 AS col2
----
NULL

query I rowsort
SELECT 57 * - 28 AS col2
----
-1596

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9362
SELECT DISTINCT - CASE WHEN NOT NULL >= + 83 THEN + NULLIF ( - CAST( NULL AS DECIMAL ), 51 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT - CASE WHEN NOT NULL >= + 83 THEN + NULLIF ( - CAST ( NULL AS REAL ), 51 ) END
----
NULL

query I rowsort
SELECT 66 + + ( 44 + - 10 )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT DISTINCT - NULLIF ( COUNT( 24 ), 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT - NULLIF ( COUNT ( 24 ), 54 )
----
-1

query I rowsort
SELECT 76 + - 81 col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT + SUM( ALL ( + 62 ) ) * 88 + - 85 AS col2
----
5371

skipif mysql # not compatible
query I rowsort label-9366
SELECT + SUM ( ALL ( + 62 ) ) * 88 + - 85 AS col2
----
5371

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL - COALESCE ( 64, + COALESCE ( NULLIF ( COUNT( DISTINCT + 66 ), - 28 ), 48, 25 ), 92 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL - COALESCE ( 64, + COALESCE ( NULLIF ( COUNT ( DISTINCT + 66 ), - 28 ), 48, 25 ), 92 ) AS col1
----
-64

query I rowsort
SELECT DISTINCT - 46 * 83
----
-3818

query I rowsort
SELECT 95 * + 12
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL - COUNT( * ) * ( 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL - COUNT ( * ) * ( 99 ) AS col0
----
-99

query I rowsort
SELECT COALESCE ( 44, ( - 39 ) ) + 39 AS col0
----
83

query I rowsort
SELECT 82 * - 76 AS col1
----
-6232

query I rowsort
SELECT 85 * 46 col0
----
3910

query I rowsort
SELECT 20 + 59 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT - MAX( DISTINCT 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-9375
SELECT - MAX ( DISTINCT 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL + COUNT( 22 ) + - CASE + 87 WHEN - COUNT( * ) * 55 THEN NULL WHEN - 77 THEN - 32 ELSE + 61 + 2 END
----
-62

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + COUNT ( 22 ) + - CASE + 87 WHEN - COUNT ( * ) * 55 THEN NULL WHEN - 77 THEN - 32 ELSE + 61 + 2 END
----
-62

query I rowsort
SELECT + 39 * 27
----
1053

query I rowsort
SELECT ( ( - 59 ) ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT 94 - MAX( 34 + + 68 ) * + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-9379
SELECT 94 - MAX ( 34 + + 68 ) * + COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT DISTINCT - MIN( ALL - 16 ) + - 5 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT - MIN ( ALL - 16 ) + - 5 AS col2
----
11

query I rowsort
SELECT + 5 - 33
----
-28

query I rowsort
SELECT 84 * + 96
----
8064

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT COALESCE ( - SUM( DISTINCT 78 ), - 51 + 13, - ( - 51 ) * + 40, - 35 + 47 * - 29 ) + - 92
----
-170

skipif mysql # not compatible
query I rowsort label-9383
SELECT COALESCE ( - SUM ( DISTINCT 78 ), - 51 + 13, - ( - 51 ) * + 40, - 35 + 47 * - 29 ) + - 92
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL - COUNT( * ) - - 8 col2
----
7

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL - COUNT ( * ) - - 8 col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT DISTINCT - COUNT( * ) * - 44
----
44

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT - COUNT ( * ) * - 44
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT - CAST( CAST( 95 AS SIGNED ) AS SIGNED ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-9386
SELECT - CAST ( CAST ( 95 AS INTEGER ) AS INTEGER ) AS col0
----
-95

query I rowsort
SELECT ALL COALESCE ( 57, 57 ) AS col0
----
57

query I rowsort
SELECT ALL - 81 - 14 col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - ( SUM( ALL - 60 ) )
----
60

skipif mysql # not compatible
query I rowsort label-9389
SELECT - ( SUM ( ALL - 60 ) )
----
60

query I rowsort
SELECT ALL + - 17 - 14
----
-31

query I rowsort
SELECT 42 * 90 AS col0
----
3780

query I rowsort
SELECT 86 * - 46 AS col2
----
-3956

onlyif mysql # DIV for integer division: 
query I rowsort label-9393
SELECT 67 DIV + 14 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9393
SELECT 67 / + 14 AS col1
----
4

query I rowsort
SELECT CASE 63 WHEN 66 THEN 10 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9395
SELECT 79 DIV ( 10 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-9395
SELECT 79 / ( 10 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT MIN( - 68 ) * 37
----
-2516

skipif mysql # not compatible
query I rowsort label-9396
SELECT MIN ( - 68 ) * 37
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL - 32 * + - COUNT( * ) col0
----
32

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL - 32 * + - COUNT ( * ) col0
----
32

query I rowsort
SELECT + NULLIF ( + 49, - 52 * AVG ( ALL + 54 * + 9 ) + 70 ) * 37 AS col1
----
1813

query I rowsort
SELECT DISTINCT + 60 * 72
----
4320

query I rowsort
SELECT - 40 * - + 2 AS col0
----
80

query I rowsort
SELECT - 51 + - + 48 + + 96
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT - ( - COUNT( * ) ) + ( - ( 31 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-9402
SELECT - ( - COUNT ( * ) ) + ( - ( 31 ) )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9403
SELECT ALL - COUNT( * ) * 58 * + 91 + CAST( NULLIF ( 69, - 27 ) AS SIGNED )
----
-5209

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL - COUNT ( * ) * 58 * + 91 + CAST ( NULLIF ( 69, - 27 ) AS INTEGER )
----
-5209

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9404
SELECT 79 * + CAST( NULL AS DECIMAL ) + - COALESCE ( - 74, + MAX( DISTINCT - 6 ) * 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9404
SELECT 79 * + CAST ( NULL AS REAL ) + - COALESCE ( - 74, + MAX ( DISTINCT - 6 ) * 3 )
----
NULL

query I rowsort
SELECT ALL 53 * + + ( 72 ) + - 10
----
3806

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - 21 - - COUNT( DISTINCT 62 ) - + COUNT( - ( + 23 ) ) * - COUNT( * ) * 2 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9406
SELECT - 21 - - COUNT ( DISTINCT 62 ) - + COUNT ( - ( + 23 ) ) * - COUNT ( * ) * 2 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL + 40 + - + COUNT( * ) + + 11 * + COALESCE ( - CASE ( + 28 ) WHEN 73 THEN - 18 + - 98 * 27 WHEN MIN( 15 ) * - ( 61 + 15 ) - 21 * 9 THEN - 76 END, + COALESCE ( - 72, 44, 10 * 37 ) * + 46, + 47 + + 11 )
----
-36393

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + 40 + - + COUNT ( * ) + + 11 * + COALESCE ( - CASE ( + 28 ) WHEN 73 THEN - 18 + - 98 * 27 WHEN MIN ( 15 ) * - ( 61 + 15 ) - 21 * 9 THEN - 76 END, + COALESCE ( - 72, 44, 10 * 37 ) * + 46, + 47 + + 11 )
----
-36393

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT - - MIN( + 12 ) * + 14 + 45
----
213

skipif mysql # not compatible
query I rowsort label-9408
SELECT - - MIN ( + 12 ) * + 14 + 45
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT DISTINCT + CASE + ( + COALESCE ( 34, - 82 + 53 ) ) WHEN 20 THEN 5 - + CAST( NULL AS SIGNED ) WHEN 15 * + 5 + 96 THEN NULL WHEN 68 THEN + 80 END * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT + CASE + ( + COALESCE ( 34, - 82 + 53 ) ) WHEN 20 THEN 5 - + CAST ( NULL AS INTEGER ) WHEN 15 * + 5 + 96 THEN NULL WHEN 68 THEN + 80 END * 21
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT - + 59 + - - 97 + 88 DIV 18 DIV + NULLIF ( 83, 82 )
----
38

skipif mysql # not compatible
query I rowsort label-9410
SELECT - + 59 + - - 97 + 88 / 18 / + NULLIF ( 83, 82 )
----
38

query I rowsort
SELECT - 62 * 83 + - 53 AS col0
----
-5199

query I rowsort
SELECT ALL - 37 * + 41 col0
----
-1517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9413
SELECT - SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT - SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + - 10
----
NULL

query I rowsort
SELECT - 90 + - 88 AS col1
----
-178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9415
SELECT + 59 - + MIN( DISTINCT + 86 ) DIV 68 col0
----
58

skipif mysql # not compatible
query I rowsort label-9415
SELECT + 59 - + MIN ( DISTINCT + 86 ) / 68 col0
----
58

query I rowsort
SELECT - - 39 col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT - + SUM( DISTINCT 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-9417
SELECT - + SUM ( DISTINCT 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL - 2 * - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - 2 * - + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT DISTINCT CASE - + 6 WHEN + CAST( + NULLIF ( + 48, - 85 - 31 ) AS SIGNED ) THEN - 78 * - 44 END * 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT DISTINCT CASE - + 6 WHEN + CAST ( + NULLIF ( + 48, - 85 - 31 ) AS INTEGER ) THEN - 78 * - 44 END * 27 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - + ( + 34 ) ) AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9421
SELECT - - 55 + + COALESCE ( + CASE CAST( NULL AS SIGNED ) WHEN 39 * + 90 - COUNT( + 86 + 20 ) THEN - CAST( NULL AS SIGNED ) ELSE - 89 END, - COUNT( * ) * 61 ) * - COUNT( ( 82 ) + + 88 ) AS col0
----
144

skipif mysql # not compatible
query I rowsort label-9421
SELECT - - 55 + + COALESCE ( + CASE CAST ( NULL AS INTEGER ) WHEN 39 * + 90 - COUNT ( + 86 + 20 ) THEN - CAST ( NULL AS INTEGER ) ELSE - 89 END, - COUNT ( * ) * 61 ) * - COUNT ( ( 82 ) + + 88 ) AS col0
----
144

query I rowsort
SELECT - 6 * - - 92
----
-552

query I rowsort
SELECT + 75 * - + 67 + 63 AS col1
----
-4962

query I rowsort
SELECT ALL 12 * 61
----
732

query I rowsort
SELECT + 18 * 61 * + - 67
----
-73566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT ALL - 73 * + - CAST( - 56 AS SIGNED ) AS col2
----
-4088

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL - 73 * + - CAST ( - 56 AS INTEGER ) AS col2
----
-4088

query I rowsort
SELECT + 35 + - 82 AS col0
----
-47

query I rowsort
SELECT + CASE WHEN NOT 35 BETWEEN - 15 AND - 89 THEN 2 ELSE + 88 * - 15 END
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9429
SELECT ALL 0 DIV 6 + + 0 - + 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL 0 / 6 + + 0 - + 59 AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT + 12 * - 35 + - CAST( NULL AS SIGNED ) + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT + 12 * - 35 + - CAST ( NULL AS INTEGER ) + 1 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9431
SELECT ALL 76 * - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT ALL 76 * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( + 88, 88 + - 86, 27 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT + 64 + 82 + - + COUNT( * ) * ( 99 * + MAX( DISTINCT - 99 * - 91 ) )
----
-891745

skipif mysql # not compatible
query I rowsort label-9433
SELECT + 64 + 82 + - + COUNT ( * ) * ( 99 * + MAX ( DISTINCT - 99 * - 91 ) )
----
-891745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9434
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), - ( - 45 ) ) / + 36 + + 74 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), - ( - 45 ) ) / + 36 + + 74 * COUNT ( * )
----
NULL

query I rowsort
SELECT - 57 + + 94
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9436
SELECT ALL 63 DIV 12 * - COUNT( * ) * 10 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL 63 / 12 * - COUNT ( * ) * 10 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ( - + SUM( ALL - 44 ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9437
SELECT ( - + SUM ( ALL - 44 ) ) AS col1
----
44

query I rowsort
SELECT + 28 * 2 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT 74 * + + 46 + - COUNT( * ) + 94 * - 1
----
3309

skipif mysql # not compatible
query I rowsort label-9439
SELECT 74 * + + 46 + - COUNT ( * ) + 94 * - 1
----
3309

query I rowsort
SELECT ( - 23 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL 80 * + 99 + + + COALESCE ( CASE - 66 WHEN 75 THEN NULL WHEN 78 * 6 THEN - COUNT( * ) END, 92 ) - 47 * 86 AS col1
----
3970

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL 80 * + 99 + + + COALESCE ( CASE - 66 WHEN 75 THEN NULL WHEN 78 * 6 THEN - COUNT ( * ) END, 92 ) - 47 * 86 AS col1
----
3970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9442
SELECT DISTINCT COUNT( * ) * 80 DIV + SUM( ALL - 84 ) + 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT COUNT ( * ) * 80 / + SUM ( ALL - 84 ) + 81 AS col1
----
81

query I rowsort
SELECT ALL + 81 * + 63 * ( 89 ) + - 35 AS col2
----
454132

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT - 98 * - + CASE ( 81 ) WHEN - 81 THEN NULL WHEN 82 / 24 + 90 / 78 THEN NULL ELSE 13 + COUNT( * ) * + 58 END * 93 AS col0
----
647094

skipif mysql # not compatible
query I rowsort label-9444
SELECT - 98 * - + CASE ( 81 ) WHEN - 81 THEN NULL WHEN 82 / 24 + 90 / 78 THEN NULL ELSE 13 + COUNT ( * ) * + 58 END * 93 AS col0
----
647094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9445
SELECT ALL 23 * + 53 + + 43 * NULLIF ( + CAST( - 74 AS SIGNED ) + COUNT( * ), - 11 )
----
-1920

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL 23 * + 53 + + 43 * NULLIF ( + CAST ( - 74 AS INTEGER ) + COUNT ( * ), - 11 )
----
-1920

query I rowsort
SELECT ALL + + ( - 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT ALL + - MIN( DISTINCT + + NULLIF ( - 50, - 12 * + 96 ) ) * + 27 - - 41
----
1391

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL + - MIN ( DISTINCT + + NULLIF ( - 50, - 12 * + 96 ) ) * + 27 - - 41
----
1391

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + 60 * COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9448
SELECT + 60 * COUNT ( * ) AS col0
----
60

query I rowsort
SELECT - - 97 * - 78 * - + 40 AS col1
----
302640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9450
SELECT + 66 AS col2, CAST( NULL AS SIGNED ) * + 3
----
66
NULL

skipif mysql # not compatible
query II rowsort label-9450
SELECT + 66 AS col2, CAST ( NULL AS INTEGER ) * + 3
----
66
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9451
SELECT SUM( - - CAST( + 65 AS SIGNED ) ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9451
SELECT SUM ( - - CAST ( + 65 AS INTEGER ) ) AS col1
----
65

query I rowsort
SELECT ALL - ( 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - - COUNT( * ) + + SUM( - 57 )
----
-56

skipif mysql # not compatible
query I rowsort label-9453
SELECT - - COUNT ( * ) + + SUM ( - 57 )
----
-56

query I rowsort
SELECT ALL - ( 73 ) AS col1
----
-73

query I rowsort
SELECT DISTINCT 25 * - ( + 48 ) + - 22 - 11 AS col0
----
-1233

query II rowsort
SELECT - - 23, - 95 AS col1
----
23
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT - + COALESCE ( - 82, - CAST( NULL AS SIGNED ) )
----
82

skipif mysql # not compatible
query I rowsort label-9457
SELECT - + COALESCE ( - 82, - CAST ( NULL AS INTEGER ) )
----
82

query I rowsort
SELECT - 90 - - + 70 - 63 - + 32 * 99 AS col0
----
-3251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9459
SELECT - + COUNT( * ) DIV - - 62 + - + ( 48 ) * - 39
----
1872

skipif mysql # not compatible
query I rowsort label-9459
SELECT - + COUNT ( * ) / - - 62 + - + ( 48 ) * - 39
----
1872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT - - COALESCE ( + - 98, - - 3 + + SUM( ( 5 ) - 6 ), + 54 ) * - SUM( 38 + CASE 98 - CAST( NULL AS SIGNED ) WHEN 84 THEN NULL ELSE 62 END ) AS col1
----
9800

skipif mysql # not compatible
query I rowsort label-9460
SELECT - - COALESCE ( + - 98, - - 3 + + SUM ( ( 5 ) - 6 ), + 54 ) * - SUM ( 38 + CASE 98 - CAST ( NULL AS INTEGER ) WHEN 84 THEN NULL ELSE 62 END ) AS col1
----
9800

query I rowsort
SELECT + - 4 + + 72 AS col2
----
68

query I rowsort
SELECT DISTINCT + 99 * 86 + - 81 col0
----
8433

query I rowsort
SELECT ALL ( + 14 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT 46 + - ( + - 45 ) + + COUNT( ALL - 86 )
----
92

skipif mysql # not compatible
query I rowsort label-9464
SELECT 46 + - ( + - 45 ) + + COUNT ( ALL - 86 )
----
92

query I rowsort
SELECT ALL 30 + + 85 AS col2
----
115

query I rowsort
SELECT DISTINCT - 60 + + 41
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9467
SELECT 56 - - + 37 + + + 96 DIV ( NULLIF ( COALESCE ( - 78, 98 * COUNT( * ) ), + ( + ( + 18 ) ) * 79 + + 87 ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9467
SELECT 56 - - + 37 + + + 96 / ( NULLIF ( COALESCE ( - 78, 98 * COUNT ( * ) ), + ( + ( + 18 ) ) * 79 + + 87 ) ) AS col0
----
92

query II rowsort
SELECT ALL - 42 + - - 81, 56 col2
----
39
56

query I rowsort
SELECT 66 * - ( - 67 ) AS col2
----
4422

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL 22 * MIN( ALL + - 13 ) * - 35 * + 55
----
550550

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL 22 * MIN ( ALL + - 13 ) * - 35 * + 55
----
550550

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT MIN( ALL + - COALESCE ( 36, 33 ) ) * - 92
----
3312

skipif mysql # not compatible
query I rowsort label-9471
SELECT MIN ( ALL + - COALESCE ( 36, 33 ) ) * - 92
----
3312

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT DISTINCT COUNT( DISTINCT + - 69 ) * 30 * - - 96
----
2880

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT COUNT ( DISTINCT + - 69 ) * 30 * - - 96
----
2880

query I rowsort
SELECT 6 * + 75 * - + 4 - - 63 AS col1
----
-1737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT CAST( NULL AS SIGNED ) * - 31 * + - 77 + NULLIF ( + 83, 5 * 4 ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT CAST ( NULL AS INTEGER ) * - 31 * + - 77 + NULLIF ( + 83, 5 * 4 ) * + 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT CAST( NULL AS SIGNED ) * + 57 * + 35 * + + 8 + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT CAST ( NULL AS INTEGER ) * + 57 * + 35 * + + 8 + - 11
----
NULL

query II rowsort
SELECT + 58 + - 58 AS col0, 27 AS col1
----
0
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9477
SELECT MAX( ALL + 34 ) * CAST( - 36 AS SIGNED ) + - 59 * + 20 AS col1
----
-2404

skipif mysql # not compatible
query I rowsort label-9477
SELECT MAX ( ALL + 34 ) * CAST ( - 36 AS INTEGER ) + - 59 * + 20 AS col1
----
-2404

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT ( - - 91 ) + + + ( - 71 ) + ( 11 ) DIV ( - 5 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9478
SELECT ( - - 91 ) + + + ( - 71 ) + ( 11 ) / ( - 5 ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9479
SELECT 23 DIV + + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9479
SELECT 23 / + + COUNT ( * ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT DISTINCT - 55 * + - MIN( 26 ) AS col1
----
1430

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT - 55 * + - MIN ( 26 ) AS col1
----
1430

query II rowsort
SELECT ALL - 96 * 97, + ( + 42 ) + - 80 AS col2
----
-9312
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT - 40 * - CASE - + 95 WHEN - + 42 THEN NULL WHEN + COUNT( ALL - 50 ) THEN 35 ELSE NULL END + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT - 40 * - CASE - + 95 WHEN - + 42 THEN NULL WHEN + COUNT ( ALL - 50 ) THEN 35 ELSE NULL END + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT 82 * + MIN( DISTINCT - 69 ) + + CASE - 60 WHEN - 0 THEN 77 WHEN - 22 / 26 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT 82 * + MIN ( DISTINCT - 69 ) + + CASE - 60 WHEN - 0 THEN 77 WHEN - 22 / 26 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT CAST( 29 AS SIGNED ) * - COALESCE ( + COUNT( * ), 38 * CASE - 91 WHEN + CASE 37 WHEN ( 55 ) THEN - 57 END * - 80 THEN NULL WHEN - COALESCE ( 96, 75 ) - - 99 THEN CASE - 66 WHEN - 71 THEN COALESCE ( - 76, + CAST( - ( + 67 ) AS SIGNED ) * 70, - 28 ) WHEN 47 THEN NULL WHEN - 29 + 17 * 84 THEN NULL ELSE 45 + 92 END * + 42 + + CAST( NULL AS SIGNED ) ELSE 14 END, 49 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9484
SELECT CAST ( 29 AS INTEGER ) * - COALESCE ( + COUNT ( * ), 38 * CASE - 91 WHEN + CASE 37 WHEN ( 55 ) THEN - 57 END * - 80 THEN NULL WHEN - COALESCE ( 96, 75 ) - - 99 THEN CASE - 66 WHEN - 71 THEN COALESCE ( - 76, + CAST ( - ( + 67 ) AS INTEGER ) * 70, - 28 ) WHEN 47 THEN NULL WHEN - 29 + 17 * 84 THEN NULL ELSE 45 + 92 END * + 42 + + CAST ( NULL AS INTEGER ) ELSE 14 END, 49 ) AS col1
----
-29

query I rowsort
SELECT - ( + 96 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT 71 * + 42 * + COUNT( * )
----
2982

skipif mysql # not compatible
query I rowsort label-9486
SELECT 71 * + 42 * + COUNT ( * )
----
2982

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT - 66 * - COUNT( * ) - COUNT( * ) + - 45 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-9487
SELECT - 66 * - COUNT ( * ) - COUNT ( * ) + - 45 AS col0
----
20

query I rowsort
SELECT ALL - 0 + NULLIF ( + - COALESCE ( + 42, + 0 + + 96 * ( + 53 ), - 73 + - 65 ), - 25 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL - - COUNT( * ) + + ( + 64 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - - COUNT ( * ) + + ( + 64 ) AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9490
SELECT ( + - 3 ) - 65 * - - ( 11 ) + 59 DIV + 65
----
-718

skipif mysql # not compatible
query I rowsort label-9490
SELECT ( + - 3 ) - 65 * - - ( 11 ) + 59 / + 65
----
-718

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9491
SELECT 79 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9491
SELECT 79 + - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT ALL 32 AS col1, + 21
----
32
21

query I rowsort
SELECT 66 + + 32 * + - 2 * - 25 AS col0
----
1666

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT COUNT( * ) - 86 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-9494
SELECT COUNT ( * ) - 86 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT + COUNT( * ) * 54
----
54

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT + COUNT ( * ) * 54
----
54

query I rowsort
SELECT 75 + - 33 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT 11 - + + 47 * - COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9497
SELECT 11 - + + 47 * - COUNT ( * ) AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT 85 + 52 + + 30 + + 31 - - 78 DIV - 29
----
196

skipif mysql # not compatible
query I rowsort label-9498
SELECT 85 + 52 + + 30 + + 31 - - 78 / - 29
----
196

query I rowsort
SELECT ALL + 11 + 7 - + 6 * 26
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT DISTINCT - 2 * - - MAX( DISTINCT 78 )
----
-156

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT - 2 * - - MAX ( DISTINCT 78 )
----
-156

query I rowsort
SELECT ALL - 43 * + + 91 + - 4 AS col0
----
-3917

query I rowsort
SELECT 1 + + 94
----
95

query I rowsort
SELECT 91 * + 96 AS col0
----
8736

query I rowsort
SELECT 29 + + + 79 - - 25 * 50 + + 73 AS col2
----
1431

query I rowsort
SELECT NULLIF ( - 90, + AVG ( - ( + - 27 ) ) ) * 55 AS col0
----
-4950

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9506
SELECT 58 + - MAX( ALL + - 47 ) + - 31 - - - CAST( NULL AS DECIMAL ) * 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT 58 + - MAX ( ALL + - 47 ) + - 31 - - - CAST ( NULL AS REAL ) * 30 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9507
SELECT 45 * + ( - 69 ) * 55 * CAST( - 41 AS SIGNED ) * 43 AS col2
----
301076325

skipif mysql # not compatible
query I rowsort label-9507
SELECT 45 * + ( - 69 ) * 55 * CAST ( - 41 AS INTEGER ) * 43 AS col2
----
301076325

query II rowsort
SELECT + 28 AS col0, + 28 AS col1
----
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT ALL - NULLIF ( 50, 55 * - COUNT( ( 9 ) ) + CASE - 75 WHEN - 26 THEN 82 WHEN 74 THEN NULL ELSE NULL END )
----
-50

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL - NULLIF ( 50, 55 * - COUNT ( ( 9 ) ) + CASE - 75 WHEN - 26 THEN 82 WHEN 74 THEN NULL ELSE NULL END )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL 9 * 37 + COUNT( * ) + - + 63 * - + 20 * + 23 AS col0
----
29314

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL 9 * 37 + COUNT ( * ) + - + 63 * - + 20 * + 23 AS col0
----
29314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9511
SELECT ALL - 96 AS col0, - NULLIF ( - - ( + COUNT( * ) ), ( CAST( NULL AS SIGNED ) ) * + 42 ) DIV + 95 AS col2
----
-96
0

skipif mysql # not compatible
query II rowsort label-9511
SELECT ALL - 96 AS col0, - NULLIF ( - - ( + COUNT ( * ) ), ( CAST ( NULL AS INTEGER ) ) * + 42 ) / + 95 AS col2
----
-96
0

query I rowsort
SELECT ALL - + ( - 32 )
----
32

query I rowsort
SELECT + 6 * - 79 + + 96
----
-378

onlyif mysql # DIV for integer division: 
query I rowsort label-9514
SELECT - 15 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-9514
SELECT - 15 / + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT - COALESCE ( ( + 85 ), - - 83 * + 77 - 66, MIN( ALL 56 ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT - COALESCE ( ( + 85 ), - - 83 * + 77 - 66, MIN ( ALL 56 ) ) AS col2
----
-85

query I rowsort
SELECT + 72 * - 13
----
-936

query I rowsort
SELECT DISTINCT + 82 + - 65 * - - 15 AS col2
----
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT ALL - 13 + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL - 13 + COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT + + 44 * COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9519
SELECT + + 44 * COUNT ( * ) AS col2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT + COALESCE ( - - 72, 56 + + 42 * + + 47 DIV + 90, 66 * 34 )
----
72

skipif mysql # not compatible
query I rowsort label-9520
SELECT + COALESCE ( - - 72, 56 + + 42 * + + 47 / + 90, 66 * 34 )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9521
SELECT + ( - 7 ) + - - COUNT( * ) + - 31 + - 67 + - 82 DIV COUNT( * )
----
-186

skipif mysql # not compatible
query I rowsort label-9521
SELECT + ( - 7 ) + - - COUNT ( * ) + - 31 + - 67 + - 82 / COUNT ( * )
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL COUNT( * ) * - 34 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL COUNT ( * ) * - 34 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9523
SELECT 78 AS col2, ( + 69 ) * + 46 * - NULLIF ( CASE + 29 WHEN COUNT( * ) THEN + 51 WHEN 34 THEN 4 WHEN - 14 + + 90 THEN CASE 71 WHEN - 45 THEN - COALESCE ( 85, + 41 ) ELSE NULL END + + 9 END, + CASE + 82 WHEN 64 THEN NULL WHEN + 22 * + 12 + - SUM( - 40 + + 56 ) THEN COALESCE ( - 25, + MAX( DISTINCT + 95 ) + 65 ) + - 94 END ) AS col2
----
78
NULL

skipif mysql # not compatible
query II rowsort label-9523
SELECT 78 AS col2, ( + 69 ) * + 46 * - NULLIF ( CASE + 29 WHEN COUNT ( * ) THEN + 51 WHEN 34 THEN 4 WHEN - 14 + + 90 THEN CASE 71 WHEN - 45 THEN - COALESCE ( 85, + 41 ) ELSE NULL END + + 9 END, + CASE + 82 WHEN 64 THEN NULL WHEN + 22 * + 12 + - SUM ( - 40 + + 56 ) THEN COALESCE ( - 25, + MAX ( DISTINCT + 95 ) + 65 ) + - 94 END ) AS col2
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT - 58 + - - 90 + - MIN( DISTINCT - - 54 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9524
SELECT - 58 + - - 90 + - MIN ( DISTINCT - - 54 ) AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9525
SELECT - 17 - - 92 + - ( 52 ) col2, COALESCE ( + + COUNT( * ), + 59 * 40 + 54 * + CAST( - 50 AS SIGNED ) )
----
23
1

skipif mysql # not compatible
query II rowsort label-9525
SELECT - 17 - - 92 + - ( 52 ) col2, COALESCE ( + + COUNT ( * ), + 59 * 40 + 54 * + CAST ( - 50 AS INTEGER ) )
----
23
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9526
SELECT - COALESCE ( 45, - 51, - 60 ) AS col1, + 56 + - - COUNT( 72 ) AS col0
----
-45
57

skipif mysql # not compatible
query II rowsort label-9526
SELECT - COALESCE ( 45, - 51, - 60 ) AS col1, + 56 + - - COUNT ( 72 ) AS col0
----
-45
57

query I rowsort
SELECT ALL - 42 - + ( 61 ) * - 42 * - 75 + COALESCE ( + 55, - 6, 51 ) + 39 AS col0
----
-192098

query I rowsort
SELECT - 22 * 38
----
-836

onlyif mysql # DIV for integer division: 
query I rowsort label-9529
SELECT DISTINCT - 70 DIV + 44
----
-1

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT - 70 / + 44
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL - ( - ( - 70 ) ) * COUNT( - 33 )
----
-70

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL - ( - ( - 70 ) ) * COUNT ( - 33 )
----
-70

query I rowsort
SELECT + 86 - - 15 AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9532
SELECT + 66, 8 - - MAX( + ( - ( - CAST( + 63 AS SIGNED ) ) ) ) + 19 AS col0
----
66
90

skipif mysql # not compatible
query II rowsort label-9532
SELECT + 66, 8 - - MAX ( + ( - ( - CAST ( + 63 AS INTEGER ) ) ) ) + 19 AS col0
----
66
90

query I rowsort
SELECT ( 61 ) AS col1
----
61

query II rowsort
SELECT + 20, - 21 col1
----
20
-21

query I rowsort
SELECT DISTINCT 14 * + 86
----
1204

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL + 18 * 51 - 52 * - MAX( DISTINCT + ( 48 ) ) + MAX( DISTINCT + 79 + 49 * - 17 )
----
2660

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + 18 * 51 - 52 * - MAX ( DISTINCT + ( 48 ) ) + MAX ( DISTINCT + 79 + 49 * - 17 )
----
2660

query I rowsort
SELECT ALL - 60 * + 99 AS col0
----
-5940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9538
SELECT - COUNT( * ) * + 55 + - 58 - + CASE + 94 WHEN - - 89 THEN 64 DIV + 53 WHEN + 62 + 53 THEN 6 ELSE NULLIF ( + 42, - 64 ) END + - 83
----
-238

skipif mysql # not compatible
query I rowsort label-9538
SELECT - COUNT ( * ) * + 55 + - 58 - + CASE + 94 WHEN - - 89 THEN 64 / + 53 WHEN + 62 + 53 THEN 6 ELSE NULLIF ( + 42, - 64 ) END + - 83
----
-238

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9539
SELECT ALL - + 31 DIV - 19, - COUNT( * ) + - + COUNT( * ) AS col1
----
1
-2

skipif mysql # not compatible
query II rowsort label-9539
SELECT ALL - + 31 / - 19, - COUNT ( * ) + - + COUNT ( * ) AS col1
----
1
-2

query II rowsort
SELECT + - 52 AS col1, 67 AS col0
----
-52
67

query I rowsort
SELECT - CASE + 61 WHEN - + 47 / + 81 THEN 1 * + - 56 * + 74 + - 90 * + 10 + + 93 END * - 2 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT + 56 * 77 + + - MIN( DISTINCT - - CAST( - 92 AS SIGNED ) ) * - 4
----
3944

skipif mysql # not compatible
query I rowsort label-9542
SELECT + 56 * 77 + + - MIN ( DISTINCT - - CAST ( - 92 AS INTEGER ) ) * - 4
----
3944

query II rowsort
SELECT + 1, + 93 * - 73 + 33 + + - 48 + - 61 AS col1
----
1
-6865

onlyif mysql # aggregate syntax: 
query II rowsort label-9544
SELECT ALL + COUNT( * ) AS col2, SUM( DISTINCT + 27 ) AS col0
----
1
27

skipif mysql # not compatible
query II rowsort label-9544
SELECT ALL + COUNT ( * ) AS col2, SUM ( DISTINCT + 27 ) AS col0
----
1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT - + MIN( - + 99 ) * + + 96 AS col1
----
9504

skipif mysql # not compatible
query I rowsort label-9545
SELECT - + MIN ( - + 99 ) * + + 96 AS col1
----
9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT - CAST( 19 AS SIGNED ) + + - 7 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9546
SELECT - CAST ( 19 AS INTEGER ) + + - 7 AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9547
SELECT + 72 * + 28 + + COUNT( * ) - NULLIF ( - + SUM( ALL + - 60 ), 21 ) + 47 DIV - 43
----
1956

skipif mysql # not compatible
query I rowsort label-9547
SELECT + 72 * + 28 + + COUNT ( * ) - NULLIF ( - + SUM ( ALL + - 60 ), 21 ) + 47 / - 43
----
1956

onlyif mysql # DIV for integer division: 
query I rowsort label-9548
SELECT - 70 + 60 * 48 DIV - 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9548
SELECT - 70 + 60 * 48 / - 99 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL 76 * + - ( - 4 ) * + + 49 * - - 36 * + + 32 + 95 + 58 * - 8 + SUM( + 22 + - 44 ) AS col1
----
17159801

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL 76 * + - ( - 4 ) * + + 49 * - - 36 * + + 32 + 95 + 58 * - 8 + SUM ( + 22 + - 44 ) AS col1
----
17159801

query I rowsort
SELECT + ( - 43 ) * 58 + - - ( - 60 ) + + 11 + 33 AS col0
----
-2510

query I rowsort
SELECT DISTINCT + 90 * - 65 + - - 2 AS col0
----
-5848

query I rowsort
SELECT + - 23 + - 50 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT ALL 97 * MAX( - 91 ) + + 66 AS col1
----
-8761

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL 97 * MAX ( - 91 ) + + 66 AS col1
----
-8761

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT SUM( DISTINCT + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-9554
SELECT SUM ( DISTINCT + 83 )
----
83

query I rowsort
SELECT - 35 * - 77
----
2695

query I rowsort
SELECT + 41 * 13
----
533

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9557
SELECT + 59 DIV MIN( 98 )
----
0

skipif mysql # not compatible
query I rowsort label-9557
SELECT + 59 / MIN ( 98 )
----
0

query I rowsort
SELECT + 17 + - 56 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT COUNT( ALL + 85 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9559
SELECT COUNT ( ALL + 85 ) AS col0
----
1

query I rowsort
SELECT ALL 99 - 22 * - 40
----
979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT ALL - 83 / - - 83 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL - 83 / - - 83 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 23 - + + 66
----
-43

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9563
SELECT + 81 * + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT + 81 * + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9564
SELECT + 99 + ( - NULLIF ( - COALESCE ( COUNT( * ), - 41, 38 * - 55 ), - CASE SUM( ALL - 55 ) WHEN 67 * - COUNT( * ) THEN 58 WHEN 90 + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) THEN NULL END * + COUNT( * ) + COUNT( * ) ) )
----
100

skipif mysql # not compatible
query I rowsort label-9564
SELECT + 99 + ( - NULLIF ( - COALESCE ( COUNT ( * ), - 41, 38 * - 55 ), - CASE SUM ( ALL - 55 ) WHEN 67 * - COUNT ( * ) THEN 58 WHEN 90 + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN NULL END * + COUNT ( * ) + COUNT ( * ) ) )
----
100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9565
SELECT + 58 DIV + CAST( + - 60 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9565
SELECT + 58 / + CAST ( + - 60 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT + 45 * - NULLIF ( - 32, NULLIF ( + ( - COUNT( * ) ), - 33 + - ( + 3 ) ) ) col2
----
1440

skipif mysql # not compatible
query I rowsort label-9566
SELECT + 45 * - NULLIF ( - 32, NULLIF ( + ( - COUNT ( * ) ), - 33 + - ( + 3 ) ) ) col2
----
1440

query I rowsort
SELECT + 69 - - 71 AS col1
----
140

onlyif mysql # aggregate syntax: 
query II rowsort label-9568
SELECT ALL SUM( - 70 ) AS col2, 15 col2
----
-70
15

skipif mysql # not compatible
query II rowsort label-9568
SELECT ALL SUM ( - 70 ) AS col2, 15 col2
----
-70
15

query I rowsort
SELECT + 39 + 86 * - 41 * 17 AS col1
----
-59903

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT - COUNT( * ) - - 44 * 38 AS col1
----
1671

skipif mysql # not compatible
query I rowsort label-9570
SELECT - COUNT ( * ) - - 44 * 38 AS col1
----
1671

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT + 15 * - COUNT( * ) AS col2, 72
----
-15
72

skipif mysql # not compatible
query II rowsort label-9571
SELECT + 15 * - COUNT ( * ) AS col2, 72
----
-15
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ALL COALESCE ( + ( + SUM( DISTINCT 55 ) ), + COUNT( * ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL COALESCE ( + ( + SUM ( DISTINCT 55 ) ), + COUNT ( * ) ) AS col2
----
55

query I rowsort
SELECT + 33 + - 77
----
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-9574
SELECT DISTINCT 39 * - - 81 AS col1, ( + 36 ) DIV + 2 + 28 * + 22 col0
----
3159
634

skipif mysql # not compatible
query II rowsort label-9574
SELECT DISTINCT 39 * - - 81 AS col1, ( + 36 ) / + 2 + 28 * + 22 col0
----
3159
634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9575
SELECT ALL + 45 / + 18 * - 31 - - 0 + - + 51 / CAST( 85 AS DECIMAL ) * + CAST( NULL AS SIGNED ) + - NULLIF ( 92 + COALESCE ( ( + SUM( + 65 ) ) + + 94 * 22, COALESCE ( - 97, + 73 * - AVG ( ( 49 ) ) ) ), + AVG ( - 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL + 45 / + 18 * - 31 - - 0 + - + 51 / CAST ( 85 AS REAL ) * + CAST ( NULL AS INTEGER ) + - NULLIF ( 92 + COALESCE ( ( + SUM ( + 65 ) ) + + 94 * 22, COALESCE ( - 97, + 73 * - AVG ( ( 49 ) ) ) ), + AVG ( - 42 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9576
SELECT + + 80 DIV 49 + + - 46 * - COUNT( * ) - + 61
----
-14

skipif mysql # not compatible
query I rowsort label-9576
SELECT + + 80 / 49 + + - 46 * - COUNT ( * ) - + 61
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT + - COUNT( 43 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9577
SELECT + - COUNT ( 43 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - - 87 + + 0 AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL + CAST( - 60 AS SIGNED ) + + 6 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL + CAST ( - 60 AS INTEGER ) + + 6 AS col1
----
-54

query I rowsort
SELECT ALL 33 * - + 25
----
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT ALL + COUNT( * ) + 28 * - 50
----
-1399

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL + COUNT ( * ) + 28 * - 50
----
-1399

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT DISTINCT + COUNT( + 26 ) + - 48 + 8 col0
----
-39

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT + COUNT ( + 26 ) + - 48 + 8 col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9583
SELECT 16 DIV - - 77 col0, 0 * + 29 * - 13 - + + 8 * + COUNT( * )
----
0
-8

skipif mysql # not compatible
query II rowsort label-9583
SELECT 16 / - - 77 col0, 0 * + 29 * - 13 - + + 8 * + COUNT ( * )
----
0
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT + NULLIF ( - - SUM( - - 28 ), + + MAX( ALL - 53 ) * 82 + + 71 + COUNT( + 90 ) + ( + COUNT( * ) ) )
----
28

skipif mysql # not compatible
query I rowsort label-9584
SELECT + NULLIF ( - - SUM ( - - 28 ), + + MAX ( ALL - 53 ) * 82 + + 71 + COUNT ( + 90 ) + ( + COUNT ( * ) ) )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9585
SELECT SUM( - 30 ), 51 * + 51 * + + 34 AS col0
----
-30
88434

skipif mysql # not compatible
query II rowsort label-9585
SELECT SUM ( - 30 ), 51 * + 51 * + + 34 AS col0
----
-30
88434

query II rowsort
SELECT 17 AS col0, - 96
----
17
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT DISTINCT + COUNT( * ) - + 20
----
-19

skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT + COUNT ( * ) - + 20
----
-19

query I rowsort
SELECT DISTINCT - 97 * - 99 * 3 * + + 88
----
2535192

query I rowsort
SELECT DISTINCT + 43 - + 91
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT 10 + + COUNT( * ) - + 41 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9590
SELECT 10 + + COUNT ( * ) - + 41 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL - 79 * + SUM( DISTINCT + - 22 ) AS col1
----
1738

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL - 79 * + SUM ( DISTINCT + - 22 ) AS col1
----
1738

onlyif mysql # DIV for integer division: 
query I rowsort label-9592
SELECT 94 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-9592
SELECT 94 / + 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9593
SELECT COUNT( * ) * + ( - + CAST( NULL AS DECIMAL ) ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT COUNT ( * ) * + ( - + CAST ( NULL AS REAL ) ) * 84
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9594
SELECT COUNT( * ) + + 36 * 23 AS col0, + 60 * 81
----
829
4860

skipif mysql # not compatible
query II rowsort label-9594
SELECT COUNT ( * ) + + 36 * 23 AS col0, + 60 * 81
----
829
4860

query II rowsort
SELECT DISTINCT 57 AS col1, ( + - 46 ) AS col2
----
57
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT NULLIF ( + 65, CASE - 50 WHEN - - 3 THEN NULL ELSE - CASE - 94 WHEN - COUNT( * ) + + 60 THEN + 69 ELSE NULL END / + COALESCE ( 91 + - 10, - COUNT( * ) * 92 - + ( AVG ( - 24 ) + - 65 ) ) END * NULLIF ( + 37 + - 21 * - 59, - 40 / + COUNT( * ) ) ) - - 84 * + COUNT( * )
----
149

skipif mysql # not compatible
query I rowsort label-9596
SELECT NULLIF ( + 65, CASE - 50 WHEN - - 3 THEN NULL ELSE - CASE - 94 WHEN - COUNT ( * ) + + 60 THEN + 69 ELSE NULL END / + COALESCE ( 91 + - 10, - COUNT ( * ) * 92 - + ( AVG ( - 24 ) + - 65 ) ) END * NULLIF ( + 37 + - 21 * - 59, - 40 / + COUNT ( * ) ) ) - - 84 * + COUNT ( * )
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9597
SELECT DISTINCT 10 AS col1, + 39 + CAST( + ( - - 44 ) AS SIGNED ) AS col0
----
10
83

skipif mysql # not compatible
query II rowsort label-9597
SELECT DISTINCT 10 AS col1, + 39 + CAST ( + ( - - 44 ) AS INTEGER ) AS col0
----
10
83

query I rowsort
SELECT 29 * - 69
----
-2001

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT + COUNT( * ) + - + 76 * - 96 * - 71 + - 86 AS col1
----
-518101

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT + COUNT ( * ) + - + 76 * - 96 * - 71 + - 86 AS col1
----
-518101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT ALL 80 + + CAST( NULL AS SIGNED ) + - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL 80 + + CAST ( NULL AS INTEGER ) + - + 71
----
NULL

query I rowsort
SELECT - 45 * NULLIF ( + 10, 54 )
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT + MIN( ALL - 38 ) * + + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-9602
SELECT + MIN ( ALL - 38 ) * + + COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9603
SELECT ALL - 77 + + COALESCE ( - 83, - - 25, - ( - SUM( 90 ) ) ) + + 19 - 12 DIV 15 * SUM( DISTINCT + 96 * - 40 ) AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL - 77 + + COALESCE ( - 83, - - 25, - ( - SUM ( 90 ) ) ) + + 19 - 12 / 15 * SUM ( DISTINCT + 96 * - 40 ) AS col2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT - MAX( ALL 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-9604
SELECT - MAX ( ALL 30 )
----
-30

query I rowsort
SELECT + 25 * - 6
----
-150

query I rowsort
SELECT ALL 8 + 30 col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9607
SELECT DISTINCT - CAST( + 38 AS SIGNED ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT - CAST ( + 38 AS INTEGER ) AS col1
----
-38

query I rowsort
SELECT DISTINCT - 84 + 17 * 61 AS col1
----
953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9609
SELECT - CAST( - 81 AS SIGNED ) - 46
----
35

skipif mysql # not compatible
query I rowsort label-9609
SELECT - CAST ( - 81 AS INTEGER ) - 46
----
35

query I rowsort
SELECT ALL + 51 + + 70 col1
----
121

query II rowsort
SELECT + 9 AS col2, 74 AS col1
----
9
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9612
SELECT + + 15 AS col0, 70 * COUNT( * ) - 5
----
15
65

skipif mysql # not compatible
query II rowsort label-9612
SELECT + + 15 AS col0, 70 * COUNT ( * ) - 5
----
15
65

query I rowsort
SELECT + 9 * + 75 + + 14 AS col1
----
689

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9614
SELECT ( + 90 ) * - 50 * - - COUNT( - + 52 ) + - + 92 DIV - 40 AS col1
----
-4498

skipif mysql # not compatible
query I rowsort label-9614
SELECT ( + 90 ) * - 50 * - - COUNT ( - + 52 ) + - + 92 / - 40 AS col1
----
-4498

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT ALL 67 / + + 47 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL 67 / + + 47 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9616
SELECT ALL - ( + - ( + ( - CAST( NULL AS SIGNED ) ) ) ) AS col2, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9616
SELECT ALL - ( + - ( + ( - CAST ( NULL AS INTEGER ) ) ) ) AS col2, - COUNT ( * )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT + NULLIF ( MIN( ALL + + 20 ), + + 42 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9617
SELECT + NULLIF ( MIN ( ALL + + 20 ), + + 42 ) AS col2
----
20

query I rowsort
SELECT + + 94 col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT COALESCE ( + 55, 0, 50 * - 59 * - + 80 - + - 72 * 20 + 34 ) + - COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-9619
SELECT COALESCE ( + 55, 0, 50 * - 59 * - + 80 - + - 72 * 20 + 34 ) + - COUNT ( * ) AS col2
----
54

query I rowsort
SELECT - - 10 * - 3 - - ( + 82 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9621
SELECT ALL + + 17 * - 52 + - 48 + ( + 20 ) - + COUNT( * ) * + 93 - + CAST( + 59 AS SIGNED ) col2
----
-1064

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL + + 17 * - 52 + - 48 + ( + 20 ) - + COUNT ( * ) * + 93 - + CAST ( + 59 AS INTEGER ) col2
----
-1064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9622
SELECT ( MAX( CAST( NULL AS SIGNED ) ) ) * ( ( AVG ( - + 91 ) ) ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT ( MAX ( CAST ( NULL AS INTEGER ) ) ) * ( ( AVG ( - + 91 ) ) ) + + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 29 * + 18 * + + 62 col1
----
32364

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT ALL MIN( ALL - 86 ) * + 6
----
-516

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL MIN ( ALL - 86 ) * + 6
----
-516

query I rowsort
SELECT 11 * + 40 * + 54
----
23760

query I rowsort
SELECT 14 + 21 + 56 * - 11 * - + 7 + - 50
----
4297

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT SUM( DISTINCT - 13 ) * - - 24 col1
----
-312

skipif mysql # not compatible
query I rowsort label-9627
SELECT SUM ( DISTINCT - 13 ) * - - 24 col1
----
-312

onlyif mysql # aggregate syntax: 
query II rowsort label-9628
SELECT - COUNT( - + 16 ) AS col2, - 45 * - + 52 AS col2
----
-1
2340

skipif mysql # not compatible
query II rowsort label-9628
SELECT - COUNT ( - + 16 ) AS col2, - 45 * - + 52 AS col2
----
-1
2340

query I rowsort
SELECT 10 * - 89 AS col0
----
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL - 21 + + + COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL - 21 + + + COUNT ( * ) AS col2
----
-20

query I rowsort
SELECT DISTINCT + CASE ( + + 52 ) WHEN + - 96 * - 26 * - 59 + + ( - 84 ) THEN NULL WHEN + + 50 + + 22 * 70 THEN NULL ELSE + 28 - + 25 END + 54 * + 70 AS col2
----
3783

query I rowsort
SELECT 35 + - + 35
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9633
SELECT 45 + + + 88, 17 * + ( - COUNT( * ) ) AS col1
----
133
-17

skipif mysql # not compatible
query II rowsort label-9633
SELECT 45 + + + 88, 17 * + ( - COUNT ( * ) ) AS col1
----
133
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9634
SELECT ALL + ( - MAX( CAST( NULL AS SIGNED ) ) ) + + - 65 * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL + ( - MAX ( CAST ( NULL AS INTEGER ) ) ) + + - 65 * + 95
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9635
SELECT ALL - + 58 + - CAST( NULL AS DECIMAL ), + 64 AS col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-9635
SELECT ALL - + 58 + - CAST ( NULL AS REAL ), + 64 AS col1
----
NULL
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9636
SELECT + 65 - - 6 + - - ( - 37 ) DIV + ( CASE + - CAST( + COUNT( * ) AS SIGNED ) WHEN + + COUNT( * ) THEN NULL ELSE + 67 END ) * + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9636
SELECT + 65 - - 6 + - - ( - 37 ) / + ( CASE + - CAST ( + COUNT ( * ) AS INTEGER ) WHEN + + COUNT ( * ) THEN NULL ELSE + 67 END ) * + COUNT ( * )
----
71

query I rowsort
SELECT + 79 + - 40
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT ALL + 55 DIV + - ( + - 25 )
----
2

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL + 55 / + - ( + - 25 )
----
2

query I rowsort
SELECT + + ( - + 1 )
----
-1

query I rowsort
SELECT - + 16 * + - 55 col0
----
880

onlyif mysql # DIV for integer division: 
query I rowsort label-9641
SELECT + 86 DIV 21 + + 62 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9641
SELECT + 86 / 21 + + 62 AS col2
----
66

query I rowsort
SELECT ALL - 5 * + 10 * + 38 col1
----
-1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT DISTINCT NULLIF ( 16, - 83 * 78 + 74 * - + 53 / - + COALESCE ( - - CAST( - NULLIF ( 9, + COUNT( ALL + 30 ) + + 58 * + 9 ) AS SIGNED ), COALESCE ( 74, - ( - 85 ), 16 * - 4 ) ) + - NULLIF ( 14, - ( - 47 ) ) ) * CAST( - 75 + - 2 AS SIGNED ) - + 2 * 50 AS col1
----
-1332

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT NULLIF ( 16, - 83 * 78 + 74 * - + 53 / - + COALESCE ( - - CAST ( - NULLIF ( 9, + COUNT ( ALL + 30 ) + + 58 * + 9 ) AS INTEGER ), COALESCE ( 74, - ( - 85 ), 16 * - 4 ) ) + - NULLIF ( 14, - ( - 47 ) ) ) * CAST ( - 75 + - 2 AS INTEGER ) - + 2 * 50 AS col1
----
-1332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9644
SELECT ALL - - CAST( + - 51 AS SIGNED ) * - CASE + ( + 87 ) WHEN 74 THEN 58 - - 9 WHEN - 53 * - 77 THEN + 44 WHEN + NULLIF ( 6, + 8 ) THEN 26 * + 63 ELSE NULL END - 77 * 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL - - CAST ( + - 51 AS INTEGER ) * - CASE + ( + 87 ) WHEN 74 THEN 58 - - 9 WHEN - 53 * - 77 THEN + 44 WHEN + NULLIF ( 6, + 8 ) THEN 26 * + 63 ELSE NULL END - 77 * 73 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL COALESCE ( 47, 26, + 71 - COUNT( * ) ) * - 59 * - 46 AS col1
----
127558

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL COALESCE ( 47, 26, + 71 - COUNT ( * ) ) * - 59 * - 46 AS col1
----
127558

onlyif mysql # DIV for integer division: 
query I rowsort label-9646
SELECT + 0 + - 65 + + - 44 DIV - COALESCE ( + + NULLIF ( - + 15, + ( - 5 ) ), - - 88, - 38 * - 61 - 46 )
----
-67

skipif mysql # not compatible
query I rowsort label-9646
SELECT + 0 + - 65 + + - 44 / - COALESCE ( + + NULLIF ( - + 15, + ( - 5 ) ), - - 88, - 38 * - 61 - 46 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-9647
SELECT ALL + 59, - MAX( 49 ) AS col0
----
59
-49

skipif mysql # not compatible
query II rowsort label-9647
SELECT ALL + 59, - MAX ( 49 ) AS col0
----
59
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT + COUNT( * ) - + CASE 45 WHEN - COUNT( * ) THEN NULL WHEN 51 / - 53 + + + 10 - - COALESCE ( - - 99, - 57 ) + + 49 * 49 THEN 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT + COUNT ( * ) - + CASE 45 WHEN - COUNT ( * ) THEN NULL WHEN 51 / - 53 + + + 10 - - COALESCE ( - - 99, - 57 ) + + 49 * 49 THEN 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT MAX( - + 99 ) col2
----
-99

skipif mysql # not compatible
query I rowsort label-9649
SELECT MAX ( - + 99 ) col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT + 23 - - COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9650
SELECT + 23 - - COUNT ( * ) AS col2
----
24

query I rowsort
SELECT + 40 * - - 47
----
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT - 58 * - - 0 * NULLIF ( COUNT( * ), COALESCE ( COUNT( * ), - 77 ) ) + - 89 * + 68 + 42 + 65 / 24 * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT - 58 * - - 0 * NULLIF ( COUNT ( * ), COALESCE ( COUNT ( * ), - 77 ) ) + - 89 * + 68 + 42 + 65 / 24 * 37 AS col0
----
NULL

query I rowsort
SELECT - ( 32 ) AS col1
----
-32

query I rowsort
SELECT ALL + 35 * + 4 + + - 30
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT 53 * + - 86 * CAST( 99 AS SIGNED ) + 10 * - 90
----
-452142

skipif mysql # not compatible
query I rowsort label-9655
SELECT 53 * + - 86 * CAST ( 99 AS INTEGER ) + 10 * - 90
----
-452142

query I rowsort
SELECT DISTINCT 16 + + 39 AS col1
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9657
SELECT DISTINCT 33 + - 84 + 96 - + - 11 + CAST( NULL AS DECIMAL ) + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT 33 + - 84 + 96 - + - 11 + CAST ( NULL AS REAL ) + - 44
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT - 45 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT - 45 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT DISTINCT COUNT( + - 19 )
----
1

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT COUNT ( + - 19 )
----
1

query I rowsort
SELECT ALL - ( 30 ) + 95 AS col1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT + 74 DIV - - 38
----
1

skipif mysql # not compatible
query I rowsort label-9661
SELECT + 74 / - - 38
----
1

query I rowsort
SELECT + 50 * - ( - + 67 )
----
3350

query I rowsort
SELECT - + 25 + + - 92 + 85 AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9664
SELECT DISTINCT - CASE + + 61 WHEN - COUNT( * ) THEN NULL ELSE - 33 DIV - - 14 + - NULLIF ( - 6, - CASE 34 WHEN 53 + 61 THEN NULL WHEN 63 THEN 37 + 69 WHEN + 93 THEN NULL END + COUNT( * ) ) + 67 END col1
----
-71

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT - CASE + + 61 WHEN - COUNT ( * ) THEN NULL ELSE - 33 / - - 14 + - NULLIF ( - 6, - CASE 34 WHEN 53 + 61 THEN NULL WHEN 63 THEN 37 + 69 WHEN + 93 THEN NULL END + COUNT ( * ) ) + 67 END col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9665
SELECT - - ( COUNT( * ) ) + - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT - - ( COUNT ( * ) ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 76, + 58 AS col0
----
76
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9667
SELECT - + CASE + - CAST( + 80 AS SIGNED ) WHEN - + 80 * + 14 / + MAX( + 29 ) THEN - - 69 WHEN + 1 THEN NULL ELSE COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9667
SELECT - + CASE + - CAST ( + 80 AS INTEGER ) WHEN - + 80 * + 14 / + MAX ( + 29 ) THEN - - 69 WHEN + 1 THEN NULL ELSE COUNT ( * ) END AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT ALL - - CAST( NULL AS SIGNED ) - - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - - CAST ( NULL AS INTEGER ) - - 99 AS col2
----
NULL

query I rowsort
SELECT - 82 * 76
----
-6232

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT DISTINCT + 92 * 33 + - COUNT( * ) - + 49 + 24 AS col1
----
3010

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT + 92 * 33 + - COUNT ( * ) - + 49 + 24 AS col1
----
3010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9671
SELECT - MAX( 24 ) - - 49 + - 32 * - COUNT( * ) DIV - + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-9671
SELECT - MAX ( 24 ) - - 49 + - 32 * - COUNT ( * ) / - + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT - 70 * + COUNT( * ) col2
----
-70

skipif mysql # not compatible
query I rowsort label-9672
SELECT - 70 * + COUNT ( * ) col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT - COUNT( * ) + + 37 + + 51 * - + COALESCE ( + - ( + + 2 ), + COUNT( * ) ) + + COUNT( * ) AS col2
----
139

skipif mysql # not compatible
query I rowsort label-9673
SELECT - COUNT ( * ) + + 37 + + 51 * - + COALESCE ( + - ( + + 2 ), + COUNT ( * ) ) + + COUNT ( * ) AS col2
----
139

query I rowsort
SELECT - 36 * - 93 + + + 93
----
3441

query II rowsort
SELECT ALL + + 6 col0, + 1 AS col2
----
6
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9676
SELECT - COUNT( * ) * + + CASE - 20 WHEN + 69 * + 20 * 8 + + 26 + 9 + + CAST( NULL AS SIGNED ) * - SUM( - COALESCE ( - COALESCE ( 88, + CAST( NULL AS SIGNED ) - + 46 * 97, ( - 50 ) ), 91 * ( + 96 * 15 ) + 20, 79 ) ) * 40 THEN - 58 ELSE 94 END - + ( + 94 - 17 ) * 75 AS col0
----
-5869

skipif mysql # not compatible
query I rowsort label-9676
SELECT - COUNT ( * ) * + + CASE - 20 WHEN + 69 * + 20 * 8 + + 26 + 9 + + CAST ( NULL AS INTEGER ) * - SUM ( - COALESCE ( - COALESCE ( 88, + CAST ( NULL AS INTEGER ) - + 46 * 97, ( - 50 ) ), 91 * ( + 96 * 15 ) + 20, 79 ) ) * 40 THEN - 58 ELSE 94 END - + ( + 94 - 17 ) * 75 AS col0
----
-5869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9677
SELECT ALL + + COALESCE ( 59, 96 * 50 DIV + SUM( 6 ), COUNT( * ) )
----
59

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL + + COALESCE ( 59, 96 * 50 / + SUM ( 6 ), COUNT ( * ) )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9678
SELECT - + 73 DIV - + MAX( ALL + 61 ) - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9678
SELECT - + 73 / - + MAX ( ALL + 61 ) - COUNT ( * ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT DISTINCT - 38 DIV - + 60 * - 19 * + + 72
----
0

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT - 38 / - + 60 * - 19 * + + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT DISTINCT + ( MIN( - - 75 ) )
----
75

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT + ( MIN ( - - 75 ) )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9681
SELECT + 76 DIV - NULLIF ( + - MIN( + ( 99 ) ), - - COUNT( * ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9681
SELECT + 76 / - NULLIF ( + - MIN ( + ( 99 ) ), - - COUNT ( * ) ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9682
SELECT DISTINCT - NULLIF ( 76, 87 * 64 ) * - + NULLIF ( 19, + - 46 * 17 - - 19 * 97 + + COUNT( * ) + COUNT( * ) / - 4 * CASE 90 - 75 WHEN 24 THEN 81 + ( + 74 - 48 ) / 20 WHEN - CASE 98 WHEN COUNT( * ) THEN - MIN( + COALESCE ( 45, 22 ) ) + - 75 * - 4 WHEN + SUM( DISTINCT + 22 ) + ( + 69 ) * - COUNT( * ) THEN 69 END + COALESCE ( 65, - 87 + - 86 * 44 ) THEN NULL END + 58 * + CAST( NULL AS SIGNED ) ) AS col2
----
1444

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT - NULLIF ( 76, 87 * 64 ) * - + NULLIF ( 19, + - 46 * 17 - - 19 * 97 + + COUNT ( * ) + COUNT ( * ) / - 4 * CASE 90 - 75 WHEN 24 THEN 81 + ( + 74 - 48 ) / 20 WHEN - CASE 98 WHEN COUNT ( * ) THEN - MIN ( + COALESCE ( 45, 22 ) ) + - 75 * - 4 WHEN + SUM ( DISTINCT + 22 ) + ( + 69 ) * - COUNT ( * ) THEN 69 END + COALESCE ( 65, - 87 + - 86 * 44 ) THEN NULL END + 58 * + CAST ( NULL AS INTEGER ) ) AS col2
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT + 29 * COUNT( ALL + 33 ) + - 29 * + - ( 68 ) * + 95
----
187369

skipif mysql # not compatible
query I rowsort label-9683
SELECT + 29 * COUNT ( ALL + 33 ) + - 29 * + - ( 68 ) * + 95
----
187369

query I rowsort
SELECT ( + 92 ) AS col2
----
92

query I rowsort
SELECT - 23 + + + 58 AS col1
----
35

query I rowsort
SELECT 30 * + 77 - + 19
----
2291

onlyif mysql # aggregate syntax: 
query II rowsort label-9687
SELECT ALL + 75, - COUNT( * ) * SUM( - + 41 ) + COALESCE ( - 67, ( - + 25 ) * 7 + + COUNT( * ), + 23 ) AS col2
----
75
-26

skipif mysql # not compatible
query II rowsort label-9687
SELECT ALL + 75, - COUNT ( * ) * SUM ( - + 41 ) + COALESCE ( - 67, ( - + 25 ) * 7 + + COUNT ( * ), + 23 ) AS col2
----
75
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT + 99 + COUNT( * ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-9688
SELECT + 99 + COUNT ( * ) AS col1
----
100

query I rowsort
SELECT ( + - 87 )
----
-87

query II rowsort
SELECT ALL + 65 col0, CASE - ( - 61 ) WHEN 93 THEN 42 END col2
----
65
NULL

query I rowsort
SELECT ALL 79 * - ( + 65 ) + 18 col2
----
-5117

query II rowsort
SELECT DISTINCT + 77, 41 + - 27 AS col0
----
77
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT ALL CASE + 75 WHEN + - 0 * - 13 * + 21 / + 71 THEN COALESCE ( + 5, + ( MAX( 11 ) ) * - ( 32 + - 44 / COALESCE ( 56 + - NULLIF ( ( - 30 ), + 5 ), 80 ) ) + - 12 ) + - SUM( ALL - 95 ) END + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL CASE + 75 WHEN + - 0 * - 13 * + 21 / + 71 THEN COALESCE ( + 5, + ( MAX ( 11 ) ) * - ( 32 + - 44 / COALESCE ( 56 + - NULLIF ( ( - 30 ), + 5 ), 80 ) ) + - 12 ) + - SUM ( ALL - 95 ) END + 41
----
NULL

query II rowsort
SELECT ALL 27 + - + COALESCE ( - + 2, 9 - + 0 ) - - 14 AS col2, - 46 + - 5
----
43
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT 29 * - 24 * - COUNT( * )
----
696

skipif mysql # not compatible
query I rowsort label-9695
SELECT 29 * - 24 * - COUNT ( * )
----
696

query I rowsort
SELECT 70 * - + ( + COALESCE ( 63, - 82 ) ) AS col0
----
-4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9697
SELECT DISTINCT 62 + 40 DIV + 39 * COUNT( * ) + 35 - - 82
----
180

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT 62 + 40 / + 39 * COUNT ( * ) + 35 - - 82
----
180

query II rowsort
SELECT 8 AS col1, + 23 + - + 91 AS col1
----
8
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT ALL + COUNT( * ) - 38
----
-37

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL + COUNT ( * ) - 38
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL - 99 * - - COUNT( * ) * 25 + + 84 * COUNT( * ) * - 96 AS col2
----
-10539

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL - 99 * - - COUNT ( * ) * 25 + + 84 * COUNT ( * ) * - 96 AS col2
----
-10539

query I rowsort
SELECT 98 - + + 63
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT DISTINCT 70 * + + CASE - - NULLIF ( 48, + 88 ) WHEN - + 77 THEN 68 WHEN - - 10 - - 42 * + SUM( DISTINCT - 58 ) THEN 29 * - 67 ELSE NULL END + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT 70 * + + CASE - - NULLIF ( 48, + 88 ) WHEN - + 77 THEN 68 WHEN - - 10 - - 42 * + SUM ( DISTINCT - 58 ) THEN 29 * - 67 ELSE NULL END + 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9703
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT - 14 + 42
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT 59 DIV 16
----
3

skipif mysql # not compatible
query I rowsort label-9705
SELECT 59 / 16
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9706
SELECT DISTINCT - 96 * CASE - - 85 WHEN + 48 DIV COUNT( * ) THEN NULL ELSE - 21 END DIV - ( - - 24 ) - 46 - - 29 AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT - 96 * CASE - - 85 WHEN + 48 / COUNT ( * ) THEN NULL ELSE - 21 END / - ( - - 24 ) - 46 - - 29 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-9707
SELECT ALL + 34 AS col2, MIN( + 21 ) AS col1
----
34
21

skipif mysql # not compatible
query II rowsort label-9707
SELECT ALL + 34 AS col2, MIN ( + 21 ) AS col1
----
34
21

query II rowsort
SELECT - 94 col0, - 61 AS col0
----
-94
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9709
SELECT ALL + 80, CAST( NULL AS SIGNED ) + - 41 / + 39 * - - 41 AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-9709
SELECT ALL + 80, CAST ( NULL AS INTEGER ) + - 41 / + 39 * - - 41 AS col2
----
80
NULL

query I rowsort
SELECT + 80 + + 10 + + 40 * + - 22
----
-790

onlyif mysql # aggregate syntax: 
query II rowsort label-9711
SELECT DISTINCT + COUNT( * ), 51 AS col1
----
1
51

skipif mysql # not compatible
query II rowsort label-9711
SELECT DISTINCT + COUNT ( * ), 51 AS col1
----
1
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9712
SELECT + 63 - MAX( DISTINCT 52 ) DIV + + 39 col0
----
62

skipif mysql # not compatible
query I rowsort label-9712
SELECT + 63 - MAX ( DISTINCT 52 ) / + + 39 col0
----
62

query I rowsort
SELECT 28 * - 65
----
-1820

query I rowsort
SELECT 16 + - 22
----
-6

query I rowsort
SELECT 8 * + 83 * + 40 * + 59 AS col2
----
1567040

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT - 14 * - 66 + + - COUNT( * ) + COUNT( + 94 ) * - - ( - 11 ) * + 40 + + + 83 AS col0
----
566

skipif mysql # not compatible
query I rowsort label-9716
SELECT - 14 * - 66 + + - COUNT ( * ) + COUNT ( + 94 ) * - - ( - 11 ) * + 40 + + + 83 AS col0
----
566

query I rowsort
SELECT ALL - - 98 * 46 * - 20 col0
----
-90160

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9718
SELECT DISTINCT - 20 + - 34 DIV ( + CAST( + 58 AS SIGNED ) ) col2
----
-20

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT - 20 + - 34 / ( + CAST ( + 58 AS INTEGER ) ) col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-9719
SELECT + - COUNT( * ) AS col1, 6 AS col1
----
-1
6

skipif mysql # not compatible
query II rowsort label-9719
SELECT + - COUNT ( * ) AS col1, 6 AS col1
----
-1
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9720
SELECT 70 DIV CAST( - CASE CASE + + 35 WHEN MAX( ALL + CASE 92 WHEN - 47 DIV 6 + + 11 + + 14 DIV 61 THEN 15 END ) THEN - 98 + 35 WHEN 38 THEN + 37 ELSE - 90 * 56 END WHEN - 70 THEN COUNT( * ) + 76 ELSE - 6 * + 19 END AS SIGNED ) * + 34 + + 87 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9720
SELECT 70 / CAST ( - CASE CASE + + 35 WHEN MAX ( ALL + CASE 92 WHEN - 47 / 6 + + 11 + + 14 / 61 THEN 15 END ) THEN - 98 + 35 WHEN 38 THEN + 37 ELSE - 90 * 56 END WHEN - 70 THEN COUNT ( * ) + 76 ELSE - 6 * + 19 END AS INTEGER ) * + 34 + + 87 AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9721
SELECT ALL - 34 + - - CAST( + - 10 AS SIGNED ) AS col0, 88 + + 22
----
-44
110

skipif mysql # not compatible
query II rowsort label-9721
SELECT ALL - 34 + - - CAST ( + - 10 AS INTEGER ) AS col0, 88 + + 22
----
-44
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9722
SELECT COUNT( * ) + - CAST( - - 31 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9722
SELECT COUNT ( * ) + - CAST ( - - 31 AS INTEGER ) AS col2
----
-30

query I rowsort
SELECT ALL - ( + + 84 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) * - SUM( - + 9 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - SUM ( - + 9 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9725
SELECT ALL + CAST( NULL AS SIGNED ) + + - CAST( - 45 AS SIGNED ) + 73 + - CASE + + 69 WHEN 90 + COUNT( * ) * - + COUNT( * ) THEN - ( CASE - + 88 WHEN + 48 - + ( 32 ) * + 90 THEN NULL WHEN - 45 THEN NULLIF ( 7, 36 + 88 ) ELSE - 54 END ) WHEN - 61 THEN 29 * 21 - - 75 WHEN 0 THEN - 94 END + + 91 * + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL + CAST ( NULL AS INTEGER ) + + - CAST ( - 45 AS INTEGER ) + 73 + - CASE + + 69 WHEN 90 + COUNT ( * ) * - + COUNT ( * ) THEN - ( CASE - + 88 WHEN + 48 - + ( 32 ) * + 90 THEN NULL WHEN - 45 THEN NULLIF ( 7, 36 + 88 ) ELSE - 54 END ) WHEN - 61 THEN 29 * 21 - - 75 WHEN 0 THEN - 94 END + + 91 * + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT 39 * - - COALESCE ( + - COUNT( * ), + COUNT( * ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9726
SELECT 39 * - - COALESCE ( + - COUNT ( * ), + COUNT ( * ) ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9727
SELECT DISTINCT - CAST( + NULLIF ( ( + 38 ), + 93 ) AS SIGNED ) + + + 83 + - 78 * + 0, NULLIF ( - 65, + MIN( DISTINCT + 0 ) ) AS col1
----
45
-65

skipif mysql # not compatible
query II rowsort label-9727
SELECT DISTINCT - CAST ( + NULLIF ( ( + 38 ), + 93 ) AS INTEGER ) + + + 83 + - 78 * + 0, NULLIF ( - 65, + MIN ( DISTINCT + 0 ) ) AS col1
----
45
-65

query I rowsort
SELECT ALL - NULLIF ( + 55, - 24 + - 48 ) + - + 0 AS col1
----
-55

query II rowsort
SELECT ALL + 72 + + 38, + 14 AS col0
----
110
14

query I rowsort
SELECT 29 - - - 1 col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT MAX( DISTINCT + 8 ) * 75 AS col0
----
600

skipif mysql # not compatible
query I rowsort label-9731
SELECT MAX ( DISTINCT + 8 ) * 75 AS col0
----
600

query I rowsort
SELECT 74 * 95
----
7030

onlyif mysql # DIV for integer division: 
query II rowsort label-9733
SELECT ALL 21 * + - 59 col0, 36 * - 83 * - 11 + - + 2 + + 3 - 31 DIV + 40 * 97
----
-1239
32869

skipif mysql # not compatible
query II rowsort label-9733
SELECT ALL 21 * + - 59 col0, 36 * - 83 * - 11 + - + 2 + + 3 - 31 / + 40 * 97
----
-1239
32869

query I rowsort
SELECT DISTINCT 39 - + 56 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT - NULLIF ( + - 88, 20 ) * + - ( SUM( ALL + 73 ) ) AS col1
----
-6424

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT - NULLIF ( + - 88, 20 ) * + - ( SUM ( ALL + 73 ) ) AS col1
----
-6424

query I rowsort
SELECT ALL - 70 - + 16
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9737
SELECT ALL - 59 * - 29 * + + 33 * - - ( + COALESCE ( - + 33, 69 ) ) * - 2 AS col1, - 61 * + ( MAX( DISTINCT - 25 ) )
----
3726558
1525

skipif mysql # not compatible
query II rowsort label-9737
SELECT ALL - 59 * - 29 * + + 33 * - - ( + COALESCE ( - + 33, 69 ) ) * - 2 AS col1, - 61 * + ( MAX ( DISTINCT - 25 ) )
----
3726558
1525

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT MIN( ALL 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT MIN ( ALL 66 ) AS col1
----
66

query II rowsort
SELECT - ( + 99 ) AS col1, - 88 - - 14
----
-99
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT 82 + - - MAX( ALL - 87 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9740
SELECT 82 + - - MAX ( ALL - 87 ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9741
SELECT + ( + 24 ) DIV CAST( - + COALESCE ( - - 79, - 23 ) AS SIGNED ) + - + 23 DIV 18 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9741
SELECT + ( + 24 ) / CAST ( - + COALESCE ( - - 79, - 23 ) AS INTEGER ) + - + 23 / 18 AS col2
----
-1

query I rowsort
SELECT ALL + 43 * - + 33 + + 8 col1
----
-1411

query I rowsort
SELECT ALL 31 * 72 * + + 18 AS col1
----
40176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9744
SELECT DISTINCT 70 DIV + MAX( ( + + 28 ) )
----
2

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT 70 / + MAX ( ( + + 28 ) )
----
2

query I rowsort
SELECT ALL 88 * + 31 + + ( 79 ) AS col0
----
2807

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT DISTINCT - COUNT( * ) + - ( 32 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9746
SELECT DISTINCT - COUNT ( * ) + - ( 32 ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9747
SELECT DISTINCT + SUM( DISTINCT - + CAST( - 50 AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT + SUM ( DISTINCT - + CAST ( - 50 AS INTEGER ) )
----
50

query I rowsort
SELECT ALL - - 95 + + 18 AS col1
----
113

query I rowsort
SELECT ALL + 91 + 69
----
160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9750
SELECT CAST( NULL AS DECIMAL ) - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT CAST ( NULL AS REAL ) - + 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT CAST( - + 44 AS SIGNED ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9751
SELECT CAST ( - + 44 AS INTEGER ) AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9752
SELECT 99 / - + CAST( NULL AS SIGNED ) AS col2, 50
----
NULL
50

skipif mysql # not compatible
query II rowsort label-9752
SELECT 99 / - + CAST ( NULL AS INTEGER ) AS col2, 50
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL 18 + + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL 18 + + COUNT ( * )
----
19

query I rowsort
SELECT 4 + + 28
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-9755
SELECT + COUNT( * ), + 40 AS col1
----
1
40

skipif mysql # not compatible
query II rowsort label-9755
SELECT + COUNT ( * ), + 40 AS col1
----
1
40

onlyif mysql # DIV for integer division: 
query II rowsort label-9756
SELECT ALL - 55, 51 DIV + - 43 AS col1
----
-55
-1

skipif mysql # not compatible
query II rowsort label-9756
SELECT ALL - 55, 51 / + - 43 AS col1
----
-55
-1

query I rowsort
SELECT ALL + 14 * + 56 + + 31
----
815

query I rowsort
SELECT 66 * - 88 - - - 61
----
-5869

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL - MIN( ALL + 52 ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL - MIN ( ALL + 52 ) col1
----
-52

query II rowsort
SELECT DISTINCT - 70 * 47 + - 49 * 27 AS col1, 69 AS col1
----
-4613
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9761
SELECT ALL - CAST( NULL AS SIGNED ) col2, + NULLIF ( - 60, - + 84 )
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-9761
SELECT ALL - CAST ( NULL AS INTEGER ) col2, + NULLIF ( - 60, - + 84 )
----
NULL
-60

query II rowsort
SELECT + 91, ( - + 6 ) * 63 + + 43 AS col1
----
91
-335

query I rowsort
SELECT + 57 * + 60
----
3420

query I rowsort
SELECT - 83 * + + 63 + - 47
----
-5276

query I rowsort
SELECT + 1 * + - 98 - + 19
----
-117

query I rowsort
SELECT ALL + 10 * - 73 - - + 73 + - - 26
----
-631

query II rowsort
SELECT ALL + 19 AS col0, - 43 + 6 * - + 56
----
19
-379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT ALL + 41 DIV COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL + 41 / COUNT ( * )
----
41

query I rowsort
SELECT ALL + + NULLIF ( 69, AVG ( + 48 ) ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL + + CASE - + 40 WHEN + 41 THEN + COUNT( * ) * - 53 WHEN - 99 THEN NULL WHEN AVG ( - - 98 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL + + CASE - + 40 WHEN + 41 THEN + COUNT ( * ) * - 53 WHEN - 99 THEN NULL WHEN AVG ( - - 98 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9771
SELECT ALL + + 44 DIV 77 * - 46 * + COUNT( - + 30 ) * 39
----
0

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL + + 44 / 77 * - 46 * + COUNT ( - + 30 ) * 39
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9772
SELECT - - 33 DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9772
SELECT - - 33 / - 57 AS col1
----
0

query I rowsort
SELECT - - 27 * - 86 col0
----
-2322

query I rowsort
SELECT - 49 + 44 AS col0
----
-5

query I rowsort
SELECT - 62 + + 34
----
-28

query I rowsort
SELECT + ( - + 46 )
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9777
SELECT + + 96 * - 17 + - + 25 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9777
SELECT + + 96 * - 17 + - + 25 + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL CASE + 20 WHEN - 87 THEN NULL WHEN - + 5 * + + 46 + COUNT( * ) THEN - NULLIF ( 40, - COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL CASE + 20 WHEN - 87 THEN NULL WHEN - + 5 * + + 46 + COUNT ( * ) THEN - NULLIF ( 40, - COUNT ( * ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9779
SELECT ALL COALESCE ( COUNT( * ), + CAST( - ( - 75 ) AS SIGNED ) ) * + + 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL COALESCE ( COUNT ( * ), + CAST ( - ( - 75 ) AS INTEGER ) ) * + + 95 AS col2
----
95

query I rowsort
SELECT ALL - 86 + - 81 col2
----
-167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT ALL - - CAST( NULL AS SIGNED ) + + 9 + - + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL - - CAST ( NULL AS INTEGER ) + + 9 + - + 85 AS col1
----
NULL

query I rowsort
SELECT + - 25 + - 7 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT + + 51 + + 66 * + COUNT( * ) * - 12 * - NULLIF ( + + 97, + 83 + 19 + - 31 + 50 )
----
76875

skipif mysql # not compatible
query I rowsort label-9783
SELECT + + 51 + + 66 * + COUNT ( * ) * - 12 * - NULLIF ( + + 97, + 83 + 19 + - 31 + 50 )
----
76875

query I rowsort
SELECT + 48 - 1 col1
----
47

query II rowsort
SELECT + 92 + - + 14 * + 10, + 79 AS col2
----
-48
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT + 61 + CASE - 21 WHEN + + COUNT( * ) + COALESCE ( - 4, + 41 ) THEN 53 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT + 61 + CASE - 21 WHEN + + COUNT ( * ) + COALESCE ( - 4, + 41 ) THEN 53 END AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( + 84, - 20 ) AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9788
SELECT + 94 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT + 94 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT DISTINCT ( + 41 ) + - 19 + COUNT( * ) * + - SUM( + ( - + ( + 69 ) ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT ( + 41 ) + - 19 + COUNT ( * ) * + - SUM ( + ( - + ( + 69 ) ) ) AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9790
SELECT ALL + COUNT( * ) DIV + 16 + 71 + - 97, - CAST( NULL AS SIGNED ) * 78 AS col2
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-9790
SELECT ALL + COUNT ( * ) / + 16 + 71 + - 97, - CAST ( NULL AS INTEGER ) * 78 AS col2
----
-26
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9791
SELECT - 79 DIV - 64 * 1 + 4 - 82 AS col2, 41 * - 54 * - + CASE SUM( 10 ) WHEN - - 76 * - 63 * - + 97 * 92 - - 18 + 15 THEN 18 DIV COUNT( * ) + 86 * - 87 END
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-9791
SELECT - 79 / - 64 * 1 + 4 - 82 AS col2, 41 * - 54 * - + CASE SUM ( 10 ) WHEN - - 76 * - 63 * - + 97 * 92 - - 18 + 15 THEN 18 / COUNT ( * ) + 86 * - 87 END
----
-77
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT ALL 4 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL 4 / + 79 AS col0
----
0

query I rowsort
SELECT + 28 * + + 70 AS col2
----
1960

query II rowsort
SELECT + ( - + 75 ) AS col1, ( - 35 ) AS col1
----
-75
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT ALL CAST( NULL AS SIGNED ) * - - 28 * - 16 - + - 36 + - - ( 17 ) + 46 * + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL CAST ( NULL AS INTEGER ) * - - 28 * - 16 - + - 36 + - - ( 17 ) + 46 * + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT + COUNT( * ) * + MIN( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-9796
SELECT + COUNT ( * ) * + MIN ( 45 )
----
45

query I rowsort
SELECT DISTINCT + 54 * 16 * + + 58 col0
----
50112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9798
SELECT + MAX( ALL COALESCE ( + 67, - 40 ) ) * + 38 DIV + ( + + NULLIF ( - COALESCE ( + COUNT( * ), - - ( - - 26 ) + COUNT( * ) * - 82, + - ( + 50 ) ), CAST( CAST( - 7 AS SIGNED ) AS SIGNED ) ) ) AS col1
----
-2546

skipif mysql # not compatible
query I rowsort label-9798
SELECT + MAX ( ALL COALESCE ( + 67, - 40 ) ) * + 38 / + ( + + NULLIF ( - COALESCE ( + COUNT ( * ), - - ( - - 26 ) + COUNT ( * ) * - 82, + - ( + 50 ) ), CAST ( CAST ( - 7 AS INTEGER ) AS INTEGER ) ) ) AS col1
----
-2546

onlyif mysql # aggregate syntax: 
query III rowsort label-9799
SELECT - CASE - + COUNT( * ) WHEN + 44 THEN 73 END + - 36 + - 35 * + ( + 22 ) + + 22 AS col2, 32, - 18 * COUNT( * ) AS col1
----
NULL
32
-18

skipif mysql # not compatible
query III rowsort label-9799
SELECT - CASE - + COUNT ( * ) WHEN + 44 THEN 73 END + - 36 + - 35 * + ( + 22 ) + + 22 AS col2, 32, - 18 * COUNT ( * ) AS col1
----
NULL
32
-18

query I rowsort
SELECT DISTINCT + + 42 * + + 46
----
1932

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9801
SELECT + 37 - + 14 AS col2, CAST( NULL AS SIGNED ) AS col2
----
23
NULL

skipif mysql # not compatible
query II rowsort label-9801
SELECT + 37 - + 14 AS col2, CAST ( NULL AS INTEGER ) AS col2
----
23
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT - 7 DIV - + ( 89 ) * - - 53 DIV + 50 col2
----
0

skipif mysql # not compatible
query I rowsort label-9802
SELECT - 7 / - + ( 89 ) * - - 53 / + 50 col2
----
0

query I rowsort
SELECT ALL + 76 * - 87 col0
----
-6612

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT + COUNT( * ) * + 95
----
95

skipif mysql # not compatible
query I rowsort label-9804
SELECT + COUNT ( * ) * + 95
----
95

query I rowsort
SELECT - 75 * + 15 + - 43 + + 88
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL - + 85 * 56 - 41 + - COUNT( * ) + + - 14 + NULLIF ( 58, + COUNT( ALL + - 87 ) ) * 60 + - + 43 col1
----
-1379

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL - + 85 * 56 - 41 + - COUNT ( * ) + + - 14 + NULLIF ( 58, + COUNT ( ALL + - 87 ) ) * 60 + - + 43 col1
----
-1379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT DISTINCT 37 * CASE 24 WHEN + 12 * + 68 THEN + 21 WHEN - 2 + - CAST( 30 AS SIGNED ) THEN NULL END * + - 2 + - 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT 37 * CASE 24 WHEN + 12 * + 68 THEN + 21 WHEN - 2 + - CAST ( 30 AS INTEGER ) THEN NULL END * + - 2 + - 67 AS col2
----
NULL

query II rowsort
SELECT ALL + 13 * + + ( 75 ) + + 37 * 23 + 62 + 41 AS col1, 7 + + ( - - 66 ) + + 37
----
1929
110

query I rowsort
SELECT - + ( + + ( + + 95 ) )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9810
SELECT - CAST( NULL AS SIGNED ) / COUNT( * ) AS col1, 33 * SUM( DISTINCT + - 26 ) - - COUNT( * ) + - ( 73 ) - + 31 * + 92 * - 75
----
NULL
212970

skipif mysql # not compatible
query II rowsort label-9810
SELECT - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1, 33 * SUM ( DISTINCT + - 26 ) - - COUNT ( * ) + - ( 73 ) - + 31 * + 92 * - 75
----
NULL
212970

query I rowsort
SELECT - 49 * 89
----
-4361

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT DISTINCT - ( - + 37 ) DIV 8 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT - ( - + 37 ) / 8 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL - - 24 * + COUNT( * ) * - 79 - 29 * + 22 AS col1
----
-2534

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - - 24 * + COUNT ( * ) * - 79 - 29 * + 22 AS col1
----
-2534

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT + - 88 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9814
SELECT + - 88 / 99 AS col2
----
0

query I rowsort
SELECT ALL - 83 + - 82 AS col2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT DISTINCT - 72 * + - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT - 72 * + - COUNT ( * ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9817
SELECT DISTINCT + + ( - CAST( NULL AS SIGNED ) ) * + CASE - MAX( - 76 ) WHEN + COUNT( * ) + + 34 + + + 48 THEN + 9 * + 43 - + 14 * + + 12 * - MAX( + 73 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + + ( - CAST ( NULL AS INTEGER ) ) * + CASE - MAX ( - 76 ) WHEN + COUNT ( * ) + + 34 + + + 48 THEN + 9 * + 43 - + 14 * + + 12 * - MAX ( + 73 ) END
----
NULL

query I rowsort
SELECT ALL ( 9 ) AS col1
----
9

query I rowsort
SELECT ALL + ( - ( 12 ) ) - 97 AS col1
----
-109

query I rowsort
SELECT 13 + - - 55
----
68

query I rowsort
SELECT 19 - 57 + - 81
----
-119

query II rowsort
SELECT ALL 85 AS col0, - 66 AS col1
----
85
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT COUNT( * ) + 21 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9823
SELECT COUNT ( * ) + 21 AS col0
----
22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9824
SELECT 38 + 62 + + COALESCE ( + CAST( NULL AS SIGNED ), + 28 ) * + 7 + 72 DIV - 81 + + 72 AS col2
----
368

skipif mysql # not compatible
query I rowsort label-9824
SELECT 38 + 62 + + COALESCE ( + CAST ( NULL AS INTEGER ), + 28 ) * + 7 + 72 / - 81 + + 72 AS col2
----
368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9825
SELECT DISTINCT - CAST( + - 13 AS SIGNED ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT - CAST ( + - 13 AS INTEGER ) AS col1
----
13

query I rowsort
SELECT ALL 98 * + 16 * + 17
----
26656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT ALL + 68 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL + 68 / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 16 * 57 AS col1
----
912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9829
SELECT ALL - 35 AS col0, 1 + 58 * MAX( + 99 ) * + + CAST( NULL AS SIGNED ) * - + CASE 77 WHEN - + 56 / + 56 + - 4 * - - 60 - + CASE - + COUNT( * ) WHEN - 8 THEN + 88 + ( - COUNT( * ) ) * - 49 END THEN NULL WHEN + 47 THEN NULL ELSE 74 * 17 END
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-9829
SELECT ALL - 35 AS col0, 1 + 58 * MAX ( + 99 ) * + + CAST ( NULL AS INTEGER ) * - + CASE 77 WHEN - + 56 / + 56 + - 4 * - - 60 - + CASE - + COUNT ( * ) WHEN - 8 THEN + 88 + ( - COUNT ( * ) ) * - 49 END THEN NULL WHEN + 47 THEN NULL ELSE 74 * 17 END
----
-35
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9830
SELECT ALL - 38 AS col1, COUNT( * ) + - + 16 + 61 AS col2
----
-38
46

skipif mysql # not compatible
query II rowsort label-9830
SELECT ALL - 38 AS col1, COUNT ( * ) + - + 16 + 61 AS col2
----
-38
46

query I rowsort
SELECT ALL 62 * + 6
----
372

onlyif mysql # aggregate syntax: 
query II rowsort label-9832
SELECT 80 * + 6 * + 71, MAX( DISTINCT - 41 ) + - 2 AS col1
----
34080
-43

skipif mysql # not compatible
query II rowsort label-9832
SELECT 80 * + 6 * + 71, MAX ( DISTINCT - 41 ) + - 2 AS col1
----
34080
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9833
SELECT CASE + 81 WHEN COUNT( * ) THEN NULL WHEN 72 THEN + COALESCE ( + COUNT( * ), - 57 ) END + - ( COUNT( * ) ) - + 75 * + 45 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT CASE + 81 WHEN COUNT ( * ) THEN NULL WHEN 72 THEN + COALESCE ( + COUNT ( * ), - 57 ) END + - ( COUNT ( * ) ) - + 75 * + 45 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 15 + + - 81 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT 78 * + NULLIF ( 78, COUNT( - 72 ) ) + - 15 * + - 72 AS col0
----
7164

skipif mysql # not compatible
query I rowsort label-9835
SELECT 78 * + NULLIF ( 78, COUNT ( - 72 ) ) + - 15 * + - 72 AS col0
----
7164

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT + 31 DIV - 26
----
-1

skipif mysql # not compatible
query I rowsort label-9836
SELECT + 31 / - 26
----
-1

query I rowsort
SELECT 59 + + - 95 + - 42 col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT MIN( + - 97 ) * - 31 col2
----
3007

skipif mysql # not compatible
query I rowsort label-9838
SELECT MIN ( + - 97 ) * - 31 col2
----
3007

query I rowsort
SELECT ALL + 19 + - 43
----
-24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9840
SELECT ALL - + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL - + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT ALL - 44 + 54
----
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9842
SELECT ALL - 39 + - 40 + - + 61 + + 55 + - - ( + CASE 16 WHEN + 21 - + 57 * - NULLIF ( + 38, + 80 ) THEN + - 59 DIV - ( + - CASE 70 WHEN - 2 THEN 19 ELSE 9 + CAST( 40 AS SIGNED ) END ) WHEN + 42 THEN + 41 ELSE - 6 * - 42 + + 30 END ) * + 22
----
6119

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL - 39 + - 40 + - + 61 + + 55 + - - ( + CASE 16 WHEN + 21 - + 57 * - NULLIF ( + 38, + 80 ) THEN + - 59 / - ( + - CASE 70 WHEN - 2 THEN 19 ELSE 9 + CAST ( 40 AS INTEGER ) END ) WHEN + 42 THEN + 41 ELSE - 6 * - 42 + + 30 END ) * + 22
----
6119

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT DISTINCT 36 + + NULLIF ( - - 48, - COUNT( * ) ) col0
----
84

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT 36 + + NULLIF ( - - 48, - COUNT ( * ) ) col0
----
84

query I rowsort
SELECT + - 59 col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9845
SELECT DISTINCT - + 72 AS col1, 1 - - 16 AS col1, - ( - CAST( NULL AS SIGNED ) ) + - COUNT( * )
----
-72
17
NULL

skipif mysql # not compatible
query III rowsort label-9845
SELECT DISTINCT - + 72 AS col1, 1 - - 16 AS col1, - ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * )
----
-72
17
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9846
SELECT ALL + COUNT( * ) * - - 42 * - CASE - + 78 WHEN + - COALESCE ( + 39, ( 93 ) + COUNT( 44 ) + - + 55, + SUM( DISTINCT - 45 ), + COUNT( * ) ) THEN NULL WHEN + 52 THEN CAST( NULL AS SIGNED ) + + COUNT( * ) WHEN 12 * - 61 THEN 50 - + COUNT( * ) * + 28 END + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL + COUNT ( * ) * - - 42 * - CASE - + 78 WHEN + - COALESCE ( + 39, ( 93 ) + COUNT ( 44 ) + - + 55, + SUM ( DISTINCT - 45 ), + COUNT ( * ) ) THEN NULL WHEN + 52 THEN CAST ( NULL AS INTEGER ) + + COUNT ( * ) WHEN 12 * - 61 THEN 50 - + COUNT ( * ) * + 28 END + - 28
----
NULL

query II rowsort
SELECT + 47 + 96 * + 20 AS col1, 61
----
1967
61

query I rowsort
SELECT DISTINCT + - 59 + + 36 + 18 AS col2
----
-5

query I rowsort
SELECT ALL + ( + + 75 ) AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9850
SELECT 85 + - - 83 * 8 + + COALESCE ( + + COUNT( * ), + 28 ) * + 86 + + ( - ( - COUNT( DISTINCT NULLIF ( 83, - CAST( NULL AS DECIMAL ) ) ) ) ) - CAST( - + 48 AS SIGNED )
----
884

skipif mysql # not compatible
query I rowsort label-9850
SELECT 85 + - - 83 * 8 + + COALESCE ( + + COUNT ( * ), + 28 ) * + 86 + + ( - ( - COUNT ( DISTINCT NULLIF ( 83, - CAST ( NULL AS REAL ) ) ) ) ) - CAST ( - + 48 AS INTEGER )
----
884

query I rowsort
SELECT ALL - 43 * - 45 col1
----
1935

query I rowsort
SELECT ( - ( 31 ) ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL - ( - - CASE - AVG ( - 38 ) WHEN - 48 * + NULLIF ( + - 49, 3 * - COUNT( DISTINCT 38 ) * + 41 * + 69 / + 42 + 66 ) THEN + + 48 WHEN 67 + 81 THEN + 48 + ( 7 + + 10 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL - ( - - CASE - AVG ( - 38 ) WHEN - 48 * + NULLIF ( + - 49, 3 * - COUNT ( DISTINCT 38 ) * + 41 * + 69 / + 42 + 66 ) THEN + + 48 WHEN 67 + 81 THEN + 48 + ( 7 + + 10 ) END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9854
SELECT - ( + - CAST( COALESCE ( ( + 97 ), - 53, 48 ) AS SIGNED ) ) + + COUNT( * ) * - - 70 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-9854
SELECT - ( + - CAST ( COALESCE ( ( + 97 ), - 53, 48 ) AS INTEGER ) ) + + COUNT ( * ) * - - 70 AS col1
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT 77 * 59 * + + 87 * + COUNT( * ) * COUNT( * ) AS col0
----
395241

skipif mysql # not compatible
query I rowsort label-9855
SELECT 77 * 59 * + + 87 * + COUNT ( * ) * COUNT ( * ) AS col0
----
395241

onlyif mysql # DIV for integer division: 
query I rowsort label-9856
SELECT ALL - 88 DIV - - 73 + - ( - 75 ) + 45 + + - 98 * 45
----
-4291

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL - 88 / - - 73 + - ( - 75 ) + 45 + + - 98 * 45
----
-4291

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT 39 + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-9857
SELECT 39 + + COUNT ( * )
----
40

query I rowsort
SELECT ALL - ( + 32 ) - + + 91
----
-123

query II rowsort
SELECT ALL 71 AS col0, + 60 AS col1
----
71
60

query II rowsort
SELECT DISTINCT 23 col2, - 87 AS col0
----
23
-87

query I rowsort
SELECT 22 * - 65 AS col2
----
-1430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9862
SELECT DISTINCT 80 col0, CASE + 88 WHEN - 95 + CAST( - SUM( DISTINCT 67 ) AS SIGNED ) * - 77 THEN - COALESCE ( + - COUNT( * ), - + 66 ) + - 0 * 74 + 7 WHEN + 11 THEN NULL END
----
80
NULL

skipif mysql # not compatible
query II rowsort label-9862
SELECT DISTINCT 80 col0, CASE + 88 WHEN - 95 + CAST ( - SUM ( DISTINCT 67 ) AS INTEGER ) * - 77 THEN - COALESCE ( + - COUNT ( * ), - + 66 ) + - 0 * 74 + 7 WHEN + 11 THEN NULL END
----
80
NULL

query II rowsort
SELECT 43 col0, - 99 AS col0
----
43
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT DISTINCT - 26 * + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT - 26 * + COUNT ( * )
----
-26

query I rowsort
SELECT ALL + 72 * - 50 * - 47 AS col0
----
169200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9866
SELECT ALL - CAST( NULL AS DECIMAL ) * ( SUM( ALL - ( 15 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL - CAST ( NULL AS REAL ) * ( SUM ( ALL - ( 15 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9867
SELECT 54 / CASE 96 WHEN - - 11 THEN MIN( ALL - + 74 ) + - MAX( ALL - + 54 ) + - 44 * - 70 - - 33 END AS col2, 46 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-9867
SELECT 54 / CASE 96 WHEN - - 11 THEN MIN ( ALL - + 74 ) + - MAX ( ALL - + 54 ) + - 44 * - 70 - - 33 END AS col2, 46 AS col2
----
NULL
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9868
SELECT ALL + ( - - CAST( + 38 AS SIGNED ) ) * + COUNT( * ) * COUNT( * ) + 31 - - CAST( NULL AS SIGNED ) + - AVG ( DISTINCT - 93 ) + 94 / + - COUNT( * ) * CAST( NULL AS SIGNED ) * + - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + ( - - CAST ( + 38 AS INTEGER ) ) * + COUNT ( * ) * COUNT ( * ) + 31 - - CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT - 93 ) + 94 / + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - 95 AS col1
----
NULL

query I rowsort
SELECT 73 + 17
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9870
SELECT + 8 AS col2, + COUNT( * ) col1
----
8
1

skipif mysql # not compatible
query II rowsort label-9870
SELECT + 8 AS col2, + COUNT ( * ) col1
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT MIN( ALL - 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-9871
SELECT MIN ( ALL - 65 ) AS col0
----
-65

query I rowsort
SELECT ALL 51 * + 30 + + 41 - ( 35 )
----
1536

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT SUM( ALL - ( + 54 ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9873
SELECT SUM ( ALL - ( + 54 ) ) AS col2
----
-54

query I rowsort
SELECT 70 + 62
----
132

query I rowsort
SELECT ALL + 59 * - 63 + 87
----
-3630

query I rowsort
SELECT ALL 86 + + + 76
----
162

query I rowsort
SELECT 51 * - 40 * - 50
----
102000

query I rowsort
SELECT ALL - 99 * + 69 AS col1
----
-6831

onlyif mysql # aggregate syntax: 
query II rowsort label-9879
SELECT 82 + 45 + - - 48 + 32 * - + COUNT( * ) * 20 * + 10 + - ( - - 19 ), 51 * 93 AS col1
----
-6244
4743

skipif mysql # not compatible
query II rowsort label-9879
SELECT 82 + 45 + - - 48 + 32 * - + COUNT ( * ) * 20 * + 10 + - ( - - 19 ), 51 * 93 AS col1
----
-6244
4743

query I rowsort
SELECT + 78 + + 25
----
103

query I rowsort
SELECT 30 * 83 AS col0
----
2490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9882
SELECT ALL - + 61, + 28 - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-61
29

skipif mysql # not compatible
query II rowsort label-9882
SELECT ALL - + 61, + 28 - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-61
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9883
SELECT ( + COUNT( * ) ) DIV + ( 32 )
----
0

skipif mysql # not compatible
query I rowsort label-9883
SELECT ( + COUNT ( * ) ) / + ( 32 )
----
0

query I rowsort
SELECT + ( - 98 ) - 35 + - - 77 * - - 76 AS col0
----
5719

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT + MAX( + 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9885
SELECT + MAX ( + 38 ) AS col0
----
38

query I rowsort
SELECT - - 54 * + + NULLIF ( + + 73, + - 61 ) + 96 + + 96 AS col2
----
4134

onlyif mysql # DIV for integer division: 
query I rowsort label-9887
SELECT ALL + 83 DIV + + 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL + 83 / + + 58 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9888
SELECT ALL - - CAST( NULL AS SIGNED ), 77 AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-9888
SELECT ALL - - CAST ( NULL AS INTEGER ), 77 AS col0
----
NULL
77

query I rowsort
SELECT ALL + 14 - + 36 col2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT DISTINCT - 50 DIV 17 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT - 50 / 17 AS col1
----
-2

query I rowsort
SELECT DISTINCT 15 - ( - + 0 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT COALESCE ( ( 51 ), - 78 + + 85, + + COUNT( ALL 23 ) )
----
51

skipif mysql # not compatible
query I rowsort label-9892
SELECT COALESCE ( ( 51 ), - 78 + + 85, + + COUNT ( ALL 23 ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT + COUNT( * ) * 77 * + - 65 + + 93 AS col0
----
-4912

skipif mysql # not compatible
query I rowsort label-9893
SELECT + COUNT ( * ) * 77 * + - 65 + + 93 AS col0
----
-4912

query I rowsort
SELECT ALL 53 * + + 51 col1
----
2703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT + 59 - + 86 * + - CAST( - + 27 AS SIGNED ) AS col0
----
-2263

skipif mysql # not compatible
query I rowsort label-9895
SELECT + 59 - + 86 * + - CAST ( - + 27 AS INTEGER ) AS col0
----
-2263

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT - MAX( + 46 ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-9896
SELECT - MAX ( + 46 ) col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT - 99 * + + SUM( DISTINCT + - 48 )
----
4752

skipif mysql # not compatible
query I rowsort label-9897
SELECT - 99 * + + SUM ( DISTINCT + - 48 )
----
4752

query I rowsort
SELECT ALL - 40 * + 11 AS col1
----
-440

query I rowsort
SELECT - CASE 65 WHEN - 74 + + 22 THEN - + 21 WHEN - 22 THEN + - 14 * - - 49 + + 5 WHEN + - 92 THEN - + 15 / 87 ELSE NULL END
----
NULL

query I rowsort
SELECT + 63 * - + COALESCE ( + + 56, 65 )
----
-3528

query I rowsort
SELECT + 28 + + + 95 * 92
----
8768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9902
SELECT ALL + 14 + - - 93 + + - 42 - CAST( 64 AS SIGNED ) + + 0 DIV + + COALESCE ( COUNT( * ), + ( - 75 ) ) AS col1, 60 AS col2
----
1
60

skipif mysql # not compatible
query II rowsort label-9902
SELECT ALL + 14 + - - 93 + + - 42 - CAST ( 64 AS INTEGER ) + + 0 / + + COALESCE ( COUNT ( * ), + ( - 75 ) ) AS col1, 60 AS col2
----
1
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9903
SELECT + 45 + - + 37 + + COUNT( * ) + + ( - + 61 ) * - 32 * + 61 + + COUNT( * ) + - 45 * 40 * + 56 + + - 80 * - COUNT( * ) - 94 * + CAST( NULL AS SIGNED ) - + 86 * - 67 * 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT + 45 + - + 37 + + COUNT ( * ) + + ( - + 61 ) * - 32 * + 61 + + COUNT ( * ) + - 45 * 40 * + 56 + + - 80 * - COUNT ( * ) - 94 * + CAST ( NULL AS INTEGER ) - + 86 * - 67 * 34 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL - 50 + + 14 * - + COUNT( * ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL - 50 + + 14 * - + COUNT ( * ) col2
----
-64

query I rowsort
SELECT + 21 + + 27 - 78 + - 62 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT - 27 - + - 51 + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9906
SELECT - 27 - + - 51 + COUNT ( * ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL NULLIF ( + SUM( DISTINCT - ( + + 12 ) ), 77 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL NULLIF ( + SUM ( DISTINCT - ( + + 12 ) ), 77 ) AS col2
----
-12

query II rowsort
SELECT ALL + 78 * + ( + - 55 ) * + 33 + - 58 AS col2, + 15
----
-141628
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT ( + COUNT( * ) ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-9909
SELECT ( + COUNT ( * ) ) AS col2, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT ALL COUNT( * ) * + - 79 + + + 45 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL COUNT ( * ) * + - 79 + + + 45 AS col0
----
-34

query I rowsort
SELECT ALL + - 88 * - 38 + - ( + 19 )
----
3325

query II rowsort
SELECT + 1 * + 47 + - 36 + - - 74 + 77 + - 2 + + 99 + - 42 * + 51 * + + 77, 77 AS col1
----
-164675
77

query I rowsort
SELECT - + 84 + + + 63 + 67 AS col2
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9914
SELECT 98 DIV 40 DIV + 83 + 21 DIV COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9914
SELECT 98 / 40 / + 83 + 21 / COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT - + COUNT( * ) + - 7
----
-8

skipif mysql # not compatible
query I rowsort label-9915
SELECT - + COUNT ( * ) + - 7
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9916
SELECT DISTINCT - CAST( - + 93 AS SIGNED ) * - + 98
----
-9114

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT - CAST ( - + 93 AS INTEGER ) * - + 98
----
-9114

query I rowsort
SELECT DISTINCT + CASE 89 WHEN - + AVG ( + 51 ) THEN - + AVG ( DISTINCT + - 75 ) / - + 13 WHEN - 88 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT DISTINCT - 14 * + 53 + 99 - + SUM( ALL + 19 )
----
-662

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT - 14 * + 53 + 99 - + SUM ( ALL + 19 )
----
-662

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT 4 * - 86 + COUNT( * ) * 61
----
-283

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT 4 * - 86 + COUNT ( * ) * 61
----
-283

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT DISTINCT + + MIN( DISTINCT + 14 ) * - 1 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT + + MIN ( DISTINCT + 14 ) * - 1 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT - 31 + + COUNT( * ) + - 96 * + 94
----
-9054

skipif mysql # not compatible
query I rowsort label-9921
SELECT - 31 + + COUNT ( * ) + - 96 * + 94
----
-9054

query I rowsort
SELECT + 41 - + - 42
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT - 25 * COALESCE ( - - 51, + 39 ) + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT - 25 * COALESCE ( - - 51, + 39 ) + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 45 * COALESCE ( 28, - 5 * + + 47 )
----
1260

query I rowsort
SELECT + 88 + - + 30
----
58

query II rowsort
SELECT ALL 28, ( + + 7 ) AS col1
----
28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT 8 * - COUNT( * ) + + ( - COUNT( * ) ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9927
SELECT 8 * - COUNT ( * ) + + ( - COUNT ( * ) ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT DISTINCT MAX( DISTINCT - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT MAX ( DISTINCT - 52 )
----
-52

query I rowsort
SELECT DISTINCT 5 + 32 + + 52 AS col1
----
89

query II rowsort
SELECT 55 AS col1, + 26 + - 70
----
55
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9931
SELECT + CAST( NULL AS SIGNED ) + - 91 + 30 * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9931
SELECT + CAST ( NULL AS INTEGER ) + - 91 + 30 * 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9932
SELECT ALL 39 + - CAST( NULL AS DECIMAL ) - + - 32 * - COUNT( ALL - NULLIF ( + 14, - 27 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL 39 + - CAST ( NULL AS REAL ) - + - 32 * - COUNT ( ALL - NULLIF ( + 14, - 27 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT 98 * MAX( DISTINCT ( - + 92 ) ) * - + 97 * + COUNT( * )
----
874552

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT 98 * MAX ( DISTINCT ( - + 92 ) ) * - + 97 * + COUNT ( * )
----
874552

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT - COALESCE ( - 11, + MIN( + 47 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9934
SELECT - COALESCE ( - 11, + MIN ( + 47 ) ) AS col0
----
11

query I rowsort
SELECT + COALESCE ( - 36, - - 51 * 95 * - - 40 ) + + 27
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT + COUNT( * ) * - 17
----
-17

skipif mysql # not compatible
query I rowsort label-9936
SELECT + COUNT ( * ) * - 17
----
-17

query I rowsort
SELECT ALL 33 * - 52 AS col1
----
-1716

onlyif mysql # aggregate syntax: 
query II rowsort label-9938
SELECT ALL COUNT( * ), - MIN( - 80 ) AS col1
----
1
80

skipif mysql # not compatible
query II rowsort label-9938
SELECT ALL COUNT ( * ), - MIN ( - 80 ) AS col1
----
1
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9939
SELECT ALL 4 + - SUM( DISTINCT - + 29 ), + 78 - + - 7 + - - 73 * 66 + + 48 - + + 63 + + MAX( + 76 ) - COUNT( * ) * - 4 * 59 + + CAST( NULL AS SIGNED ) * 76 AS col1
----
33
NULL

skipif mysql # not compatible
query II rowsort label-9939
SELECT ALL 4 + - SUM ( DISTINCT - + 29 ), + 78 - + - 7 + - - 73 * 66 + + 48 - + + 63 + + MAX ( + 76 ) - COUNT ( * ) * - 4 * 59 + + CAST ( NULL AS INTEGER ) * 76 AS col1
----
33
NULL

query II rowsort
SELECT DISTINCT - 37 + + 37 * 35, 71 AS col1
----
1258
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9941
SELECT ALL + CASE + 38 WHEN COUNT( * ) THEN + COUNT( * ) * - 43 ELSE COUNT( 49 ) END + 45 + + - 14 DIV - 48 * - 92 * - 2
----
46

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL + CASE + 38 WHEN COUNT ( * ) THEN + COUNT ( * ) * - 43 ELSE COUNT ( 49 ) END + 45 + + - 14 / - 48 * - 92 * - 2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9942
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) + + COALESCE ( + 66, ( + 60 ), - - 15 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + COALESCE ( + 66, ( + 60 ), - - 15 ) AS col1
----
NULL

query II rowsort
SELECT 98, - 64 AS col1
----
98
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT DISTINCT COUNT( * ) + + 98
----
99

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT COUNT ( * ) + + 98
----
99

query I rowsort
SELECT + COALESCE ( 14, - 62 + - - 55 * - 73 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9946
SELECT ALL - 39 DIV - SUM( DISTINCT 86 ) * - + 12 + 81 - - - 32
----
49

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL - 39 / - SUM ( DISTINCT 86 ) * - + 12 + 81 - - - 32
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT + 4 DIV 35 * - ( 40 ) + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-9947
SELECT + 4 / 35 * - ( 40 ) + - 1
----
-1

query I rowsort
SELECT - 74 * 91 AS col2
----
-6734

query I rowsort
SELECT ALL + 16 * + 80
----
1280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 63 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 63 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT + COUNT( - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-9951
SELECT + COUNT ( - 58 )
----
1

query I rowsort
SELECT DISTINCT - + 53 * - 83
----
4399

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9953
SELECT - - 61 DIV + + 49 + + 17, + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-9953
SELECT - - 61 / + + 49 + + 17, + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
18
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9954
SELECT ALL - 55 * - + ( + COUNT( ALL - + ( 68 ) ) ) * + 96 + + - COUNT( DISTINCT - CAST( - 75 AS DECIMAL ) ) * - + 2 * + - 85 + - - 88 * - + 63 + - ( - COUNT( ALL - 83 ) ) DIV + 87 - SUM( 64 ) * - COUNT( * ) AS col1
----
-370

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL - 55 * - + ( + COUNT ( ALL - + ( 68 ) ) ) * + 96 + + - COUNT ( DISTINCT - CAST ( - 75 AS REAL ) ) * - + 2 * + - 85 + - - 88 * - + 63 + - ( - COUNT ( ALL - 83 ) ) / + 87 - SUM ( 64 ) * - COUNT ( * ) AS col1
----
-370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9955
SELECT CASE - COUNT( * ) WHEN 77 * 26 + - 13 + + 6 THEN - - ( - 14 ) WHEN - - NULLIF ( + 90, - 19 ) THEN 51 * + + COUNT( ALL + 28 ) + 65 + 53 + - ( - + 51 ) / COALESCE ( + CAST( 83 AS SIGNED ), CAST( + 13 AS SIGNED ) + 66 ) * 40 ELSE NULL END * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT CASE - COUNT ( * ) WHEN 77 * 26 + - 13 + + 6 THEN - - ( - 14 ) WHEN - - NULLIF ( + 90, - 19 ) THEN 51 * + + COUNT ( ALL + 28 ) + 65 + 53 + - ( - + 51 ) / COALESCE ( + CAST ( 83 AS INTEGER ), CAST ( + 13 AS INTEGER ) + 66 ) * 40 ELSE NULL END * 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9956
SELECT ALL - - 86 * - CASE - 17 WHEN - - SUM( 90 ) THEN - 44 WHEN CASE 40 WHEN - ( COUNT( * ) ) * - 66 + + 74 THEN - 48 - + - 94 WHEN - - MAX( + 94 ) - CAST( 78 AS SIGNED ) THEN NULL END THEN NULL WHEN - MIN( 77 ) * 65 THEN NULL WHEN + COUNT( * ) + - CASE 3 WHEN 61 * 74 THEN + 14 + - 66 END * - ( 39 ) THEN - 85 * 33 + 74 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL - - 86 * - CASE - 17 WHEN - - SUM ( 90 ) THEN - 44 WHEN CASE 40 WHEN - ( COUNT ( * ) ) * - 66 + + 74 THEN - 48 - + - 94 WHEN - - MAX ( + 94 ) - CAST ( 78 AS INTEGER ) THEN NULL END THEN NULL WHEN - MIN ( 77 ) * 65 THEN NULL WHEN + COUNT ( * ) + - CASE 3 WHEN 61 * 74 THEN + 14 + - 66 END * - ( 39 ) THEN - 85 * 33 + 74 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 64 * + 67
----
4288

query II rowsort
SELECT ALL - 3, - 59 AS col0
----
-3
-59

query II rowsort
SELECT DISTINCT - 34 AS col2, + NULLIF ( - + ( ( + - 63 ) ), + - 81 ) + - 39
----
-34
24

query I rowsort
SELECT - 34 + 50 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT ALL - - ( - NULLIF ( - - ( - COUNT( * ) ), 69 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL - - ( - NULLIF ( - - ( - COUNT ( * ) ), 69 ) )
----
1

query II rowsort
SELECT 53 AS col1, - 38
----
53
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL - SUM( ALL - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - SUM ( ALL - 64 )
----
64

query I rowsort
SELECT 48 * + - 26 * + 14
----
-17472

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL 0 + + - 10 + COUNT( * ) + 1
----
-8

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL 0 + + - 10 + COUNT ( * ) + 1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT ALL - ( - - NULLIF ( + 14, - ( COUNT( * ) ) ) ) + + 55 + - + 2
----
39

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL - ( - - NULLIF ( + 14, - ( COUNT ( * ) ) ) ) + + 55 + - + 2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9967
SELECT DISTINCT 34 + + 76 * + CAST( - - ( 83 ) AS SIGNED ) DIV - + COUNT( * )
----
-6274

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT 34 + + 76 * + CAST ( - - ( 83 ) AS INTEGER ) / - + COUNT ( * )
----
-6274

query I rowsort
SELECT ALL + 22 * - + 32
----
-704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9969
SELECT ALL - 50 + + CAST( COUNT( * ) AS SIGNED ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL - 50 + + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9970
SELECT MAX( ALL + CAST( - 15 AS SIGNED ) ) * - 86 * - 64
----
-82560

skipif mysql # not compatible
query I rowsort label-9970
SELECT MAX ( ALL + CAST ( - 15 AS INTEGER ) ) * - 86 * - 64
----
-82560

query I rowsort
SELECT ( 40 ) * + 18
----
720

query II rowsort
SELECT 73 * + - 99 col0, ( - 14 ) AS col1
----
-7227
-14

query I rowsort
SELECT DISTINCT + 96 * + 24 * 4 * + 80 AS col2
----
737280

query I rowsort
SELECT ALL 86 + 68 * 53 AS col2
----
3690

query I rowsort
SELECT 89 - - - 46
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9976
SELECT SUM( ALL - + 36 ) - - 58 DIV 79 - + 57 * + + 58
----
-3342

skipif mysql # not compatible
query I rowsort label-9976
SELECT SUM ( ALL - + 36 ) - - 58 / 79 - + 57 * + + 58
----
-3342

query II rowsort
SELECT 72 + - 10 AS col1, 47 + + 17 * - - ( + ( - + NULLIF ( + + 32, - - 28 ) ) )
----
62
-497

query I rowsort
SELECT ALL 50 - + 80 + + 91 + 81 * + 17 AS col2
----
1438

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT - MAX( + + 51 ) + + + 19 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9979
SELECT - MAX ( + + 51 ) + + + 19 AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9980
SELECT 80 * COUNT( * ) * - + CAST( + 24 AS SIGNED ) * + ( - - ( - - 0 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9980
SELECT 80 * COUNT ( * ) * - + CAST ( + 24 AS INTEGER ) * + ( - - ( - - 0 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT ALL - 20 * SUM( + 80 ) * - 24 AS col0
----
38400

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL - 20 * SUM ( + 80 ) * - 24 AS col0
----
38400

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9982
SELECT ALL CAST( NULL AS DECIMAL ) * - - 19 AS col2, - 76
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-9982
SELECT ALL CAST ( NULL AS REAL ) * - - 19 AS col2, - 76
----
NULL
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT AVG ( ALL CAST( NULL AS SIGNED ) ) * - - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT AVG ( ALL CAST ( NULL AS INTEGER ) ) * - - 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL - ( - 37 ) * - + MAX( ALL + + 22 ) + + CAST( 37 AS SIGNED ) AS col0
----
-777

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL - ( - 37 ) * - + MAX ( ALL + + 22 ) + + CAST ( 37 AS INTEGER ) AS col0
----
-777

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9985
SELECT - CASE + - ( + 73 ) WHEN 61 THEN + 58 * + 34 * 12 + - CAST( + COALESCE ( - 37, - 62 ) AS DECIMAL ) + - 37 + COUNT( * ) ELSE NULL END / + ( 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT - CASE + - ( + 73 ) WHEN 61 THEN + 58 * + 34 * 12 + - CAST ( + COALESCE ( - 37, - 62 ) AS REAL ) + - 37 + COUNT ( * ) ELSE NULL END / + ( 0 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9986
SELECT ALL + 44 DIV NULLIF ( - - 31, - 16 * - MIN( ALL + 92 ) + - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL + 44 / NULLIF ( - - 31, - 16 * - MIN ( ALL + 92 ) + - 17 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT + NULLIF ( COALESCE ( - 44, + - 5 + 70 ), - + ( + CAST( - 62 AS SIGNED ) ) * + + 57 ) * - 33
----
1452

skipif mysql # not compatible
query I rowsort label-9987
SELECT + NULLIF ( COALESCE ( - 44, + - 5 + 70 ), - + ( + CAST ( - 62 AS INTEGER ) ) * + + 57 ) * - 33
----
1452

query I rowsort
SELECT + NULLIF ( + - 88, 89 * COALESCE ( - 74, + 67 ) + + ( + - 3 ) )
----
-88

query I rowsort
SELECT DISTINCT - COALESCE ( 62, ( + 69 ), + 53 ) + + 92 * + + 70 + - - 65 * + 43 + + 16 + + 46 + - 42 * 71 * 90
----
-259145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9990
SELECT - 31 * + 14 - + 45 + + 46 + - - CAST( NULL AS SIGNED ) - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT - 31 * + 14 - + 45 + + 46 + - - CAST ( NULL AS INTEGER ) - + 40
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL - MIN( ALL 37 ) + 41
----
4

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL - MIN ( ALL 37 ) + 41
----
4

query I rowsort
SELECT ALL + 27 + + + ( - ( - - 76 ) ) AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + 3 - - CASE - + COALESCE ( + COUNT( * ), + 71, + ( - - 36 ) ) WHEN + + 3 * + 48 - + + 10 + + 49 * + MIN( ALL - + 14 ) - - 10 THEN NULL ELSE - - 75 END * - ( - 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + 3 - - CASE - + COALESCE ( + COUNT ( * ), + 71, + ( - - 36 ) ) WHEN + + 3 * + 48 - + + 10 + + 49 * + MIN ( ALL - + 14 ) - - 10 THEN NULL ELSE - - 75 END * - ( - 69 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 29 + + 33 AS col0
----
62

query I rowsort
SELECT ALL + 27 * - 93 AS col2
----
-2511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + + 83 * - ( - - ( - CAST( - 42 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + 83 * - ( - - ( - CAST ( - 42 AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT DISTINCT - ( + ( + + NULLIF ( - 72, 64 ) ) ) AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT 63 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT 63 + - + CAST ( NULL AS INTEGER )
----
NULL

